Skip to content

Track upstream fbuild Teensy 3.x/LC FastLED-shadowing fix and propagate downstream #2403

Closed

Description

@zackees

Summary

This issue tracks consuming the upstream fbuild fix for the Teensy 3.x / LC duplicate-FastLED build failure and propagating it back into FastLED.

Upstream bug:

  • FastLED/fbuild#199 — prefer project-local lib/FastLED over the bundled Teensy framework copy on Teensy 3.x/LC

Existing downstream regression context:

  • #2398 documents the immediate FastLED CI failure after routing Teensy 3.x / LC board builds through fbuild unconditionally.

What this issue tracks

Once the upstream fbuild fix lands and is released:

  • update FastLED to consume the fixed fbuild
  • keep or re-enable Teensy 3.x / LC on the fbuild board-build path
  • add or keep downstream regression coverage so this does not silently regress again

Exit criteria

  • upstream FastLED/fbuild#199 is closed with a real fix
  • FastLED is using a version that contains that fix
  • Teensy 3.x / LC board builds pass through the intended fbuild path in FastLED CI
  • #2398 can be closed or narrowed to any remaining downstream-only work

Activity

  1. zackees commented on Apr 24, 2026

    @zackees
    MemberAuthor

    Exit criteria met — closing.

    Upstream fix: FastLED/fbuild#199 closed by FastLED/fbuild#198 ("teensy: prefer local FastLED over framework FastLED"). The Teensy framework-library selector now prefers project-local lib/FastLED over the bundled framework-arduinoteensy/libraries/FastLED copy, eliminating the duplicate-compilation path.

    Downstream consumption: FastLED pinned to fbuild==2.2.3 in pyproject.toml (8eb52e1).

    CI verification on master @ 8eb52e1 (first run with v2.2.3):

    • teensy31: ✅ pass
    • teensy32: ✅ pass
    • teensy40 / teensy41: ✅ pass
    • teensy30: ❌ fails — but with region RAM' overflowed by 22400 bytes, not the duplicate-definition link error
    • teensyLC: ❌ fails — .bss overflow by ~2KB, not the duplicate-definition link error

    The original "multiple definition of CFastLED::CFastLED()" / "multiple definition of FastLED" symptoms are gone. Link logs for teensyLC now only reference trusted/.build/pio/teensylc/lib/FastLED/... — the bundled framework-arduinoteensy/libraries/FastLED path is no longer being compiled.

    Remaining teensy30/teensyLC failures are a separate RAM-capacity issue (Teensy 3.0 = 16KB RAM, TeensyLC = 8KB RAM; the all example sweep pulls in sketches that simply don't fit). That will be tracked in a narrowed follow-up on #2398.

  2. zackees commented on Apr 24, 2026

    @zackees
    MemberAuthor

    Closing: upstream fix consumed and verified.

    Verification

    • upstream fix FastLED/fbuild#199 landed via FastLED/fbuild#198 (merged 2026-04-24T16:05:21Z)
    • fbuild v2.2.3 released 2026-04-24T16:39:16Z contains that fix
    • FastLED pyproject.toml pins fbuild==2.2.3
    • Teensy 3.x/LC builds go through fbuild unconditionally (ci/compiler/compilation_orchestrator.py has BOARD_BUILDS_USE_FBUILD = True, no denylist)
    • current CI logs for teensy30 / teensyLC show no multiple definition of 'CFastLED::CFastLED()' / multiple definition of 'FastLED' link errors and no bundled framework-arduinoteensy/.../libraries/FastLED compilation — the library-selector fix is working as intended

    Remaining Teensy 3.0 / LC CI red-ness is a separate problem

    teensy30 / teensyLC still fail in CI, but with a different signature:

    ld: firmware.elf section `.dmabuffers' will not fit in region `RAM'
    ld: region `RAM' overflowed by 22404 bytes        (teensy30 AnalogOutput)
    ld: region `RAM' overflowed by 1708–2424 bytes    (teensyLC, multiple examples)
    

    That is a binary-size / static-allocation regression against the tiny Teensy 3.0 (16 KB RAM) and Teensy LC (8 KB RAM) targets, not an fbuild library-selection bug. Tracked separately so this issue can close cleanly.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions