IDE 1.6.6 on Kubuntu 15.10 64bit 'avr-gcc: exec format error Error comp [SOLVED]

Hello Community,

i have downloaded the newest arduino IDE (1.6.6) and unpacked it on my Kubuntu 15.10 64bit system.
the IDE itself works - only the compiling is going wrong:

Arduino: 1.6.6 (Linux), Board: "Arduino Leonardo"

/home/stefan/_LocalData/tools/arduino-1.6.6/arduino-builder -dump-prefs -logger=machine -hardware "/home/stefan/_LocalData/tools/arduino-1.6.6/hardware" -hardware "/home/stefan/.arduino15/packages" -hardware "/home/stefan/_LocalData/projects/_arduino_sketchbook/hardware" -tools "/home/stefan/_LocalData/tools/arduino-1.6.6/tools-builder" -tools "/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr" -tools "/home/stefan/.arduino15/packages" -built-in-libraries "/home/stefan/_LocalData/tools/arduino-1.6.6/libraries" -libraries "/home/stefan/_LocalData/projects/_arduino_sketchbook/libraries" -fqbn=arduino:avr:leonardo -ide-version=10606 -build-path "/tmp/build96224cea4788ebfbaba585fdd52e9002.tmp" -warnings=all -prefs=build.warn_data_percentage=75 -verbose "/home/stefan/_LocalData/tools/arduino-1.6.6/examples/01.Basics/BareMinimum/BareMinimum.ino"
/home/stefan/_LocalData/tools/arduino-1.6.6/arduino-builder -compile -logger=machine -hardware "/home/stefan/_LocalData/tools/arduino-1.6.6/hardware" -hardware "/home/stefan/.arduino15/packages" -hardware "/home/stefan/_LocalData/projects/_arduino_sketchbook/hardware" -tools "/home/stefan/_LocalData/tools/arduino-1.6.6/tools-builder" -tools "/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr" -tools "/home/stefan/.arduino15/packages" -built-in-libraries "/home/stefan/_LocalData/tools/arduino-1.6.6/libraries" -libraries "/home/stefan/_LocalData/projects/_arduino_sketchbook/libraries" -fqbn=arduino:avr:leonardo -ide-version=10606 -build-path "/tmp/build96224cea4788ebfbaba585fdd52e9002.tmp" -warnings=all -prefs=build.warn_data_percentage=75 -verbose "/home/stefan/_LocalData/tools/arduino-1.6.6/examples/01.Basics/BareMinimum/BareMinimum.ino"
Board mighty-1284p:avr:mm8 doesn't define a 'build.board' preference. Auto-set to: AVR_MM8
"/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/variants/leonardo" "/tmp/build96224cea4788ebfbaba585fdd52e9002.tmp/sketch/BareMinimum.ino.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/variants/leonardo" "/tmp/build96224cea4788ebfbaba585fdd52e9002.tmp/sketch/BareMinimum.ino.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/variants/leonardo" "/tmp/build96224cea4788ebfbaba585fdd52e9002.tmp/sketch/BareMinimum.ino.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/variants/leonardo" "/tmp/build96224cea4788ebfbaba585fdd52e9002.tmp/sketch/BareMinimum.ino.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/variants/leonardo" "/tmp/build96224cea4788ebfbaba585fdd52e9002.tmp/sketch/BareMinimum.ino.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/variants/leonardo" "/tmp/build96224cea4788ebfbaba585fdd52e9002.tmp/sketch/BareMinimum.ino.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.6/tools-builder/ctags/5.8-arduino2/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns "/tmp/build96224cea4788ebfbaba585fdd52e9002.tmp/preproc/ctags_target.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.6/tools-builder/ctags/5.8-arduino2/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns "/tmp/build96224cea4788ebfbaba585fdd52e9002.tmp/preproc/ctags_target.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/variants/leonardo" "/tmp/build96224cea4788ebfbaba585fdd52e9002.tmp/sketch/BareMinimum.ino.cpp" -o "/tmp/build96224cea4788ebfbaba585fdd52e9002.tmp/sketch/BareMinimum.ino.cpp.o"
"/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-gcc" -c -g -x assembler-with-cpp -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/variants/leonardo" "/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino/wiring_pulse.S" -o "/tmp/build96224cea4788ebfbaba585fdd52e9002.tmp/core/wiring_pulse.S.o"
fork/exec /home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-gcc: exec format error
Error compiling.

i had a similar problem with the 1.6.5
currently iam using the 1.0.6 version - that is running fine inclusive the compiler.

i had previously the package-manager version installed.
after a quick search i got to a post that mentions it can fail when package-manager version and manually versions are installed..
so i removed the package-manager version and restarted my system.
but for the 1.6.6 nothing changed.

so where is the 'bin/avr-gcc: exec format error Error compiling.' coming from?

hopefully there is a solution to this - i would like to use the improvements of the new version :wink:

sunny greetings
stefan

hey,

today i tried and cleaned up all preferences:
i deleted the

/home/stefan/.arduino15/

and

/home/stefan/.arduino/

folders.
just to be sure that there is no old paths or whatsever in some place…

so the default sketchbook folder was used also.

but that did not change something.
i get

fork/exec /home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-gcc: exec format error
Error compiling.

and after i reenabled verbose info:

Arduino: 1.6.6 (Linux), Board: "Arduino/Genuino Uno"

/home/stefan/_LocalData/tools/arduino-1.6.6/arduino-builder -dump-prefs -logger=machine -hardware "/home/stefan/_LocalData/tools/arduino-1.6.6/hardware" -tools "/home/stefan/_LocalData/tools/arduino-1.6.6/tools-builder" -tools "/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr" -built-in-libraries "/home/stefan/_LocalData/tools/arduino-1.6.6/libraries" -libraries "/home/stefan/Arduino/libraries" -fqbn=arduino:avr:uno -ide-version=10606 -build-path "/tmp/build84bd63789b7a319ad358d60c0b308690.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/tmp/untitled2034172844.tmp/sketch_nov17a/sketch_nov17a.ino"
/home/stefan/_LocalData/tools/arduino-1.6.6/arduino-builder -compile -logger=machine -hardware "/home/stefan/_LocalData/tools/arduino-1.6.6/hardware" -tools "/home/stefan/_LocalData/tools/arduino-1.6.6/tools-builder" -tools "/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr" -built-in-libraries "/home/stefan/_LocalData/tools/arduino-1.6.6/libraries" -libraries "/home/stefan/Arduino/libraries" -fqbn=arduino:avr:uno -ide-version=10606 -build-path "/tmp/build84bd63789b7a319ad358d60c0b308690.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/tmp/untitled2034172844.tmp/sketch_nov17a/sketch_nov17a.ino"
"/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/variants/standard" "/tmp/build84bd63789b7a319ad358d60c0b308690.tmp/sketch/sketch_nov17a.ino.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/variants/standard" "/tmp/build84bd63789b7a319ad358d60c0b308690.tmp/sketch/sketch_nov17a.ino.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/variants/standard" "/tmp/build84bd63789b7a319ad358d60c0b308690.tmp/sketch/sketch_nov17a.ino.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/variants/standard" "/tmp/build84bd63789b7a319ad358d60c0b308690.tmp/sketch/sketch_nov17a.ino.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/variants/standard" "/tmp/build84bd63789b7a319ad358d60c0b308690.tmp/sketch/sketch_nov17a.ino.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/variants/standard" "/tmp/build84bd63789b7a319ad358d60c0b308690.tmp/sketch/sketch_nov17a.ino.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.6/tools-builder/ctags/5.8-arduino2/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns "/tmp/build84bd63789b7a319ad358d60c0b308690.tmp/preproc/ctags_target.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.6/tools-builder/ctags/5.8-arduino2/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns "/tmp/build84bd63789b7a319ad358d60c0b308690.tmp/preproc/ctags_target.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/variants/standard" "/tmp/build84bd63789b7a319ad358d60c0b308690.tmp/sketch/sketch_nov17a.ino.cpp" -o "/tmp/build84bd63789b7a319ad358d60c0b308690.tmp/sketch/sketch_nov17a.ino.cpp.o"
"/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-gcc" -c -g -x assembler-with-cpp -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/variants/standard" "/home/stefan/_LocalData/tools/arduino-1.6.6/hardware/arduino/avr/cores/arduino/wiring_pulse.S" -o "/tmp/build84bd63789b7a319ad358d60c0b308690.tmp/core/wiring_pulse.S.o"
fork/exec /home/stefan/_LocalData/tools/arduino-1.6.6/hardware/tools/avr/bin/avr-gcc: exec format error
Error compiling.

has someone some more ideas what i can try out to get 1.6.6. working??
sunny greetings
stefan

Hey,

today i tested with a second clean user profile.
i installed the IDE and it just runs fine.
the compilation is also running fine there.

so the problem is with my user-profile / configuration.

i thought that the arduino ide is self contained?
seems that there are some environment configurations that can conflict?!

what could this be?
i think it has something to do with the avr-gcc - is there some global config that is used wrongly?

hope someoen of you can give me some hints!

sunny greetings stefan

Hello - today (13.11.2016) i tried with the current 1.6.7:

  • ide is working
  • compiling stops with an error:
Arduino: 1.6.7 (Linux), Board: "Arduino Leonardo"

/home/stefan/_LocalData/tools/arduino-1.6.7/arduino-builder -dump-prefs -logger=machine -hardware "/home/stefan/_LocalData/tools/arduino-1.6.7/hardware" -hardware "/home/stefan/_LocalData/projects/_arduino_sketchbook/hardware" -tools "/home/stefan/_LocalData/tools/arduino-1.6.7/tools-builder" -tools "/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/tools/avr" -built-in-libraries "/home/stefan/_LocalData/tools/arduino-1.6.7/libraries" -libraries "/home/stefan/_LocalData/projects/_arduino_sketchbook/libraries" -fqbn=arduino:avr:leonardo -ide-version=10607 -build-path "/tmp/build67ecf802f532b7b7a64816a9af5e88b9.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/home/stefan/_LocalData/tools/arduino-1.6.7/examples/01.Basics/Blink/Blink.ino"
/home/stefan/_LocalData/tools/arduino-1.6.7/arduino-builder -compile -logger=machine -hardware "/home/stefan/_LocalData/tools/arduino-1.6.7/hardware" -hardware "/home/stefan/_LocalData/projects/_arduino_sketchbook/hardware" -tools "/home/stefan/_LocalData/tools/arduino-1.6.7/tools-builder" -tools "/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/tools/avr" -built-in-libraries "/home/stefan/_LocalData/tools/arduino-1.6.7/libraries" -libraries "/home/stefan/_LocalData/projects/_arduino_sketchbook/libraries" -fqbn=arduino:avr:leonardo -ide-version=10607 -build-path "/tmp/build67ecf802f532b7b7a64816a9af5e88b9.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/home/stefan/_LocalData/tools/arduino-1.6.7/examples/01.Basics/Blink/Blink.ino"
"/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/arduino/avr/variants/leonardo" "/tmp/build67ecf802f532b7b7a64816a9af5e88b9.tmp/sketch/Blink.ino.cpp" -o "/dev/null"
"/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/arduino/avr/variants/leonardo" "/tmp/build67ecf802f532b7b7a64816a9af5e88b9.tmp/sketch/Blink.ino.cpp" -o "/dev/null"
"/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/arduino/avr/variants/leonardo" "/tmp/build67ecf802f532b7b7a64816a9af5e88b9.tmp/sketch/Blink.ino.cpp" -o "/tmp/build67ecf802f532b7b7a64816a9af5e88b9.tmp/preproc/ctags_target_for_gcc_minus_e.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.7/tools-builder/ctags/5.8-arduino5/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/build67ecf802f532b7b7a64816a9af5e88b9.tmp/preproc/ctags_target_for_gcc_minus_e.cpp"
"/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/arduino/avr/variants/leonardo" "/tmp/build67ecf802f532b7b7a64816a9af5e88b9.tmp/sketch/Blink.ino.cpp" -o "/tmp/build67ecf802f532b7b7a64816a9af5e88b9.tmp/sketch/Blink.ino.cpp.o"
"/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/tools/avr/bin/avr-gcc" -c -g -x assembler-with-cpp -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-I/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/arduino/avr/cores/arduino" "-I/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/arduino/avr/variants/leonardo" "/home/stefan/_LocalData/tools/arduino-1.6.7/hardware/arduino/avr/cores/arduino/wiring_pulse.S" -o "/tmp/build67ecf802f532b7b7a64816a9af5e88b9.tmp/core/wiring_pulse.S.o"
fork/exec /home/stefan/_LocalData/tools/arduino-1.6.7/hardware/tools/avr/bin/avr-gcc: exec format error
Error compiling.

so i went back and tried with older versions:

