Not Compile in Arduino IDE 1.8.4 in linux & windows

Issue #6 new
Former user created an issue

Arduino: 1.8.4 (Linux), Board: "Arduino Nano, ATmega328P"

/home/surya/App/arduino-1.8.4/arduino-builder -dump-prefs -logger=machine -hardware /home/surya/App/arduino-1.8.4/hardware -tools /home/surya/App/arduino-1.8.4/tools-builder -tools /home/surya/App/arduino-1.8.4/hardware/tools/avr -built-in-libraries /home/surya/App/arduino-1.8.4/libraries -libraries /home/surya/Arduino/libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10804 -build-path /tmp/arduino_build_907876 -warnings=all -build-cache /tmp/arduino_cache_536134 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/surya/App/arduino-1.8.4/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/surya/App/arduino-1.8.4/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/surya/App/arduino-1.8.4/hardware/tools/avr -verbose /tmp/arduino_modified_sketch_772710/semaDemo.ino /home/surya/App/arduino-1.8.4/arduino-builder -compile -logger=machine -hardware /home/surya/App/arduino-1.8.4/hardware -tools /home/surya/App/arduino-1.8.4/tools-builder -tools /home/surya/App/arduino-1.8.4/hardware/tools/avr -built-in-libraries /home/surya/App/arduino-1.8.4/libraries -libraries /home/surya/Arduino/libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10804 -build-path /tmp/arduino_build_907876 -warnings=all -build-cache /tmp/arduino_cache_536134 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/surya/App/arduino-1.8.4/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/surya/App/arduino-1.8.4/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/surya/App/arduino-1.8.4/hardware/tools/avr -verbose /tmp/arduino_modified_sketch_772710/semaDemo.ino Using board 'nano' from platform in folder: /home/surya/App/arduino-1.8.4/hardware/arduino/avr Using core 'arduino' from platform in folder: /home/surya/App/arduino-1.8.4/hardware/arduino/avr Build options changed, rebuilding all Detecting libraries used... "/home/surya/App/arduino-1.8.4/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=10804 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/cores/arduino" "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs" "/tmp/arduino_build_907876/sketch/semaDemo.ino.cpp" -o "/dev/null" "/home/surya/App/arduino-1.8.4/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=10804 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/cores/arduino" "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/surya/Arduino/libraries/ArdOS-v09b" "/tmp/arduino_build_907876/sketch/semaDemo.ino.cpp" -o "/dev/null" "/home/surya/App/arduino-1.8.4/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=10804 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/cores/arduino" "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/surya/Arduino/libraries/ArdOS-v09b" "/home/surya/Arduino/libraries/ArdOS-v09b/kernel.cpp" -o "/dev/null" "/home/surya/App/arduino-1.8.4/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=10804 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/cores/arduino" "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/surya/Arduino/libraries/ArdOS-v09b" "/home/surya/Arduino/libraries/ArdOS-v09b/mutex.cpp" -o "/dev/null" "/home/surya/App/arduino-1.8.4/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=10804 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/cores/arduino" "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/surya/Arduino/libraries/ArdOS-v09b" "/home/surya/Arduino/libraries/ArdOS-v09b/queue.cpp" -o "/dev/null" "/home/surya/App/arduino-1.8.4/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=10804 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/cores/arduino" "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/surya/Arduino/libraries/ArdOS-v09b" "/home/surya/Arduino/libraries/ArdOS-v09b/sema.cpp" -o "/dev/null" "/home/surya/App/arduino-1.8.4/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=10804 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/cores/arduino" "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/surya/Arduino/libraries/ArdOS-v09b" "/home/surya/Arduino/libraries/ArdOS-v09b/task.cpp" -o "/dev/null" Generating function prototypes... "/home/surya/App/arduino-1.8.4/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=10804 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/cores/arduino" "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/surya/Arduino/libraries/ArdOS-v09b" "/tmp/arduino_build_907876/sketch/semaDemo.ino.cpp" -o "/tmp/arduino_build_907876/preproc/ctags_target_for_gcc_minus_e.cpp" "/home/surya/App/arduino-1.8.4/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_907876/preproc/ctags_target_for_gcc_minus_e.cpp" Compiling sketch... "/home/surya/App/arduino-1.8.4/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/cores/arduino" "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/surya/Arduino/libraries/ArdOS-v09b" "/tmp/arduino_build_907876/sketch/semaDemo.ino.cpp" -o "/tmp/arduino_build_907876/sketch/semaDemo.ino.cpp.o" /tmp/arduino_modified_sketch_772710/semaDemo.ino: In function 'void task1(void)': /tmp/arduino_modified_sketch_772710/semaDemo.ino:50:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<count; i++) ^ /tmp/arduino_modified_sketch_772710/semaDemo.ino: At global scope: /tmp/arduino_modified_sketch_772710/semaDemo.ino:60:18: warning: unused parameter 'p' [-Wunused-parameter] void task2(void p) ^ /tmp/arduino_modified_sketch_772710/semaDemo.ino:70:18: warning: unused parameter 'p' [-Wunused-parameter] void task3(void p) ^ /tmp/arduino_modified_sketch_772710/semaDemo.ino:80:18: warning: unused parameter 'p' [-Wunused-parameter] void task4(void p) ^ Compiling libraries... Compiling library "ArdOS-v09b" "/home/surya/App/arduino-1.8.4/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/cores/arduino" "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/surya/Arduino/libraries/ArdOS-v09b" "/home/surya/Arduino/libraries/ArdOS-v09b/kernel.cpp" -o "/tmp/arduino_build_907876/libraries/ArdOS-v09b/kernel.cpp.o" /home/surya/Arduino/libraries/ArdOS-v09b/kernel.cpp: In function 'void OSSleep(long unsigned int)': /home/surya/Arduino/libraries/ArdOS-v09b/kernel.cpp:219:26: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] if(_sleepTime[_running]<0)

                      ^

