#26365·qmk_firmware

[Bug] splitkb/halcyon/elora/rev2 fails to compile

Author: MiroPalmuCreated Jul 27, 2026Updated Jul 28, 2026
Labelsbughelp wanted

Describe the Bug

At current master (a53ce75641) make splitkb/halcyon/elora/rev2:default I get following compilation error:

QMK Firmware 0.33.11
Making splitkb/halcyon/elora/rev2 with keymap default

arm-none-eabi-gcc (GCC) 12.3.1 20230626 (12.3.rel1)
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiling: keyboards/splitkb/halcyon/elora/rev2/rev2.c                                             In file included from ./lib/pico-sdk/src/rp2040/hardware_structs/include/hardware/structs/clocks.h:12,
                 from ./lib/pico-sdk/src/rp2_common/hardware_clocks/include/hardware/clocks.h:11,
                 from ./lib/chibios/os/hal/ports/RP/RP2040/hal_lld.h:34,
                 from ./lib/chibios/os/hal/include/hal.h:263,
                 from platforms/chibios/platform_deps.h:18,
                 from quantum/quantum.h:18,
                 from keyboards/splitkb/halcyon/elora/rev2/rev2.c:4:
./lib/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h: In function 'xip_alias_check_addr':
./lib/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:94:19: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
   94 |     uint32_t rc = (uintptr_t)addr;
      |                   ^
./lib/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h: In function 'hw_set_bits':
./lib/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:84:36: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
   84 | #define hw_alias_check_addr(addr) ((uintptr_t)(addr))
      |                                    ^
./lib/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:100:67: note: in expansion of macro 'hw_alias_check_addr'
  100 | #define hw_set_alias_untyped(addr) ((void *)(REG_ALIAS_SET_BITS | hw_alias_check_addr(addr)))
      |                                                                   ^~~~~~~~~~~~~~~~~~~
./lib/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:122:19: note: in expansion of macro 'hw_set_alias_untyped'
  122 |     *(io_rw_32 *) hw_set_alias_untyped((volatile void *) addr) = mask;
      |                   ^~~~~~~~~~~~~~~~~~~~
./lib/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h: In function 'hw_clear_bits':
./lib/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:84:36: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
   84 | #define hw_alias_check_addr(addr) ((uintptr_t)(addr))
      |                                    ^
./lib/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:101:69: note: in expansion of macro 'hw_alias_check_addr'
  101 | #define hw_clear_alias_untyped(addr) ((void *)(REG_ALIAS_CLR_BITS | hw_alias_check_addr(addr)))
      |                                                                     ^~~~~~~~~~~~~~~~~~~
./lib/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:132:19: note: in expansion of macro 'hw_clear_alias_untyped'
  132 |     *(io_rw_32 *) hw_clear_alias_untyped((volatile void *) addr) = mask;
      |                   ^~~~~~~~~~~~~~~~~~~~~~
./lib/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h: In function 'hw_xor_bits':
./lib/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:84:36: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
   84 | #define hw_alias_check_addr(addr) ((uintptr_t)(addr))
      |                                    ^
./lib/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:102:67: note: in expansion of macro 'hw_alias_check_addr'
  102 | #define hw_xor_alias_untyped(addr) ((void *)(REG_ALIAS_XOR_BITS | hw_alias_check_addr(addr)))
      |                                                                   ^~~~~~~~~~~~~~~~~~~
./lib/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:142:19: note: in expansion of macro 'hw_xor_alias_untyped'
  142 |     *(io_rw_32 *) hw_xor_alias_untyped((volatile void *) addr) = mask;
      |                   ^~~~~~~~~~~~~~~~~~~~
./lib/pico-sdk/src/rp2040/hardware_structs/include/hardware/structs/clocks.h: At top level:
./lib/pico-sdk/src/rp2040/hardware_structs/include/hardware/structs/clocks.h:324:25: error: expected ')' before '==' token
  324 | static_assert( CLK_COUNT == 10, "");
      |                         ^~~
      |                         )
