<p>Running it as admin fixed the issue. </p>

CC BY-SA 4.0
2019-08-09T03:55:49.367Z
2019-08-09T03:55:49.367Z
Rocket_Man
<p>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:  </p>

<pre>
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_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 Mega or Mega 2560.
</pre>

CC BY-SA 4.0
2019-08-02T11:37:09.987Z
Which LCD are you connecting? The discount controller uses the EXP1/2 ports, the Anet uses AUX2. See e.g. [this answer](/a/6044); these LCD's require totally different solutions. Please make the question a bit more clear on what you have and what you connect.
0scar
CC BY-SA 4.0
2019-08-03T01:02:48.447Z
Im using a reprap discount smart controller. The marlin setup is far an abet a8 but I changed the motherboard to ramps_14_efb. I have been fallowing a tutorial online that said I only had to comment the stock ante screen and uncomment the reprap discounted smart controller line. However when I do so it gives me the error up above. I hope this clears it up if nto please let me know and I will try to clatter further.
Rocket_Man
CC BY-SA 4.0
2019-08-03T01:06:54.663Z
It appears that I am trying to do the exact opposite of the answer you linked me to. Rather than trying to run it off of the ante lcd I want to run it off of the reprap lcd however when I uncomment the line to do so it gives me an error I don’t understand.
Rocket_Man
CC BY-SA 4.0
2019-08-06T07:23:05.693Z
Try running as admin. That error doesn't seem to be strictly firmware related.
towe
CC BY-SA 4.0
2019-08-07T08:20:36.050Z
Sorry I’m really new to the programming side of it. Can you explain what running it as admin means?
Rocket_Man
CC BY-SA 4.0
2019-08-09T03:55:15.560Z
Running as admin fixed the issue. Thank you. I’m very new to the programming side and it helped a lot.
Rocket_Man
<marlin><firmware><ramps-1.4><arduino-mega-2650>
Marlin on Arduino Mega 2650 and RAMPS 1.4
Rocket_Man
# Marlin on Arduino Mega 2650 and RAMPS 1.4

(Asked by: username_0 on 2019-08-02)

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_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 Mega or Mega 2560.

**Tags:** marlin, firmware, ramps-1.4, arduino-mega-2650
> **Comments:**
> **username_1**: Which LCD are you connecting? The discount controller uses the EXP1/2 ports, the Anet uses AUX2. See e.g. [this answer](/a/6044); these LCD's require totally different solutions. Please make the question a bit more clear on what you have and what you connect.  
> **username_0**: Im using a reprap discount smart controller. The marlin setup is far an abet a8 but I changed the motherboard to ramps_14_efb. I have been fallowing a tutorial online that said I only had to comment the stock ante screen and uncomment the reprap discounted smart controller line. However when I do so it gives me the error up above. I hope this clears it up if nto please let me know and I will try to clatter further.  
> **username_0**: It appears that I am trying to do the exact opposite of the answer you linked me to. Rather than trying to run it off of the ante lcd I want to run it off of the reprap lcd however when I uncomment the line to do so it gives me an error I don’t understand.  
> **username_2**: Try running as admin. That error doesn't seem to be strictly firmware related.  
> **username_0**: Sorry I’m really new to the programming side of it. Can you explain what running it as admin means?  
> **username_0**: Running as admin fixed the issue. Thank you. I’m very new to the programming side and it helped a lot.  

---

## 1 answers

### Answer by username_0 on 2019-08-09. Score: 2

Running it as admin fixed the issue.


---

