reprappro / RepRapFirmware

OO C++ RepRap Firmware
Other
143 stars 120 forks source link

Compilation issues #70

Open apla opened 9 years ago

apla commented 9 years ago

Hi, I tried to compile firmware, but receive some strange errors:

Error: Command failed: /Users/apla/Library/Application Support/Brackets/extensions/user/brackets-arduino/build/GCodes.cpp: In member function 'void GCodes::Init()':
/Users/apla/Library/Application Support/Brackets/extensions/user/brackets-arduino/build/GCodes.cpp:59:16: error: assigning to an array from an initializer list
   gCodeLetters = GCODE_LETTERS

I know, you recommend the eclipse way, but I have command line utility written by myself and seems this error is last stop before I get compiled firmware.

This is command caused error:

"/Applications/devel/Arduino.app/Contents/Java/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=158 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM  -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON \'-DUSB_MANUFACTURER="Unknown"\' \'-DUSB_PRODUCT="Arduino Due"\' "-I/Applications/devel/Arduino.app/Contents/Java/hardware/arduino/sam/system/libsam" "-I/Applications/devel/Arduino.app/Contents/Java/hardware/arduino/sam/system/CMSIS/CMSIS/Include/" "-I/Applications/devel/Arduino.app/Contents/Java/hardware/arduino/sam/system/CMSIS/Device/ATMEL/"  -I/Applications/devel/Arduino.app/Contents/Java/hardware/arduino/sam/cores/arduino -I/Applications/devel/Arduino.app/Contents/Java/hardware/arduino/sam/variants/arduino_due_x -I/Users/apla/work/3d/RepRapFirmware/network -I/Users/apla/Documents/Arduino/libraries/Lwip -I/Users/apla/Documents/Arduino/libraries/EMAC -I/Users/apla/Documents/Arduino/libraries/SamNonDuePin -I/Users/apla/Documents/Arduino/libraries/SD_HSMCI -I/Users/apla/Documents/Arduino/libraries/MCP4461 -I/Applications/devel/Arduino.app/Contents/Java/hardware/arduino/sam/libraries/Wire "/Users/apla/Library/Application Support/Brackets/extensions/user/brackets-arduino/build/GCodes.cpp" -o "/Users/apla/Library/Application Support/Brackets/extensions/user/brackets-arduino/build/GCodes.o"
dc42 commented 9 years ago

You need to use either an older version of gcc such as the version in Arduino 1.5.4, or a more recent version of the source code.