Go Down

Topic: Error compiling for board Arduino Uno. (Read 516 times) previous topic - next topic

Lc888

Hi, I can't upload code to my arduino uno board. Only basic sketches can upload.Please see the error message below:

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino/Genuino Uno"

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src\LiquidCrystal.cpp: In member function 'pulseEnable':

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src\LiquidCrystal.cpp:310:1: internal compiler error: Segmentation fault

 }

 ^

Please submit a full bug report,

with preprocessed source if appropriate.

See <http://gcc.gnu.org/bugs.html> for instructions.

lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status

compilation terminated.

c:/program files/windowsapps/arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Uno.
Invalid library found in C:\Users\LHF\Desktop\Documents\Arduino\libraries\pitches.h: no headers files (.h) found in C:\Users\LHF\Desktop\Documents\Arduino\libraries\pitches.h
Invalid library found in C:\Users\LHF\Desktop\Documents\Arduino\libraries\pitches.h: no headers files (.h) found in C:\Users\LHF\Desktop\Documents\Arduino\libraries\pitches.h

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

I don't know what to do.
Anyone can help?

DrAzzy

This is a bug with the version of the compiler used in the most recent AVR board package releases - it happens to some people, but not most (don't get me started about what it says about Arduino that they have not addressed this by either downgrading or upgrading the compiler version in the released core) .

Tools -> Boards -> Board Manger, for the official AVR board package, select 1.6.21 (that's the latest good version), install it, and restart the IDE.
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

mondlos

Just like @Lc888  I use the Windows Store version of Arduino 1.8.9 (Windows Store v.1.8.21) and I can confirm that downloading the previous compiler from the board manager does help. Thank you!

Go Up