Skip to content

Arduino Uno Q compilation error #4416

Closed

Description

@Simon34545

Board / MCU

STM32 (Bluepill)

LED Chipset

WS2812B / NeoPixel

FastLED Version

git master

Arduino / PlatformIO version

Arduino IDE 2.3.9

Operating System

Windows

Description

FastLED is still not working on Arduino UNO Q, even after installing from git master.

Steps to reproduce

Create an empty sketch and include FastLED.h, then press upload.

Minimal sketch

#include <FastLED.h>

void setup() {
  
}

void loop() {
 
}

Serial / debug output

In file included from C:\Users\Simon\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\1.0.0\variants\arduino_uno_q_stm32u585xx/llext-edk/include/zephyr/include/zephyr/sys/atomic.h:18,
                 from C:\Users\Simon\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\1.0.0\variants\arduino_uno_q_stm32u585xx/llext-edk/include/zephyr/include/zephyr/kernel_includes.h:25,
                 from C:\Users\Simon\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\1.0.0\variants\arduino_uno_q_stm32u585xx/llext-edk/include/zephyr/include/zephyr/kernel.h:17,
                 from C:\Users\Simon\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\1.0.0\cores\arduino/Arduino.h:15,
                 from C:\Users\Simon\Documents\Arduino\libraries\FastLED\src/fl/system/arduino.h:7,
                 from C:\Users\Simon\Documents\Arduino\libraries\FastLED\src\fl\build\fl.gfx+.cpp:7:
C:\Users\Simon\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\1.0.0\variants\arduino_uno_q_stm32u585xx/llext-edk/include/zephyr/include/zephyr/sys/util.h:385:51: error: expected unqualified-id before '{' token
  385 | #define _minmax3_unique(op, a, b, c, ua, ub, uc) ({ \
      |                                                   ^
C:\Users\Simon\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\1.0.0\variants\arduino_uno_q_stm32u585xx/llext-edk/include/zephyr/include/zephyr/sys/util.h:393:9: note: in expansion of macro '_minmax3_unique'
  393 |         _minmax3_unique(op, a, b, c,              \
      |         ^~~~~~~~~~~~~~~
C:\Users\Simon\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\1.0.0\variants\arduino_uno_q_stm32u585xx/llext-edk/include/zephyr/include/zephyr/sys/util.h:465:23: note: in expansion of macro '_minmax3_cnt'
  465 | #define min3(a, b, c) _minmax3_cnt(Z_INTERNAL_MIN, a, b, c, __COUNTER__)
      |                       ^~~~~~~~~~~~
C:\Users\Simon\Documents\Arduino\libraries\FastLED\src/fl/gfx/rgbw.cpp.hpp:56:11: note: in expansion of macro 'min3'
   56 | inline u8 min3(u8 a, u8 b, u8 c) {
      |           ^~~~
C:\Users\Simon\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\1.0.0\variants\arduino_uno_q_stm32u585xx/llext-edk/include/zephyr/include/zephyr/sys/util.h:385:51: error: expected ')' before '{' token
  385 | #define _minmax3_unique(op, a, b, c, ua, ub, uc) ({ \
      |                                                  ~^
C:\Users\Simon\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\1.0.0\variants\arduino_uno_q_stm32u585xx/llext-edk/include/zephyr/include/zephyr/sys/util.h:393:9: note: in expansion of macro '_minmax3_unique'
  393 |         _minmax3_unique(op, a, b, c,              \
      |         ^~~~~~~~~~~~~~~
C:\Users\Simon\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\1.0.0\variants\arduino_uno_q_stm32u585xx/llext-edk/include/zephyr/include/zephyr/sys/util.h:465:23: note: in expansion of macro '_minmax3_cnt'
  465 | #define min3(a, b, c) _minmax3_cnt(Z_INTERNAL_MIN, a, b, c, __COUNTER__)
      |                       ^~~~~~~~~~~~
C:\Users\Simon\Documents\Arduino\libraries\FastLED\src/fl/gfx/rgbw.cpp.hpp:56:11: note: in expansion of macro 'min3'
   56 | inline u8 min3(u8 a, u8 b, u8 c) {
      |           ^~~~
C:\Users\Simon\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\1.0.0\variants\arduino_uno_q_stm32u585xx/llext-edk/include/zephyr/include/zephyr/sys/util.h:390:10: error: expected unqualified-id before ')' token
  390 |         })
      |          ^
C:\Users\Simon\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\1.0.0\variants\arduino_uno_q_stm32u585xx/llext-edk/include/zephyr/include/zephyr/sys/util.h:393:9: note: in expansion of macro '_minmax3_unique'
  393 |         _minmax3_unique(op, a, b, c,              \
      |         ^~~~~~~~~~~~~~~
C:\Users\Simon\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\1.0.0\variants\arduino_uno_q_stm32u585xx/llext-edk/include/zephyr/include/zephyr/sys/util.h:465:23: note: in expansion of macro '_minmax3_cnt'
  465 | #define min3(a, b, c) _minmax3_cnt(Z_INTERNAL_MIN, a, b, c, __COUNTER__)
      |                       ^~~~~~~~~~~~
C:\Users\Simon\Documents\Arduino\libraries\FastLED\src/fl/gfx/rgbw.cpp.hpp:56:11: note: in expansion of macro 'min3'
   56 | inline u8 min3(u8 a, u8 b, u8 c) {
      |           ^~~~
Multiple libraries were found for "Arduino_RouterBridge.h"
  Used: C:\Users\Simon\Documents\Arduino\libraries\Arduino_RouterBridge
  Not used: C:\Users\Simon\AppData\Local\Arduino15\packages\arduino\hardware\zephyr\1.0.0\libraries\stubs
exit status 1

Compilation error: exit status 1

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

Activity

  1. added
    status: triage
    type: bug
    on Sep 13, 2026
  2. Simon34545 commented on Sep 13, 2026

    @Simon34545
    Author

    I think what's happening is that one of the internal arduino zephyr libraries already defines min3 as a macro.
    I was able to fix it for my own use by adding #undef min3 to src/fl/gfx/rgbw.cpp.hpp

  3. added a commit that references this issue on Sep 18, 2026
    b5eb3b8
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

    status: triagetype: bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions