-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Closed
@per1234
Description
Using Arduino IDE 1.6.13 Hourly Build 2016年09月23日 03:33 with Windows 7 64 bit
Any sketch that contains the line:
#include <ArduinoRobot.h>
fails to compile with a bunch of this sort of stuff:
`osc' referenced in section `.text' of C:\Users\per\AppData\Local\Temp\ccvUoJUW.ltrans0.ltrans.o: defined in discarded section `.text' of libraries\Robot_Control\Squawk.cpp.o (symbol from plugin)
I suspect this is related to LTO, however using pre-LTO Arduino AVR Boards 1.6.11 compile still fails, even for the BareMinimum sketch:
C:\Program Files (x86)\arduino-nightly\portable\packages\arduino\hardware\avr1円.6.11\cores\arduino\CDC.cpp: In function 'bool CDC_Setup(USBSetup&)':
C:\Program Files (x86)\arduino-nightly\portable\packages\arduino\hardware\avr1円.6.11\cores\arduino\CDC.cpp:104:29: error: 'MAGIC_KEY_POS' was not declared in this scope
uint16_t magic_key_pos = MAGIC_KEY_POS;
^
C:\Program Files (x86)\arduino-nightly\portable\packages\arduino\hardware\avr1円.6.11\cores\arduino\CDC.cpp:129:34: error: 'MAGIC_KEY' was not declared in this scope
*(uint16_t *)magic_key_pos = MAGIC_KEY;
I have to go all the way back to Arduino AVR Boards 1.6.10 before it will compile.