Skip to content

P0: restore PlatformIO fallback for Teensy 3.x/LC until fbuild handles bundled FastLED cleanly #2398

Closed

Description

@zackees

Summary

master regressed on April 23, 2026 when commit 82afa960b1ab62b3dcad803e5568041f470db684 changed board builds to use fbuild unconditionally. That exposed an existing incompatibility on Teensy 3.x/LC boards and broke CI immediately after.

Failing run:

Why this regressed now

82afa960b1ab62b3dcad803e5568041f470db684 removed the previous board allowlist / fallback logic and forced use_fbuild=True for all board builds.

That commit also deleted ci/compiler/fbuild_boards.py, whose comments explicitly documented that these boards were not supported by fbuild:

  • teensy30..36, teensylc -- no Cortex-M7

So the regression is not caused by 9c1377a... itself. The breakage was introduced on April 23, 2026 by routing previously unsupported Teensy boards through fbuild.

Observed failure

The Linux CI job links FastLED twice for teensy30:

  • project copy: trusted/.build/pio/teensy30/lib/FastLED/...
  • framework/bundled copy: .../dl-framework-arduinoteensy-1.160.0/.../libraries/FastLED/src/FastLED.cpp

The link step then fails with multiple definitions such as:

  • multiple definition of 'CFastLED::CFastLED()'
  • multiple definition of 'FastLED'
  • multiple definition of 'set_max_power_in_volts_and_milliamps(...)'

The same log also shows ODR warnings between the checked-out FastLED headers and the framework-bundled FastLED headers, which confirms two different FastLED copies are being compiled into the same build.

P0 fix

Restore the pre-82afa960b1 behavior for unsupported boards immediately:

  • do not route Teensy 3.x / LC boards through fbuild yet
  • reintroduce a board allowlist or explicit denylist so these boards use PlatformIO again

That should get master green again without waiting on a deeper fbuild/platform fix.

Follow-up

Longer term, fbuild should either:

  • ignore the framework-bundled libraries/FastLED when a project-local lib/FastLED is present, or
  • fail early with a clear unsupported-board error for Teensy 3.x/LC instead of reaching the linker

Minimal repro

./compile --no-interactive --no-parallel --max-failures 1 teensy30 AnalogOutput

Activity

  1. added
    type: bug
    type: regression
    priority: critical
    platform: teensy
    area: ci
    on Apr 24, 2026
  2. zackees commented on Apr 24, 2026

    @zackees
    MemberAuthor

    Upstream fix is now tracked in \FastLED/fbuild#199\.

    Downstream propagation / consume-the-fixed-fbuild tracking is in \#2403\.

    That splits the work into:

  3. zackees commented on Apr 24, 2026

    @zackees
    MemberAuthor

    Narrowing / partial resolution update.

    Original P0 symptom (duplicate-FastLED link error) is RESOLVED by fbuild v2.2.3 (FastLED/fbuild#198), consumed in 8eb52e1. Verified on master:

    • teensy31 / teensy32 / teensy40 / teensy41: ✅ pass via fbuild
    • Link logs no longer pull in framework-arduinoteensy/libraries/FastLED — only project-local lib/FastLED is compiled
    • No more multiple definition of CFastLED::CFastLED() / multiple definition of FastLED / multiple definition of set_max_power_in_volts_and_milliamps(...) errors

    Remaining failures on teensy30 and teensyLC are a different problem — the all target sweep compiles example sketches that exceed available RAM:

    • teensy30 (16KB RAM): section '.dmabuffers' will not fit in region 'RAM' — overflow by ~22400 bytes on many examples
    • teensyLC (8KB RAM): section '.bss' will not fit in region 'RAM' — overflow by ~1.7–2.4KB on various examples

    These are not fbuild/library-selection bugs — they are legitimate capacity constraints on the smallest Teensy targets. The right fix is scoping the example sweep for teensy30/teensyLC (explicit allowlist of sketches that fit, or size-based expected-failure handling), not restoring PlatformIO fallback.

    Closing — original regression is fixed. Will file a scoped follow-up for the teensy30 / teensyLC example-set trimming work. #2403 closed (exit criteria met).

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

    area: ciplatform: teensypriority: criticaltype: bugtype: regression

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions