Repository navigation
Description
Board / MCU
ESP32
LED Chipset
WS2812B / NeoPixel
FastLED Version
3.10.7
Arduino / PlatformIO version
Platformio 6.2.0
Operating System
Windows
Description
New 3.10.7 failed to compile my sketch that compiles with 3.10.3. Here is a link to the sketch:
https://github.com/chemdoc77/CD77_FastLED_2026/tree/main/NEOPIXEL%20Product%20Test
The above sketch is set for 3.10.3 and it compiles. If you change it to use 3.10.7, it fails.
Here is the error message:
Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/lolin_d32.html
PLATFORM: Espressif 32 (6.13.0) > WEMOS LOLIN D32
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 @ 3.20017.241212+sha.dcc1105b
- tool-esptoolpy @ 2.41100.0 (4.11.0)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 34 compatible libraries
Scanning dependencies...
Dependency Graph
|-- FastLED @ 3.10.7
Building in release mode
Compiling .pio\build\lolin_d32\lib434\FastLED\fl\build\fl.fs.sd+.cpp.o
In file included from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/sd/_build.cpp.hpp:10,
from .pio/libdeps/lolin_d32/FastLED/src/fl/build/fl.fs.sd+.cpp:18:
.pio/libdeps/lolin_d32/FastLED/src/fl/fs/sd/fs_sdcard_arduino.cpp.hpp:162:10: error: looser throw specifier for 'virtual bool fl::SDFileHandle::has_error() const'
bool has_error() const override { return false; }
^~~~~~~~~
In file included from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/fstream.h:5,
from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/fs.h:8,
from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/sd/file_system_sd.cpp.hpp:22,
from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/sd/_build.cpp.hpp:9,
from .pio/libdeps/lolin_d32/FastLED/src/fl/build/fl.fs.sd+.cpp:18:
.pio/libdeps/lolin_d32/FastLED/src/fl/fs/file_handle.h:46:18: note: overridden function is 'virtual bool fl::filebuf::has_error() const noexcept'
virtual bool has_error() const FL_NO_EXCEPT = 0;
^~~~~~~~~
In file included from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/sd/_build.cpp.hpp:10,
from .pio/libdeps/lolin_d32/FastLED/src/fl/build/fl.fs.sd+.cpp:18:
.pio/libdeps/lolin_d32/FastLED/src/fl/fs/sd/fs_sdcard_arduino.cpp.hpp:163:10: error: looser throw specifier for 'virtual void fl::SDFileHandle::clear_error()'
void clear_error() override {}
^~~~~~~~~~~
In file included from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/fstream.h:5,
from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/fs.h:8,
from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/sd/file_system_sd.cpp.hpp:22,
from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/sd/_build.cpp.hpp:9,
from .pio/libdeps/lolin_d32/FastLED/src/fl/build/fl.fs.sd+.cpp:18:
.pio/libdeps/lolin_d32/FastLED/src/fl/fs/file_handle.h:47:18: note: overridden function is 'virtual void fl::filebuf::clear_error() noexcept'
virtual void clear_error() FL_NO_EXCEPT = 0;
^~~~~~~~~~~
In file included from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/sd/_build.cpp.hpp:10,
from .pio/libdeps/lolin_d32/FastLED/src/fl/build/fl.fs.sd+.cpp:18:
.pio/libdeps/lolin_d32/FastLED/src/fl/fs/sd/fs_sdcard_arduino.cpp.hpp:164:9: error: looser throw specifier for'virtual int fl::SDFileHandle::error_code() const'
int error_code() const override { return 0; }
^~~~~~~~~~
In file included from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/fstream.h:5,
from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/fs.h:8,
from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/sd/file_system_sd.cpp.hpp:22,
from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/sd/_build.cpp.hpp:9,
from .pio/libdeps/lolin_d32/FastLED/src/fl/build/fl.fs.sd+.cpp:18:
.pio/libdeps/lolin_d32/FastLED/src/fl/fs/file_handle.h:50:17: note: overridden function is 'virtual int fl::filebuf::error_code() const noexcept'
virtual int error_code() const FL_NO_EXCEPT = 0;
^~~~~~~~~~
In file included from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/sd/_build.cpp.hpp:10,
from .pio/libdeps/lolin_d32/FastLED/src/fl/build/fl.fs.sd+.cpp:18:
.pio/libdeps/lolin_d32/FastLED/src/fl/fs/sd/fs_sdcard_arduino.cpp.hpp:165:17: error: looser throw specifier for 'virtual const char* fl::SDFileHandle::error_message() const'
const char* error_message() const override { return "No error"; }
^~~~~~~~~~~~~
In file included from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/fstream.h:5,
from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/fs.h:8,
from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/sd/file_system_sd.cpp.hpp:22,
from .pio/libdeps/lolin_d32/FastLED/src/fl/fs/sd/_build.cpp.hpp:9,
from .pio/libdeps/lolin_d32/FastLED/src/fl/build/fl.fs.sd+.cpp:18:
.pio/libdeps/lolin_d32/FastLED/src/fl/fs/file_handle.h:51:25: note: overridden function is 'virtual const char* fl::filebuf::error_message() const noexcept'
virtual const char* error_message() const FL_NO_EXCEPT = 0;
^~~~~~~~~~~~~
Compiling .pio\build\lolin_d32\lib434\FastLED\fl\build\platforms.esp.32.net+.cpp.o
*** [.pio\build\lolin_d32\lib434\FastLED\fl\build\fl.fs.sd+.cpp.o] Error 1
========================================= [FAILED]
Steps to reproduce
Ran in Platformio with FastLED 3.10.7 and it failed, Ran in Platformio with FastLED 3.10.3 and it compiled.
I used this sketch:
https://github.com/chemdoc77/CD77_FastLED_2026/tree/main/NEOPIXEL%20Product%20Test
Minimal sketch
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
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
YarosMallorca commentedon Oct 11, 2026
Can reproduce this on my instance too.
MomePP commentedon Oct 12, 2026
Same failure here with 3.10.7 from the PlatformIO registry, on a newer toolchain. So it isn't specific to GCC 8 / Arduino-ESP32 2.x:
platform-espressif3255.03.312 (Arduino-ESP32 3.3.12 / ESP-IDF 5.5.5)xtensa-esp-elf-g++14.2.0 (esp-14.2.0_20260121), default LDF mode (chain)Root cause:
fl/stl/noexcept.hdefinesFL_NO_EXCEPTasnoexcept. The pure virtuals infl/fs/file_handle.h(has_error,clear_error,error_code,error_message) are declaredFL_NO_EXCEPT.fl/fs/sd/fs_sdcard_arduino.cpp.hppdon't have it. That'sSDFileHandle, lines 162–165, and the same four inSdFatFileHandle(USE_SDFAT), lines 96–99..Why a plain sketch hits it:
FL_HAS_INCLUDE(<SD.h>) && FL_HAS_INCLUDE(<fs.h>) && FL_HAS_INCLUDE(<SPI.h>).chainmode follows the#include <SD.h>inside that guard and adds the core's SD library as a FastLED dependency. Our dependency graph showsFastLED -> SD, already on 3.10.6.SD.hon the include path, so the guard is true for sketches that never use SD.Fix: add
FL_NO_EXCEPTto all 8 overrides:With this applied to the downloaded 3.10.7, our firmware builds and runs on hardware.
Workarounds until a release:
fastled/FastLED @ 3.10.6, or-D FL_NO_EXCEPT=tobuild_flags.noexcept.honly defines the macro#ifndef, so 3.10.7 then compiles.