Go Down

Topic: ide 1.8.5 compile error clean installation (Read 457 times) previous topic - next topic

kirkox

Hi,

i got following error compiling any sketch (empty or from examples):
Code: [Select]

Arduino: 1.8.5 (Linux), Board: "Arduino/Genuino Uno"
/home/donhomer/Downloads/arduino-1.8.5/arduino-builder -dump-prefs -logger=machine -hardware /home/donhomer/Downloads/arduino-1.8.5/hardware -tools /home/donhomer/Downloads/arduino-1.8.5/tools-builder -tools /home/donhomer/Downloads/arduino-1.8.5/hardware/tools/avr -built-in-libraries /home/donhomer/Downloads/arduino-1.8.5/libraries -libraries /home/donhomer/Arduino/libraries -fqbn=arduino:avr:uno -ide-version=10805 -build-path /tmp/arduino_build_563950 -warnings=none -build-cache /tmp/arduino_cache_395003 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/home/donhomer/Downloads/arduino-1.8.5/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/home/donhomer/Downloads/arduino-1.8.5/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/donhomer/Downloads/arduino-1.8.5/hardware/tools/avr -verbose /tmp/untitled1555457474.tmp/sketch_dec17a/sketch_dec17a.ino
/home/donhomer/Downloads/arduino-1.8.5/arduino-builder -compile -logger=machine -hardware /home/donhomer/Downloads/arduino-1.8.5/hardware -tools /home/donhomer/Downloads/arduino-1.8.5/tools-builder -tools /home/donhomer/Downloads/arduino-1.8.5/hardware/tools/avr -built-in-libraries /home/donhomer/Downloads/arduino-1.8.5/libraries -libraries /home/donhomer/Arduino/libraries -fqbn=arduino:avr:uno -ide-version=10805 -build-path /tmp/arduino_build_563950 -warnings=none -build-cache /tmp/arduino_cache_395003 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/home/donhomer/Downloads/arduino-1.8.5/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/home/donhomer/Downloads/arduino-1.8.5/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/donhomer/Downloads/arduino-1.8.5/hardware/tools/avr -verbose /tmp/untitled1555457474.tmp/sketch_dec17a/sketch_dec17a.ino
Using board 'uno' from platform in folder: /home/donhomer/Downloads/arduino-1.8.5/hardware/arduino/avr
Using core 'arduino' from platform in folder: /home/donhomer/Downloads/arduino-1.8.5/hardware/arduino/avr
Detecting libraries used...
"/home/donhomer/Downloads/arduino-1.8.5/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=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/donhomer/Downloads/arduino-1.8.5/hardware/arduino/avr/cores/arduino" "-I/home/donhomer/Downloads/arduino-1.8.5/hardware/arduino/avr/variants/standard" "/tmp/arduino_build_563950/sketch/sketch_dec17a.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/home/donhomer/Downloads/arduino-1.8.5/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=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/donhomer/Downloads/arduino-1.8.5/hardware/arduino/avr/cores/arduino" "-I/home/donhomer/Downloads/arduino-1.8.5/hardware/arduino/avr/variants/standard" "/tmp/arduino_build_563950/sketch/sketch_dec17a.ino.cpp" -o "/tmp/arduino_build_563950/preproc/ctags_target_for_gcc_minus_e.cpp"
"/home/donhomer/Downloads/arduino-1.8.5/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_563950/preproc/ctags_target_for_gcc_minus_e.cpp"
Sketch wird kompiliert...
"/home/donhomer/Downloads/arduino-1.8.5/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/donhomer/Downloads/arduino-1.8.5/hardware/arduino/avr/cores/arduino" "-I/home/donhomer/Downloads/arduino-1.8.5/hardware/arduino/avr/variants/standard" "/tmp/arduino_build_563950/sketch/sketch_dec17a.ino.cpp" -o "/tmp/arduino_build_563950/sketch/sketch_dec17a.ino.cpp.o"
as: Unbekannte Option »-mmcu=avr5«
exit status 1
Fehler beim Kompilieren für das Board Arduino/Genuino Uno.

I am struggling with following line:
as: Unbekannte Option »-mmcu=avr5« (Unknown option)
My linux is xubuntu 16.04 and Arduino IDE is 1.8.5.. I simply extracted the files form the tar.gz and run ./arduino.sh. It shows me the same error after I run ./install.sh and used the desktop icon to start the IDE. I have no other avr installation. The path "/home/donhomer/Downloads/arduino-1.8.5/hardware/tools/avr/bin/" points to the avr tools shipped with the IDE.
Any ideas?

kirkox

I remember I asked the same Question for 1.6.5/8. Unfortunately I don't remember the solution. I know there were also issues with the avr executables not in the right directory. There is "arduino-1.8.5/hardware/tools/avr/bin" and "arduino-1.8.5/hardware/tools/avr/avr/bin". The last one is empty...

kirkox

I solved something. I reverted to 1.16.19 with the BoardManager. Previously it was 1.16.20. Now its working. It produces following output:
Code: [Select]

/home/donhomer/Downloads/arduino-1.8.5/arduino-builder -dump-prefs -logger=machine -hardware /home/donhomer/Downloads/arduino-1.8.5/hardware -hardware /home/donhomer/.arduino15/packages -tools /home/donhomer/Downloads/arduino-1.8.5/tools-builder -tools /home/donhomer/Downloads/arduino-1.8.5/hardware/tools/avr -tools /home/donhomer/.arduino15/packages -built-in-libraries /home/donhomer/Downloads/arduino-1.8.5/libraries -libraries /home/donhomer/Arduino/libraries -fqbn=arduino:avr:uno -ide-version=10805 -build-path /tmp/arduino_build_552503 -warnings=none -build-cache /tmp/arduino_cache_16669 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/donhomer/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.avrdude.path=/home/donhomer/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9 -prefs=runtime.tools.arduinoOTA.path=/home/donhomer/.arduino15/packages/arduino/tools/arduinoOTA/1.1.1 -verbose /tmp/untitled1432931122.tmp/sketch_dec17a/sketch_dec17a.ino
/home/donhomer/Downloads/arduino-1.8.5/arduino-builder -compile -logger=machine -hardware /home/donhomer/Downloads/arduino-1.8.5/hardware -hardware /home/donhomer/.arduino15/packages -tools /home/donhomer/Downloads/arduino-1.8.5/tools-builder -tools /home/donhomer/Downloads/arduino-1.8.5/hardware/tools/avr -tools /home/donhomer/.arduino15/packages -built-in-libraries /home/donhomer/Downloads/arduino-1.8.5/libraries -libraries /home/donhomer/Arduino/libraries -fqbn=arduino:avr:uno -ide-version=10805 -build-path /tmp/arduino_build_552503 -warnings=none -build-cache /tmp/arduino_cache_16669 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/donhomer/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.avrdude.path=/home/donhomer/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9 -prefs=runtime.tools.arduinoOTA.path=/home/donhomer/.arduino15/packages/arduino/tools/arduinoOTA/1.1.1 -verbose /tmp/untitled1432931122.tmp/sketch_dec17a/sketch_dec17a.ino
Using board 'uno' from platform in folder: /home/donhomer/.arduino15/packages/arduino/hardware/avr/1.6.19
Using core 'arduino' from platform in folder: /home/donhomer/.arduino15/packages/arduino/hardware/avr/1.6.19
Detecting libraries used...
"/home/donhomer/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/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=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/donhomer/.arduino15/packages/arduino/hardware/avr/1.6.19/cores/arduino" "-I/home/donhomer/.arduino15/packages/arduino/hardware/avr/1.6.19/variants/standard" "/tmp/arduino_build_552503/sketch/sketch_dec17a.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/home/donhomer/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/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=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/donhomer/.arduino15/packages/arduino/hardware/avr/1.6.19/cores/arduino" "-I/home/donhomer/.arduino15/packages/arduino/hardware/avr/1.6.19/variants/standard" "/tmp/arduino_build_552503/sketch/sketch_dec17a.ino.cpp" -o "/tmp/arduino_build_552503/preproc/ctags_target_for_gcc_minus_e.cpp"
"/home/donhomer/Downloads/arduino-1.8.5/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_552503/preproc/ctags_target_for_gcc_minus_e.cpp"
Sketch wird kompiliert...
"/home/donhomer/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/donhomer/.arduino15/packages/arduino/hardware/avr/1.6.19/cores/arduino" "-I/home/donhomer/.arduino15/packages/arduino/hardware/avr/1.6.19/variants/standard" "/tmp/arduino_build_552503/sketch/sketch_dec17a.ino.cpp" -o "/tmp/arduino_build_552503/sketch/sketch_dec17a.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core
Linking everything together...
"/home/donhomer/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p  -o "/tmp/arduino_build_552503/sketch_dec17a.ino.elf" "/tmp/arduino_build_552503/sketch/sketch_dec17a.ino.cpp.o" "/tmp/arduino_build_552503/../arduino_cache_16669/core/core_arduino_avr_uno_52d47ef6e69f174efb3f041c322650aa.a" "-L/tmp/arduino_build_552503" -lm
"/home/donhomer/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0  "/tmp/arduino_build_552503/sketch_dec17a.ino.elf" "/tmp/arduino_build_552503/sketch_dec17a.ino.eep"
"/home/donhomer/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-objcopy" -O ihex -R .eeprom  "/tmp/arduino_build_552503/sketch_dec17a.ino.elf" "/tmp/arduino_build_552503/sketch_dec17a.ino.hex"
Der Sketch verwendet 444 Bytes (1%) des Programmspeicherplatzes. Das Maximum sind 32256 Bytes.
Globale Variablen verwenden 9 Bytes (0%) des dynamischen Speichers, 2039 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.

It uses now the 1.16.19 stuff it downloaded. PReferences.txt are the same (before and after switching to 1.16.19). When I switch back, I get the same error again.
Does someone have an explanation?

Go Up