CMake is trying to create a directory at the system root location: /boot/zephyr/

Hi !!!
Currently i am using Ncs 2.9.2 loaded with nRF Connect for Desktop and sdk-sidewalk is git clone branch 2.9.2
I'm trying to build samples for nrf52840 board to test sidewalk and lora functionality but currently i cant build because of error

I really want to build and flash successfully for nrf52840 board. I hope you will support me to fix this error successfully. Thank you all !!!


(.venv) (v2.9.2) huydf@HuyDFs-MacBook-Pro sid_end_device % west build -b nrf52840dk_nrf52840

-- west build: generating a build system

Loading Zephyr module(s) (Zephyr base): sysbuild_default

-- Found Python3: /opt/nordic/ncs/toolchains/b8efef2ad5/opt/[email protected]/bin/python3.12 (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter

-- Cache files will be written to: /Users/huydf/Library/Caches/zephyr

-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")

-- Board: nrf52840dk, qualifiers: nrf52840

Parsing /opt/nordic/ncs/v2.9.2/sidewalk/samples/sid_end_device/Kconfig.sysbuild

Loaded configuration '/opt/nordic/ncs/v2.9.2/sidewalk/samples/sid_end_device/build/_sysbuild/empty.conf'

Merged configuration '/opt/nordic/ncs/v2.9.2/sidewalk/samples/sid_end_device/build/_sysbuild/empty.conf'

Configuration saved to '/opt/nordic/ncs/v2.9.2/sidewalk/samples/sid_end_device/build/zephyr/.config'

Kconfig header saved to '/opt/nordic/ncs/v2.9.2/sidewalk/samples/sid_end_device/build/_sysbuild/autoconf.h'

CMake Error at /opt/nordic/ncs/toolchains/b8efef2ad5/Cellar/cmake/3.21.0/share/cmake/Modules/ExternalProject.cmake:1738 (file):

  file problem creating directory: /boot/zephyr/

Call Stack (most recent call first):

  /opt/nordic/ncs/toolchains/b8efef2ad5/Cellar/cmake/3.21.0/share/cmake/Modules/ExternalProject.cmake:3652 (_ep_set_directories)

  cmake/modules/sysbuild_extensions.cmake:360 (ExternalProject_Add)

  images/bootloader/CMakeLists.txt:8 (ExternalZephyrProject_Add)

CMake Error at /opt/nordic/ncs/toolchains/b8efef2ad5/Cellar/cmake/3.21.0/share/cmake/Modules/ExternalProject.cmake:1740 (message):

  dir '/boot/zephyr/' does not exist after file(MAKE_DIRECTORY)

Call Stack (most recent call first):

  /opt/nordic/ncs/toolchains/b8efef2ad5/Cellar/cmake/3.21.0/share/cmake/Modules/ExternalProject.cmake:3652 (_ep_set_directories)

  cmake/modules/sysbuild_extensions.cmake:360 (ExternalProject_Add)

  images/bootloader/CMakeLists.txt:8 (ExternalZephyrProject_Add)

-- Configuring incomplete, errors occurred!

See also "/opt/nordic/ncs/v2.9.2/sidewalk/samples/sid_end_device/build/CMakeFiles/CMakeOutput.log".

FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/b8efef2ad5/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/toolchains/b8efef2ad5/opt/[email protected]/bin/python3.12 -B/opt/nordic/ncs/v2.9.2/sidewalk/samples/sid_end_device/build -GNinja -DBOARD=nrf52840dk_nrf52840 -S/opt/nordic/ncs/v2.9.2/zephyr/share/sysbuild -DAPP_DIR:PATH=/opt/nordic/ncs/v2.9.2/sidewalk/samples/sid_end_device

Parents Reply Children
Related