Error compiling for board Arduino Uno

fork/exec /Users/benjaminfahrer/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.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Here is the error that I get every time that I compile the code below:

  // put your setup code here, to run once:
  pinMode(10, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite( 10, LOW);

delay(1000);
  digitalWrite( 10, HIGH);
}

This is literally just the simple blink program.
Can somebody please help?

The code you have posted is not a complete sketch

Hi @bija664. This might be caused by something having gone wrong during the installation of the "Arduino AVR Boards" platform of the Arduino Uno board. If so, it can be fixed by uninstalling and then reinstalling the platform.

I'll provide instructions you can follow to do that:

  1. Select Tools > Board > Boards Manager... from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
  2. Scroll down through the list of boards platforms until you see the "Arduino AVR Boards" entry.
  3. Hover the mouse pointer over the "Arduino AVR Boards" entry.
    You will see a ●●● icon appear at the top right corner of the entry.
  4. Click the ●●● icon.
    A menu will open.
  5. Select "Remove" from the menu.
    An "Uninstall" dialog will open.
  6. Click the "YES" button in the "Uninstall" dialog.
    The dialog will close.
  7. 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 ...

  8. Click the "INSTALL" button at the bottom of the "Arduino AVR Boards" entry.
  9. 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 ...

Now try compiling the sketch again. Hopefully it will be successful this time.

Hello bija664

Try this later:

void setup() 
{
  // put your setup code here, to run once:
  pinMode(10, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(10, LOW);
  delay(1000);
  digitalWrite(10, HIGH);
  delay(1000);
}

When I hover my mouse over the Arduino AVR boards, I don’t see a ”… “ Symbol.
I am using the old Arduino software. Is there another way to uninstall that you know of?

OK, that is the reason why the IDE's user interface didn't match what I described in the instructions. The Arduino IDE 1.x Boards Manager has a slightly different design.

You can't uninstall the "Arduino AVR Boards" platform when using Arduino IDE 1.x, but I think we can accomplish the same fixr by installing an older version and then updating back to the latest version again. I'll provide instructions you can follow to do that:

  1. Select Tools > Board > Boards Manager... from the Arduino IDE menus.
    The "Boards Manager" dialog will open.
  2. Wait for the updates to finish, as shown by the messages printed at the bottom of the "Boards Manager" dialog.
  3. Scroll down through the list of boards platforms until you find the "Arduino AVR Boards" entry. Click on it.
    A "Select version" dropdown will appear in the entry.
  4. Click on the "Select version" dropdown.
    It will expand.
  5. Select "1.8.3" from the menu.
  6. Click the "Install" button in the "Arduino AVR Boards" entry.
  7. Wait for the installation to finish.
  8. Click on the " Arduino AVR Boards" entry. Click on it.
    Some buttons will appear on the entry.
  9. Click the "Update" button on the "Arduino AVR Boards" entry.
  10. Wait for the update to finish.
  11. Click the "Close" button on the "Boards Manager" dialog.
    The "Boards Manager" dialog will close.

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