Skip to content
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

linker issues with Teensy, FastLED and Audio libs #650

Closed
Genoil opened this issue Dec 21, 2020 · 2 comments
Closed

linker issues with Teensy, FastLED and Audio libs #650

Genoil opened this issue Dec 21, 2020 · 2 comments

Comments

@Genoil
Copy link

Genoil commented Dec 21, 2020

I am using FastLED in my project on a Teensy3.6 but it fails to build. Within the context of my project I get this error:

build-teensy36/libcore.a(new.cpp.o): In function `operator delete(void*)':
new.cpp:(.text._ZdlPv+0x0): multiple definition of `operator delete(void*)'
/Applications/Teensyduino.app/Contents/Java/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/libstdc++.a(del_op.o):del_op.cc:(.text._ZdlPv+0x0): first defined here
/Applications/Teensyduino.app/Contents/Java/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld: Disabling relaxation: it will not work with multiple definitions
collect2: error: ld returned 1 exit status
make: *** [build-teensy36/LEDHandle.elf] Error 1

I decided to isolate the issue by trying to build a sketch with just this in it:

#include <FastLED.h>

void setup() { 
    CRGB leds[10];
    FastLED.addLeds<NEOPIXEL, 3>(leds, 10);  // GRB ordering is assumed
}

void loop() { 
}

and now I get:

/Applications/Teensyduino.app/Contents/Java/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/libc.a(lib_a-writer.o): In function `_write_r':
writer.c:(.text._write_r+0x12): undefined reference to `_write'
collect2: error: ld returned 1 exit status
make: *** [build-teensy36/FastLEDTest.elf] Error 1

any clue what is going on? i can do succesful builds with other libs, but with FastLED (and also with the Teensy Audio libraries), I get similar ld errors.

@Genoil
Copy link
Author

Genoil commented Dec 22, 2020

i ended up just commenting out all of new.cpp in cores/teensy3. that resolved the issue.

@Genoil Genoil closed this as completed Dec 22, 2020
@Genoil
Copy link
Author

Genoil commented Mar 11, 2021

#655

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant