This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CLI can't build code

Hi ~~

I can't use CLI(command line interface) to build code, but VS Code is workable.

CLI build log:

dkcicd-Mac-mini:v1.8.0 dkcicd$ west build --build-dir /Users/dkcicd/XX_thread_test/build /Users/dkcicd/XX_thread_test --pristine --board nodicevb_nrf52840dk -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONF_FILE:STRING="prj_debug.conf" -DBOARD_ROOT:STRING="/Users/dkcicd/XX_thread_test" -D THREAD=y
-- west build: making build dir /Users/dkcicd/XX_thread_test/build pristine
-- west build: generating a build system
*** Enable homekit Thread
Including boilerplate (Zephyr base): /opt/nordic/ncs/v1.8.0/zephyr/cmake/app/boilerplate.cmake
-- Application: /Users/dkcicd/XX_thread_test
-- Zephyr version: 2.7.0 (/opt/nordic/ncs/v1.8.0/zephyr), build: v2.7.0-ncs1
-- Found Python3: /Applications/Xcode.app/Contents/Developer/usr/bin/python3.8 (found suitable exact version "3.8.9") found components: Interpreter 
-- Found west (found suitable version "0.13.0", minimum required is "0.7.1")
-- Board: nodicevb_nrf52840dk, Shield(s): nrf21540_ek
-- Cache files will be written to: /Users/dkcicd/Library/Caches/zephyr
-- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/opt/nordic/ncs/v1.8.0/toolchain)
-- Found BOARD.dts: /Users/dkcicd/XX_thread_test/boards/arm/nodicevb_nrf52840dk/nodicevb_nrf52840dk.dts
-- Found devicetree overlay: /opt/nordic/ncs/v1.8.0/nrf/boards/shields/nrf21540_ek/nrf21540_ek.overlay
-- Found devicetree overlay: /opt/nordic/ncs/v1.8.0/homekit/samples/common/dts_external_flash.overlay
-- Generated zephyr.dts: /Users/dkcicd/XX_thread_test/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /Users/dkcicd/XX_thread_test/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /Users/dkcicd/XX_thread_test/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /Users/dkcicd/XX_thread_test/build/zephyr/dts.cmake
Parsing /Users/dkcicd/XX_thread_test/Kconfig
Loaded configuration '/Users/dkcicd/XX_thread_test/boards/arm/nodicevb_nrf52840dk/nodicevb_nrf52840dk_defconfig'
Merged configuration '/Users/dkcicd/XX_thread_test/prj_debug.conf'
Merged configuration '/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-hk-defaults.conf'
Merged configuration '/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-hk-bluetooth-host.conf'
Merged configuration '/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-hk-bluetooth-controler.conf'
Merged configuration '/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-hk-thread.conf'
Merged configuration '/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-external_flash.conf'
Configuration saved to '/Users/dkcicd/XX_thread_test/build/zephyr/.config'
Kconfig header saved to '/Users/dkcicd/XX_thread_test/build/zephyr/include/generated/autoconf.h'

warning: SERIAL (defined at soc/arm/nxp_lpc/lpc55xxx/Kconfig.defconfig.lpc55S69_cpu1:22,
drivers/serial/Kconfig:6) was assigned the value 'n' but got the value 'y'. See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_SERIAL.html and/or look up SERIAL in
the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.


