Page 1 of 1

Error compiling firmware 1.1.x12864 Greeetech A20M

Posted: Thu May 30, 2019 4:53 am
by MrBorg
I have done the following but I still not able to compile this firmware version:
- Installed USB-driver for Windows 10 (USB Port found afterward)
- Included U8glib_Arduino-master.zip to my Arduino application
- i get this error below:

Code: Select all

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Users\xxxxxxxxxxxxxxxOnedrive\Documents\Arduino\libraries\U8glib_Arduino-master\src\clib\u8g_font.c: In function 'u8g_font_GetFontEndEncoding':

C:\Users\xxxxxxxxxxxxxxxOnedrive\Documents\Arduino\libraries\U8glib_Arduino-master\src\clib\u8g_font.c:172: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_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.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Re: Error compiling firmware 1.1.x12864 Greeetech A20M

Posted: Fri May 31, 2019 5:27 am
by MrBorg
Thanks for the fast reply. But hm. I followed the steps telling me to install U8glib_Arduino-master.zip library so I did. But now I have removed that library and have install u8glib_arduino_v1.18.1.zip - but now I get the error below:

Code: Select all

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

sketch\MarlinSerial.cpp: In function 'println.constprop':

sketch\MarlinSerial.cpp:580:3: 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_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.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Re: Error compiling firmware 1.1.x12864 Greeetech A20M

Posted: Fri May 31, 2019 6:52 am
by MrBorg
Microsoft with Windows 10 will NOT win IoT with their poor Arduino support.

What can I then do to install Arduino on my Windows 10 PC?

Re: Error compiling firmware 1.1.x12864 Greeetech A20M

Posted: Fri May 31, 2019 7:04 am
by MrBorg
Cool I will try that and YES Microsoft will force me into using my Mac even more with this attitude

I'm not knowing anything about marlin versions. I'm just trying to upgrade my A20M firmware to support 3DTouch

Re: Error compiling firmware 1.1.x12864 Greeetech A20M

Posted: Fri May 31, 2019 7:25 am
by MrBorg
:D - Now I was able to update the Firmware - and now I have auto leveled my hotbed - GREAT!

Re: Error compiling firmware 1.1.x12864 Greeetech A20M

Posted: Sun Jun 09, 2019 5:41 pm
by baldaquin
Hello MrBorg
I dowloaded arduino. I got firmware 1.1.x12864 geetech a20m 3dtouch but I got plenty of errors when compiling.
How did you done for making it working correctly.
Sorry for language.
FR country.
Thx

Re: Error compiling firmware 1.1.x12864 Greeetech A20M

Posted: Sun Jul 07, 2019 3:11 am
by MrBorg
Sorry for my late reply. I haven't been in here for a long time. But my problem was the Windows AppStore version of Arduino. It is not the one to use for updating firmware of the printer.

Hope you can use my reply.