Arduino IDE running on pi : Internal compiler error

Hi
I am trying to compile for the seeduino directly from the raspberry pi and installed the
32bit arm Arduino IDE + seeduino board on the pi.
Compiling an empty sketch (empty setup and loop function) for arduinoUno is fine (so IDE setup seems to be ok) but I get internal compiler errors when trying to compile for XIAO. Not sure if that is a known issue (or if it should be reported to https://gcc.gnu.org/bugs/ as the log suggest). Pi is a Pi Zero W with the latest buster Raspbian OS installed.

Arduino: 1.8.13 (Linux), Board: "Seeeduino XIAO, Arduino, Off"











/home/pi/arduino-1.8.13/arduino-builder -dump-prefs -logger=machine -hardware /home/pi/arduino-1.8.13/hardware -hardware /home/pi/.arduino15/packages -tools /home/pi/arduino-1.8.13/tools-builder -tools /home/pi/arduino-1.8.13/hardware/tools/avr -tools /home/pi/.arduino15/packages -built-in-libraries /home/pi/arduino-1.8.13/libraries -libraries /home/pi/Arduino/libraries -fqbn=Seeeduino:samd:seeed_XIAO_m0:usbstack=arduino,debug=off -ide-version=10813 -build-path /tmp/arduino_build_151016 -warnings=none -build-cache /tmp/arduino_cache_217155 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS.path=/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0 -prefs=runtime.tools.CMSIS-5.4.0.path=/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0 -prefs=runtime.tools.arduinoOTA.path=/home/pi/.arduino15/packages/Seeeduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=/home/pi/.arduino15/packages/Seeeduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/pi/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=/home/pi/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.bossac.path=/home/pi/.arduino15/packages/Seeeduino/tools/bossac/1.7.0-arduino3 -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=/home/pi/.arduino15/packages/Seeeduino/tools/bossac/1.8.0-48-gb176eee -prefs=runtime.tools.openocd.path=/home/pi/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=/home/pi/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino7 -prefs=runtime.tools.CMSIS-Atmel.path=/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS-Atmel/1.2.1 -prefs=runtime.tools.CMSIS-Atmel-1.2.1.path=/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS-Atmel/1.2.1 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=/home/pi/.arduino15/packages/Seeeduino/tools/bossac/1.7.0-arduino3 -verbose /home/pi/Arduino/test/test.ino
/home/pi/arduino-1.8.13/arduino-builder -compile -logger=machine -hardware /home/pi/arduino-1.8.13/hardware -hardware /home/pi/.arduino15/packages -tools /home/pi/arduino-1.8.13/tools-builder -tools /home/pi/arduino-1.8.13/hardware/tools/avr -tools /home/pi/.arduino15/packages -built-in-libraries /home/pi/arduino-1.8.13/libraries -libraries /home/pi/Arduino/libraries -fqbn=Seeeduino:samd:seeed_XIAO_m0:usbstack=arduino,debug=off -ide-version=10813 -build-path /tmp/arduino_build_151016 -warnings=none -build-cache /tmp/arduino_cache_217155 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS.path=/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0 -prefs=runtime.tools.CMSIS-5.4.0.path=/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0 -prefs=runtime.tools.arduinoOTA.path=/home/pi/.arduino15/packages/Seeeduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=/home/pi/.arduino15/packages/Seeeduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/pi/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=/home/pi/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.bossac.path=/home/pi/.arduino15/packages/Seeeduino/tools/bossac/1.7.0-arduino3 -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=/home/pi/.arduino15/packages/Seeeduino/tools/bossac/1.8.0-48-gb176eee -prefs=runtime.tools.openocd.path=/home/pi/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=/home/pi/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino7 -prefs=runtime.tools.CMSIS-Atmel.path=/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS-Atmel/1.2.1 -prefs=runtime.tools.CMSIS-Atmel-1.2.1.path=/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS-Atmel/1.2.1 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=/home/pi/.arduino15/packages/Seeeduino/tools/bossac/1.7.0-arduino3 -verbose /home/pi/Arduino/test/test.ino
Using board 'seeed_XIAO_m0' from platform in folder: /home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9
Using core 'arduino' from platform in folder: /home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9
Detecting libraries used...
/home/pi/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++14 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"test.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SEEED_XIAO_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -D__SAMD21__ -D__SAMD21G18A__ -DARM_MATH_CM0PLUS -DSEEED_XIAO_M0 -DUSB_VID=0x2886 -DUSB_PID=0x802F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Seeed\"" "-DUSB_PRODUCT=\"Seeed XIAO M0\"" -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -DARDUINO_SAMD_ZERO -D__SAMD21__ -D__SAMD21G18A__ -DARM_MATH_CM0PLUS -DSEEED_XIAO_M0 -DUSB_VID=0x2886 -DUSB_PID=0x802F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Seeed\"" "-DUSB_PRODUCT=\"Seeed XIAO M0\"" -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS-Atmel/1.2.1/CMSIS-Atmel/CMSIS/Device/ATMEL/ -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/variants/XIAO_m0 /tmp/arduino_build_151016/sketch/test.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Generating function prototypes...
/home/pi/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++14 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"test.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SEEED_XIAO_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -D__SAMD21__ -D__SAMD21G18A__ -DARM_MATH_CM0PLUS -DSEEED_XIAO_M0 -DUSB_VID=0x2886 -DUSB_PID=0x802F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Seeed\"" "-DUSB_PRODUCT=\"Seeed XIAO M0\"" -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -DARDUINO_SAMD_ZERO -D__SAMD21__ -D__SAMD21G18A__ -DARM_MATH_CM0PLUS -DSEEED_XIAO_M0 -DUSB_VID=0x2886 -DUSB_PID=0x802F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Seeed\"" "-DUSB_PRODUCT=\"Seeed XIAO M0\"" -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS-Atmel/1.2.1/CMSIS-Atmel/CMSIS/Device/ATMEL/ -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/variants/XIAO_m0 /tmp/arduino_build_151016/sketch/test.ino.cpp -o /tmp/arduino_build_151016/preproc/ctags_target_for_gcc_minus_e.cpp -DARDUINO_LIB_DISCOVERY_PHASE
/home/pi/arduino-1.8.13/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_151016/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/home/pi/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++14 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-D__SKETCH_NAME__=\"\"\"test.ino\"\"\"" -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SEEED_XIAO_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -D__SAMD21__ -D__SAMD21G18A__ -DARM_MATH_CM0PLUS -DSEEED_XIAO_M0 -DUSB_VID=0x2886 -DUSB_PID=0x802F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Seeed\"" "-DUSB_PRODUCT=\"Seeed XIAO M0\"" -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -DARDUINO_SAMD_ZERO -D__SAMD21__ -D__SAMD21G18A__ -DARM_MATH_CM0PLUS -DSEEED_XIAO_M0 -DUSB_VID=0x2886 -DUSB_PID=0x802F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Seeed\"" "-DUSB_PRODUCT=\"Seeed XIAO M0\"" -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS-Atmel/1.2.1/CMSIS-Atmel/CMSIS/Device/ATMEL/ -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/variants/XIAO_m0 /tmp/arduino_build_151016/sketch/test.ino.cpp -o /tmp/arduino_build_151016/sketch/test.ino.cpp.o
Compiling libraries...
Compiling core...
/home/pi/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++14 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-D__SKETCH_NAME__=\"\"\"test.ino\"\"\"" -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SEEED_XIAO_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -D__SAMD21__ -D__SAMD21G18A__ -DARM_MATH_CM0PLUS -DSEEED_XIAO_M0 -DUSB_VID=0x2886 -DUSB_PID=0x802F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Seeed\"" "-DUSB_PRODUCT=\"Seeed XIAO M0\"" -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -DARDUINO_SAMD_ZERO -D__SAMD21__ -D__SAMD21G18A__ -DARM_MATH_CM0PLUS -DSEEED_XIAO_M0 -DUSB_VID=0x2886 -DUSB_PID=0x802F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Seeed\"" "-DUSB_PRODUCT=\"Seeed XIAO M0\"" -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS-Atmel/1.2.1/CMSIS-Atmel/CMSIS/Device/ATMEL/ -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/variants/XIAO_m0 /home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/variants/XIAO_m0/variant.cpp -o /tmp/arduino_build_151016/core/variant.cpp.o
/home/pi/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-gcc -c -g -x assembler-with-cpp -MMD -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SEEED_XIAO_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -D__SAMD21__ -D__SAMD21G18A__ -DARM_MATH_CM0PLUS -DSEEED_XIAO_M0 -DUSB_VID=0x2886 -DUSB_PID=0x802F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Seeed\"" "-DUSB_PRODUCT=\"Seeed XIAO M0\"" -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS-Atmel/1.2.1/CMSIS-Atmel/CMSIS/Device/ATMEL/ -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/variants/XIAO_m0 /home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/pulse_asm.S -o /tmp/arduino_build_151016/core/pulse_asm.S.o
/home/pi/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD "-D__SKETCH_NAME__=\"\"\"test.ino\"\"\"" -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SEEED_XIAO_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -D__SAMD21__ -D__SAMD21G18A__ -DARM_MATH_CM0PLUS -DSEEED_XIAO_M0 -DUSB_VID=0x2886 -DUSB_PID=0x802F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Seeed\"" "-DUSB_PRODUCT=\"Seeed XIAO M0\"" -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS-Atmel/1.2.1/CMSIS-Atmel/CMSIS/Device/ATMEL/ -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/variants/XIAO_m0 /home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/WInterrupts.c -o /tmp/arduino_build_151016/core/WInterrupts.c.o
/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/WInterrupts.c: In function 'detachInterrupt':
/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/WInterrupts.c:377:1: internal compiler error: Illegal instruction
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
/home/pi/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD "-D__SKETCH_NAME__=\"\"\"test.ino\"\"\"" -DF_CPU=48000000L -DARDUINO=10813 -DARDUINO_SEEED_XIAO_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -D__SAMD21__ -D__SAMD21G18A__ -DARM_MATH_CM0PLUS -DSEEED_XIAO_M0 -DUSB_VID=0x2886 -DUSB_PID=0x802F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Seeed\"" "-DUSB_PRODUCT=\"Seeed XIAO M0\"" -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/home/pi/.arduino15/packages/Seeeduino/tools/CMSIS-Atmel/1.2.1/CMSIS-Atmel/CMSIS/Device/ATMEL/ -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino -I/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/variants/XIAO_m0 /home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/cortex_handlers.c -o /tmp/arduino_build_151016/core/cortex_handlers.c.o
/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/cortex_handlers.c: In function 'Reset_Handler':
/home/pi/.arduino15/packages/Seeeduino/hardware/samd/1.7.9/cores/arduino/cortex_handlers.c:543:1: internal compiler error: Illegal instruction
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
exit status 1
Error compiling for board Seeeduino XIAO.

==========================

@michi123 The latest version of Seeeduino is version V1.8.0. Please upgrade to the latest version.

Thanx for reply. I checked only a week ago and linux version of ide still did not offer v1.8.0 (only 1.7.9 if I remember correctly) … On windows I got 1.8 and all is working. I will keep checking if I can install v.1.8.0 on linux/pi . Or is there a way to install the tools manual without the need of IDE’s board manager ?
Kindest regards

Using the IDE Board Manger should be the fastest way, I’m sorry, I cant fine other better way.