Skip to content

ArduinoRobot library doesn't compile #5417

@per1234

Description

@per1234

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\avr\1.6.11\cores\arduino\CDC.cpp: In function 'bool CDC_Setup(USBSetup&)':
C:\Program Files (x86)\arduino-nightly\portable\packages\arduino\hardware\avr\1.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\avr\1.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions