outpost-os / outpost-devicetree

Glue between dts-utils python package and build systems
0 stars 2 forks source link

Missing dependencies: dunamai, dtc #6

Open wvallet-ledger opened 1 month ago

wvallet-ledger commented 1 month ago

Hello,

During project setup, dunamai package were missing on first ninja call:

[0/32] meson setup sentry
The Meson build system
Version: 1.6.0
Source dir: <PROJECT_PATH>/src/sentry
Build dir: <PROJECT_PATH>/build/sentry
Build type: cross build
Project name: sentry-kernel
Project version: v0.2.1-206-g2e565b4
C compiler for the host machine: arm-none-eabi-gcc (gcc 12.3.1 "arm-none-eabi-gcc (Arm GNU Toolchain 12.3.Rel1 (Build arm-12.35)) 12.3.1 20230626")
C linker for the host machine: arm-none-eabi-gcc ld.bfd 12.3
C compiler for the build machine: ccache cc (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.3.9.4)")
C linker for the build machine: cc ld64 1053.12
Build machine cpu family: aarch64
Build machine cpu: aarch64
Host machine cpu family: arm
Host machine cpu: cortex-m33
Target machine cpu family: arm
Target machine cpu: cortex-m33
Program arm-none-eabi-objcopy found: YES
Program support/scripts/install.py found: YES (/opt/homebrew/opt/python@3.12/bin/python3.12 <PROJECT_PATH>/src/sentry/support/scripts/install.py)
Program dunamai found: NO

../src/sentry/meson.build:42:10: ERROR: Program 'dunamai' not found or not executable

A full log can be found at <PROJECT_PATH>/build/sentry/meson-logs/meson-log.txt
FAILED: <PROJECT_PATH>/build/sentry/build.ninja
/opt/homebrew/bin/meson setup -Ddts=<PROJECT_PATH>/dts/ledger_ganymede_b0.dts -Ddts-include-dirs=<PROJECT_PATH>/src/sentry/dts,<PROJECT_PATH>/src/libshield/dts,<PROJECT_PATH>/src/touch/dts,<PROJECT_PATH>/src/dynamics/dts --cross-file=ui-none-eabi-gcc.ini --pkgconfig.relocatable --pkg-config-path=<PROJECT_PATH>/staging/usr/local/lib/pkgconfig -Dconfig=<PROJECT_PATH>/configs/sentry/nucleo_u5a5.config <PROJECT_PATH>/build/sentry <PROJECT_PATH>/src/sentry
ninja: build stopped: subcommand failed.

After manual install, dtc package were missing:

Executing subproject devicetree

devicetree| Project name: devicetree
devicetree| Project version: 0.0.0-post.1+5563bed.dirty
devicetree| C compiler for the host machine: arm-none-eabi-gcc (gcc 12.3.1 "arm-none-eabi-gcc (Arm GNU Toolchain 12.3.Rel1 (Build arm-12.35)) 12.3.1 20230626")
devicetree| C linker for the host machine: arm-none-eabi-gcc ld.bfd 12.3
devicetree| C compiler for the build machine: ccache cc (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.3.9.4)")
devicetree| C linker for the build machine: cc ld64 1053.12
devicetree| Program python3 (dts_utils) found: YES (/opt/homebrew/bin/python3) modules: dts_utils
devicetree| Program dtc found: NO

../src/sentry/subprojects/devicetree/meson.build:34:6: ERROR: Program 'dtc' not found or not executable
fvalette-ledger commented 1 month ago

It is up to the devel to install dtc. Integration kit will warn you, or, try to install it for you.

Dunamai will be removed.