Failure to compile "blink"!

I started to develop a project on an UNO in an old IDE on Raspbian OS. The project was going well. I have updated the local IDE to 1.8.12 as I needed a WIFI connection for the project and bought a NANO 33 IoT. The Create IDE plugin just will not play. Checking the very basics with the NANO. I've installed the board (via Boards Manager) and can "get board info" so there is communication. I have taken the standard "blink" sketch and it just will not compile. Initially I tracked an error with the .arduino15 folder and reinstalled which resolved the first compile error. However, I appear to have a different error in same line of the compile only a bit further down stream where there appears to be a call for a "lib" folder that I can't identify? The verbose output:

Arduino: 1.8.12 (Linux), Board: "Arduino NANO 33 IoT"

/home/pi/Applications/arduino-1.8.12/arduino-builder -dump-prefs -logger=machine -hardware /home/pi/Applications/arduino-1.8.12/hardware -hardware /home/pi/.arduino15/packages -tools /home/pi/Applications/arduino-1.8.12/tools-builder -tools /home/pi/Applications/arduino-1.8.12/hardware/tools/avr -tools /home/pi/.arduino15/packages -built-in-libraries /home/pi/Applications/arduino-1.8.12/libraries -libraries /home/pi/Arduino/libraries -fqbn=arduino:samd:nano_33_iot -vid-pid=0X2341_0X8057 -ide-version=10812 -build-path /tmp/arduino_build_348133 -warnings=none -build-cache /tmp/arduino_cache_301167 -prefs=build.warn_data_percentage=75 -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.path=/home/pi/.arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=/home/pi/.arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/pi/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=/home/pi/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.arduinoOTA.path=/home/pi/.arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=/home/pi/.arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.bossac.path=/home/pi/.arduino15/packages/arduino/tools/bossac/1.7.0-arduino3 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=/home/pi/.arduino15/packages/arduino/tools/bossac/1.7.0-arduino3 -prefs=runtime.tools.CMSIS-Atmel.path=/home/pi/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=/home/pi/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -verbose /home/pi/Applications/arduino-1.8.12/examples/01.Basics/Blink/Blink.ino
/home/pi/Applications/arduino-1.8.12/arduino-builder -compile -logger=machine -hardware /home/pi/Applications/arduino-1.8.12/hardware -hardware /home/pi/.arduino15/packages -tools /home/pi/Applications/arduino-1.8.12/tools-builder -tools /home/pi/Applications/arduino-1.8.12/hardware/tools/avr -tools /home/pi/.arduino15/packages -built-in-libraries /home/pi/Applications/arduino-1.8.12/libraries -libraries /home/pi/Arduino/libraries -fqbn=arduino:samd:nano_33_iot -vid-pid=0X2341_0X8057 -ide-version=10812 -build-path /tmp/arduino_build_348133 -warnings=none -build-cache /tmp/arduino_cache_301167 -prefs=build.warn_data_percentage=75 -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.path=/home/pi/.arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=/home/pi/.arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/pi/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=/home/pi/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.arduinoOTA.path=/home/pi/.arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=/home/pi/.arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.bossac.path=/home/pi/.arduino15/packages/arduino/tools/bossac/1.7.0-arduino3 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=/home/pi/.arduino15/packages/arduino/tools/bossac/1.7.0-arduino3 -prefs=runtime.tools.CMSIS-Atmel.path=/home/pi/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=/home/pi/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -verbose /home/pi/Applications/arduino-1.8.12/examples/01.Basics/Blink/Blink.ino
Using board 'nano_33_iot' from platform in folder: /home/pi/.arduino15/packages/arduino/hardware/samd/1.8.5
Using core 'arduino' from platform in folder: /home/pi/.arduino15/packages/arduino/hardware/samd/1.8.5
Detecting libraries used...
/home/pi/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10812 -DARDUINO_SAMD_NANO_33_IOT -DARDUINO_ARCH_SAMD -DCRYSTALLESS -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8057 -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino NANO 33 IoT\"" -I/home/pi/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/home/pi/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/home/pi/.arduino15/packages/arduino/hardware/samd/1.8.5/cores/arduino -I/home/pi/.arduino15/packages/arduino/hardware/samd/1.8.5/variants/nano_33_iot /tmp/arduino_build_348133/sketch/Blink.ino.cpp -o /dev/null
Error while detecting libraries included by /tmp/arduino_build_348133/sketch/Blink.ino.cpp
Generating function prototypes...
/home/pi/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10812 -DARDUINO_SAMD_NANO_33_IOT -DARDUINO_ARCH_SAMD -DCRYSTALLESS -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8057 -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino NANO 33 IoT\"" -I/home/pi/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/ -I/home/pi/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0/CMSIS/Device/ATMEL/ -I/home/pi/.arduino15/packages/arduino/hardware/samd/1.8.5/cores/arduino -I/home/pi/.arduino15/packages/arduino/hardware/samd/1.8.5/variants/nano_33_iot /tmp/arduino_build_348133/sketch/Blink.ino.cpp -o /tmp/arduino_build_348133/preproc/ctags_target_for_gcc_minus_e.cpp
/home/pi/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /home/pi/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++)
exit status 1
Error compiling for board Arduino NANO 33 IoT.

Below is a bit I have extracted that is reported in non verbose mode. I think this is the problem: I can follow the path up to "...-g++:..." but cannot see what is being called as ".../lib/...". There is a "lib" folder in the Arduino-1.8.12 folder. not sure if this is what is being called and there is no "arm-linux-gnueabihf" folder, I can't see this path any place???

/home/pi/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /home/pi/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++)

Any help would be gratefully received.

How did you do the update?

Maybe it's an installation problem, check this out:

https://medium.com/@ronm333/installing-the-arduino-ide-on-the-raspberry-pi-82301ab381b9

Crumbs I can't recall how I did the update?

It dose appear to be an installation issue. It might be related to the network connection being v poor over the last few weeks since the storms went through. I've spoken to my ISP and since then our wonderful broad band has has been upped by an order of magnitude to 2 Mb/s. It also appears to be more stable.

I have since pulled out an old v slow Samsung notebook with an intel Atom processor running lubuntu OS and Win 7 on duel boot. The Win set up was hopeless too no luck with Create plugin (though poor internet is counter to online IDE) the local IDE failed to play too. I've switched to lubuntu and the Create plugin failed to do its stuff possibly as it defaulted to a 64 bit version... the local IDE upgraded using the 'make' method. I also found a similar error once the board was installed. I uninstalled it and then reinstalled it an bingo it found the board communicated and over wrote blink with blink and then another example sketch so hey!!! Must be a problem with installing the tools the install almost hangs at tool 3/6.

So I'm now on the Pi again trying the uninstall board and reinstall. just done it twice and no luck. The blink will compile for built in boards but as soon as I try a verify / compile it errors out.

Conclusion is the the Arduino IDEs are somewhat flaky. Back to using the v slow Samsung for my project :(.

BubbNL: Back to using the v slow Samsung for my project :(.

See if that interests you, an IDE configuration and a virtual disk using a little RAM can improve the code compilation performance:

https://github.com/arduino/Arduino/issues/8812

now dragged an old Dell tower out of the loft running Windowzz 10. Openreach wiggled the loose wire where ever it was and the broadband is singing with a 2.2 Mb/s download. Yea the UK is shocking. The Gov payed BT / Openreach to get super fast broad band in to rural areas. They took the money and haven't bothered. Still got homes on my road with no broadband! Only 30 miles from Leeds (through Bradford) and 25 miles from Manchester (centres not outskirts). Northern Power House epicentre and only 2.2 Mb/s. Any way suspecting prior problems were due to the loose wire needing a wiggle; was down to 0.2 Mb/s then... pay for 11 Mb/s!!!!

Rant over the old Dell has installed the client for the online IDE... Which is great as I can now start to work with the nano 33 IoT so that I can tell if I have any water or if it has all run out. I'm working on a detector using a ultrasonic sensor so that I know if my hydraulic ram pump has stopped working before the holding tank runs dry. Not great when having a shower.

Whilst it is annoying ans this will be excellent for me and the wife it is small fry to saving peoples lives. COVID 19. Hats off to those hard workers who are putting their lives on the line.