mmccoyd / zmk-config

ZMK firmware for Hillside ergonomic keyboards
MIT License
12 stars 119 forks source link

Build not working #13

Closed rodrigoschaer closed 1 month ago

rodrigoschaer commented 1 month ago

Hi there!

My Hillside48 just arrived and I followed the steps:

  1. Forked the repo
  2. Changed one line of the build file
  3. Pushed to see if the build worked fine

Still I get this error, that seems to be related to the West build:

PS: First I cleaned up the project to leave just the H48 build files and got the error, so I rolled back to be the same as the main branch from this project and the error persists:

1s
Run west build -s zmk/app -d "/tmp/tmp.N9MaP0FDDF" -b "nice_nano_v2"  -- -DZMK_CONFIG=/__w/zmk-config/zmk-config/config -DSHIELD="hillside48_left" 
+ west build -s zmk/app -d /tmp/tmp.N9MaP0FDDF -b nice_nano_v2 -- -DZMK_CONFIG=/__w/zmk-config/zmk-config/config -DSHIELD=hillside48_left
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /__w/zmk-config/zmk-config/zmk/app
-- CMake version: 3.28.[1](https://github.com/rodrigoschaer/zmk-config/actions/runs/9766546095/job/26959767565#step:11:1)
-- Found Python3: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /__w/zmk-config/zmk-config/zephyr/.cache
-- Zephyr version: 3.5.0 (/__w/zmk-config/zmk-config/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Adding ZMK config directory as board root: /__w/zmk-config/zmk-config/config
-- Adding /__w/zmk-config/zmk-config/config/boards/shields/hillside48
-- ZMK Config directory: /__w/zmk-config/zmk-config/config
-- ZMK Config Kconfig: /__w/zmk-config/zmk-config/config/hillside48.conf
-- Using keymap file: /__w/zmk-config/zmk-config/config/hillside48.keymap
-- Using keymap file: /__w/zmk-config/zmk-config/config/hillside48.keymap
-- Board: nice_nano_v2
-- Shield(s): hillside48_left
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.16.3 (/opt/zephyr-sdk-0.16.3)
-- Found toolchain: zephyr 0.16.3 (/opt/zephyr-sdk-0.16.3)
-- Found Dtc: /opt/zephyr-sdk-0.16.3/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /__w/zmk-config/zmk-config/zmk/app/boards/arm/nice_nano/nice_nano_v2.dts
-- Found devicetree overlay: /__w/zmk-config/zmk-config/config/boards/shields/hillside48/hillside48_left.overlay
-- Found devicetree overlay: /__w/zmk-config/zmk-config/config/boards/shields/hillside48/boards/nice_nano_v2.overlay
-- Found devicetree overlay: /__w/zmk-config/zmk-config/config/hillside48.keymap
devicetree error: 'mosi-pin' appears in /soc/spi@40004000 in /tmp/tmp.N9MaP0FDDF/zephyr/zephyr.dts.pre, but is not declared in 'properties:' in /__w/zmk-config/zmk-config/zephyr/dts/bindings/spi/nordic,nrf-spim.yaml
CMake Error at /__w/zmk-config/zmk-config/zephyr/cmake/modules/dts.cmake:279 (message):
  gen_defines.py failed with return code: 1
Call Stack (most recent call first):
-- In: /tmp/tmp.N9MaP0FDDF/zephyr, command: /usr/bin/python3;/__w/zmk-config/zmk-config/zephyr/scripts/dts/gen_defines.py;--dts;/tmp/tmp.N9MaP0FDDF/zephyr/zephyr.dts.pre;--dtc-flags;'-Wno-unique_unit_address_if_enabled';--bindings-dirs;/__w/zmk-config/zmk-config/zmk/app/module/dts/bindings;/__w/zmk-config/zmk-config/zmk/app/dts/bindings;/__w/zmk-config/zmk-config/zephyr/dts/bindings;--header-out;/tmp/tmp.N9MaP0FDDF/zephyr/include/generated/devicetree_generated.h.new;--dts-out;/tmp/tmp.N9MaP0FDDF/zephyr/zephyr.dts.new;--edt-pickle-out;/tmp/tmp.N9MaP0FDDF/zephyr/edt.pickle;--vendor-prefixes;/__w/zmk-config/zmk-config/zmk/app/dts/bindings/vendor-prefixes.txt;--vendor-prefixes;/__w/zmk-config/zmk-config/zephyr/dts/bindings/vendor-prefixes.txt
  /__w/zmk-config/zmk-config/zephyr/cmake/modules/zephyr_default.cmake:[12](https://github.com/rodrigoschaer/zmk-config/actions/runs/9766546095/job/26959767565#step:11:13)9 (include)
  /__w/zmk-config/zmk-config/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /__w/zmk-config/zmk-config/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:8 (find_package)

-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/tmp/tmp.N9MaP0FDDF -GNinja -DBOARD=nice_nano_v2 -DZMK_CONFIG=/__w/zmk-config/zmk-config/config -DSHIELD=hillside48_left -S/__w/zmk-config/zmk-config/zmk/app
rodrigoschaer commented 1 month ago

I forked from Fillipe Mafra, as he has a fixed and more updated version of zmk and it worked:

https://github.com/FilippeMafra/hillside-zmk-config