I have been messing around trying to flash marlin 1.1 onto my Arduino Mega 2650 and RAMPS 1.4. I have Managed to get it to upload fine however it will not upload with the LCD I want. I am trying to upload it and have it set to a "RepRap Discount Smart Controller". When I uploaded the firmware it was on the stock Anet LCD, however when I try to change this in the file and verify it I get an error that I do not understand. I have done some digging on google but haven't really been able to figure out the answer. Here's the error:
sketch\ultralcd.cpp:4860:3: internal compiler error: Segmentation fault DEFINE_MENU_EDIT_TYPE(uint32_t, long5, ftostr5rj, 0.01f); ^ Please submit a full bug report, with preprocessed source if appropriate. See 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 compilation terminated. 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.