Skip to content

AVR Uno: multiple definition of __vector_11 when including Servo.h and FastLED.h (3.10.7) #4836

Closed

Description

@4tronix

Board / MCU

Arduino Uno (ATmega328P)

LED Chipset

WS2812B / NeoPixel

FastLED Version

3.10.7

Arduino / PlatformIO version

Arduino IDE 2.3.10

Operating System

Windows

Description

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.

Minimal sketch

#include <Servo.h>
#include <FastLED.h>

void setup() {}
void loop() {}

Serial / debug output

Checklist

  • I have searched existing issues for duplicates
  • I have tested with the latest FastLED release or git master
  • I can reproduce this with a minimal sketch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: triagetype: bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions