Hello
I just installed Version 2.3.6. ( Removed verson 1.12
Typed in an easy program just for a test. When I try to compile I get this message:
Compilation error: exec: "C:\Users\johns\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++": executable file not found in %PATH%
I can load a program from a file but I can't find this file on my laptop.
I tried reinstalling, same problem. Is there somewhere in the IDE that i can set the correct path?
Hi @kashute. I'm going to ask you to provide the full verbose output from a compilation.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
- Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open.
- Check the box next to "Show verbose output during: ☐ compile" in the "Preferences" dialog.
- Click the "OK" button.
The "Preferences" dialog will close.
- Select Sketch > Verify/Compile from the Arduino IDE menus.
- Wait for the compilation to fail.
- You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
- Open a forum reply here by clicking the "Reply" button.
- Click the
<CODE/>
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.
- Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the compilation output into the code block.
- Move the cursor outside of the code block markup before you add any additional text to your reply.
- Click the "Reply" button to post the output.
In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt
file and then attach that file to a reply here.
Click here for attachment instructions
- Open any text editor program.
- Paste the copied output into the text editor.
- Save the file in
.txt
format.
- Open a forum reply here by clicking the "Reply" button.
- Click the "Upload" icon (
) on the post composer toolbar:
The "Open" dialog will open.
- Select the
.txt
file you saved from the "Open" dialog.
- Click the "Open" button.
The dialog will close.
- Click the "Reply" button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt
file onto the post composer field to attach it.
loading library from C:\Users\johns\AppData\Local\Arduino15\libraries\Arduino_BuiltIn: invalid library: no header files foundloading library from C:\Users\johns\AppData\Local\Arduino15\libraries\Ethernet: invalid library: no header files foundloading library from C:\Users\johns\AppData\Local\Arduino15\libraries\Keyboard: invalid library: no header files foundloading library from C:\Users\johns\AppData\Local\Arduino15\libraries\LiquidCrystal: invalid library: no header files foundloading library from C:\Users\johns\AppData\Local\Arduino15\libraries\Mouse: invalid library: no header files foundloading library from C:\Users\johns\AppData\Local\Arduino15\libraries\SD: invalid library: no header files foundloading library from C:\Users\johns\AppData\Local\Arduino15\libraries\Servo: invalid library: no header files foundloading library from C:\Users\johns\AppData\Local\Arduino15\libraries\Stepper: invalid library: no header files foundloading library from C:\Users\johns\AppData\Local\Arduino15\libraries\TFT: invalid library: no header files foundloading library from C:\Users\johns\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\EEPROM: invalid library: no header files foundloading library from C:\Users\johns\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\HID: invalid library: no header files foundloading library from C:\Users\johns\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI: invalid library: no header files foundloading library from C:\Users\johns\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SoftwareSerial: invalid library: no header files foundloading library from C:\Users\johns\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire: invalid library: no header files foundloading library from C:\Users\johns\Documents\Arduino\libraries\107-Arduino-Servo-RP2040: invalid library: no header files foundloading library from C:\Users\johns\Documents\Arduino\libraries\AlPlc_Opta: invalid library: no header files foundloading library from C:\Users\johns\Documents\Arduino\libraries\ArduinoRS485: invalid library: no header files foundloading library from C:\Users\johns\Documents\Arduino\libraries\Arduino_Cloud_Provider_Examples: loading library.properties: error reading file: error parsing data at line 0: invalid line format, should be 'key=value'loading library from C:\Users\johns\Documents\Arduino\libraries\Arduino_DebugUtils: invalid library: no header files foundloading library from C:\Users\johns\Documents\Arduino\libraries\Arduino_LSM6DS3: invalid library: no header files foundloading library from C:\Users\johns\Documents\Arduino\libraries\Arduino_Opta_Blueprint: invalid library: no header files foundloading library from C:\Users\johns\Documents\Arduino\libraries\Arduino_SerialUpdater: invalid library: no header files foundloading library from C:\Users\johns\Documents\Arduino\libraries\EduIntro: invalid library: no header files foundloading library from C:\Users\johns\Documents\Arduino\libraries\LiquidCrystal: loading library.properties: error reading file: error parsing data at line 0: invalid line format, should be 'key=value'loading library from C:\Users\johns\Documents\Arduino\libraries\WiFiNINA: invalid library: no header files found
FQBN: arduino:avr:nano
Using board 'nano' from platform in folder: C:\Users\johns\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\johns\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
C:\Users\johns\AppData\Local\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=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\johns\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\johns\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\johns\AppData\Local\arduino\sketches\26E335DA7EAB1C2530CBF27901949CC1\sketch\test_sensor.ino.cpp -o nul
exec: "C:\Users\johns\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++": executable file not found in %PATH%
Compilation error: exec: "C:\Users\johns\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++": executable file not found in %PATH%
The error message I am getting.
This problem might have been caused by something going wrong when Arduino IDE installed the "Arduino AVR Boards" platform. If so, you might be able to fix it by uninstalling and then reinstalling the platform. I'll provide instructions you can follow to do that:
- Select Tools > Board > Boards Manager... from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
- Find the "Arduino AVR Boards" entry in the list of boards platforms.
- Hover the mouse pointer over the "Arduino AVR Boards" entry.
You will see a ●●● icon appear at the top right corner of the entry.
- Click the ●●● icon.
A menu will open.
- Select "Remove" from the menu.
An "Uninstall" dialog will open.
- Click the "YES" button in the "Uninstall" dialog.
The dialog will close.
- Wait for the uninstall process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:
Successfully uninstalled platform ...
- Click the "INSTALL" button at the bottom of the "Arduino AVR Boards" entry.
- Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:
Successfully installed platform ...
After that, try compiling your sketch again, just as you did before when you encountered this error. Hopefully this time everything will work as expected.
This has worked, thank you.
You are welcome. I'm glad it is working now.
Regards, Per
1 Like