You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling as an ESP-IDF component I get the following error:
/usr/local/src/blink/components/arduino/cores/esp32/Arduino.h:121:6: error: conflicting types for 'random'
long random(long, long);
^~~~~~
In file included from /usr/local/src/blink/components/arduino/cores/esp32/esp32-hal.h:30,
from /usr/local/src/blink/components/arduino/cores/esp32/wiring_shift.c:20:
/usr/local/src/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:267:6: note: previous declaration of 'random' was here
long random (void);
^~~~~~
I had this problem occur on my primary development PC recently (it had worked in the past before updates). Today I did a fresh install of esp-idf (master branch, commit a7e8d87d3e5ccc9e5ffcd701a1bac587ba4f43ea) and the toolchain, then copied examples/blink and installed arduino-esp32 as a component in components/arduino.
Without even adding #include "Arduino.h" to the code, make menuconfig && make results in this error.
I suspect the issue is actually related to using compiler version 8.2.0 , and I will look into how to change to a previous version to test.
Regards
Paul
The text was updated successfully, but these errors were encountered:
Thanks - I suspected it was something just that simple. I have tested with idf 3.2, however I haven't yet figured out how to install a specific version of the toolchain. I'm sure it's right there in the docs but I have overlooked it.
When compiling as an ESP-IDF component I get the following error:
Hardware:
Board: VintLabs PWM Devkit
Core Installation version: 1.0.3 (master, commit bab3a70)
IDE name: IDF component
Flash Frequency: ?40Mhz?
PSRAM enabled: ?no? ?yes?
Upload Speed: ?115200?
Computer OS: Gentoo Linux
Description:
I had this problem occur on my primary development PC recently (it had worked in the past before updates). Today I did a fresh install of esp-idf (master branch, commit a7e8d87d3e5ccc9e5ffcd701a1bac587ba4f43ea) and the toolchain, then copied examples/blink and installed arduino-esp32 as a component in components/arduino.
Without even adding
#include "Arduino.h"
to the code,make menuconfig && make
results in this error.I suspect the issue is actually related to using compiler version 8.2.0 , and I will look into how to change to a previous version to test.
Regards
Paul
The text was updated successfully, but these errors were encountered: