Skip to content

Arduino/ESP8266 2.1.0 now includes __cxa_guard_* functions #266

Description

@ncaunt

As of version 2.1.0, ESP8266 core for Arduino includes the _cxa_guard* functions which conflict with those in FastLED.

I haven't yet had a chance to find a neat solution but for the time being removing the line #define NEED_CXX_BITS from platforms\esp\8266\led_sysdefs_esp8266.h fixes the issue.

Sample messages to help those searching for the error:

C:\Users\foobar\AppData\Local\Temp\buildd782c7fbc1e7873555d9cadaa1f56454.tmp/arduino.ar(abi.cpp.o): In function `__cxa_guard_acquire':

C:\Users\foobar\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/abi.cpp:67: multiple definition of `__cxa_guard_acquire'

C:\Users\foobar\AppData\Local\Temp\buildd782c7fbc1e7873555d9cadaa1f56454.tmp\libraries\FastLED\FastLED.cpp.o:C:\Program Files (x86)\Arduino\libraries\FastLED/FastLED.cpp:252: first defined here

C:\Users\foobar\AppData\Local\Temp\buildd782c7fbc1e7873555d9cadaa1f56454.tmp/arduino.ar(abi.cpp.o): In function `__cxa_guard_release':

C:\Users\foobar\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/abi.cpp:78: multiple definition of `__cxa_guard_release'

C:\Users\foobar\AppData\Local\Temp\buildd782c7fbc1e7873555d9cadaa1f56454.tmp\libraries\FastLED\FastLED.cpp.o:C:\Program Files (x86)\Arduino\libraries\FastLED/FastLED.cpp:257: first defined here

C:\Users\foobar\AppData\Local\Temp\buildd782c7fbc1e7873555d9cadaa1f56454.tmp/arduino.ar(abi.cpp.o): In function `__cxa_guard_abort':

C:\Users\foobar\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/abi.cpp:84: multiple definition of `__cxa_guard_abort'

C:\Users\foobar\AppData\Local\Temp\buildd782c7fbc1e7873555d9cadaa1f56454.tmp\libraries\FastLED\FastLED.cpp.o:C:\Program Files (x86)\Arduino\libraries\FastLED/FastLED.cpp:261: first defined here

collect2.exe: error: ld returned 1 exit status

Using library FastLED at version 3.1.1 in folder: C:\Program Files (x86)\Arduino\libraries\FastLED 
exit status 1
Error compiling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions