Repository navigation
Description
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 BlinkThe 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 teensy41PlatformIO 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:
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
zackees commentedon Apr 22, 2026
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 Blinknow gets through framework library discovery but still fails under fbuild while compiling PlatformIO's cachedframework-arduinoteensy 1.160.0WireIMXRT.cpp.Observed failure:
Control check: the same generated project succeeds with PlatformIO:
PlatformIO uses the same
framework-arduinoteensy @ 1.160.0, but usestoolchain-gccarmnoneeabi-teensy @ 1.110301.0 (11.3.1)instead of fbuild's generic Arm GNU15.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/teensy41fromFBUILD_BOARDSuntil fbuild uses a Teensy-compatible toolchain or otherwise handles the GCC 15 incompatibility.[-]Teensy 4.x CI blocked by fbuild missing Teensy framework libraries[/-][+]Teensy 4.x CI blocked by fbuild Teensy compatibility issues[/+]zackees commentedon May 29, 2026
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 everyteensy41example.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
SPItransitively).bash compile teensy41 all→ 100% failure acrossAnalogOutput,Animartrix,AnimartrixRing,Apa102,Apa102HD,Async,Audio,AudioFftParity,AudioInput,AudioReactive, … (verified in feat(hooks): block spurious new example .ino creation #2537's CI log).teensy41master 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.tomlis atfbuild==2.2.7. Toolchain in failing run isarm-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.7pin comment currently reads:FastLED/fbuild#273is 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.
fix(teensy): nested project headers must not shadow framework libs (#284
chore: bump version to 2.2.9 (#287)
zackees commentedon May 30, 2026
Resolved — teensy41 CI is green ✅
End-to-end fix verified on master:
filter_framework_libs_shadowed_by_projectnow uses Arduino-spec-correct top-level include resolution instead of recursively lowercasing every nested header basename. FastLED's nestedsrc/fl/channels/spi.handsrc/fl/chipsets/spi.hno longer falsely shadow the frameworkSPIlibrary.fbuild==2.2.7→fbuild==2.2.9.teensy41run 26669815880 on commit 84633f6 — SUCCESS (first green teensy41 master run since at least 2026-05-12, ~18+ days of continuous red).The
pyproject.tomlpin 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.