fork/exec /Users/mehulkhajuria/Library/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.
Keep getting this issue, tried changing ports and reinstalling the IDE, but didn't work. Saw a older post related to this but no solution was given. Can anyone help?
Hi @frst. 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:
Select File > Preferences from the Arduino IDE menus.
Check the box next to "Show verbose output during: ☐ compilation".
Click the OK button.
Select Sketch > Verify/Compile from the Arduino IDE menus.
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.
Open a forum reply here by clicking the Reply button.
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.
Press Ctrl+V.
This will paste the compilation output into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
I did some more digging and think I found a solution. I'm going to attach it here in case someone might need it.
xec: "C:\Users\USERNAME\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++": file does not exist
This the error above, the file is not there.
This happens when running a suggested "Board update" while compiling something. Then the update doesnt work and the board is unusable.
I fixed it with Board Manager -> Install "Arduino AVR Boards (1.6.19)" -> Restart Arduino IDE -> Install Arduino AVR Boards 1.6.20+ again. Then it worked. Simply reinstalling the complete Arduino IDE didnt help. I first tried to install 1.8.4 over 1.8.3 and still had the same issue.
@frst the installation and troubleshooting section is for getting the system going it is specifically NOT for your project. Please take more care when choosing a section to post in. You might even want to actually read the description of the section before you post in it.
Therefore I have moved your post to a more appropriate section.