I’m still working through the tutorials and I’ve come across an issue with compiling. I first had error messages about my last else statement which was because of a closed bracket in the wrong place, but now I think I have cleared that issue it throws up this fatal error.
I saw a couple of months ago that people were getting “error: lto-wrapper failed” errors but this was for all programs. I tested with the hello world sample code and it was fine.
Arduino: 1.8.8 (Windows Store 18.104.22.168) (Windows 10), Board: “Arduboy”
C:\Users\catri\Documents\Arduino\libraries\Arduboy2\src\Arduboy2Core.cpp: In function ‘buttonsState’:
C:\Users\catri\Documents\Arduino\libraries\Arduboy2\src\Arduboy2Core.cpp:556: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_22.214.171.124_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status
c:/program files/windowsapps/arduinollc.arduinoide_126.96.36.199_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 Arduboy.
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.