warning: BOOT_BANNER (defined at kernel/Kconfig:317) was assigned the value 'y' but got the value
'n'. Check these unsatisfied dependencies: CONSOLE_HAS_DRIVER (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_BOOT_BANNER.html and/or look up
BOOT_BANNER in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.


warning: RTT_CONSOLE (defined at drivers/console/Kconfig:107) was assigned the value 'y' but got the
value 'n'. Check these unsatisfied dependencies: CONSOLE (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_RTT_CONSOLE.html and/or look up
RTT_CONSOLE in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.


warning: Experimental symbol NET_CONNECTION_MANAGER is enabled.

XD_CMAKE_COMMAND:/usr/local/Cellar/cmake/3.23.1/bin/cmake
XD_CMAKE_COMMAND:/usr/local/Cellar/cmake/3.23.1/bin/cmake
XD_COMMON_KCONFIG_ENV_SETTINGS:PYTHON_EXECUTABLE=/Applications/Xcode.app/Contents/Developer/usr/bin/python3.8;srctree=/opt/nordic/ncs/v1.8.0/zephyr;KERNELVERSION=0x2070000;KCONFIG_CONFIG=/Users/dkcicd/XX_thread_test/build/zephyr/.config;ARCH=arm;ARCH_DIR=/opt/nordic/ncs/v1.8.0/zephyr/arch;BOARD_DIR=/Users/dkcicd/XX_thread_test/boards/arm/nodicevb_nrf52840dk;KCONFIG_BINARY_DIR=/Users/dkcicd/XX_thread_test/build/Kconfig;TOOLCHAIN_KCONFIG_DIR=/opt/nordic/ncs/v1.8.0/zephyr/cmake/toolchain/gnuarmemb;TOOLCHAIN_HAS_NEWLIB=$<IF:$<BOOL:ON>,y,n>;EDT_PICKLE=/Users/dkcicd/XX_thread_test/build/zephyr/edt.pickle;ZEPHYR_NRF_MODULE_DIR=/opt/nordic/ncs/v1.8.0/nrf;ZEPHYR_MCUBOOT_MODULE_DIR=/opt/nordic/ncs/v1.8.0/bootloader/mcuboot;ZEPHYR_MCUBOOT_KCONFIG=/opt/nordic/ncs/v1.8.0/nrf/modules/mcuboot/Kconfig;ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/tee/tfm;ZEPHYR_TRUSTED_FIRMWARE_M_KCONFIG=/opt/nordic/ncs/v1.8.0/nrf/modules/trusted-firmware-m/Kconfig;ZEPHYR_TFM_MCUBOOT_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/tee/tfm-mcuboot;ZEPHYR_CJSON_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/cjson;ZEPHYR_CJSON_KCONFIG=/opt/nordic/ncs/v1.8.0/nrf/modules/cjson/Kconfig;ZEPHYR_HOMEKIT_MODULE_DIR=/opt/nordic/ncs/v1.8.0/homekit;ZEPHYR_PELION_DM_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/pelion-dm;ZEPHYR_CDDL_GEN_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/cddl-gen;ZEPHYR_CDDL_GEN_KCONFIG=/opt/nordic/ncs/v1.8.0/nrf/modules/cddl-gen/Kconfig;ZEPHYR_MEMFAULT_FIRMWARE_SDK_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/memfault-firmware-sdk;ZEPHYR_CANOPENNODE_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/canopennode;ZEPHYR_CANOPENNODE_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/canopennode/Kconfig;ZEPHYR_CIVETWEB_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/civetweb;ZEPHYR_CMSIS_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/hal/cmsis;ZEPHYR_FATFS_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/fs/fatfs;ZEPHYR_HAL_NORDIC_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/hal/nordic;ZEPHYR_HAL_NORDIC_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/hal_nordic/Kconfig;ZEPHYR_ST_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/hal/st;ZEPHYR_LIBMETAL_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/hal/libmetal;ZEPHYR_LITTLEFS_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/fs/littlefs;ZEPHYR_LORAMAC_NODE_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/loramac-node;ZEPHYR_LORAMAC_NODE_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/loramac-node/Kconfig;ZEPHYR_LVGL_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/gui/lvgl;ZEPHYR_LZ4_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/lz4;ZEPHYR_LZ4_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/lz4/Kconfig;ZEPHYR_MBEDTLS_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/crypto/mbedtls;ZEPHYR_MBEDTLS_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/mbedtls/Kconfig;ZEPHYR_MCUMGR_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/mcumgr;ZEPHYR_MIPI_SYS_T_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/debug/mipi-sys-t;ZEPHYR_NANOPB_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/nanopb;ZEPHYR_NANOPB_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/nanopb/Kconfig;ZEPHYR_NRF_HW_MODELS_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/bsim_hw_models/nrf_hw_models;ZEPHYR_OPEN_AMP_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/open-amp;ZEPHYR_OPENTHREAD_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/openthread;ZEPHYR_SEGGER_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/debug/segger;ZEPHYR_TINYCBOR_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/tinycbor;ZEPHYR_TINYCRYPT_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/crypto/tinycrypt;ZEPHYR_TRACERECORDER_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/debug/TraceRecorder;ZEPHYR_TRACERECORDER_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/TraceRecorder/Kconfig;ZEPHYR_NRFXLIB_MODULE_DIR=/opt/nordic/ncs/v1.8.0/nrfxlib;ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/matter
XD_SHIELD_AS_LIST_ESCAPED:nrf21540_ek
XD_PYTHON_EXECUTABLE:/Applications/Xcode.app/Contents/Developer/usr/bin/python3.8
XD_ZEPHYR_BASE:/opt/nordic/ncs/v1.8.0/zephyr
XD_input_configs_are_handwritten:--handwritten-input-configs
XD_KCONFIG_ROOT:/Users/dkcicd/XX_thread_test/Kconfig
XD_AUTOCONF_H:/Users/dkcicd/XX_thread_test/build/zephyr/include/generated/autoconf.h
XD_PARSED_KCONFIG_SOURCES_TXT:/Users/dkcicd/XX_thread_test/build/zephyr/kconfig/sources.txt
XD_input_configs:/Users/dkcicd/XX_thread_test/boards/arm/nodicevb_nrf52840dk/nodicevb_nrf52840dk_defconfig;/Users/dkcicd/XX_thread_test/prj_debug.conf;/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-hk-defaults.conf;/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-hk-bluetooth-host.conf;/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-hk-bluetooth-controler.conf;/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-hk-thread.conf;/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-external_flash.conf
XD_APPLICATION_SOURCE_DIR:/Users/dkcicd/XX_thread_test
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/v1.8.0/toolchain/bin/arm-none-eabi-gcc

=== child image mcuboot -  begin ===
Including boilerplate (Zephyr base): /opt/nordic/ncs/v1.8.0/zephyr/cmake/app/boilerplate.cmake
-- Application: /opt/nordic/ncs/v1.8.0/bootloader/mcuboot/boot/zephyr
-- Zephyr version: 2.7.0 (/opt/nordic/ncs/v1.8.0/zephyr), build: v2.7.0-ncs1
-- Found Python3: /usr/local/bin/python3.9 (found suitable exact version "3.9.12") found components: Interpreter 
-- Board: nodicevb_nrf52840dk
-- Cache files will be written to: /Users/dkcicd/Library/Caches/zephyr
-- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/opt/nordic/ncs/v1.8.0/toolchain)
-- Found BOARD.dts: /Users/dkcicd/XX_thread_test/boards/arm/nodicevb_nrf52840dk/nodicevb_nrf52840dk.dts
-- Found devicetree overlay: /opt/nordic/ncs/v1.8.0/bootloader/mcuboot/boot/zephyr/dts.overlay
Traceback (most recent call last):
  File "/opt/nordic/ncs/v1.8.0/zephyr/scripts/dts/gen_defines.py", line 33, in <module>
    from devicetree import edtlib
  File "/opt/nordic/ncs/v1.8.0/zephyr/scripts/dts/python-devicetree/src/devicetree/edtlib.py", line 77, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'
CMake Error at /opt/nordic/ncs/v1.8.0/zephyr/cmake/dts.cmake:251 (message):
  gen_defines.py failed with return code: 1
Call Stack (most recent call first):
  /opt/nordic/ncs/v1.8.0/zephyr/cmake/app/boilerplate.cmake:545 (include)
  /opt/nordic/ncs/v1.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  /opt/nordic/ncs/v1.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:44 (find_package)


-- Configuring incomplete, errors occurred!
CMake Error at /opt/nordic/ncs/v1.8.0/nrf/cmake/multi_image.cmake:306 (message):
  CMake generation for mcuboot failed, aborting.  Command: 1
Call Stack (most recent call first):
  /opt/nordic/ncs/v1.8.0/nrf/cmake/multi_image.cmake:68 (add_child_image_from_source)
  /opt/nordic/ncs/v1.8.0/nrf/modules/mcuboot/CMakeLists.txt:216 (add_child_image)


-- Configuring incomplete, errors occurred!
See also "/Users/dkcicd/XX_thread_test/build/CMakeFiles/CMakeOutput.log".
See also "/Users/dkcicd/XX_thread_test/build/CMakeFiles/CMakeError.log".
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake -DWEST_PYTHON=/Applications/Xcode.app/Contents/Developer/usr/bin/python3 -B/Users/dkcicd/XX_thread_test/build -S/Users/dkcicd/XX_thread_test -GNinja -DBOARD=nodicevb_nrf52840dk -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DCONF_FILE:STRING=prj_debug.conf -DBOARD_ROOT:STRING=/Users/dkcicd/XX_thread_test -D THREAD=y

VS Code build log :

Building XX_thread_test
west build --build-dir /Users/dkcicd/XX_thread_test/build /Users/dkcicd/XX_thread_test --pristine --board nodicevb_nrf52840dk -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="/Users/dkcicd/XX_thread_test" -DCONF_FILE:STRING="/Users/dkcicd/XX_thread_test/prj_debug.conf" -DDTC_OVERLAY_FILE:STRING="/opt/nordic/ncs/v1.8.0/homekit/samples/common/dts_external_flash.overlay" -DSHIELD:STRING="nrf21540_ek"

-- west build: generating a build system
*** Enable homekit Thread
Including boilerplate (Zephyr base): /opt/nordic/ncs/v1.8.0/zephyr/cmake/app/boilerplate.cmake
-- Application: /Users/dkcicd/XX_thread_test
-- Zephyr version: 2.7.0 (/opt/nordic/ncs/v1.8.0/zephyr), build: v2.7.0-ncs1
-- Found Python3: /opt/nordic/ncs/v1.8.0/toolchain/opt/[email protected]/bin/python3.9 (found suitable exact version "3.9.6") found components: Interpreter 
-- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
-- Board: nodicevb_nrf52840dk, Shield(s): nrf21540_ek
-- Cache files will be written to: /Users/dkcicd/Library/Caches/zephyr
-- Found dtc: /opt/nordic/ncs/v1.8.0/toolchain/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/opt/nordic/ncs/v1.8.0/toolchain)
-- Found BOARD.dts: /Users/dkcicd/XX_thread_test/boards/arm/nodicevb_nrf52840dk/nodicevb_nrf52840dk.dts
-- Found devicetree overlay: /opt/nordic/ncs/v1.8.0/nrf/boards/shields/nrf21540_ek/nrf21540_ek.overlay
-- Found devicetree overlay: /opt/nordic/ncs/v1.8.0/homekit/samples/common/dts_external_flash.overlay
-- Found devicetree overlay: /opt/nordic/ncs/v1.8.0/homekit/samples/common/dts_external_flash.overlay
-- Generated zephyr.dts: /Users/dkcicd/XX_thread_test/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /Users/dkcicd/XX_thread_test/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /Users/dkcicd/XX_thread_test/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /Users/dkcicd/XX_thread_test/build/zephyr/dts.cmake

