Skip to content

Teensy 4.x CI blocked by fbuild Teensy compatibility issues #2365

Closed

Description

@zackees

Summary

Teensy 4.x CI is failing after teensy40 and teensy41 were routed through fbuild. This tracks the FastLED-side CI impact and should remain open until fbuild's Teensy path can build FastLED's Teensy 4.x examples reliably.

Current active blocker: FastLED/fbuild#176

Previous blocker, now moved forward: FastLED/fbuild#163

Current Status

Local repro on April 22, 2026 with fbuild 2.2.0:

bash compile teensy41 --examples Blink

The build now gets through the earlier missing-framework-library problem, but fails while compiling PlatformIO's cached framework-arduinoteensy 1.160.0 WireIMXRT.cpp with fbuild's generic Arm GNU 15.2.1 toolchain:

Board: Teensy 4.1 / IMXRT1062 @ 600MHz
Toolchain: arm-none-eabi-gcc 15.2.1
build error: build failed: compilation failed for ...\framework-arduinoteensy-1.160.0\...\libraries\Wire\WireIMXRT.cpp:
...\cores\teensy4\imxrt.h:1356:35: error: 'reinterpret_cast' from integer to pointer
#define IMXRT_CCM (*(IMXRT_REGISTER32_t *)IMXRT_CCM_ADDRESS)
...
WireIMXRT.cpp:425:9: note: in expansion of macro 'CCM_CCGR2'
WireIMXRT.cpp:448:9: note: in expansion of macro 'CCM_CCGR6'

Control check: the same generated project succeeds through PlatformIO:

uv run pio run --project-dir .build\pio\teensy41 -e teensy41

PlatformIO uses the same framework-arduinoteensy @ 1.160.0, but uses toolchain-gccarmnoneeabi-teensy @ 1.110301.0 (11.3.1) rather than fbuild's Arm GNU 15.2.1.

FastLED-Side Trigger

Commit cafcfb34932fcb15cf4ee29958fdef7c0a281917 added teensy40 and teensy41 to ci/compiler/fbuild_boards.py, which routes them through fbuild instead of PlatformIO:

cafcfb3

Earlier Symptoms

The first failure mode was tracked in FastLED/fbuild#163 and showed missing Teensyduino framework library headers such as:

fatal error: SPI.h: No such file or directory
#include <SPI.h>

and:

fatal error: OctoWS2811.h: No such file or directory
#include <OctoWS2811.h>

That issue appears to have moved forward in current fbuild; the active failure is now toolchain compatibility.

Possible FastLED Mitigation

If CI needs to be unblocked before fbuild is fixed, remove teensy40 and teensy41 from FBUILD_BOARDS so they fall back to PlatformIO temporarily. That should be treated as a workaround, not the final fix.

Activity

  1. zackees commented on Apr 22, 2026

    @zackees
    MemberAuthor

    Update from local repro on April 22, 2026:

    The original missing-framework-library symptom appears to have moved forward with current fbuild 2.2.0. bash compile teensy41 --examples Blink now gets through framework library discovery but still fails under fbuild while compiling PlatformIO's cached framework-arduinoteensy 1.160.0 WireIMXRT.cpp.

    Observed failure:

    Toolchain: arm-none-eabi-gcc 15.2.1
    build error: build failed: compilation failed for ...\framework-arduinoteensy-1.160.0\...\libraries\Wire\WireIMXRT.cpp:
    ...\cores\teensy4\imxrt.h:1356:35: error: 'reinterpret_cast' from integer to pointer
    #define IMXRT_CCM (*(IMXRT_REGISTER32_t *)IMXRT_CCM_ADDRESS)
    ...
    WireIMXRT.cpp:425:9: note: in expansion of macro 'CCM_CCGR2'
    WireIMXRT.cpp:448:9: note: in expansion of macro 'CCM_CCGR6'
    

    Control check: the same generated project succeeds with PlatformIO:

    uv run pio run --project-dir .build\pio\teensy41 -e teensy41

    PlatformIO uses the same framework-arduinoteensy @ 1.160.0, but uses toolchain-gccarmnoneeabi-teensy @ 1.110301.0 (11.3.1) instead of fbuild's generic Arm GNU 15.2.1.

    Current conclusion: this still looks like a fbuild-side blocker, but the blocker has changed from library discovery to Teensy toolchain compatibility. Filed the new fbuild issue as FastLED/fbuild#176.

    FastLED fallback mitigation is still the same: remove teensy40 / teensy41 from FBUILD_BOARDS until fbuild uses a Teensy-compatible toolchain or otherwise handles the GCC 15 incompatibility.

  2. changed the title [-]Teensy 4.x CI blocked by fbuild missing Teensy framework libraries[/-] [+]Teensy 4.x CI blocked by fbuild Teensy compatibility issues[/+] on Apr 22, 2026
  3. zackees commented on May 29, 2026

    @zackees
    MemberAuthor

    Status update — 2026-05-29

    The active blocker has moved forward again. The two previous compile-stage failures (FastLED/fbuild#163 missing SPI.h, FastLED/fbuild#176 WireIMXRT toolchain) are both fixed, but a new link-stage failure now blocks every teensy41 example.

    Filed as FastLED/fbuild#284: SPI framework library compiled but not linked — undefined reference to SPIClass::transfer/begin/end, undefined reference to SPI (global), undefined reference to SPIClass::setSCK/setMOSI.

    Current scope of breakage

    • Every example fails identically at link, not just SPI-using ones (FastLED's Teensy 4.x platform headers pull SPI transitively).
    • bash compile teensy41 all → 100% failure across AnalogOutput, Animartrix, AnimartrixRing, Apa102, Apa102HD, Async, Audio, AudioFftParity, AudioInput, AudioReactive, … (verified in feat(hooks): block spurious new example .ino creation #2537's CI log).
    • teensy41 master CI has not produced a single passing run in the last 100 attempts (back to at least 2026-05-12) — over two weeks red.

    Pinned fbuild version

    pyproject.toml is at fbuild==2.2.7. Toolchain in failing run is arm-none-eabi-gcc 11.3.1 (PlatformIO-pinned — the toolchain compat work from FastLED/fbuild#176 is intact).

    Recent failing run

    #2537, job 78578752067, run 26659643188.

    Note on pyproject pin comment

    The fbuild==2.2.7 pin comment currently reads:

    Pin to an fbuild release that includes the Teensy framework library AutoResearch and PARLIO validation (FastLED/fbuild#273).

    FastLED/fbuild#273 is actually about ESP32-P4 include paths, not Teensy framework libraries — that comment is stale/misleading and should be retargeted once FastLED/fbuild#284 lands.

    🤖 Posted by Claude Code after investigating #2537 CI failure.

  4. zackees commented on May 30, 2026

    @zackees
    MemberAuthor

    Resolved — teensy41 CI is green ✅

    End-to-end fix verified on master:

    The pyproject.toml pin comment was also retargeted in #2551 to reference the correct issue (FastLED/fbuild#284) instead of the stale FastLED/fbuild#273 (ESP32-P4 paths, unrelated to Teensy).

    Closing.

    🤖 Closed by Claude Code.

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