面向Arduino平台的C++标准库
Error happens on include library setup, for example verifying a blank sketch with only #include <Cpp_Standard_Library.h> or trying to verify Functional or RandomShuffle example sketches. Error occurs in both Arduino IDE v1 & v2 Verbose error message from Arduino IDE v1 ``` Arduino: 1.8.19 (Linux), Board: "Arduino Nano, ATmega328P" /usr/lib64/arduino/arduino-builder -dump-prefs -logger=machine -hardware /usr/lib64/arduino/hardware -hardware /home/matthew/.arduino15/packages -tools /usr/lib64/arduino/hardware/tools/avr -tools /home/matthew/.arduino15/packages -libraries /home/matthew/Arduino/libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10819 -build-path /tmp/arduino_build_638287 -warnings=all -build-cache /tmp/arduino_cache_216253 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/matthew/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/matthew/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avr-gcc.path=/home/matthew/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/home/matthew/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=/home/matthew/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/matthew/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /home/matthew/Arduino/libraries/Cpp_Standard_Library/examples/Functional/Functional.ino /usr/lib64/arduino/arduino-builder -compile -logger=machine -hardware /usr/lib64/arduino/hardware -hardware /home/matthew/.arduino15/packages -tools /usr/lib64/arduino/hardware/tools/avr -tools /home/matthew/.arduino15/packages -libraries /home/matthew/Arduino/libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10819 -build-path /tmp/arduino_build_638287 -warnings=all -build-cache /tmp/arduino_cache_216253 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/matthew/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/matthew/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avr-gcc.path=/home/matthew/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/home/matthew/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=/home/matthew/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/matthew/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /home/matthew/Arduino/libraries/Cpp_Standard_Library/examples/Functional/Functional.ino Using board 'nano' from platform in folder: /home/matthew/.arduino15/packages/arduino/hardware/avr/1.8.6 Using core 'arduino' from platform in folder: /home/matthew/.arduino15/packages/arduino/hardware/avr/1.8.6 Detecting libraries used... /home/matthew/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/matthew/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/matthew/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs /tmp/arduino_build_638287/sketch/Functional.ino.cpp -o /dev/null Alternatives for Cpp_Standard_Library.h: [[email protected]] ResolveLibrary(Cpp_Standard_Library.h) -> candidates: [[email protected]] /home/matthew/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/matthew/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/matthew/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs -I/home/matthew/Arduino/libraries/Cpp_Standard_Library/src /tmp/arduino_build_638287/sketch/Functional.ino.cpp -o /dev/null Alternatives for Arduino.h/../../arduino/new: [] ResolveLibrary(Arduino.h/../../arduino/new) -> candidates: [] In file included from /home/matthew/Arduino/libraries/Cpp_Standard_Library/examples/Functional/Functional.ino:1:0: /home/matthew/Arduino/libraries/Cpp_Standard_Library/src/Cpp_Standard_Library.h:10:30: fatal error: Arduino.h/../../arduino/new: No such file or directory #define CSL_Official(Header) <Arduino.h/../../arduino/Header> ^ compilation terminated. Using library Cpp_Standard_Library at version 3.0.0 in folder: /home/matthew/Arduino/libraries/Cpp_Standard_Library exit status 1 Error compiling for board Arduino Nano. ``` Verbose error message from Arduino IDE v2 ``` loading library from /home/matthew/Arduino/libraries/test: invalid library: no header files found FQBN: arduino:avr:nano Using board 'nano' from platform in folder: /home/matthew/.arduino15/packages/arduino/hardware/avr/1.8.6 Using core 'arduino' from platform in folder: /home/matthew/.arduino15/packages/arduino/hardware/avr/1.8.6 Detecting libraries used... /home/matthew/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/matthew/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/matthew/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs /home/matthew/.var/app/cc.arduino.IDE2/cache/arduino/sketches/593EA9412EEFF1772130A07A9EDA0F47/sketch/Functional.ino.cpp -o /dev/null Alternatives for Cpp_Standard_Library.h: [[email protected]] ResolveLibrary(Cpp_Standard_Library.h) -> candidates: [[email protected]] In file included from /home/matthew/.var/app/cc.arduino.IDE2/cache/.arduinoIDE-unsaved202492-52-14261we.z68h/Functional/Functional.ino:1:0: /home/matthew/Arduino/libraries/Cpp_Standard_Library/src/Cpp_Standard_Library.h:10:30: fatal error: Arduino.h/../../arduino/new: No such file or directory #define CSL_Official(Header) <Arduino.h/../../arduino/Header> ^ compilation terminated. /home/matthew/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/matthew/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/matthew/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs -I/home/matthew/Arduino/libraries/Cpp_Standard_Library/src /home/matthew/.var/app/cc.arduino.IDE2/cache/arduino/sketches/593EA9412EEFF1772130A07A9EDA0F47/sketch/Functional.ino.cpp -o /dev/null Alternatives for Arduino.h/../../arduino/new: [] ResolveLibrary(Arduino.h/../../arduino/new) -> candidates: [] exit status 1 Compilation error: exit status 1 ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by maroru and has received 5 comments.