Go Down

Topic: Realease 1.6.10 (Read 316 times) previous topic - next topic

chrisaclark

I have installed the latest IDE and the standard blink program no longer compiles....any ideas?  Verbose compile output below

Arduino: 1.6.10 (Windows 7), Board: "Arduino/Genuino Uno"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\lenovo\AppData\Local\Arduino15\packages" -hardware "C:\Users\lenovo\Documents\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\lenovo\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\lenovo\Documents\Arduino\libraries" -fqbn=arduino:avr:uno -ide-version=10610 -build-path "C:\Users\lenovo\AppData\Local\Temp\buildee08eba6a4f19b9ba928c0ea007e9925.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\lenovo\Documents\Arduino\Blink\Blink.ino"
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\lenovo\AppData\Local\Arduino15\packages" -hardware "C:\Users\lenovo\Documents\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\lenovo\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\lenovo\Documents\Arduino\libraries" -fqbn=arduino:avr:uno -ide-version=10610 -build-path "C:\Users\lenovo\AppData\Local\Temp\buildee08eba6a4f19b9ba928c0ea007e9925.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\lenovo\Documents\Arduino\Blink\Blink.ino"
Using board 'uno' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Warning: Board Arduino_STM32-master:STM32F3:discovery_f3 doesn't define a 'build.board' preference. Auto-set to: STM32F3_DISCOVERY_F3
Warning: Board Arduino_STM32-master:STM32F4:discovery_f407 doesn't define a 'build.board' preference. Auto-set to: STM32F4_DISCOVERY_F407
WARNING: Category '' in library OneWire is not valid. Setting to 'Uncategorized'
Detecting libraries used...
"C:\Users\lenovo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5/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=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\lenovo\AppData\Local\Temp\buildee08eba6a4f19b9ba928c0ea007e9925.tmp\sketch\Blink.ino.cpp" -o "nul"
"C:\Users\lenovo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5/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=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\lenovo\AppData\Local\Temp\buildee08eba6a4f19b9ba928c0ea007e9925.tmp\sketch\Blink.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Users\lenovo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5/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=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\lenovo\AppData\Local\Temp\buildee08eba6a4f19b9ba928c0ea007e9925.tmp\sketch\Blink.ino.cpp" -o "C:\Users\lenovo\AppData\Local\Temp\buildee08eba6a4f19b9ba928c0ea007e9925.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\lenovo\AppData\Local\Temp\buildee08eba6a4f19b9ba928c0ea007e9925.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Users\lenovo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5/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=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\lenovo\AppData\Local\Temp\buildee08eba6a4f19b9ba928c0ea007e9925.tmp\sketch\Blink.ino.cpp" -o "C:\Users\lenovo\AppData\Local\Temp\buildee08eba6a4f19b9ba928c0ea007e9925.tmp\sketch\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
"C:\Users\lenovo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\wiring_pulse.S" -o "C:\Users\lenovo\AppData\Local\Temp\buildee08eba6a4f19b9ba928c0ea007e9925.tmp\core\wiring_pulse.S.o"
"C:\Users\lenovo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\WInterrupts.c" -o "C:\Users\lenovo\AppData\Local\Temp\buildee08eba6a4f19b9ba928c0ea007e9925.tmp\core\WInterrupts.c.o"
cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin.

exit status 1
Error compiling for board Arduino/Genuino Uno.

pert

The problem is that Arduino AVR Boards 1.6.12 included with Arduino IDE 1.6.10 requires avr-gcc v4.9.2-atmel3.5.3-arduino2 and is not compatible with the v4.8.1-arduino5 you have installed. If you delete the folder C:\Users\lenovo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc and then restart the Arduino IDE it should use the correct version that is included with the IDE instead.

Did you install any 3rd party boards using Boards Manager using Arduino IDE 1.6.10?

ballscrewbob

Would suggest using IDE 1.6.9 or 1.6.5 myself.
Those are more stable releases and work very well here under win 7 x64 pro.

You could also try running an unzipped version directly from the unzip folder which also works quite well.
All you need to do for that is set up a shortcut.
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

chrisaclark

Many thanks for speedy help and accurate diagnosis, that now compiles OK but still with the warning about the 32bit M3. 

Yes I have previously added support for M3 and I use the boards manager to update it in the hope of getting rid of the error

Chris

pert

still with the warning about the 32bit M3.
That warning can be safely ignored. I see in the Arduino-STM32 repository they have already fixed those warnings:
https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/master/STM32F3/boards.txt#L30
https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/master/STM32F4/boards.txt#L60
You must have an old version installed. What Boards Manager URL did you use, I don't see one listed on that repository, they just say to install the Arduino Due Boards using it.

I use the boards manager to update it in the hope of getting rid of the error
That shouldn't have caused the old version of avr-gcc to be installed. Did you install anything else using Boards Manager? This is the issue I suspect caused it: https://github.com/arduino/Arduino/issues/5168. Could be most any AVR based core, not necessarily only attiny.

chrisaclark

Again many thanks @pert for your speedy and knowledgeable help!

Chris

Go Up