exit status 1 Error Compiling for board Arduino Genuino/Uno.

#define NOTE_G4 392
#define NOTE_F4 349
#define NOTE_A4 440
#define NOTE_AS4 466
#define NOTE_C4 262
#define NOTE_E4 330
#define NOTE_D4 294
#define NOTE_G5 784

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {

Serial.begin (9600);
lcd.begin(16,2);
pinMode(7,OUTPUT);
lcd.print(“Last Christmas”);
}

void loop() {

tone (7,NOTE_G4,500);
Serial.print(“Bum”);
delay(500);
tone (7,NOTE_G4,500);
Serial.print(" Bum");
delay(300);
tone (7,NOTE_G4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_F4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_F4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_F4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_G4,500);
Serial.println("");
Serial.print(“Bum”);
delay(500);
tone (7,NOTE_G4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_G4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_F4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_F4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_F4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_G4,500);// last Chrimtsas
Serial.println("");
Serial.print(“Last”);
delay(400);
tone (7,NOTE_G4,500);
Serial.print(" Christ");
delay(400);
tone (7,NOTE_F4,500);
Serial.print(" Mas");
delay(400);
tone (7,NOTE_C4,500);
Serial.print(" I");
delay(400);
tone (7,NOTE_G4,500);
Serial.print(" Give");
delay(400);
tone (7,NOTE_G4,500);
Serial.print(" You");
delay(400);
tone (7,NOTE_A4,500);
Serial.print(" my");
delay(400);
tone (7,NOTE_F4,500);
Serial.print(" heart");
delay(400);
tone (7,NOTE_D4,500);
Serial.println("");
Serial.print(“But”);
delay(400);
tone (7,NOTE_D4,500);
Serial.print(" the");
delay(400);
tone (7,NOTE_G4,500);
Serial.print(" ve");
delay(400);
tone (7,NOTE_G4,500);
Serial.print(" ry");
delay(400);
tone (7,NOTE_A4,500);
Serial.print(" next");
delay(400);
tone (7,NOTE_F4,500);
Serial.print(" day");
delay(400);
tone (7,NOTE_F4,500);
Serial.print(" you");
delay(400);
tone (7,NOTE_E4,500);
Serial.print(" gave");
delay(400);
tone (7,NOTE_F4,500);
Serial.print(" it");
delay(400);
tone (7,NOTE_E4,500);
Serial.print(" a");
delay(400);
tone (7,NOTE_D4,500);
Serial.print(" way");
delay(400);
tone (7,NOTE_A4,500);
Serial.println("");
Serial.print(“This”);
delay(400);
tone (7,NOTE_G4,500);
Serial.print(" year");
delay(400);
tone (7,NOTE_D4,500);
Serial.print(" to");
delay(400);
tone (7,NOTE_A4,500);
Serial.print(" save");
delay(400);
tone (7,NOTE_AS4,500);
Serial.print(" me");
delay(400);
tone (7,NOTE_A4,500);
Serial.print(" from");
delay(400);
tone (7,NOTE_G4,500);
Serial.print(" tears");
delay(400);
tone (7,NOTE_F4,500);
Serial.print(" I’ll");
delay(400);
tone (7,NOTE_E4,500);
Serial.print(" give");
delay(400);
tone (7,NOTE_F4,500);
Serial.print(" it");
delay(400);
tone (7,NOTE_E4,500);
Serial.print(" to");
delay(400);
tone (7,NOTE_E4,500);
Serial.print(" some");
delay(400);
tone (7,NOTE_F4,500);
Serial.print(" one");
delay(400);
tone (7,NOTE_E4,500);
Serial.print(" spe");
delay(400);
tone (7,NOTE_C4,500);
Serial.print(" cial");
delay(400);

}

  1. Please read the forum rules in the "How To Use This Forum" post and learn to post code correctly in code tags.

  2. Exit status 1 means there was an error. That is the single most useless line that the compiler spit out at you. Try again and this time copy the actual error message. Post it here in code tags and we will take a look.

Arduino: 1.8.4 (Mac OS X), Board: "Arduino/Genuino Uno"

/Users/aspherhernandez/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld: /Users/aspherhernandez/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../libexec/gcc/avr/4.9.2/liblto_plugin.so: error loading plugin: dlopen(/Users/aspherhernandez/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../libexec/gcc/avr/4.9.2/liblto_plugin.so, 2): Symbol not found: _environ Referenced from: /Users/aspherhernandez/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../libexec/gcc/avr/4.9.2/liblto_plugin.so Expected in: /usr/lib/libSystem.B.dylib

collect2: error: ld returned 1 exit status exit status 1 Error compiling for board Arduino/Genuino Uno.

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

You didn't do what was in point 1 in my reply. If you're not smart enough to follow basic instructions then this may all be beyond you. I'm certainly not going to waste time trying to help someone if they are just going to ignore what I say.

If you read through the other posts of the people who encountered the “Symbol not found: _environ” error:
https://www.google.com/search?q=Symbol+not+found%3A+_environ&&sitesearch=http%3A%2F%2Fforum.arduino.cc
you’ll see that we’ve never found the true solution. The workaround that I suggested, and it has worked for everyone who has tried it is:

pert:
You should be able to fix this by:

  • Tools > Board > Boards Manager > Arduino AVR Boards(click on it) > select 1.6.11 from the “select version” drop down menu > Install
  • Wait for the installation to complete and then click the “Close” button

As to the actual cause of the issue I don’t know. The LTO stuff that’s causing the issue was added in Arduino AVR Boards 1.6.12, this is why you need to go back to Arduino AVR Boards 1.6.11 to fix it.

It’s unfortunate to be forced to use an old version of Arduino AVR Boards. The other workaround would be to use the Arduino Web Editor:
https://create.arduino.cc/editor

matthewhernandez:
#define NOTE_G4 392
#define NOTE_F4 349
#define NOTE_A4 440
#define NOTE_AS4 466
#define NOTE_C4 262
#define NOTE_E4 330
#define NOTE_D4 294
#define NOTE_G5 784

#include <LiquidCrystal.h>


Bro most
exit status 1 Error compiling for board Arduino/Genuino Uno
error comes if you dont have libraries for the header
Solution is to download libraries and add to directory
***It took lots of time find the solution *****
C:\Program Files (x86)\Arduino\libraries
I searched almost all website finally i myself found it i hope it will be useful


LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {

Serial.begin (9600);
lcd.begin(16,2);
pinMode(7,OUTPUT);
lcd.print(“Last Christmas”);
}

void loop() {

tone (7,NOTE_G4,500);
Serial.print(“Bum”);
delay(500);
tone (7,NOTE_G4,500);
Serial.print(" Bum");
delay(300);
tone (7,NOTE_G4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_F4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_F4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_F4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_G4,500);
Serial.println("");
Serial.print(“Bum”);
delay(500);
tone (7,NOTE_G4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_G4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_F4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_F4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_F4,500);
Serial.print(" Bum");
delay(500);
tone (7,NOTE_G4,500);// last Chrimtsas
Serial.println("");
Serial.print(“Last”);
delay(400);
tone (7,NOTE_G4,500);
Serial.print(" Christ");
delay(400);
tone (7,NOTE_F4,500);
Serial.print(" Mas");
delay(400);
tone (7,NOTE_C4,500);
Serial.print(" I");
delay(400);
tone (7,NOTE_G4,500);
Serial.print(" Give");
delay(400);
tone (7,NOTE_G4,500);
Serial.print(" You");
delay(400);
tone (7,NOTE_A4,500);
Serial.print(" my");
delay(400);
tone (7,NOTE_F4,500);
Serial.print(" heart");
delay(400);
tone (7,NOTE_D4,500);
Serial.println("");
Serial.print(“But”);
delay(400);
tone (7,NOTE_D4,500);
Serial.print(" the");
delay(400);
tone (7,NOTE_G4,500);
Serial.print(" ve");
delay(400);
tone (7,NOTE_G4,500);
Serial.print(" ry");
delay(400);
tone (7,NOTE_A4,500);
Serial.print(" next");
delay(400);
tone (7,NOTE_F4,500);
Serial.print(" day");
delay(400);
tone (7,NOTE_F4,500);
Serial.print(" you");
delay(400);
tone (7,NOTE_E4,500);
Serial.print(" gave");
delay(400);
tone (7,NOTE_F4,500);
Serial.print(" it");
delay(400);
tone (7,NOTE_E4,500);
Serial.print(" a");
delay(400);
tone (7,NOTE_D4,500);
Serial.print(" way");
delay(400);
tone (7,NOTE_A4,500);
Serial.println("");
Serial.print(“This”);
delay(400);
tone (7,NOTE_G4,500);
Serial.print(" year");
delay(400);
tone (7,NOTE_D4,500);
Serial.print(" to");
delay(400);
tone (7,NOTE_A4,500);
Serial.print(" save");
delay(400);
tone (7,NOTE_AS4,500);
Serial.print(" me");
delay(400);
tone (7,NOTE_A4,500);
Serial.print(" from");
delay(400);
tone (7,NOTE_G4,500);
Serial.print(" tears");
delay(400);
tone (7,NOTE_F4,500);
Serial.print(" I’ll");
delay(400);
tone (7,NOTE_E4,500);
Serial.print(" give");
delay(400);
tone (7,NOTE_F4,500);
Serial.print(" it");
delay(400);
tone (7,NOTE_E4,500);
Serial.print(" to");
delay(400);
tone (7,NOTE_E4,500);
Serial.print(" some");
delay(400);
tone (7,NOTE_F4,500);
Serial.print(" one");
delay(400);
tone (7,NOTE_E4,500);
Serial.print(" spe");
delay(400);
tone (7,NOTE_C4,500);
Serial.print(" cial");
delay(400);

}

nabeel313: Bro most exit status 1 Error compiling for board Arduino/Genuino Uno error comes if you dont have libraries for the header

You realize this post is almost a year old, right?

There are many reasons you could get that message. You need to look at the specific error message. If the error is caused by a missing library it will be "No such file or directory". If you look at matthewhernandez's error you'll see it's different. The cause of the "Symbol not found: _environ" error is using a version of macOS that's not supported by the Arduino IDE version: https://github.com/arduino/Arduino/issues/7074 The solution is to either update the macOS version to 10.8 or newer, or else use Arduino IDE 1.6.11 or older.