cc1: all warnings being treated as errors
 [ERRORS]
 | 
 | 
 | 
make[1]: *** [builddefs/common_rules.mk:369: .build/obj_splitkb_halcyon_elora_rev2_default/keyboards/splitkb/halcyon/elora/rev2/rev2.o] Error 1
make: *** [Makefile:400: splitkb/halcyon/elora/rev2:default] Error 1
Make finished with errors

What is weird is that I get this even after checking out to the commit which adds splitkb/halcyon/elora/rev2 (01354fffb4) (after running qmk git-submodule).

Keyboard Used

splitkb/halcyon/elora/rev2

Link to product page (if applicable)

https://splitkb.com/products/halcyon-elora

Operating System

Linux (Guix System)

qmk doctor Output

Ψ QMK Doctor is checking your environment.
Ψ Python version: 3.12.12
Ψ CLI version: 1.2.0
Ψ QMK home: /home/miro/data/scratch/qmk_firmware
Ψ Detected Linux (Guix System).
⚠ Missing udev rules for QMK boards. Please run 'util/install_udev.sh' to install the rules
Ψ Testing userspace candidate: /home/miro/repos/qmk_userspace -- Valid `qmk.json`
Ψ QMK userspace: /home/miro/repos/qmk_userspace
Ψ Userspace enabled: True
Ψ Git branch: master
Ψ Repo version: 0.33.11
Ψ - Latest master: 2026-07-24 22:32:16 +0200 (a53ce75641) -- [Keyboard] Add Mithril (#26212)
Ψ - Latest upstream/master: 2026-07-24 22:32:16 +0200 (a53ce75641) -- [Keyboard] Add Mithril (#26212)
Ψ - Latest upstream/develop: None
Ψ - Common ancestor with upstream/master: 2026-07-24 22:32:16 +0200 (a53ce75641) -- [Keyboard] Add Mithril (#26212)
Ψ - Common ancestor with upstream/develop: None
Ψ All dependencies are installed.
Ψ Found arm-none-eabi-gcc version 12.3.1
Ψ Successfully compiled using arm-none-eabi-gcc
Ψ Successfully tested arm-none-eabi-binutils using arm-none-eabi-size
Ψ Found avr-gcc version 12.5.0
Ψ Successfully compiled using avr-gcc
Ψ Successfully tested avr-binutils using avr-size
Ψ Found avrdude version 8.
Ψ Found dfu-programmer version 1.1.0
Ψ Found dfu-util version 0.11
Ψ Found diff version 3.12
Ψ Found dos2unix version 7.5.2
Ψ Found git version 2.50.0
Ψ Found make version 4.4.1
Ψ Submodules are up to date.
Ψ Submodule status:
Ψ - lib/chibios: 2026-04-04 07:15:17 +0000 --  (6170ddf92d)
Ψ - lib/chibios-contrib: 2026-02-16 12:09:51 +0100 --  (5a9ad82b)
Ψ - lib/googletest: 2025-02-07 11:04:56 -0500 --  (6910c9d9)
Ψ - lib/lufa: 2022-08-26 12:09:55 +1000 --  (549b97320)
Ψ - lib/vusb: 2022-06-13 09:18:17 +1000 --  (819dbc1)
Ψ - lib/printf: 2022-06-29 23:59:58 +0300 --  (c2e3b4e)
Ψ - lib/pico-sdk: 2025-04-20 21:24:29 +1000 --  (d0c5cac)
Ψ - lib/lvgl: 2022-04-11 04:44:53 -0600 --  (e19410f8)
Ψ QMK is ready to go, but minor problems were found

Is AutoHotKey / Karabiner installed

  • AutoHotKey (Windows)
  • Karabiner (macOS)

Other keyboard-related software installed

No response

Additional Context

No response