/home/surya/Arduino/libraries/ArdOS-v09b/kernel.cpp: At global scope: /home/surya/Arduino/libraries/ArdOS-v09b/kernel.cpp:502:20: warning: unused parameter 'p' [-Wunused-parameter] void _OSIdle(void *p)

                ^

"/home/surya/App/arduino-1.8.4/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/cores/arduino" "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/surya/Arduino/libraries/ArdOS-v09b" "/home/surya/Arduino/libraries/ArdOS-v09b/mutex.cpp" -o "/tmp/arduino_build_907876/libraries/ArdOS-v09b/mutex.cpp.o" "/home/surya/App/arduino-1.8.4/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/cores/arduino" "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/surya/Arduino/libraries/ArdOS-v09b" "/home/surya/Arduino/libraries/ArdOS-v09b/queue.cpp" -o "/tmp/arduino_build_907876/libraries/ArdOS-v09b/queue.cpp.o" "/home/surya/App/arduino-1.8.4/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/cores/arduino" "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/surya/Arduino/libraries/ArdOS-v09b" "/home/surya/Arduino/libraries/ArdOS-v09b/sema.cpp" -o "/tmp/arduino_build_907876/libraries/ArdOS-v09b/sema.cpp.o" "/home/surya/App/arduino-1.8.4/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/cores/arduino" "-I/home/surya/App/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/surya/Arduino/libraries/ArdOS-v09b" "/home/surya/Arduino/libraries/ArdOS-v09b/task.cpp" -o "/tmp/arduino_build_907876/libraries/ArdOS-v09b/task.cpp.o" Compiling core... Using precompiled core Linking everything together... "/home/surya/App/arduino-1.8.4/hardware/tools/avr/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "/tmp/arduino_build_907876/semaDemo.ino.elf" "/tmp/arduino_build_907876/sketch/semaDemo.ino.cpp.o" "/tmp/arduino_build_907876/libraries/ArdOS-v09b/kernel.cpp.o" "/tmp/arduino_build_907876/libraries/ArdOS-v09b/mutex.cpp.o" "/tmp/arduino_build_907876/libraries/ArdOS-v09b/queue.cpp.o" "/tmp/arduino_build_907876/libraries/ArdOS-v09b/sema.cpp.o" "/tmp/arduino_build_907876/libraries/ArdOS-v09b/task.cpp.o" "/tmp/arduino_build_907876/../arduino_cache_536134/core/core_arduino_avr_nano_cpu_atmega328_3332c9e6b4329fe78dadfa4980f5729e.a" "-L/tmp/arduino_build_907876" -lm /home/surya/Arduino/libraries/ArdOS-v09b/kernel.cpp: In function 'OSPrioSwapFromISR': /home/surya/Arduino/libraries/ArdOS-v09b/kernel.cpp:413:21: error: local frame unavailable (naked function?) OSMakeAtomic(&sreg);

                 ^

/home/surya/Arduino/libraries/ArdOS-v09b/kernel.cpp: In function 'OSPrioSwap': /home/surya/Arduino/libraries/ArdOS-v09b/kernel.cpp:397:21: error: local frame unavailable (naked function?) OSMakeAtomic(&sreg);

                 ^

/home/surya/Arduino/libraries/ArdOS-v09b/kernel.cpp: In function 'OSSwap': /home/surya/Arduino/libraries/ArdOS-v09b/kernel.cpp:363:21: error: local frame unavailable (naked function?) OSMakeAtomic(&sreg);

                 ^

/home/surya/Arduino/libraries/ArdOS-v09b/kernel.cpp: In function '__vector_9': /home/surya/Arduino/libraries/ArdOS-v09b/kernel.cpp:430:21: error: local frame unavailable (naked function?) OSMakeAtomic(&sreg);

                 ^

lto-wrapper: /home/surya/App/arduino-1.8.4/hardware/tools/avr/bin/avr-gcc returned 1 exit status /home/surya/App/arduino-1.8.4/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status Using library ArdOS-v09b in folder: /home/surya/Arduino/libraries/ArdOS-v09b (legacy) exit status 1 Error compiling for board Arduino Nano.

Comments (0)

  1. Log in to comment