warning: SERIAL (defined at /Users/dkcicd/XX_thread_test/build/soc/arm/nxp_lpc/lpc55xxx/Kconfig.defconfig.lpc55S69_cpu1:22,
/Users/dkcicd/XX_thread_test/build/drivers/serial/Kconfig:6) was assigned the value 'n' but got the value 'y'. See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_SERIAL.html and/or look up SERIAL in
the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.


warning: BOOT_BANNER (defined at /Users/dkcicd/XX_thread_test/build/kernel/Kconfig:317) was assigned the value 'y' but got the value
'n'. Check these unsatisfied dependencies: CONSOLE_HAS_DRIVER (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_BOOT_BANNER.html and/or look up
BOOT_BANNER in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.


warning: RTT_CONSOLE (defined at /Users/dkcicd/XX_thread_test/build/drivers/console/Kconfig:107) was assigned the value 'y' but got the
value 'n'. Check these unsatisfied dependencies: CONSOLE (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_RTT_CONSOLE.html and/or look up
RTT_CONSOLE in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.


warning: Experimental symbol NET_CONNECTION_MANAGER is enabled.

Parsing /Users/dkcicd/XX_thread_test/Kconfig
Loaded configuration '/Users/dkcicd/XX_thread_test/boards/arm/nodicevb_nrf52840dk/nodicevb_nrf52840dk_defconfig'
Merged configuration '/Users/dkcicd/XX_thread_test/prj_debug.conf'
Merged configuration '/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-hk-defaults.conf'
Merged configuration '/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-hk-bluetooth-host.conf'
Merged configuration '/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-hk-bluetooth-controler.conf'
Merged configuration '/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-hk-thread.conf'
Merged configuration '/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-external_flash.conf'
Configuration saved to '/Users/dkcicd/XX_thread_test/build/zephyr/.config'
Kconfig header saved to '/Users/dkcicd/XX_thread_test/build/zephyr/include/generated/autoconf.h'
XD_CMAKE_COMMAND:/opt/nordic/ncs/v1.8.0/toolchain/Cellar/cmake/3.21.1/bin/cmake
XD_CMAKE_COMMAND:/opt/nordic/ncs/v1.8.0/toolchain/Cellar/cmake/3.21.1/bin/cmake
XD_COMMON_KCONFIG_ENV_SETTINGS:PYTHON_EXECUTABLE=/opt/nordic/ncs/v1.8.0/toolchain/opt/[email protected]/bin/python3.9;srctree=/opt/nordic/ncs/v1.8.0/zephyr;KERNELVERSION=0x2070000;KCONFIG_CONFIG=/Users/dkcicd/XX_thread_test/build/zephyr/.config;ARCH=arm;ARCH_DIR=/opt/nordic/ncs/v1.8.0/zephyr/arch;BOARD_DIR=/Users/dkcicd/XX_thread_test/boards/arm/nodicevb_nrf52840dk;KCONFIG_BINARY_DIR=/Users/dkcicd/XX_thread_test/build/Kconfig;TOOLCHAIN_KCONFIG_DIR=/opt/nordic/ncs/v1.8.0/zephyr/cmake/toolchain/gnuarmemb;TOOLCHAIN_HAS_NEWLIB=$<IF:$<BOOL:ON>,y,n>;EDT_PICKLE=/Users/dkcicd/XX_thread_test/build/zephyr/edt.pickle;ZEPHYR_NRF_MODULE_DIR=/opt/nordic/ncs/v1.8.0/nrf;ZEPHYR_MCUBOOT_MODULE_DIR=/opt/nordic/ncs/v1.8.0/bootloader/mcuboot;ZEPHYR_MCUBOOT_KCONFIG=/opt/nordic/ncs/v1.8.0/nrf/modules/mcuboot/Kconfig;ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/tee/tfm;ZEPHYR_TRUSTED_FIRMWARE_M_KCONFIG=/opt/nordic/ncs/v1.8.0/nrf/modules/trusted-firmware-m/Kconfig;ZEPHYR_TFM_MCUBOOT_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/tee/tfm-mcuboot;ZEPHYR_CJSON_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/cjson;ZEPHYR_CJSON_KCONFIG=/opt/nordic/ncs/v1.8.0/nrf/modules/cjson/Kconfig;ZEPHYR_HOMEKIT_MODULE_DIR=/opt/nordic/ncs/v1.8.0/homekit;ZEPHYR_PELION_DM_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/pelion-dm;ZEPHYR_CDDL_GEN_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/cddl-gen;ZEPHYR_CDDL_GEN_KCONFIG=/opt/nordic/ncs/v1.8.0/nrf/modules/cddl-gen/Kconfig;ZEPHYR_MEMFAULT_FIRMWARE_SDK_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/memfault-firmware-sdk;ZEPHYR_CANOPENNODE_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/canopennode;ZEPHYR_CANOPENNODE_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/canopennode/Kconfig;ZEPHYR_CIVETWEB_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/civetweb;ZEPHYR_CMSIS_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/hal/cmsis;ZEPHYR_FATFS_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/fs/fatfs;ZEPHYR_HAL_NORDIC_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/hal/nordic;ZEPHYR_HAL_NORDIC_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/hal_nordic/Kconfig;ZEPHYR_ST_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/hal/st;ZEPHYR_LIBMETAL_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/hal/libmetal;ZEPHYR_LITTLEFS_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/fs/littlefs;ZEPHYR_LORAMAC_NODE_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/loramac-node;ZEPHYR_LORAMAC_NODE_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/loramac-node/Kconfig;ZEPHYR_LVGL_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/gui/lvgl;ZEPHYR_LZ4_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/lz4;ZEPHYR_LZ4_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/lz4/Kconfig;ZEPHYR_MBEDTLS_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/crypto/mbedtls;ZEPHYR_MBEDTLS_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/mbedtls/Kconfig;ZEPHYR_MCUMGR_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/mcumgr;ZEPHYR_MIPI_SYS_T_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/debug/mipi-sys-t;ZEPHYR_NANOPB_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/nanopb;ZEPHYR_NANOPB_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/nanopb/Kconfig;ZEPHYR_NRF_HW_MODELS_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/bsim_hw_models/nrf_hw_models;ZEPHYR_OPEN_AMP_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/open-amp;ZEPHYR_OPENTHREAD_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/openthread;ZEPHYR_SEGGER_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/debug/segger;ZEPHYR_TINYCBOR_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/tinycbor;ZEPHYR_TINYCRYPT_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/crypto/tinycrypt;ZEPHYR_TRACERECORDER_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/debug/TraceRecorder;ZEPHYR_TRACERECORDER_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/TraceRecorder/Kconfig;ZEPHYR_NRFXLIB_MODULE_DIR=/opt/nordic/ncs/v1.8.0/nrfxlib;ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/matter
XD_SHIELD_AS_LIST_ESCAPED:nrf21540_ek
XD_PYTHON_EXECUTABLE:/opt/nordic/ncs/v1.8.0/toolchain/opt/[email protected]/bin/python3.9
XD_ZEPHYR_BASE:/opt/nordic/ncs/v1.8.0/zephyr
XD_input_configs_are_handwritten:--handwritten-input-configs
XD_KCONFIG_ROOT:/Users/dkcicd/XX_thread_test/Kconfig
XD_AUTOCONF_H:/Users/dkcicd/XX_thread_test/build/zephyr/include/generated/autoconf.h
XD_PARSED_KCONFIG_SOURCES_TXT:/Users/dkcicd/XX_thread_test/build/zephyr/kconfig/sources.txt
XD_input_configs:/Users/dkcicd/XX_thread_test/boards/arm/nodicevb_nrf52840dk/nodicevb_nrf52840dk_defconfig;/Users/dkcicd/XX_thread_test/prj_debug.conf;/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-hk-defaults.conf;/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-hk-bluetooth-host.conf;/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-hk-bluetooth-controler.conf;/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-hk-thread.conf;/opt/nordic/ncs/v1.8.0/homekit/samples/common/overlay-external_flash.conf
XD_APPLICATION_SOURCE_DIR:/Users/dkcicd/XX_thread_test
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/v1.8.0/toolchain/bin/arm-none-eabi-gcc

=== child image mcuboot -  begin ===
Including boilerplate (Zephyr base): /opt/nordic/ncs/v1.8.0/zephyr/cmake/app/boilerplate.cmake
-- Application: /opt/nordic/ncs/v1.8.0/bootloader/mcuboot/boot/zephyr
-- Zephyr version: 2.7.0 (/opt/nordic/ncs/v1.8.0/zephyr), build: v2.7.0-ncs1
-- Found Python3: /opt/nordic/ncs/v1.8.0/toolchain/bin/python3.9 (found suitable exact version "3.9.6") found components: Interpreter 
-- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
-- Board: nodicevb_nrf52840dk
-- Cache files will be written to: /Users/dkcicd/Library/Caches/zephyr
-- Found dtc: /opt/nordic/ncs/v1.8.0/toolchain/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/opt/nordic/ncs/v1.8.0/toolchain)
-- Found BOARD.dts: /Users/dkcicd/XX_thread_test/boards/arm/nodicevb_nrf52840dk/nodicevb_nrf52840dk.dts
-- Found devicetree overlay: /opt/nordic/ncs/v1.8.0/bootloader/mcuboot/boot/zephyr/dts.overlay
-- Generated zephyr.dts: /Users/dkcicd/XX_thread_test/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /Users/dkcicd/XX_thread_test/build/mcuboot/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /Users/dkcicd/XX_thread_test/build/mcuboot/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /Users/dkcicd/XX_thread_test/build/mcuboot/zephyr/dts.cmake

warning: BOOT_BANNER (defined at /Users/dkcicd/XX_thread_test/build/kernel/Kconfig:317) was assigned the value 'y' but got the value
'n'. Check these unsatisfied dependencies: CONSOLE_HAS_DRIVER (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_BOOT_BANNER.html and/or look up
BOOT_BANNER in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.


warning: CONSOLE_HANDLER (defined at /Users/dkcicd/XX_thread_test/build/drivers/console/Kconfig:27) was assigned the value 'y' but got
the value 'n'. Check these unsatisfied dependencies: UART_CONSOLE (=n), SERIAL_SUPPORT_INTERRUPT
(=n), CONSOLE (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_CONSOLE_HANDLER.html and/or look up
CONSOLE_HANDLER in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.

Parsing /opt/nordic/ncs/v1.8.0/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/Users/dkcicd/XX_thread_test/boards/arm/nodicevb_nrf52840dk/nodicevb_nrf52840dk_defconfig'
Merged configuration '/Users/dkcicd/XX_thread_test/child_image/mcuboot/prj_debug.conf'
Merged configuration '/opt/nordic/ncs/v1.8.0/homekit/samples/common/mcuboot/overlay-external_flash.conf'
Merged configuration '/opt/nordic/ncs/v1.8.0/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf'
Merged configuration '/opt/nordic/ncs/v1.8.0/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration '/Users/dkcicd/XX_thread_test/child_image/mcuboot_debug.conf'
Configuration saved to '/Users/dkcicd/XX_thread_test/build/mcuboot/zephyr/.config'
Kconfig header saved to '/Users/dkcicd/XX_thread_test/build/mcuboot/zephyr/include/generated/autoconf.h'
XD_CMAKE_COMMAND:/opt/nordic/ncs/v1.8.0/toolchain/Cellar/cmake/3.21.1/bin/cmake
XD_CMAKE_COMMAND:/opt/nordic/ncs/v1.8.0/toolchain/Cellar/cmake/3.21.1/bin/cmake
XD_COMMON_KCONFIG_ENV_SETTINGS:PYTHON_EXECUTABLE=/opt/nordic/ncs/v1.8.0/toolchain/bin/python3.9;srctree=/opt/nordic/ncs/v1.8.0/zephyr;KERNELVERSION=0x2070000;KCONFIG_CONFIG=/Users/dkcicd/XX_thread_test/build/mcuboot/zephyr/.config;ARCH=arm;ARCH_DIR=/opt/nordic/ncs/v1.8.0/zephyr/arch;BOARD_DIR=/Users/dkcicd/XX_thread_test/boards/arm/nodicevb_nrf52840dk;KCONFIG_BINARY_DIR=/Users/dkcicd/XX_thread_test/build/mcuboot/Kconfig;TOOLCHAIN_KCONFIG_DIR=/opt/nordic/ncs/v1.8.0/zephyr/cmake/toolchain/gnuarmemb;TOOLCHAIN_HAS_NEWLIB=$<IF:$<BOOL:ON>,y,n>;EDT_PICKLE=/Users/dkcicd/XX_thread_test/build/mcuboot/zephyr/edt.pickle;ZEPHYR_NRF_MODULE_DIR=/opt/nordic/ncs/v1.8.0/nrf;ZEPHYR_MCUBOOT_MODULE_DIR=/opt/nordic/ncs/v1.8.0/bootloader/mcuboot;ZEPHYR_MCUBOOT_KCONFIG=/opt/nordic/ncs/v1.8.0/nrf/modules/mcuboot/Kconfig;ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/tee/tfm;ZEPHYR_TRUSTED_FIRMWARE_M_KCONFIG=/opt/nordic/ncs/v1.8.0/nrf/modules/trusted-firmware-m/Kconfig;ZEPHYR_TFM_MCUBOOT_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/tee/tfm-mcuboot;ZEPHYR_CJSON_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/cjson;ZEPHYR_CJSON_KCONFIG=/opt/nordic/ncs/v1.8.0/nrf/modules/cjson/Kconfig;ZEPHYR_HOMEKIT_MODULE_DIR=/opt/nordic/ncs/v1.8.0/homekit;ZEPHYR_PELION_DM_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/pelion-dm;ZEPHYR_CDDL_GEN_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/cddl-gen;ZEPHYR_CDDL_GEN_KCONFIG=/opt/nordic/ncs/v1.8.0/nrf/modules/cddl-gen/Kconfig;ZEPHYR_MEMFAULT_FIRMWARE_SDK_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/memfault-firmware-sdk;ZEPHYR_CANOPENNODE_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/canopennode;ZEPHYR_CANOPENNODE_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/canopennode/Kconfig;ZEPHYR_CIVETWEB_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/civetweb;ZEPHYR_CMSIS_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/hal/cmsis;ZEPHYR_FATFS_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/fs/fatfs;ZEPHYR_HAL_NORDIC_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/hal/nordic;ZEPHYR_HAL_NORDIC_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/hal_nordic/Kconfig;ZEPHYR_ST_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/hal/st;ZEPHYR_LIBMETAL_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/hal/libmetal;ZEPHYR_LITTLEFS_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/fs/littlefs;ZEPHYR_LORAMAC_NODE_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/loramac-node;ZEPHYR_LORAMAC_NODE_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/loramac-node/Kconfig;ZEPHYR_LVGL_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/gui/lvgl;ZEPHYR_LZ4_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/lz4;ZEPHYR_LZ4_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/lz4/Kconfig;ZEPHYR_MBEDTLS_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/crypto/mbedtls;ZEPHYR_MBEDTLS_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/mbedtls/Kconfig;ZEPHYR_MCUMGR_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/mcumgr;ZEPHYR_MIPI_SYS_T_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/debug/mipi-sys-t;ZEPHYR_NANOPB_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/nanopb;ZEPHYR_NANOPB_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/nanopb/Kconfig;ZEPHYR_NRF_HW_MODELS_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/bsim_hw_models/nrf_hw_models;ZEPHYR_OPEN_AMP_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/open-amp;ZEPHYR_OPENTHREAD_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/openthread;ZEPHYR_SEGGER_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/debug/segger;ZEPHYR_TINYCBOR_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/tinycbor;ZEPHYR_TINYCRYPT_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/crypto/tinycrypt;ZEPHYR_TRACERECORDER_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/debug/TraceRecorder;ZEPHYR_TRACERECORDER_KCONFIG=/opt/nordic/ncs/v1.8.0/zephyr/modules/TraceRecorder/Kconfig;ZEPHYR_NRFXLIB_MODULE_DIR=/opt/nordic/ncs/v1.8.0/nrfxlib;ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR=/opt/nordic/ncs/v1.8.0/modules/lib/matter
XD_SHIELD_AS_LIST_ESCAPED:
XD_PYTHON_EXECUTABLE:/opt/nordic/ncs/v1.8.0/toolchain/bin/python3.9
XD_ZEPHYR_BASE:/opt/nordic/ncs/v1.8.0/zephyr
XD_input_configs_are_handwritten:--handwritten-input-configs
XD_KCONFIG_ROOT:/opt/nordic/ncs/v1.8.0/bootloader/mcuboot/boot/zephyr/Kconfig
XD_AUTOCONF_H:/Users/dkcicd/XX_thread_test/build/mcuboot/zephyr/include/generated/autoconf.h
XD_PARSED_KCONFIG_SOURCES_TXT:/Users/dkcicd/XX_thread_test/build/mcuboot/zephyr/kconfig/sources.txt
XD_input_configs:/Users/dkcicd/XX_thread_test/boards/arm/nodicevb_nrf52840dk/nodicevb_nrf52840dk_defconfig;/Users/dkcicd/XX_thread_test/child_image/mcuboot/prj_debug.conf;/opt/nordic/ncs/v1.8.0/homekit/samples/common/mcuboot/overlay-external_flash.conf;/opt/nordic/ncs/v1.8.0/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf;/opt/nordic/ncs/v1.8.0/nrf/subsys/partition_manager/partition_manager_enabled.conf;/Users/dkcicd/XX_thread_test/child_image/mcuboot_debug.conf
XD_APPLICATION_SOURCE_DIR:/opt/nordic/ncs/v1.8.0/bootloader/mcuboot/boot/zephyr
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/v1.8.0/toolchain/bin/arm-none-eabi-gcc
CMake Warning at /opt/nordic/ncs/v1.8.0/nrf/lib/flash_patch/CMakeLists.txt:9 (message):
  

        ----------------------------------------------------------
        --- WARNING: To maintain the integrity of secure boot, ---
        --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
        ----------------------------------------------------------


MCUBoot bootloader key file: /Users/dkcicd/XX_thread_test/child_image/mcuboot/dk-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/dkcicd/XX_thread_test/build/mcuboot
=== child image mcuboot -  end ===

-- Found partition manager static configuration: /opt/nordic/ncs/v1.8.0/zephyr/../homekit/samples/common/configuration/nodicevb_nrf52840dk/pm_static.yml
Partition 'settings_storage' is not included in the dynamic resolving since it is statically defined.
*** Enable Test utilities
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/dkcicd/XX_thread_test/build
-- west build: building application
[1/675] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/opt/nordic/ncs/v1.8.0/mbedtls/library/timing.c.obj

Error message (cut from CLI build log):

  File "/opt/nordic/ncs/v1.8.0/zephyr/scripts/dts/gen_defines.py", line 33, in <module>
    from devicetree import edtlib
  File "/opt/nordic/ncs/v1.8.0/zephyr/scripts/dts/python-devicetree/src/devicetree/edtlib.py", line 77, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'
CMake Error at /opt/nordic/ncs/v1.8.0/zephyr/cmake/dts.cmake:251 (message):
  gen_defines.py failed with return code: 1
Call Stack (most recent call first):
  /opt/nordic/ncs/v1.8.0/zephyr/cmake/app/boilerplate.cmake:545 (include)
  /opt/nordic/ncs/v1.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  /opt/nordic/ncs/v1.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:44 (find_package)


-- Configuring incomplete, errors occurred!
CMake Error at /opt/nordic/ncs/v1.8.0/nrf/cmake/multi_image.cmake:306 (message):
  CMake generation for mcuboot failed, aborting.  Command: 1
Call Stack (most recent call first):
  /opt/nordic/ncs/v1.8.0/nrf/cmake/multi_image.cmake:68 (add_child_image_from_source)
  /opt/nordic/ncs/v1.8.0/nrf/modules/mcuboot/CMakeLists.txt:216 (add_child_image)

I guess maybe python location miss match.

  • VS code python location : 
    • /opt/nordic/ncs/v1.8.0/toolchain/opt/[email protected]/bin/python3.9.   <=== build success
  • CLI python location : 
    • /Applications/Xcode.app/Contents/Developer/usr/bin/python3.8.  <=== build fail

Because this PC is build server, so I can't directly change python location setting.  

I need to know how to correctly setup for CLI build (zephyr), could anyone please give me some advice to fix it? Thanks. Slight smile

About build server other information please reference : 

nRF Connect for Desktop v0.10.3 install SDK just only download toolchain

Prince

Parents
  • Hello Prince,

    I don't know how you installed NCS, but since you are able to build it using nRF Connect for VS Code, you have the proper toolchain installed on the computer, at least.

    In Windows, you would call this file from the command line, which will set up all the tools you need in that command line window, without changing anything externally. 

    /opt/nordic/ncs/v1.8.0/toolchain/cmd/env.cmd

    But I am not familiar with Mac or linux. Perhaps you can try something like this to temporary change the python path: 

    https://stackoverflow.com/a/43354441

    Best regards,

    Edvin

  • Hi Edvin,

    Thanks for your replying.

    But my build server (Mac mini) without "/opt/nordic/ncs/v1.8.0/toolchain/cmd/" folder. 

    Because toolchain can't complement install SDK in my build server, so I almost download all files by manual.

    BTW, do you know how to setup cmake environment variable PYTHON_EXECUTABLE?

    Seem like this environment variable let build fail.

    Build fail path:

    Build success path:

      

    Regards,

    Prince

  • The answer to your question on "why the sample doesn't build" looks like it is that you have the wrong version of python. If you are telling me that you can't update the python version on the computer that you are building on, then I don't know how to fix it. 

    I know that in Windows you can use the env.cmd file to set temporary workspaces/toolchains, but I don't know how to do that on a Mac. I also don't have a mac that I can experiment on.

    Perhaps this discussion can give some clues on how to set a specific python version:
    https://gitlab.kitware.com/cmake/cmake/-/issues/19492

    Best regards,

    Edvin

  • Hi Edvin,

    Thanks for your information, but I still your support...Orz

    Base on build fail message No module named 'yaml' we know cmake can't find 'yaml' module while building.

      File "/opt/nordic/ncs/v1.8.0/zephyr/scripts/dts/gen_defines.py", line 33, in <module>
        from devicetree import edtlib
      File "/opt/nordic/ncs/v1.8.0/zephyr/scripts/dts/python-devicetree/src/devicetree/edtlib.py", line 77, in <module>
        import yaml
    ModuleNotFoundError: No module named 'yaml'
    CMake Error at /opt/nordic/ncs/v1.8.0/zephyr/cmake/dts.cmake:251 (message):
      gen_defines.py failed with return code: 1
    Call Stack (most recent call first):
      /opt/nordic/ncs/v1.8.0/zephyr/cmake/app/boilerplate.cmake:545 (include)
      /opt/nordic/ncs/v1.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      /opt/nordic/ncs/v1.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
      CMakeLists.txt:44 (find_package)

    I search 'yaml' on my Mac and find it location under Nordic SDK.

    So do you know how to let cmake detecting python location to Nordic SDK(/opt/nordic/ncs/v1.8.0/toolchain/opt/[email protected]/bin/python3.9.)?

    Thanks,

    Prince 

  • Hello Prince,

    I believe the yaml is missing because python can't find it. So solving the python issue should solve the yaml issue. 

    On your build server, do you have the folder and executable (correct version of) python inside the toolchain folder?

    BR,

    Edvin

Reply
  • Hello Prince,

    I believe the yaml is missing because python can't find it. So solving the python issue should solve the yaml issue. 

    On your build server, do you have the folder and executable (correct version of) python inside the toolchain folder?

    BR,

    Edvin

Children
  • Yap, previous post that is build server's screenshot.

    So in my build server already had correctly python folder and VS Code can reference it.

    But CLI will reference to system's python not SDK's.

    Could you share me how to let CLI reference to SDK's python folder?

    Thanks,

    Prince

  • Oh. I thought it was the mac that you were testing on next to your build server. To be honest, I am not sure if you are actually using two computers, or if the build server (which is a mac) is the only computer you are using. 

    PrinceKuo said:
    Could you share me how to let CLI reference to SDK's python folder?

    I see that you are asking for this in every post, but I don't know a simple answer to this. Did you test the stackoverflow link in my initial reply? I don't have a mac to test this on, but you need to find some way that your command line sees the version that you want to use instead of the other (wrong) version. This doesn't need to be permanent, but when you are building, the command line (terminal) needs to see that version. I don't know how to do that. You need to do a bit of research. 

    I tried to do some research, and it ended up in the link in my first reply. The reply that discusses using the "alias" in the terminal.

    BR,

    Edvin

  • Hi Edvin,

    I test 'alias', the python version really update.

    But cmake get python location still wrong, so build process still fail...Orz

    Could you have any idea? Slight smile 

    It's very strange and hard, appreciate for your great supporting.

    BR,

    Prince

  • Hello Prince,

    I talked to one of the developers of nRF Connect for Visual Studio Code. He told me you could try this:

    "python3 -m west build --build-dir ..."

    And if that doesn't work, then:

    "/full/path/to/python -m west build --build-dir ..."

    where you replace /full/path/to/python with the full path to the python executable that you want to use, so the one inside the toolchain folder.

    Best regards,

    Edvin

  • Hi Edvin,

    Thanks for your passion and helping. Slight smile

    I have a good news that's I fixing the issue through modifying cmake file to assign SDK's Python while building. I try to record what I did and hope that can help who has the same issue.

    As my build server environment, SDK's Python location is "/opt/nordic/ncs/v1.8.0/toolchain/opt/[email protected]/bin/python3.9"

    step 1. Launch cmake file that response for detecting Python location  

    vim $(Nordic_SDK_folder)/zephyr/cmake

    step 2. Assign target Python location in cmake file

    set(PYTHON_PREFER_EXECUTABLE "/opt/nordic/ncs/v1.8.0/toolchain/opt/[email protected]/bin/python3.9")
      

    Now I can build code through CLI.

    Thanks,

    Prince

Related