New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile on ESP 32 (__cxa_pure_virtual) #525

Open
axwell opened this Issue Nov 19, 2017 · 6 comments

Comments

Projects
None yet
3 participants
@axwell

axwell commented Nov 19, 2017

Hello,
can't compile any example on ESP32.
IDE: AtomIO

Error:

c:/users/afdin/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp
32-elf/lib\libstdc++.a(pure.o):pure.cc:(.text.__cxa_pure_virtual+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
*** [.pioenvs\featheresp32\firmware.elf] Error 1

Any ideas ?

@focalintent

This comment has been minimized.

Show comment
Hide comment
@focalintent

focalintent Nov 21, 2017

Member

@samguyer any thoughts? (Note: technically the arduino IDE is the only one that's tested/supported for building FastLED)

Member

focalintent commented Nov 21, 2017

@samguyer any thoughts? (Note: technically the arduino IDE is the only one that's tested/supported for building FastLED)

@samguyer

This comment has been minimized.

Show comment
Hide comment
@samguyer

samguyer Nov 21, 2017

Contributor

No idea. I've only used the Arduino IDE.
@axwell , can you compile other ESP32 applications that don't use FastLED?

Contributor

samguyer commented Nov 21, 2017

No idea. I've only used the Arduino IDE.
@axwell , can you compile other ESP32 applications that don't use FastLED?

@samguyer

This comment has been minimized.

Show comment
Hide comment
@samguyer

samguyer Nov 21, 2017

Contributor

There is a discussion on Stack Overflow about this error:

https://stackoverflow.com/questions/920500/what-is-the-purpose-of-cxa-pure-virtual

It looks like FastLED defines the __cxa_pure_virtual function (in FastLED.cpp), which then conflicts with the one in the standard library.

@focalintent Is there a way to add some conditional directive around these definitions? I'm just not sure what the right test would be.

Contributor

samguyer commented Nov 21, 2017

There is a discussion on Stack Overflow about this error:

https://stackoverflow.com/questions/920500/what-is-the-purpose-of-cxa-pure-virtual

It looks like FastLED defines the __cxa_pure_virtual function (in FastLED.cpp), which then conflicts with the one in the standard library.

@focalintent Is there a way to add some conditional directive around these definitions? I'm just not sure what the right test would be.

@focalintent

This comment has been minimized.

Show comment
Hide comment
@focalintent

focalintent Nov 21, 2017

Member

They’re already guarded by an ifdef - something like NEED_CXX_BITS or Some such.

Member

focalintent commented Nov 21, 2017

They’re already guarded by an ifdef - something like NEED_CXX_BITS or Some such.

@axwell

This comment has been minimized.

Show comment
Hide comment
@axwell

axwell Nov 21, 2017

@samguyer I can compile other applications.
This pull request fixed the issue: #495
After this fix LEDS are not responding, and this pull request fixed issue: https://github.com/samguyer/FastLED/blob/master/platforms/esp/32/clockless_esp32.h
Discussinon over here: #504
Now everithing is working perfectly.

axwell commented Nov 21, 2017

@samguyer I can compile other applications.
This pull request fixed the issue: #495
After this fix LEDS are not responding, and this pull request fixed issue: https://github.com/samguyer/FastLED/blob/master/platforms/esp/32/clockless_esp32.h
Discussinon over here: #504
Now everithing is working perfectly.

@samguyer

This comment has been minimized.

Show comment
Hide comment
@samguyer

samguyer Nov 21, 2017

Contributor

@axwell Great! Happy blinking!

Contributor

samguyer commented Nov 21, 2017

@axwell Great! Happy blinking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment