Closed
Description
Board
any
Device Description
n/a
Hardware Configuration
n/a
Version
latest master (checkout manually)
IDE Name
arduino-cli
Operating System
Linux
Flash frequency
n/a
PSRAM enabled
yes
Upload speed
n/a
Description
Current version of the platform.txt
file contains new versions of compiler.c.extra_flags
, compiler.cpp.extra_flags
and compiler.S.extra_flags
parameters which are not empty (the change provided by 6f7a1ca). I've been using these parameters to pass extra flags for the C/C++ compiler for the arduino-cli
tool. Currently I'm not able to do this, since my passed flags interfere with the flags in platform.txt
causing compilation error.
Could you consider moving these flags from compiler.XXX.extra_flags
to compiler.XXX.flags
and leave the extra flags empty for exclusive user usage as it is for other Arduino cores?
Sketch
n/a
Debug Message
| /root/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-12.2.0_20230208/bin/xtensa-esp32-elf-g++ -DCONFIG_PWR_CTRL_ENABLED -DCONFIG_OVERDRIVE_ENABLED -DCONFIG_CRC16_ENABLED -DCONFIG_ITERATION_RETRIES=1 @/root/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-6b1f40b9bf/esp32/flags/cpp_flags -w -Os -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"linux\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 @/root/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-6b1f40b9bf/esp32/flags/defines -I/home/ps/projects/c/arduino/OneWireNg/examples/arduino/DallasTemperature -iprefix /root/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-6b1f40b9bf/esp32/include/ @/root/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-6b1f40b9bf/esp32/flags/includes -I/root/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-6b1f40b9bf/esp32/qio_qspi/include -I/root/.arduino15/packages/esp32/hardware/esp32/3.0.0-alpha2/cores/esp32 -I/root/.arduino15/packages/esp32/hardware/esp32/3.0.0-alpha2/variants/esp32 -I/root/Arduino/libraries/OneWireNg/src @/tmp/arduino/sketches/2EC09C26A960CEA4C81193530AEEE765/build_opt.h /tmp/arduino/sketches/2EC09C26A960CEA4C81193530AEEE765/sketch/DallasTemperature.ino.cpp -o /tmp/arduino/sketches/2EC09C26A960CEA4C81193530AEEE765/sketch/DallasTemperature.ino.cpp.o
| /root/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-12.2.0_20230208/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: /root/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-12.2.0_20230208/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/lib/no-rtti/libc.a(lib_a-raise.o):(.literal+0x0): warning: _getpid_r is not implemented and will always fail
| /root/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-12.2.0_20230208/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: /root/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-12.2.0_20230208/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/lib/no-rtti/libc.a(lib_a-raise.o):(.literal+0x4): warning: _kill_r is not implemented and will always fail
| /root/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-12.2.0_20230208/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: /root/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-12.2.0_20230208/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/lib/no-rtti/libc.a(lib_a-syswrite.o):(.literal+0x4): warning: _write_r is not implemented and will always fail
| /root/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-12.2.0_20230208/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: /root/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-12.2.0_20230208/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/lib/no-rtti/libc.a(lib_a-syswrite.o):(.literal+0x0): warning: __getreent is not implemented and will always fail
| /root/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-12.2.0_20230208/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: /root/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-12.2.0_20230208/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/lib/no-rtti/crt0.o:(.literal+0x0): undefined reference to `main'
| /root/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-12.2.0_20230208/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: /tmp/cc5Yr0r9.o:(.literal._ZN9OneWireNg8iterator10searchStepEv[_ZN9OneWireNg8iterator10searchStepEv]+0x0): undefined reference to `_ZN9OneWireNg6searchERA8_hb'
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.