Skip to content

Arduino build fail with : multiple definition of `reverse' #5045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kylongmu opened this issue Apr 12, 2021 · 2 comments
Closed

Arduino build fail with : multiple definition of `reverse' #5045

kylongmu opened this issue Apr 12, 2021 · 2 comments
Assignees
Milestone

Comments

@kylongmu
Copy link

The fft code is referenced from https://github.com/espressif/esp-dsp/blob/master/examples/fft_window/main/dsps_window_main.c

#include "esp_dsp.h"
//------------DSP FFT
#define N_SAMPLES 1024
int N = N_SAMPLES;
// Input test array
float x1[N_SAMPLES];
// Window coefficients
float wind[N_SAMPLES];
// working complex array
float y_cf[N_SAMPLES*2];
// Pointers to result arrays
float* y1_cf = &y_cf[0];

void process_and_show(float* data, int length)
{
    dsps_fft2r_fc32(data, length);
    // Bit reverse 
    dsps_bit_rev_fc32(data, length);
    // Convert one complex vector to two complex vectors
    dsps_cplx2reC_fc32(data, length);
  
    // Show power spectrum in 64x10 window from -100 to 0 dB from 0..N/4 samples
    dsps_view(data, length/2, 64, 10,  -120, 40, '|');

}

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Build error:

xtensa-esp32-elf/bin/ld.exe: C:\Users\THINKPAD\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32/lib\libesp-dsp.a(dsps_fft2r_fc32_ansi.c.obj): in function `reverse':
/Users/ficeto/Desktop/ESP32/ESP32S2/esp32-arduino-lib-builder/components/esp-dsp/modules/fft/float/dsps_fft2r_fc32_ansi.c:142: multiple definition of `reverse'; C:\Users\THINKPAD\AppData\Local\Temp\arduino_cache_892156\core\core_710e3b13e306b2f8b2a3f2af49610748.a(stdlib_noniso.c.o):C:\Users\THINKPAD\Documents\Arduino\hardware\espressif\esp32\cores\esp32/stdlib_noniso.c:32: first defined here
@stale
Copy link

stale bot commented Jun 18, 2021

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Jun 18, 2021
@stale
Copy link

stale bot commented Jul 11, 2021

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.

@stale stale bot closed this as completed Jul 11, 2021
@VojtechBartoska VojtechBartoska added this to the 2.0.0 milestone Jul 14, 2021
me-no-dev added a commit that referenced this issue Jul 16, 2021
* Add back ARDUINO_EVENT_WIFI_READY

Fixes: #5315

* use strncpy and strncmp for WiFi SSID and Password in AP and STA

Fixes: #5367

* Implement timeout for waitForConnectResult

Fixes: #5330

* Remove old definition of "reverse" from stdlib_noniso

Fixes: #5045

* Make "reverse" noniso conditional on ESP_DSP
@VojtechBartoska VojtechBartoska removed the Status: Stale Issue is stale stage (outdated/stuck) label Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants