171Views1Replies

Author Options:

Getting error during upload code? Answered

HI I am using macbook and arduino uno. i am unable to upload code. keep getting error. There was already one sketch in arduino from previous software that one still work fine. but can not able to upload new sketch even if i try same sketch. this is the error i will get every time



/Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ar: abi.cpp.o: plugin needed to handle lto object
/Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ar: main.cpp.o: plugin needed to handle lto object
/Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ar: core/new.cpp.o: plugin needed to handle lto object
/Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld: /Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../libexec/gcc/avr/4.9.2/liblto_plugin.so: error loading plugin: dlopen(/Users/mandeepsingh/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/mandeepsingh/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.

Discussions