Marlin: #define BLTOUCH causes Marlin compile error in 1.1.19

Created on 3 Sep 2018  路  2Comments  路  Source: MarlinFirmware/Marlin

Description

When I eliminate the // in front of #define BLTOUCH and go to compile the firmware I get the following errors:

C:\Users\Mitch\Documents\Arduino\libraries\U8glib\src\clib\u8g_ll_api.c: In function 'u8g_NextPage.constprop':

C:\Users\Mitch\Documents\Arduino\libraries\U8glib\src\clib\u8g_ll_api.c:395:1: internal compiler error: Segmentation fault

Please submit a full bug report,

lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.14.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status

compilation terminated.

c:/program files/windowsapps/arduinollc.arduinoide_1.8.14.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

Error compiling for board Arduino/Genuino Mega or Mega 2560.

Steps to Reproduce

  1. //#define BLTOUCH in Configuration.h
  2. #define BLTOUCH in Configuration.h
  3. Compile Marlin

Expected behavior: Firmware should compile

Actual behavior: Compile errors as stated above

Additional Information

Bug? False Alarm Build / Toolchain

Most helpful comment

Not an issue with Marlin. It's a bug in the new gcc compiler included in Arduino IDE.
To get Around either use Arduino IDE 1.8.5 or Platformio based Tools.

All 2 comments

Not an issue with Marlin. It's a bug in the new gcc compiler included in Arduino IDE.
To get Around either use Arduino IDE 1.8.5 or Platformio based Tools.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings