ChibiOS_AVR at version 2015.11.15 doesn't compile with Arduino IDE 1.8.0
Closed this issue · 6 comments
Arduino: 1.8.0 (Linux), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"
/opt/arduino-1.8.0/arduino-builder -dump-prefs -logger=machine -hardware /opt/arduino-1.8.0/hardware -tools /opt/arduino-1.8.0/tools-builder -tools /opt/arduino-1.8.0/hardware/tools/avr -built-in-libraries /opt/arduino-1.8.0/libraries -libraries /home/fra/Arduino/libraries -fqbn=arduino:avr:pro:cpu=16MHzatmega328 -ide-version=10800 -build-path /tmp/arduino_build_68749 -warnings=more -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/opt/arduino-1.8.0/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/opt/arduino-1.8.0/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/opt/arduino-1.8.0/hardware/tools/avr -verbose /home/fra/Arduino/libraries/ChibiOS_AVR/examples/chBlink/chBlink.ino
/opt/arduino-1.8.0/arduino-builder -compile -logger=machine -hardware /opt/arduino-1.8.0/hardware -tools /opt/arduino-1.8.0/tools-builder -tools /opt/arduino-1.8.0/hardware/tools/avr -built-in-libraries /opt/arduino-1.8.0/libraries -libraries /home/fra/Arduino/libraries -fqbn=arduino:avr:pro:cpu=16MHzatmega328 -ide-version=10800 -build-path /tmp/arduino_build_68749 -warnings=more -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/opt/arduino-1.8.0/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/opt/arduino-1.8.0/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/opt/arduino-1.8.0/hardware/tools/avr -verbose /home/fra/Arduino/libraries/ChibiOS_AVR/examples/chBlink/chBlink.ino
Using board 'pro' from platform in folder: /opt/arduino-1.8.0/hardware/arduino/avr
Using core 'arduino' from platform in folder: /opt/arduino-1.8.0/hardware/arduino/avr
Detecting libraries used...
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/tmp/arduino_build_68749/sketch/chBlink.ino.cpp" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/tmp/arduino_build_68749/sketch/chBlink.ino.cpp" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/ChibiOS_AVR.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/board.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chcond.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chcore.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chdebug.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chdynamic.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chevents.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chheap.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chmboxes.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chmemcore.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chmempools.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chmsg.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chmtx.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chqueues.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chregistry.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chschd.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chsem.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chstats.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chsys.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chthreads.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chtm.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chvt.c" -o "/dev/null"
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/hal.c" -o "/dev/null"
Generating function prototypes...
"/opt/arduino-1.8.0/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=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/tmp/arduino_build_68749/sketch/chBlink.ino.cpp" -o "/tmp/arduino_build_68749/preproc/ctags_target_for_gcc_minus_e.cpp"
"/opt/arduino-1.8.0/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_68749/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/tmp/arduino_build_68749/sketch/chBlink.ino.cpp" -o "/tmp/arduino_build_68749/sketch/chBlink.ino.cpp.o"
Compiling libraries...
Compiling library "ChibiOS_AVR"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/ChibiOS_AVR.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/ChibiOS_AVR.c.o"
/home/fra/Arduino/libraries/ChibiOS_AVR/src/ChibiOS_AVR.c: In function 'stkBrk':
/home/fra/Arduino/libraries/ChibiOS_AVR/src/ChibiOS_AVR.c:30:2: warning: pointer targets in return differ in signedness [-Wpointer-sign]
return __brkval ? __brkval : __malloc_heap_start;
^
/home/fra/Arduino/libraries/ChibiOS_AVR/src/ChibiOS_AVR.c: In function 'chUnusedHeapMain':
/home/fra/Arduino/libraries/ChibiOS_AVR/src/ChibiOS_AVR.c:65:12: warning: comparison between pointer and integer
while (p < RAMEND) {
^
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/board.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/board.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chcond.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chcond.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chcore.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chcore.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chdebug.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chdebug.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chdynamic.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chdynamic.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chevents.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chevents.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chheap.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chheap.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chmboxes.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chmboxes.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chmemcore.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chmemcore.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chmempools.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chmempools.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chmsg.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chmsg.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chmtx.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chmtx.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chqueues.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chqueues.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chregistry.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chregistry.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chschd.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chschd.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chsem.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chsem.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chstats.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chstats.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chsys.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chsys.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chthreads.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chthreads.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chtm.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chtm.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/chvt.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chvt.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/fra/Arduino/libraries/ChibiOS_AVR/src" "/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/hal.c" -o "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/hal.c.o"
/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/hal.c: In function 'halInit':
/home/fra/Arduino/libraries/ChibiOS_AVR/src/utility/hal.c:62:3: warning: implicit declaration of function 'hal_lld_init' [-Wimplicit-function-declaration]
hal_lld_init();
^
Compiling core...
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/wiring_pulse.S" -o "/tmp/arduino_build_68749/core/wiring_pulse.S.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/WInterrupts.c" -o "/tmp/arduino_build_68749/core/WInterrupts.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/hooks.c" -o "/tmp/arduino_build_68749/core/hooks.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/wiring.c" -o "/tmp/arduino_build_68749/core/wiring.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/wiring_analog.c" -o "/tmp/arduino_build_68749/core/wiring_analog.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/wiring_digital.c" -o "/tmp/arduino_build_68749/core/wiring_digital.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/wiring_pulse.c" -o "/tmp/arduino_build_68749/core/wiring_pulse.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/wiring_shift.c" -o "/tmp/arduino_build_68749/core/wiring_shift.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/CDC.cpp" -o "/tmp/arduino_build_68749/core/CDC.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp" -o "/tmp/arduino_build_68749/core/HardwareSerial.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp" -o "/tmp/arduino_build_68749/core/HardwareSerial0.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp" -o "/tmp/arduino_build_68749/core/HardwareSerial1.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp" -o "/tmp/arduino_build_68749/core/HardwareSerial2.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp" -o "/tmp/arduino_build_68749/core/HardwareSerial3.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/IPAddress.cpp" -o "/tmp/arduino_build_68749/core/IPAddress.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp" -o "/tmp/arduino_build_68749/core/PluggableUSB.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/Print.cpp" -o "/tmp/arduino_build_68749/core/Print.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/Stream.cpp" -o "/tmp/arduino_build_68749/core/Stream.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/Tone.cpp" -o "/tmp/arduino_build_68749/core/Tone.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/USBCore.cpp" -o "/tmp/arduino_build_68749/core/USBCore.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/WMath.cpp" -o "/tmp/arduino_build_68749/core/WMath.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/WString.cpp" -o "/tmp/arduino_build_68749/core/WString.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/abi.cpp" -o "/tmp/arduino_build_68749/core/abi.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/main.cpp" -o "/tmp/arduino_build_68749/core/main.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-I/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.0/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.0/hardware/arduino/avr/cores/arduino/new.cpp" -o "/tmp/arduino_build_68749/core/new.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/wiring_pulse.S.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/WInterrupts.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/hooks.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/wiring.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/wiring_analog.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/wiring_digital.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/wiring_pulse.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/wiring_shift.c.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/CDC.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/HardwareSerial.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/HardwareSerial0.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/HardwareSerial1.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/HardwareSerial2.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/HardwareSerial3.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/IPAddress.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/PluggableUSB.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/Print.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/Stream.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/Tone.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/USBCore.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/WMath.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/WString.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/abi.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/main.cpp.o"
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_68749/core/core.a" "/tmp/arduino_build_68749/core/new.cpp.o"
Linking everything together...
"/opt/arduino-1.8.0/hardware/tools/avr/bin/avr-gcc" -Wall -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "/tmp/arduino_build_68749/chBlink.ino.elf" "/tmp/arduino_build_68749/sketch/chBlink.ino.cpp.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/ChibiOS_AVR.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/board.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chcond.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chcore.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chdebug.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chdynamic.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chevents.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chheap.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chmboxes.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chmemcore.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chmempools.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chmsg.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chmtx.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chqueues.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chregistry.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chschd.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chsem.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chstats.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chsys.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chthreads.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chtm.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chvt.c.o" "/tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/hal.c.o" "/tmp/arduino_build_68749/core/core.a" "-L/tmp/arduino_build_68749" -lm
chThdExit' referenced in section
.text' of /tmp/ccfbfdFc.ltrans0.ltrans.o: defined in discarded section `.text' of /tmp/arduino_build_68749/libraries/ChibiOS_AVR/utility/chthreads.c.o (symbol from plugin)
collect2: error: ld returned 1 exit status
Using library ChibiOS_AVR at version 2015.11.15 in folder: /home/fra/Arduino/libraries/ChibiOS_AVR
exit status 1
Error compiling for board Arduino Pro or Pro Mini.
I won't be updating ChibiOS, use the standalone version of ChibiOS.
I tried 1.80 on Windows and it is OK. Looks like a problem with the Linux version of the IDE.
Here is chBlink:
Sketch uses 3076 bytes (9%) of program storage space. Maximum is 32256 bytes.
Global variables use 557 bytes (27%) of dynamic memory, leaving 1491 bytes for local variables. Maximum is 2048 bytes.
Here is the blinkPrint example.
Sketch uses 5004 bytes (15%) of program storage space. Maximum is 32256 bytes.
Global variables use 782 bytes (38%) of dynamic memory, leaving 1266 bytes for local variables. Maximum is 2048 bytes.
It's a bug in the version of gcc in 1.80.
Go to libraries/ChibiOS_AVR/src/utility/chthreads.c and add this as a work around at line 397.
void chThdExit(msg_t msg) __attribute__((used)); //<<<< ADD THIS LINE
void chThdExit(msg_t msg) {
chSysLock();
chThdExitS(msg);
/* The thread never returns here.*/
}
Thanks! with that tricky line everything seems to work fine.
I've tried to study the code by myself but I got lost pretty soon. Do you have any suggestions on how to start hacking with ChibiOS?
Download the newest version of ChibiOS and try porting it to Arduino. There really are no tutorials about building operating systems for small embedded systems.
Here is a link.
Better yet, Download ChibiStudio and use it with a low cost STM32 board.
Ebay has this board for about $3.00 with 20K RAM and 64K flash.
Digikey has this board for about $15.00 with 128K of RAM and 512K of flash.
Thanks!