Description
Using Arduino IDE 1.8.11 Hourly Build 2020/02/05 06:33 with Windows 10 64 bit and Ubuntu 19.10 64 bit
- Use Boards Manager to install a previous version of Arduino AVR Boards.
- File > Preferences > Show verbose output during: compilation (check) > OK
- Sketch > Verify/Compile
After the compilation finishes, examine the output in the console window. You can see that the Arduino AVR Boards core bundled with the Arduino IDE is still being used, when it should be using the one installed to the .arduino15
folder.
Here's a snippet of the output with Arduino AVR Boards 1.6.21 installed:
/home/per/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10811 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/per/ArduinoIDE/arduino-nightly/hardware/arduino/avr/cores/arduino -I/home/per/ArduinoIDE/arduino-nightly/hardware/arduino/avr/variants/mega /tmp/arduino_build_348441/sketch/sketch_feb05a.ino.cpp -o /dev/null
Note that, correctly, avr-gcc 4.9.2-atmel3.5.4-arduino2 is being used, as specified for Arduino AVR Boards 1.6.21 in package_index.json.
However, the -I
option for the core library folder is:
-I/home/per/ArduinoIDE/arduino-nightly/hardware/arduino/avr/cores/arduino
when it should be:
-I/home/per/.arduino15/packages/arduino/hardware/avr/1.6.21/cores/arduino
The issue is not restricted to the -I
option for the core library folder. That is just a clearly visible indicator of the problem.
The issue does occur with Arduino IDE 1.8.11.
The issue does not occur with Arduino IDE 1.8.10