I just upgraded from 1.6.8 to 1.6.10 and now I can't even compile blink.
I get this error:
cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin.
exit status 1
Error compiling for board Arduino Nano.
I just upgraded from 1.6.8 to 1.6.10 and now I can't even compile blink.
I get this error:
cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin.
exit status 1
Error compiling for board Arduino Nano.
Yeah.
1.6.10 and 1.6.12 avr boards package are a disaster, lots of really bad new bugs.
Use 1.6.9 with 1.6.11 avr boards.
Actually, I just got it fixed by removing and reinstalling avr boards in the boards manager.
I still have IDE 1.6.10, I had avrboards 1.6.12, so I removed it and installed avr boards 1.6.11 compiled blink and it was ok, updated to 1.6.12 again and tried a compile again and what do you know it worked. I guess the key is to update the IDE before updating avr boards, or perhaps something just went nutty in my avr boards install.
Usually this issue is caused by installing 3rd party AVR based boards via Boards Manager with Arduino AVR Boards 1.6.12 installed(Boards manager install of older avr-gcc breaks compilation for all AVR boards in 1.6.10. · Issue #142 · arduino/ArduinoCore-avr · GitHub). Some of them have fixed that but most will still cause the issue. That bug will be fixed in Arduino IDE 1.6.11.