Arduino Nano Every gcc error

I have a new Arduino Every board and am trying to install the following sketch onto it,

#include <Board_Identify.h>

void setup() {
  // put your setup code here, to run once:
  Serial.print(F("Board Type: "));
  Serial.println(BoardIdentify::type);
  Serial.print(F("Board Make: "));
  Serial.println(BoardIdentify::make);
  Serial.print(F("Board Model: "));
  Serial.println(BoardIdentify::model);
  Serial.print(F("Board MCU: "));
  Serial.println(BoardIdentify::mcu);
}

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

}

but I get the following error when compiling, preventing uploading to the board,

Arduino: 1.8.19 (Linux), Board: "Arduino Nano Every, None (ATMEGA4809)"

Warning: platform.txt from core 'Arduino megaAVR Boards' contains deprecated compiler.path={runtime.tools.avr-gcc.path}/bin/, automatically converted to compiler.path=/usr/bin/. Consider upgrading this core.
avr-g++: error: device-specs/specs-atmega4809: No such file or directory
exit status 1
Error compiling for board Arduino Nano Every.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

And with verbose logging I get,

Arduino: 1.8.19 (Linux), Board: "Arduino Nano Every, None (ATMEGA4809)"

arduino-builder -dump-prefs -logger=machine -hardware /usr/share/arduino/hardware -hardware /home/me/.arduino15/packages -tools /usr/share/arduino/hardware/tools/avr -tools /home/me/.arduino15/packages -libraries /home/me/Documents/Projects/Arduino/libraries -fqbn=arduino:megaavr:nona4809:mode=off -vid-pid=2341_0058 -ide-version=10819 -build-path /tmp/arduino_build_309412 -warnings=none -build-cache /tmp/arduino_cache_609135 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/me/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/me/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avr-gcc.path=/home/me/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=/home/me/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avrdude.path=/home/me/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/me/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /home/me/Documents/Projects/Arduino/ESP32-MagTag/IdentifyBoards/IdentifyBoards.ino
arduino-builder -compile -logger=machine -hardware /usr/share/arduino/hardware -hardware /home/me/.arduino15/packages -tools /usr/share/arduino/hardware/tools/avr -tools /home/me/.arduino15/packages -libraries /home/me/Documents/Projects/Arduino/libraries -fqbn=arduino:megaavr:nona4809:mode=off -vid-pid=2341_0058 -ide-version=10819 -build-path /tmp/arduino_build_309412 -warnings=none -build-cache /tmp/arduino_cache_609135 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/me/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/me/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avr-gcc.path=/home/me/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=/home/me/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avrdude.path=/home/me/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/me/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /home/me/Documents/Projects/Arduino/ESP32-MagTag/IdentifyBoards/IdentifyBoards.ino
Using board 'nona4809' from platform in folder: /home/me/.arduino15/packages/arduino/hardware/megaavr/1.8.8
Using core 'arduino' from platform in folder: /home/me/.arduino15/packages/arduino/hardware/megaavr/1.8.8
Warning: platform.txt from core 'Arduino megaAVR Boards' contains deprecated compiler.path={runtime.tools.avr-gcc.path}/bin/, automatically converted to compiler.path=/usr/bin/. Consider upgrading this core.
Detecting libraries used...
"/usr/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=atmega4809 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR   -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-I/home/me/.arduino15/packages/arduino/hardware/megaavr/1.8.8/cores/arduino/api/deprecated" "-I/home/me/.arduino15/packages/arduino/hardware/megaavr/1.8.8/cores/arduino" "-I/home/me/.arduino15/packages/arduino/hardware/megaavr/1.8.8/variants/nona4809" "/tmp/arduino_build_309412/sketch/IdentifyBoards.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/usr/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=atmega4809 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR   -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-I/home/me/.arduino15/packages/arduino/hardware/megaavr/1.8.8/cores/arduino/api/deprecated" "-I/home/me/.arduino15/packages/arduino/hardware/megaavr/1.8.8/cores/arduino" "-I/home/me/.arduino15/packages/arduino/hardware/megaavr/1.8.8/variants/nona4809" "/tmp/arduino_build_309412/sketch/IdentifyBoards.ino.cpp" -o "/tmp/arduino_build_309412/preproc/ctags_target_for_gcc_minus_e.cpp"
avr-g++: error: device-specs/specs-atmega4809: No such file or directory
exit status 1
Error compiling for board Arduino Nano Every.

I have, the following on x86_64,

$ lsb_release -rd
Description:	Linux Mint 21.1
Release:	21.1

$ apt-cache policy gcc | head -n 3
gcc:
  Installed: 4:11.2.0-1ubuntu1
  Candidate: 4:11.2.0-1ubuntu1

$ apt-cache policy arduino | head -n 3
arduino:
  Installed: 2:1.8.19+dfsg1-1
  Candidate: 2:1.8.19+dfsg1-1

The IDE sees the board on /dev/ttyACM0 and reports BN: Arduino Nano Every, VID: 2341, etc.

I've updated the libraries in the IDE and restarted the IDE to no avail. How can I get past this error using the stock IDE from the Linux Mint repositories?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.