Keychron / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
735 stars 989 forks source link

[Bug] Can't compile q1 he (ARM Mac M3 14.6.1) #319

Closed jasondamour closed 3 hours ago

jasondamour commented 3 hours ago

Describe the Bug

➜  qmk setup                                 
Ψ Found qmk_firmware at /Users/jasondamour/Workspace/Personal/keyboards/keychron.
Ψ QMK Doctor is checking your environment.
Ψ CLI version: 1.1.5
Ψ QMK home: /Users/jasondamour/Workspace/Personal/keyboards/keychron
Ψ Detected macOS 14.6.1 (Apple Silicon).
Ψ Userspace enabled: False
Ψ Git branch: hall_effect_playground
Ψ Repo version: 0.23.1
Ψ - Latest hall_effect_playground: 2024-10-08 10:21:47 +0800 (ab261fb4cd) -- Added K2 HE
Ψ - Latest upstream/master: 2024-10-24 22:35:53 -0700 (32b6faaf35) -- Add Vanguard65 Keyboard (#24497)
Ψ - Latest upstream/develop: 2024-10-25 18:11:51 +0100 (f5b495e06e) -- Move pointing device driver code (#24445)
Ψ - Common ancestor with upstream/master: 2023-12-18 13:53:02 +1100 (9539f135d8) -- Remove obvious user keymaps, `keyboards/[0-9]*` edition. (#22691)
Ψ - Common ancestor with upstream/develop: 2023-12-18 13:53:02 +1100 (9539f135d8) -- Remove obvious user keymaps, `keyboards/[0-9]*` edition. (#22691)
Ψ CLI installed in virtualenv.
Ψ All dependencies are installed.
Ψ Found arm-none-eabi-gcc version 14.2.0
Ψ Found avr-gcc version 8.5.0
Ψ Found avrdude version 8.0
Ψ Found dfu-programmer version 1.1.0
Ψ Found dfu-util version 0.11
Ψ Submodules are up to date.
Ψ Submodule status:
Ψ - lib/chibios: 2024-01-10 10:36:30 +0800 --  (86a3ed9ba)
Ψ - lib/chibios-contrib: 2023-07-17 11:39:05 +0200 --  (da78eb37)
Ψ - lib/googletest: 2021-06-11 06:37:43 -0700 --  (e2239ee6)
Ψ - 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: 2023-02-12 20:19:37 +0100 --  (a3398d8)
Ψ - lib/lvgl: 2022-04-11 04:44:53 -0600 --  (e19410f8)
Ψ QMK is ready to go

➜  make keychron/q1_he/ansi_encoder:default
QMK Firmware 0.23.1
Making keychron/q1_he/ansi_encoder with keymap default

arm-none-eabi-gcc (GCC) 14.2.0
Copyright (C) 2024 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: platforms/chibios/drivers/i2c_master.c                                                  In file included from ./lib/chibios/os/hal/osal/rt-nil/osal.h:29,
                 from ./lib/chibios/os/hal/include/hal.h:30,
                 from ./platforms/chibios/drivers/wear_leveling/wear_leveling_efl_config.h:6,
                 from <command-line>:
/opt/homebrew/Cellar/arm-none-eabi-gcc/14.2.0/lib/gcc/arm-none-eabi/14.2.0/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
    9 | # include_next <stdint.h>
      |                ^~~~~~~~~~
compilation terminated.
 [ERRORS]
 | 
 | 
 | 
make[1]: *** [.build/obj_keychron_q1_he_ansi_encoder_default/i2c_master.o] Error 1
Make finished with errors
make: *** [keychron/q1_he/ansi_encoder:default] Error 1

Keyboard Used

keychron/q1_he/ansi_encoder

Link to product page (if applicable)

https://www.keychron.com/products/keychron-q1-he-qmk-wireless-custom-keyboard?variant=40617854435417

Operating System

ARM Mac M3 14.6.1

qmk doctor Output

➜  qmk doctor
Ψ QMK Doctor is checking your environment.
Ψ CLI version: 1.1.5
Ψ QMK home: /Users/jasondamour/Workspace/Personal/keyboards/keychron
Ψ Detected macOS 14.6.1 (Apple Silicon).
Ψ Userspace enabled: False
Ψ Git branch: hall_effect_playground
Ψ Repo version: 0.23.1
Ψ - Latest hall_effect_playground: 2024-10-08 10:21:47 +0800 (ab261fb4cd) -- Added K2 HE
Ψ - Latest upstream/master: 2024-10-24 22:35:53 -0700 (32b6faaf35) -- Add Vanguard65 Keyboard (#24497)
Ψ - Latest upstream/develop: 2024-10-25 18:11:51 +0100 (f5b495e06e) -- Move pointing device driver code (#24445)
Ψ - Common ancestor with upstream/master: 2023-12-18 13:53:02 +1100 (9539f135d8) -- Remove obvious user keymaps, `keyboards/[0-9]*` edition. (#22691)
Ψ - Common ancestor with upstream/develop: 2023-12-18 13:53:02 +1100 (9539f135d8) -- Remove obvious user keymaps, `keyboards/[0-9]*` edition. (#22691)
Ψ CLI installed in virtualenv.
Ψ All dependencies are installed.
Ψ Found arm-none-eabi-gcc version 14.2.0
Ψ Found avr-gcc version 8.5.0
Ψ Found avrdude version 8.0
Ψ Found dfu-programmer version 1.1.0
Ψ Found dfu-util version 0.11
Ψ Submodules are up to date.
Ψ Submodule status:
Ψ - lib/chibios: 2024-01-10 10:36:30 +0800 --  (86a3ed9ba)
Ψ - lib/chibios-contrib: 2023-07-17 11:39:05 +0200 --  (da78eb37)
Ψ - lib/googletest: 2021-06-11 06:37:43 -0700 --  (e2239ee6)
Ψ - 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: 2023-02-12 20:19:37 +0100 --  (a3398d8)
Ψ - lib/lvgl: 2022-04-11 04:44:53 -0600 --  (e19410f8)
Ψ QMK is ready to go


### Is AutoHotKey / Karabiner installed

- [ ] AutoHotKey (Windows)
- [ ] Karabiner (macOS)

### Other keyboard-related software installed

_No response_

### Additional Context

_No response_
jasondamour commented 3 hours ago

Solved my own problem:

brew uninstall arm-none-eabi-gcc
brew install --cask gcc-arm-embedded