Created
August 20, 2020 14:58
-
-
Save BrainWart/7705f1dc9d38cc1b84846bbb01d1077f to your computer and use it in GitHub Desktop.
west build error log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- west build: making build dir /mnt/d/source/zmk/app/build/left pristine | |
-- west build: generating a build system | |
-- ZMK Config directory: ../../zmk-config/config | |
-- Board: nice_nano, /mnt/d/source/zmk/app/boards/arm/nice_nano, kyria_left, kyria | |
-- ZMK Config Kconfig: ../../zmk-config/config/kyria.conf | |
-- Using keymap file: ../../zmk-config/config/kyria.keymap | |
-- Using keymap file: ../../zmk-config/config/kyria.keymap | |
Including boilerplate (Zephyr base): /mnt/d/source/zmk/zephyr/cmake/app/boilerplate.cmake | |
-- Application: /mnt/d/source/zmk/app | |
-- Zephyr version: 2.3.0 (/mnt/d/source/zmk/zephyr) | |
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.2") found components: Interpreter | |
-- Board: nice_nano | |
-- Found toolchain: zephyr (/home/cody/.local/zephyr-sdk-0.11.2) | |
-- Found west: /home/cody/.local/bin/west (found suitable version "0.7.3", minimum required is "0.7.1") | |
-- Found dtc: /home/cody/.local/zephyr-sdk-0.11.2/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") | |
-- Found BOARD.dts: /mnt/d/source/zmk/app/boards/arm/nice_nano/nice_nano.dts | |
-- Found devicetree overlay: /mnt/d/source/zmk/app/boards/shields/kyria/kyria_left.overlay | |
-- Found devicetree overlay: /mnt/d/source/zmk/app/boards/shields/kyria/boards/nice_nano.overlay | |
-- Found devicetree overlay: ../../zmk-config/config/kyria.keymap | |
-- Generated zephyr.dts: /mnt/d/source/zmk/app/build/left/zephyr/zephyr.dts | |
-- Generated devicetree_unfixed.h: /mnt/d/source/zmk/app/build/left/zephyr/include/generated/devicetree_unfixed.h | |
Parsing /mnt/d/source/zmk/app/Kconfig | |
Loaded configuration '/mnt/d/source/zmk/app/boards/arm/nice_nano/nice_nano_defconfig' | |
Merged configuration '../../zmk-config/config/kyria.conf' | |
Merged configuration '/mnt/d/source/zmk/app/boards/shields/kyria/kyria_left.conf' | |
Configuration saved to '/mnt/d/source/zmk/app/build/left/zephyr/.config' | |
Kconfig header saved to '/mnt/d/source/zmk/app/build/left/zephyr/include/generated/autoconf.h' | |
-- The C compiler identification is GNU 9.2.0 | |
-- The CXX compiler identification is GNU 9.2.0 | |
-- The ASM compiler identification is GNU | |
-- Found assembler: /home/cody/.local/zephyr-sdk-0.11.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc | |
-- Cache files will be written to: /home/cody/.cache/zephyr | |
CMake Warning at /mnt/d/source/zmk/zephyr/subsys/usb/CMakeLists.txt:28 (message): | |
CONFIG_USB_DEVICE_VID has default value 0x2FE3. | |
This value is only for testing and MUST be configured for USB products. | |
CMake Warning at /mnt/d/source/zmk/zephyr/subsys/usb/CMakeLists.txt:34 (message): | |
CONFIG_USB_DEVICE_PID has default value 0x100. | |
This value is only for testing and MUST be configured for USB products. | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: /mnt/d/source/zmk/app/build/left | |
-- west build: building application | |
[1/240] Preparing syscall dependency handling | |
[2/240] Generating misc/generated/syscalls_subdirs.trigger | |
[3/240] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json | |
[4/240] Generating include/generated/driver-validation.h | |
[5/240] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h | |
[6/240] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h | |
[7/240] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj | |
[8/240] Generating include/generated/offsets.h | |
[9/240] Building C object CMakeFiles/app.dir/src/event_manager.c.obj | |
[10/240] Building C object CMakeFiles/app.dir/src/matrix_transform.c.obj | |
[11/240] Building C object CMakeFiles/app.dir/src/sensors.c.obj | |
[12/240] Building C object CMakeFiles/app.dir/src/events/position_state_changed.c.obj | |
[13/240] Building C object CMakeFiles/app.dir/src/hid.c.obj | |
[14/240] Building C object CMakeFiles/app.dir/src/events/sensor_event.c.obj | |
[15/240] Building C object CMakeFiles/app.dir/src/kscan.c.obj | |
[16/240] Building C object CMakeFiles/app.dir/src/keymap.c.obj | |
[17/240] Building C object CMakeFiles/app.dir/src/events/keycode_state_changed.c.obj | |
[18/240] Building C object CMakeFiles/app.dir/src/events/modifiers_state_changed.c.obj | |
[19/240] Building C object CMakeFiles/app.dir/src/behaviors/behavior_key_press.c.obj | |
[20/240] Building C object CMakeFiles/app.dir/src/behaviors/behavior_mod_tap.c.obj | |
[21/240] Building C object CMakeFiles/app.dir/src/behaviors/behavior_reset.c.obj | |
[22/240] Building C object CMakeFiles/app.dir/src/behaviors/behavior_sensor_rotate_key_press.c.obj | |
[23/240] Building C object CMakeFiles/app.dir/src/behaviors/behavior_momentary_layer.c.obj | |
[24/240] Building C object CMakeFiles/app.dir/src/behaviors/behavior_toggle_layer.c.obj | |
[25/240] Building C object CMakeFiles/app.dir/src/behaviors/behavior_none.c.obj | |
[26/240] Building C object CMakeFiles/app.dir/src/behaviors/behavior_transparent.c.obj | |
[27/240] Building C object CMakeFiles/app.dir/src/ble_unpair_combo.c.obj | |
[28/240] Building C object CMakeFiles/app.dir/src/ble.c.obj | |
../../src/ble.c:100:13: warning: 'auth_passkey_display' defined but not used [-Wunused-function] | |
100 | static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey) | |
| ^~~~~~~~~~~~~~~~~~~~ | |
[29/240] Building C object CMakeFiles/app.dir/src/split/bluetooth/central.c.obj | |
[30/240] Building C object CMakeFiles/app.dir/src/usb_hid.c.obj | |
[31/240] Building C object CMakeFiles/app.dir/src/hog.c.obj | |
[32/240] Building C object CMakeFiles/app.dir/src/endpoints.c.obj | |
[33/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj | |
[34/240] Building C object CMakeFiles/app.dir/src/hid_listener.c.obj | |
[35/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj | |
[36/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj | |
[37/240] Building C object CMakeFiles/app.dir/src/main.c.obj | |
[38/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj | |
[39/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj | |
[40/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj | |
[41/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj | |
[42/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mempool.c.obj | |
[43/240] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/power/reboot.c.obj | |
[44/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj | |
[45/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj | |
[46/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj | |
[47/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj | |
[48/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj | |
[49/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj | |
[50/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj | |
[51/240] Building C object CMakeFiles/app.dir/src/behaviors/behavior_hold_tap.c.obj | |
FAILED: CMakeFiles/app.dir/src/behaviors/behavior_hold_tap.c.obj | |
ccache /home/cody/.local/zephyr-sdk-0.11.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DBUILD_VERSION=zephyr-v2.2.0-3199-g963b8db4b344 -DKERNEL -DNRF52840_XXAA -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I../../include -I/mnt/d/source/zmk/zephyr/include -Izephyr/include/generated -I/mnt/d/source/zmk/zephyr/soc/arm/nordic_nrf/nrf52 -I/mnt/d/source/zmk/zephyr/subsys/usb -I/mnt/d/source/zmk/zephyr/subsys/settings/include -I/mnt/d/source/zmk/zephyr/subsys/bluetooth -I/mnt/d/source/zmk/zephyr/subsys/bluetooth/controller/ll_sw/nordic -I/mnt/d/source/zmk/modules/hal/cmsis/CMSIS/Core/Include -I/mnt/d/source/zmk/modules/hal/nordic/nrfx -I/mnt/d/source/zmk/modules/hal/nordic/nrfx/drivers/include -I/mnt/d/source/zmk/modules/hal/nordic/nrfx/mdk -I/mnt/d/source/zmk/modules/hal/nordic/. -I/mnt/d/source/zmk/modules/crypto/tinycrypt/lib/include -I../../drivers/zephyr/. -isystem /mnt/d/source/zmk/zephyr/lib/libc/minimal/include -isystem /home/cody/.local/zephyr-sdk-0.11.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/9.2.0/include -isystem /home/cody/.local/zephyr-sdk-0.11.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/9.2.0/include-fixed -Os -imacros/mnt/d/source/zmk/app/build/left/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mcpu=cortex-m4 -mthumb -mabi=aapcs -imacros/mnt/d/source/zmk/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-address-of-packed-member -Wno-pointer-sign -Wpointer-arith -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/mnt/d/source/zmk/app=CMAKE_SOURCE_DIR -fmacro-prefix-map=/mnt/d/source/zmk/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/mnt/d/source/zmk=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/behaviors/behavior_hold_tap.c.obj -MF CMakeFiles/app.dir/src/behaviors/behavior_hold_tap.c.obj.d -o CMakeFiles/app.dir/src/behaviors/behavior_hold_tap.c.obj -c ../../src/behaviors/behavior_hold_tap.c | |
In file included from /mnt/d/source/zmk/zephyr/include/sched_priq.h:9, | |
from /mnt/d/source/zmk/zephyr/include/kernel_includes.h:23, | |
from /mnt/d/source/zmk/zephyr/include/kernel.h:17, | |
from /mnt/d/source/zmk/zephyr/include/init.h:11, | |
from /mnt/d/source/zmk/zephyr/include/device.h:22, | |
from ../../src/behaviors/behavior_hold_tap.c:9: | |
zephyr/include/generated/devicetree_unfixed.h:4877:59: error: invalid suffix "_P_bindings_IDX_0_PH_P_label" on integer constant | |
4877 | #define DT_FOREACH_OKAY_INST_zmk_behavior_hold_tap(fn) fn(0) | |
| ^ | |
/mnt/d/source/zmk/zephyr/include/sys/util.h:447:26: note: in definition of macro '__DEBRACKET' | |
447 | #define __DEBRACKET(...) __VA_ARGS__ | |
| ^~~~~~~~~~~ | |
/mnt/d/source/zmk/zephyr/include/sys/util.h:444:2: note: in expansion of macro '__GET_ARG2_DEBRACKET' | |
444 | __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code) | |
| ^~~~~~~~~~~~~~~~~~~~ | |
/mnt/d/source/zmk/zephyr/include/sys/util.h:327:2: note: in expansion of macro '__COND_CODE' | |
327 | __COND_CODE(_XXXX##_flag, _if_1_code, _else_code) | |
| ^~~~~~~~~~~ | |
/mnt/d/source/zmk/zephyr/include/sys/util.h:324:2: note: in expansion of macro 'Z_COND_CODE_1' | |
324 | Z_COND_CODE_1(_flag, _if_1_code, _else_code) | |
| ^~~~~~~~~~~~~ | |
/mnt/d/source/zmk/zephyr/include/devicetree.h:1698:2: note: in expansion of macro 'COND_CODE_1' | |
1698 | COND_CODE_1(DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT), \ | |
| ^~~~~~~~~~~ | |
/mnt/d/source/zmk/zephyr/include/devicetree.h:393:32: note: in expansion of macro 'DT_CAT' | |
393 | #define DT_PROP(node_id, prop) DT_CAT(node_id, _P_##prop) | |
| ^~~~~~ | |
/mnt/d/source/zmk/zephyr/include/devicetree.h:479:27: note: in expansion of macro 'DT_PROP' | |
479 | #define DT_LABEL(node_id) DT_PROP(node_id, label) | |
| ^~~~~~~ | |
../../src/behaviors/behavior_hold_tap.c:31:20: note: in expansion of macro 'DT_LABEL' | |
31 | { .behavior_dev = DT_LABEL(DT_PHANDLE_BY_IDX(node, bindings, idx)), \ | |
| ^~~~~~~~ | |
/mnt/d/source/zmk/zephyr/include/devicetree.h:393:32: note: in expansion of macro 'DT_CAT' | |
393 | #define DT_PROP(node_id, prop) DT_CAT(node_id, _P_##prop) | |
| ^~~~~~ | |
/mnt/d/source/zmk/zephyr/include/devicetree.h:764:2: note: in expansion of macro 'DT_PROP' | |
764 | DT_PROP(node_id, prop##_IDX_##idx##_PH) | |
| ^~~~~~~ | |
../../src/behaviors/behavior_hold_tap.c:31:29: note: in expansion of macro 'DT_PHANDLE_BY_IDX' | |
31 | { .behavior_dev = DT_LABEL(DT_PHANDLE_BY_IDX(node, bindings, idx)), \ | |
| ^~~~~~~~~~~~~~~~~ | |
../../src/behaviors/behavior_hold_tap.c:84:16: note: in expansion of macro '_TRANSFORM_ENTRY' | |
84 | .defined = _TRANSFORM_ENTRY(0, n) \ | |
| ^~~~~~~~~~~~~~~~ | |
zephyr/include/generated/devicetree_unfixed.h:4877:56: note: in expansion of macro 'KP_INST' | |
4877 | #define DT_FOREACH_OKAY_INST_zmk_behavior_hold_tap(fn) fn(0) | |
| ^~ | |
/mnt/d/source/zmk/zephyr/include/sys/util.h:510:36: note: in expansion of macro 'DT_FOREACH_OKAY_INST_zmk_behavior_hold_tap' | |
510 | #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__ | |
| ^ | |
/mnt/d/source/zmk/zephyr/include/sys/util.h:509:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT' | |
509 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__) | |
| ^~~~~~~~~~~~~~~~~~ | |
/mnt/d/source/zmk/zephyr/include/devicetree.h:1699:8: note: in expansion of macro 'UTIL_CAT' | |
1699 | (UTIL_CAT(DT_FOREACH_OKAY_INST_, \ | |
| ^~~~~~~~ | |
../../src/behaviors/behavior_hold_tap.c:93:1: note: in expansion of macro 'DT_INST_FOREACH_STATUS_OKAY' | |
93 | DT_INST_FOREACH_STATUS_OKAY(KP_INST) | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
[52/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/work_q.c.obj | |
[53/240] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj | |
[54/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj | |
[55/240] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj | |
[56/240] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj | |
[57/240] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/bluetooth/services/dis.c.obj | |
[58/240] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj | |
[59/240] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/bluetooth/services/bas.c.obj | |
[60/240] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/fs/nvs/nvs.c.obj | |
ninja: build stopped: subcommand failed. | |
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /mnt/d/source/zmk/app/build/left |
Hi, were you able to solve this problem? I had the same problem while trying to build.
I was having many issues with the tools caching artifacts and failing to rebuild them back then. Otherwise, the Discord server is full of very helpful people. I haven't built ZMK in a while. I haven't had any reason to rebuild it because it has just been working
Thank you for the prompt response! It turns out that I was using the "modifier as a function" functionality wrong so instead of LA(LCTRL)
I was doing LALT(LCTRL)
. After fixing that everything compiled correctly. Just leaving it here in case someone stumbles on the same problem in the future. Make sure that all they keycodes are valid.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, were you able to solve this problem? I had the same problem while trying to build.