Build configuration fails with kconfig.py: [Errno 13] Permission denied

HI

When creating a simple blinky application from template in zephyr and trying to build a configuration i get following errors. 

Parsing C:/Development/nrf54/blinky_zephyr/Kconfig
C:/ncs/v2.8.0/zephyr/scripts/kconfig/kconfig.py: [Errno 13] Permission denied: 'C:/Development/nrf54/blinky_zephyr/Kconfig'
CMake Error at C:/ncs/v2.8.0/zephyr/cmake/modules/kconfig.cmake:396 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  C:/ncs/v2.8.0/nrf/cmake/modules/kconfig.cmake:29 (include)
  C:/ncs/v2.8.0/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
  C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:4 (find_package)


-- Configuring incomplete, errors occurred!
CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
  CMake configure failed for Zephyr project: blinky_zephyr

  Location: C:/Development/nrf54/blinky_zephyr
Call Stack (most recent call first):
  cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake)
  cmake/modules/sysbuild_default.cmake:20 (include)
  C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
  C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  C:/ncs/v2.8.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
  template/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/Development/nrf54/blinky_zephyr/build/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\2d382dcd92\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/2d382dcd92/opt/bin/python.exe '-Bc:\Development\nrf54\blinky_zephyr\build' -GNinja -DBOARD=nrf54l15dk/nrf54l15/cpuapp/ns -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=c:/Development/nrf54/blinky_zephyr/prj.conf -DBOARD_ROOT=c:/development/nrf54/blinky_zephyr '-SC:\ncs\v2.8.0\zephyr\share\sysbuild' '-DAPP_DIR:PATH=c:\Development\nrf54\blinky_zephyr'

How can i add permission to script kconfig so it wont fail? 

Parents
  • Hello,

    So this is the first project you've built, so you do not have any other example of a situation where it works in your environment? Is this windows 11?

    The "permission denied" issue surprised me a bit, not sure if I've seen that before. Are you the admin of this computer, and have access to C/Development ? Could you try placing the project in C/ncs ?

    Regards,

    Elfving

  • Hi
    Yes this is the first project, im following dev academy now that i got nrf54l15.
    No, sadly i dont have any other working example or situation as all of the work we did was on the nRF5 SDK and we want to migrate to new one. 
    yes its windows 11.
    Yes iI have an admin rights. I tried both in C/Development and C/ncs, both unsuccessfully.

Reply Children
Related