You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AVR Uno: multiple definition of __vector_11 when including Servo.h and FastLED.h (3.10.7) #4836
FastLED 3.10.7 fails to link when used alongside the standard Arduino Servo library on an ATmega328P.
This problem was discovered when recompiling an existing robot-controller project. I have reduced it to a minimal sketch containing only two library includes and empty setup/loop functions.
Steps to reproduce
Linker error:
libraries/FastLED/fl/build/fl.stl+.cpp.o (symbol from plugin):
In function fl::memory_resource::do_reallocate(...)': (.text+0x0): multiple definition of __vector_11'
libraries/Servo/avr/Servo.cpp.o (symbol from plugin):
(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Expected behaviour
Both libraries should compile together without a duplicate interrupt-vector definition.
Actual behaviour
Linking fails with multiple definitions of __vector_11 (Timer1 Compare Match A).
The error persists following a forced clean rebuild, with the verbose output confirming that the libraries and Arduino core were recompiled.
FastLED 3.10.5 also exhibited the problem with the original application. Downgrading to 3.10.3 allows the application to compile.
Additional observation
The verbose output shows the Arduino build system compiling numerous FastLED source files, including ESP32-related components, when targeting the Uno.
The full verbose build log is available if required.
Activity