IDE not verifying sketches

Hi everbody - I have just purchased my first Arduino a Uno R3 which I connected to my Raspberry Pi4 and it worked flawlessly for 2 days. Then while trying out various sketches on a 16x2 LCD a pop-up appeared from Arduino offering an update to the board and I accepted. Unfortunately there was a glitch during the installation and ever since then the compiler fails with this error message:-

“Error compiling for board Arduino: fork/exec /home*/* pi/.arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ : no such file or directory”.

The identical problem was posted here in May 2018 and answered very comprehensively by @pert however I am having difficulty following his recommendations as the options listed in my Arduino-1.8.19 ‘Tools Menu’ are not the same. I finally tried his ‘drastic’ option and deleted all files and folders barring the preferences.txt from the Arduino15 folder then downloaded and reinstalled the IDE package but the error remains the same.

Could anyone offer any other suggestions as to how I can resolve this problem? Please be aware that like the OP I am a complete noob with Arduino!

Hi @ed_snr.

Which version of the Arduino IDE are you using?

How did you install it?

The path shown in the error message is unusual.

Hi in0
Thanks for the response. I installed Arduino-1.8.19 by downloading from this site and unpacked it into the /opt folder as instructed on UTube. Then I used the terminal to run install.sh which created a directory called Arduino15 in /home/pi. The IDE runs from the shortcut it created. Worked perfectly until the glitch mentioned above and now nothing will verify.

Hi again @in0 - I forgot the @ in front of your username. First reply to a post!!

1 Like

I'm going to ask you to provide some additional information that might allow us to determine the cause of the problem.

Please do this:

  1. Select File > Preferences from the Arduino IDE menus.
  2. Check the box next to "Show verbose output during: ☐ compilation".
  3. Click the OK button.
  4. Select Sketch > Verify/Compile from the Arduino IDE menus.
  5. After the compilation fails you'll see a button on the right side of the orange bar in the Arduino IDE: Copy error messages. Click that button.
    This copies the full output to the clipboard.
  6. Open a forum reply here by clicking the Reply button.
  7. Click the </> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  8. Press Ctrl+V.
    This will paste the compilation output into the code block.
  9. Move the cursor outside of the code tags before you add any additional text to your reply.
  10. Click the Reply button to post the output.

Hi @in0 Thanks for the super clear instructions you've given. Here's the result:-

Arduino: 1.8.19 (Linux), Board: "Arduino Uno"











/opt/arduino-1.8.19/arduino-builder -dump-prefs -logger=machine -hardware /opt/arduino-1.8.19/hardware -hardware /home/pi/.arduino15/packages -tools /opt/arduino-1.8.19/tools-builder -tools /opt/arduino-1.8.19/hardware/tools/avr -tools /home/pi/.arduino15/packages -built-in-libraries /opt/arduino-1.8.19/libraries -libraries /home/pi/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10819 -build-path /tmp/arduino_build_130239 -warnings=none -build-cache /tmp/arduino_cache_576120 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/pi/.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/pi/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=/home/pi/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/pi/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=/home/pi/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/pi/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -verbose /opt/arduino-1.8.19/examples/01.Basics/Blink/Blink.ino
/opt/arduino-1.8.19/arduino-builder -compile -logger=machine -hardware /opt/arduino-1.8.19/hardware -hardware /home/pi/.arduino15/packages -tools /opt/arduino-1.8.19/tools-builder -tools /opt/arduino-1.8.19/hardware/tools/avr -tools /home/pi/.arduino15/packages -built-in-libraries /opt/arduino-1.8.19/libraries -libraries /home/pi/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10819 -build-path /tmp/arduino_build_130239 -warnings=none -build-cache /tmp/arduino_cache_576120 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/pi/.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/pi/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=/home/pi/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/pi/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=/home/pi/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/pi/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -verbose /opt/arduino-1.8.19/examples/01.Basics/Blink/Blink.ino
Using board 'uno' from platform in folder: /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.5
Using core 'arduino' from platform in folder: /home/pi/.arduino15/packages/arduino/hardware/avr/1.8.5
Detecting libraries used...
/home/pi/.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_UNO -DARDUINO_ARCH_AVR -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino -I/home/pi/.arduino15/packages/arduino/hardware/avr/1.8.5/variants/standard /tmp/arduino_build_130239/sketch/Blink.ino.cpp -o /dev/null
fork/exec /home/pi/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: no such file or directory
Error compiling for board Arduino Uno.

Hope this helps to solve the problem.
Best regards
Ed

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