I am running into lots of errors when compiling Marlin in Arduino IDE 1.8.13 on Windows.
The compile process takes way longer than any other sketch I have compiled (like 10 minutes). Here are some example errors. Can you help me get past them?
I got Ramps 2.0.7.2 from here.
I have selected the right board, processor and port. I can flash a simple sketch like Blink.ino no problem.
Thanks!
__EXAMPLE ERRORS (only some of them)
Error while detecting libraries included by C:\Users\steve\AppData\Local\Temp\arduino_build_217266\sketch\src\gcode\geometry\G53-G59.cpp
“C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR “-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\mega” “-IC:\Users\steve\Documents\Maker stuff and Arduino\Arduino Sketches\libraries\U8glib\src” “C:\Users\steve\AppData\Local\Temp\arduino_build_217266\sketch\src\gcode\geometry\G92.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE
Error while detecting libraries included by C:\Users\steve\AppData\Local\Temp\arduino_build_217266\sketch\src\gcode\geometry\G92.cpp
“C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR “-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\mega” “-IC:\Users\steve\Documents\Maker stuff and Arduino\Arduino Sketches\libraries\U8glib\src” “C:\Users\steve\AppData\Local\Temp\arduino_build_217266\sketch\src\gcode\geometry\M206_M428.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE
_______________________________________________ …
Linking everything together…
“C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc” -w -Os -g -flto -fuse-linker-plugin -Wl,–gc-sections -mmcu=atmega2560 -o “C:\Users\steve\AppData\Local\Temp\arduino_build_217266/Marlin.ino.elf” “sketch\Marlin.ino.cpp.o” “sketch\src\HAL\AVR\HAL.cpp.o” “sketch\src\HAL\AVR\HAL_SPI.cpp.o” “libraries\U8glib\clib\u8g_dev_uc1701_mini12864.c.o” “libraries\U8glib\clib\u8g_ellipse.c.o” “libraries\U8glib\clib\u8g_font.c.o” “libraries\U8glib\clib\u8g_font_data.c.o” “libraries\U8glib\clib\u8g_line.c.o” “libraries\U8glib\clib\u8g_ll_api.c.o” “libraries\U8glib\clib\u8g_page.c.o” “libraries\U8glib\clib\u8g_pb.c.o” “libraries\U8glib\clib\u8g_pb14v1.c.o” “libraries\U8glib\clib\u8g_pb16h1.c.o” “libraries\U8glib\clib\u8g_pb16h2.c.o”
…
“libraries\U8glib\clib\u8g_pb8v2.c.o” “libraries\U8glib\clib\u8g_pbxh16.c.o” “libraries\U8glib\clib\u8g_pbxh24.c.o” “libraries\U8glib\clib\u8g_polygon.c.o” “libraries\U8glib\clib\u8g_rect.c.o” “libraries\U8glib\clib\u8g_rot.c.o” “libraries\U8glib\clib\u8g_scale.c.o” “libraries\U8glib\clib\u8g_state.c.o” “libraries\U8glib\clib\u8g_u16toa.c.o” “libraries\U8glib\clib\u8g_u8toa.c.o” “libraries\U8glib\clib\u8g_virtual_screen.c.o” “core\core.a” “-LC:\Users\steve\AppData\Local\Temp\arduino_build_217266” -lm
avr-gcc: error: CreateProcess: No such file or directory
Using library U8glib at version 1.19.1 in folder: C:\Users\steve\Documents\Maker stuff and Arduino\Arduino Sketches\libraries\U8glib
exit status 1
Error compiling for board Arduino Mega or Mega 2560.