IDE run compile upload comment
1.6.7 ok error - fork/exec ..../arduino-1.6.7/hardware/tools/avr/bin/avr-gcc: exec format error - Error compiling.
1.6.6 ok error - fork/exec ..../arduino-1.6.6/hardware/tools/avr/bin/avr-gcc: exec format error - Error compiling.
1.6.4 ok dubious failed Couldn't determine program size: ...../arduino-1.6.4/hardware/tools/avr/bin/avr-size: '/tmp/build1716782304721838355.tmp/ASCIITable.cpp.elf': No such file
1.6.3 ok dubious failed Couldn't determine program size: /home/stefan/_LocalData/tools/arduino-1.6.3/hardware/tools/avr/bin/avr-size: '/tmp/build2096979969345207515.tmp/Blink.cpp.elf': No such file
1.6.2 error - - the loading screen shows a short time than no programm (java/arduino) is visible in system monitor
1.6.1 ok ok ok -
1.6.0 ok ok ok -
1.0.6 ok ok ok -

full log output for 1.6.1 and 1.6.3 is following.

so currently the newest version that i can get to run is 1.6.1.

has someone a idea what to check / search for?
or is there a other place to report my problem to?

sunny greetings
stefan

1.6.2 seems to be a broken download -
if i unpack it the folder size is only 88MB (1.6.1 is 430MB; 1.6.3 is 206MB)
i have downloaded the versions from Arduino - OldSoftwareReleases
the linux 64Bit packages.
and tried it multiple times.

1.6.1 log: (working)

....
/home/stefan/_LocalData/tools/arduino-1.6.1/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/build2829960338044293180.tmp/Blink.cpp.elf /tmp/build2829960338044293180.tmp/Blink.cpp.eep
/home/stefan/_LocalData/tools/arduino-1.6.1/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /tmp/build2829960338044293180.tmp/Blink.cpp.elf /tmp/build2829960338044293180.tmp/Blink.cpp.hex

Sketch uses 4,788 bytes (16%) of program storage space. Maximum is 28,672 bytes.
Global variables use 151 bytes (5%) of dynamic memory, leaving 2,409 bytes for local variables. Maximum is 2,560 bytes.
Forcing reset using 1200bps open/close on port /dev/ttyACM1
PORTS {/dev/ttyACM1, /dev/ttyS4, } / {/dev/ttyS4, } => {}
PORTS {/dev/ttyS4, } / {/dev/ttyACM1, /dev/ttyS4, } => {/dev/ttyACM1, }
Found upload port: /dev/ttyACM1
....

1.6.3 (fails)

...
/home/stefan/_LocalData/tools/arduino-1.6.3/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/build3027662673973623402.tmp/Blink.cpp.elf /tmp/build3027662673973623402.tmp/Blink.cpp.eep 
/home/stefan/_LocalData/tools/arduino-1.6.3/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /tmp/build3027662673973623402.tmp/Blink.cpp.elf /tmp/build3027662673973623402.tmp/Blink.cpp.hex 
Couldn't determine program size: /home/stefan/_LocalData/tools/arduino-1.6.3/hardware/tools/avr/bin/avr-size: '/tmp/build3027662673973623402.tmp/Blink.cpp.elf': No such file

Forcing reset using 1200bps open/close on port /dev/ttyACM1
PORTS {/dev/ttyACM1, /dev/ttyS4, } / {/dev/ttyS4, } => {}
PORTS {/dev/ttyS4, } / {/dev/ttyS4, } => {}
PORTS {/dev/ttyS4, } / {/dev/ttyACM1, /dev/ttyS4, } => {/dev/ttyACM1, }
Found upload port: /dev/ttyACM1
...
avrdude: Device signature = 0x1e9587
avrdude: reading input file "/tmp/build3027662673973623402.tmp/Blink.cpp.hex"
avrdude: can't open input file /tmp/build3027662673973623402.tmp/Blink.cpp.hex: No such file or directory
avrdude: read from file '/tmp/build3027662673973623402.tmp/Blink.cpp.hex' failed

avrdude done.  Thank you.

compile_blink_161.txt (24.9 KB)

compile_blink_163.txt (24.5 KB)

just to solve this:
check you unzip the file with a extractor that can handle hardlinks inside the packed files.
DoubleCommander currently (Version 0.7.8 on Kubuntu 17.04 64bit) creates 0byte sized files instead.

this was found by Zoltan (szilvasyz) at
Arduino 1.8+ on Ubuntu 16.04LTS gives "/avr/bin/as': execv: Exec format error"

i used

$ tar xf arduino-1.8.3-linux64.tar.xz

from the command line to extract the downloaded file and it worked :slight_smile:

sunny greetings stefan