testing/qmk-cli: fatal error: stdint.h: No such file or directory
Trying to build a firmware to flash a board fails:
> qmk flash preonic_rev3_drop_layout_ortho_5x12_mine\(21\).json
Ψ Compiling keymap with gmake -s --jobs=1 -r -R -f builddefs/build_keyboard.mk flash KEYBOARD=preonic/rev3_drop KEYMAP=preonic_rev3_drop_layout_ortho_5x12_mine KEYBOARD_FILESAFE=preonic_rev3_drop TARGET=preonic_rev3_drop_preonic_rev3_drop_layout_ortho_5x12_mine KEYBOARD_OUTPUT=.build/obj_preonic_rev3_drop KEYMAP_OUTPUT=.build/obj_preonic_rev3_drop_preonic_rev3_drop_layout_ortho_5x12_mine MAIN_KEYMAP_PATH_1=.build/obj_preonic_rev3_drop_preonic_rev3_drop_layout_ortho_5x12_mine MAIN_KEYMAP_PATH_2=.build/obj_preonic_rev3_drop_preonic_rev3_drop_layout_ortho_5x12_mine MAIN_KEYMAP_PATH_3=.build/obj_preonic_rev3_drop_preonic_rev3_drop_layout_ortho_5x12_mine MAIN_KEYMAP_PATH_4=.build/obj_preonic_rev3_drop_preonic_rev3_drop_layout_ortho_5x12_mine MAIN_KEYMAP_PATH_5=.build/obj_preonic_rev3_drop_preonic_rev3_drop_layout_ortho_5x12_mine KEYMAP_JSON=.build/obj_preonic_rev3_drop_preonic_rev3_drop_layout_ortho_5x12_mine/src/keymap.json KEYMAP_PATH=.build/obj_preonic_rev3_drop_preonic_rev3_drop_layout_ortho_5x12_mine/src VERBOSE=false COLOR=true SILENT=false QMK_BIN="qmk"
Generating: .build/obj_preonic_rev3_drop_preonic_rev3_drop_layout_ortho_5x12_mine/src/info_deps.d [OK]
arm-none-eabi-gcc (Alpine Linux) 13.1.0
Copyright (C) 2023 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.
Generating: .build/obj_preonic_rev3_drop_preonic_rev3_drop_layout_ortho_5x12_mine/src/config.h [OK]
Generating: .build/obj_preonic_rev3_drop_preonic_rev3_drop_layout_ortho_5x12_mine/src/keymap.c [OK]
Generating: .build/obj_preonic_rev3_drop/src/info_config.h [OK]
Generating: .build/obj_preonic_rev3_drop/src/default_keyboard.c [OK]
Generating: .build/obj_preonic_rev3_drop/src/default_keyboard.h [OK]
Compiling: keyboards/preonic/rev3_drop/matrix.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>:
/usr/lib/gcc/arm-none-eabi/13.1.0/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
9 | # include_next <stdint.h>
| ^~~~~~~~~~
compilation terminated.
[ERRORS]
|
|
|
gmake: *** [builddefs/common_rules.mk:361: .build/obj_preonic_rev3_drop_preonic_rev3_drop_layout_ortho_5x12_mine/matrix.o] Error 1
Reproduction
To repro this you need some extra dependencies:
doas apk add -t qmk-full gcc-arm-none-eabi gcc-avr avrdude dfu-programmer dfu-util py3-pyserial
And run qmk setup
to pull some extra data (qmk flash
will not run otherwise). Note that qmk flash
tries to build first and then flash, so you can try this at home even if you don't have a compatible board.
I'm attaching the file provided as input in the above command. Nothing about it is special here here, but one is needed to run the flash
command. preonic_rev3_drop_layout_ortho_5x12_mine_21_.json