I have been using Arduino for the past 2 years and created some very complex projects interfacing with the Blynk app.
Then suddenly yesterday I get the following compiler error. I added 4 lines of code to a program that has been compiled, loaded and run for more than a year. I take out the 4 lines and it compiles fine. I put them back and bingo. I uninstalled everything, downloaded the latest of everything I used and re-installed the IDE and all libraries. No solution:
I use W10 with all the latest updates and an Arduino Mega 2560.
In function ‘global constructors keyed to 65535_0_LoadSchedWiFi.ino.cpp.o’:
lto1.exe: 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 Arduino/Genuino Mega or Mega 2560.