Crys
i am getting this error since updating my Arduino IDE, i have tried to reinstall it loads of times and i get the issue when using one of the following libraries i think its related to SPI.
The most odd thing is that it is intermittent, i can compile the same code sometimes fine 10 times in row and other times fail 10 times in a row, with no changes to the code - pc - ide i just keep clicking verify ???
See here for a quick video of me compiling the code and it passing and failing with no changes
Arduino: 1.8.8 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
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 (x86)\Arduino\hardware\tools\avr/bin/avr-gcc returned 1 exit status
compilation terminated.
c:/program files (x86)/arduino/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
Using library RA8875-0.70 at version 0.70.11 in folder: C:\Users\Edwin\Documents\Arduino\libraries\RA8875-0.70
Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI
Using library OneWire-master at version 2.3.4 in folder: C:\Users\Edwin\Documents\Arduino\libraries\OneWire-master
Using library DallasTemperature at version 3.7.6 in folder: C:\Users\Edwin\Documents\Arduino\libraries\DallasTemperature
Using library EEPROM at version 2.0 in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM
Using library DS3231 in folder: C:\Users\Edwin\Documents\Arduino\libraries\DS3231 (legacy)
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.