Please, before you create a new bug report, please make sure you searched in open and closed issues and couldn't find anything that matches.
Printer type - MK3S
Describe the bug
Getting this error while trying to compile the firmware on mk3 branch.
Arduino: 1.8.12 (Mac OS X), Board: "PrusaResearch Einsy RAMBo"
In file included from sketch/Configuration.h:60:0,
from sketch/Configuration.cpp:1:
eeprom.h:583:55: error: 'reinterpret_cast<M500_conf*>(20)' is not a constant expression
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sketch/Configuration.h:60:0,
from /Users/salmanahmed/workspace/prusa/Prusa-Firmware/Firmware/Firmware.ino:33:
eeprom.h:583:55: error: 'reinterpret_cast<M500_conf*>(20)' is not a constant expression
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sketch/Configuration.h:60:0,
from sketch/Servo.cpp:44:
eeprom.h:583:55: error: 'reinterpret_cast<M500_conf*>(20)' is not a constant expression
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sketch/Configuration.h:60:0,
from sketch/Dcodes.cpp:3:
eeprom.h:583:55: error: 'reinterpret_cast<M500_conf*>(20)' is not a constant expression
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sketch/Configuration.h:60:0,
from sketch/Marlin.h:21,
from sketch/SdFile.cpp:20:
eeprom.h:583:55: error: 'reinterpret_cast<M500_conf*>(20)' is not a constant expression
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sketch/Configuration.h:60:0,
from sketch/Marlin.h:21,
from sketch/BlinkM.cpp:5:
eeprom.h:583:55: error: 'reinterpret_cast<M500_conf*>(20)' is not a constant expression
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sketch/Configuration.h:60:0,
from sketch/Marlin.h:21,
from sketch/Sd2Card.cpp:20:
eeprom.h:583:55: error: 'reinterpret_cast<M500_conf*>(20)' is not a constant expression
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sketch/Configuration.h:60:0,
from sketch/Marlin.h:21,
from sketch/MarlinSerial.cpp:23:
eeprom.h:583:55: error: 'reinterpret_cast<M500_conf*>(20)' is not a constant expression
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sketch/Configuration.h:60:0,
from sketch/Marlin.h:21,
from sketch/ConfigurationStore.cpp:3:
eeprom.h:583:55: error: 'reinterpret_cast<M500_conf*>(20)' is not a constant expression
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sketch/Configuration.h:60:0,
from sketch/Marlin.h:21,
from sketch/backlight.h:6,
from sketch/backlight.cpp:3:
eeprom.h:583:55: error: 'reinterpret_cast<M500_conf*>(20)' is not a constant expression
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sketch/Configuration.h:60:0,
from sketch/Marlin.h:21,
from sketch/SdFatUtil.cpp:20:
eeprom.h:583:55: error: 'reinterpret_cast<M500_conf*>(20)' is not a constant expression
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sketch/Configuration.h:60:0,
from sketch/Marlin.h:21,
from sketch/SdBaseFile.cpp:21:
eeprom.h:583:55: error: 'reinterpret_cast<M500_conf*>(20)' is not a constant expression
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sketch/Configuration.h:60:0,
from sketch/Marlin.h:21,
from sketch/SdVolume.cpp:20:
eeprom.h:583:55: error: 'reinterpret_cast<M500_conf*>(20)' is not a constant expression
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sketch/Configuration.h:60:0,
from sketch/Marlin.h:21,
from sketch/cmdqueue.h:4,
from sketch/cmdqueue.cpp:1:
eeprom.h:583:55: error: 'reinterpret_cast<M500_conf*>(20)' is not a constant expression
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sketch/Configuration.h:60:0,
from sketch/Marlin.h:21,
from sketch/cardreader.cpp:1:
eeprom.h:583:55: error: 'reinterpret_cast<M500_conf*>(20)' is not a constant expression
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sketch/Configuration.h:60:0,
from sketch/Marlin_main.cpp:47:
eeprom.h:583:55: error: 'reinterpret_cast<M500_conf*>(20)' is not a constant expression
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exit status 1
'reinterpret_cast<M500_conf*>(20)' is not a constant expression
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
To Reproduce
1_75mm_MK3S-EINSy10a-E3Dv6full.h from the variants directory to the Firmware directory and rename to Configuration_prusa.hFirmware.ino in Arduino 1.8.12.Expected behavior
To compile successfully.
Latest supported arduino ide version is 1.8.5
Hey, thanks for the swift response. I have already tried to compile on "Arduino IDE 1.8.5" but I am getting a different error. Below is the error on 1.8.5:
Arduino: 1.8.5 (Mac OS X), Board: "PrusaResearch Einsy RAMBo"
fork/exec /Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++: bad CPU type in executable
Error compiling for board PrusaResearch Einsy RAMBo.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Please also post the verbose output as explained in the error. Enable all verbose information.
Thanks again for looking into this for me
Arduino: 1.8.5 (Mac OS X), Board: "PrusaResearch Einsy RAMBo"
/Applications/Arduino 1.8.5.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino 1.8.5.app/Contents/Java/hardware -hardware /Users/salmanahmed/Library/Arduino15/packages -tools /Applications/Arduino 1.8.5.app/Contents/Java/tools-builder -tools /Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr -tools /Users/salmanahmed/Library/Arduino15/packages -built-in-libraries /Applications/Arduino 1.8.5.app/Contents/Java/libraries -libraries /Users/salmanahmed/Documents/Arduino/libraries -fqbn=PrusaResearch:avr:prusa_einsy_rambo -ide-version=10805 -build-path /var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799 -warnings=none -build-cache /var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_cache_46171 -prefs=build.warn_data_percentage=75 -verbose /Users/salmanahmed/workspace/prusa/Prusa_Fresh/Prusa-Firmware/Firmware/Firmware.ino
/Applications/Arduino 1.8.5.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino 1.8.5.app/Contents/Java/hardware -hardware /Users/salmanahmed/Library/Arduino15/packages -tools /Applications/Arduino 1.8.5.app/Contents/Java/tools-builder -tools /Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr -tools /Users/salmanahmed/Library/Arduino15/packages -built-in-libraries /Applications/Arduino 1.8.5.app/Contents/Java/libraries -libraries /Users/salmanahmed/Documents/Arduino/libraries -fqbn=PrusaResearch:avr:prusa_einsy_rambo -ide-version=10805 -build-path /var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799 -warnings=none -build-cache /var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_cache_46171 -prefs=build.warn_data_percentage=75 -verbose /Users/salmanahmed/workspace/prusa/Prusa_Fresh/Prusa-Firmware/Firmware/Firmware.ino
Using board 'prusa_einsy_rambo' from platform in folder: /Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3
Using core 'prusa_einsy_rambo' from platform in folder: /Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3
Detecting libraries used...
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/Firmware.ino.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/AutoDeplete.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/BlinkM.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/Configuration.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/ConfigurationStore.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/Dcodes.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/MarlinSerial.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/Marlin_main.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/Sd2Card.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/SdBaseFile.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/SdFatUtil.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/SdFile.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/SdVolume.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/Servo.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/Timer.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/adc.c" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/backlight.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/bootapp.c" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/cardreader.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/cmdqueue.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/conv2str.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/eeprom.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/first_lay_cal.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/fsensor.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/heatbed_pwm.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/la10compat.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/language.c" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/lcd.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/menu.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/mesh_bed_calibration.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/mesh_bed_leveling.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/messages.c" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/mmu.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/motion_control.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/optiboot_w25x20cl.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/pat9125.c" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/planner.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/qr_solve.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/rbuf.c" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/sm4.c" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/sound.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/speed_lookuptable.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/spi.c" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/stepper.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/swi2c.c" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/swspi.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/temperature.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/timer02.c" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/tmc2130.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/uart2.c" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/ultralcd.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/util.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/vector_3.cpp" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/w25x20cl.c" -o "/dev/null"
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/xyzcal.cpp" -o "/dev/null"
Generating function prototypes...
"/Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRUSA_EINSY_RAMBO -DARDUINO_ARCH_AVR "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/cores/prusa_einsy_rambo" "-I/Users/salmanahmed/Library/Arduino15/packages/PrusaResearch/hardware/avr/1.0.3/variants/prusa_einsy_rambo" "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/sketch/Firmware.ino.cpp" -o "/var/folders/_z/m7kkmrkj7fb0fxrty0pm4zjc0000gn/T/arduino_build_252799/preproc/ctags_target_for_gcc_minus_e.cpp"
fork/exec /Applications/Arduino 1.8.5.app/Contents/Java/hardware/tools/avr/bin/avr-g++: bad CPU type in executable
Error compiling for board PrusaResearch Einsy RAMBo.
What macOS version are you using?
I think this thread applies to your issue: https://forum.arduino.cc/index.php?topic=620175.0
Arduino 1.8.5 is 32bit only, but your macOS version might only support 64bit applications. I think this is why it fails.
Please also try compiling any of the arduino example sketches (eg. Blink) using the Arduino UNO board (anything but the Prusa board). If you get the same error, then this is your issue.
Support for newer arduino versions is not here yet. Last time I tried it, I got it to compile and work on the printer, but I also experienced unexpected firmware crashes during long prints, something I didn't before updating to gcc 5.4.0 (the one used in arduino 1.8.6 and newer).
Yeah, I came across this as well.
So basically until Prusa supports newer Arduino officially I can't do anything.
Thank again for your help
@salmander thank you for reporting this, we are planning to upgrade the AVR compiler in the future (and cleaning-up stuff which doesn't compile). However, as @leptun already wrote, avr-gcc 5.4 produces/uncovers new bugs and thus transferring the development to it is not straightforward.
Btw. the expression:
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20);
is "correct" in its true meaning, however the C++ standard doesn't allow reinterpret_cast in constexpr.
Having the same issue here, using 2020 MacBook Air running Catalina 10.15.4. Tried compiling under Arduino 1.8.5 but no joy, 32 bit instance won't work under OSX Catalina 10.15.4. Any way of fixing that expression so that it will compile?
Same here.
I highly doubt that fixing this expression is the only thing we need to do or they would have done it already. Let's see what the future brings and hope for the best. :-)
My 'workaround' on my mac laptop was to load the arduino 1.8.5 IDE (running windows 10 with VMware environment). It compiles successfully.
I am thinking of creating a docker image to compile the firmware.
@salmander that's a great idea, I already did that, I use drone.io CI to automate builds as well
For everyone using the latest OSX: building FW on OSX Catalina is not supported right now. The problem was primarily caused by Apple dropping support for 32bit applications. For building the FW you'd need a newer Arduino package which also comes with a newer AVR-GCC compiler.
Even though we are planning to upgrade the AVR-GCC compiler in the future (and cleaning-up stuff which doesn't compile),
the newer compiler also produces and/or uncovers new bugs, glitches and thus upgrading the build chain does have severe negative impact on FW's stability.
Please note the current build chain (Arduino 1.8.5) has been well tested and was proven in long term of FW development.
For now probably the best solution is to use a docker image or a small virtual machine and build the FW inside.
If you are really feeling lucky and want to experiment a lot, there is an unsupported solution you may try - @leptun 's branch
with the updated AVR-GCC: https://github.com/leptun/Prusa-Firmware/tree/MK3_GCC
Only PF-build.sh is updated for now.
Hi @DRracer,
Moving from my prior thread, I have installed 1.8.5, I was running 1.8.13 . I made all the modification per the windows instructions for Ardiuno IDE. Now, choosing AVR ISP , AVRISP mkII, Atmel-ICE (AVR) , I get a compiling error of :
fork/exec /Users/valkyrianna/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-g++: bad CPU type in executable
Error compiling for board Original Prusa i3 MK3 Multi Material 2.0 upgrade.
Does this mean I am out of luck updating the firmware until the new update is out that supports that latest AVR-GCC that can be complied on OSX on either Arduino IDE or using the cmake / ninja compiling method.
Sorry for being short yesterday, I spent well over 12 hours trying to figure out how to get this to work. I moved my MMU2S on my MK3S outside my cardbox heat chamber because it was getting too hot and causing in stability with MMU.
On the other side, I have learned more about homebrew and cmake and ninja which I never before knew existed. So there is that.
Edit: I have Mk3s MMu2s , MBP - 16" i9, 1.8.5 Ardiuno, 1.8.13 ardiuno , cmake , ninja - both latest releases , AVR-GCC - 9.3.0
Don't know if my specs help or not.
Edit Edit: Also Apple is *ssshole - who thinks is a brillant idea to remove 32bit support, also they hiding application support, AND TRASH!!! Like whatttt . Linux is master race, I might have migrate to linux for next computer. Hopefully, by then Fusion360 can run on Linux.
@cskozlowski
How well did VMware system work for you? I am thinking of doing this because I need to get printer up and running. Which VMware did you buy, and did you buy an image of windows?
Ran into the same problem on MacOS 10.15 and Arduino 1.8.12 (1.8.13 didn't work for me) and fixed it by changing line 594 in the eeprom.h from
static constexpr M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
to
static M500_conf * const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20); //offset for storing settings using M500
(This is the fix made by the MK3_GCC fork, see also in diff https://github.com/prusa3d/Prusa-Firmware/compare/MK3...leptun:MK3_GCC#diff-e09465d9901d088a6392810e5cfbda16fee36d4adbc8e34936117c78a32cdcb4 )
@DRracer when you have a moment, do you have an update to when the ninja compiling for OSX Cat & Above is going to be available?