This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CMake Error after NRF SDK updated

Hi all,

My project can be built and run correctly on NRF SDK 1.5.0,

after updated to SDK 1.6.1 and rebuild, it failed and messages below:

Creating solution peripheral_lbs.emProject
D:/nrf_v161/v1.6.1/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp -DBOARD_DIR=D:\nrf_v161\v1.6.1\zephyr\boards\arm\nrf5340dk_nrf5340 -BD:\nrf_v161\v1.6.1\nrf\samples\bluetooth\peripheral_lbs\build_nrf5340dk_nrf5340_cpuapp -SD:\nrf_v161\v1.6.1\nrf\samples\bluetooth\peripheral_lbs -DNCS_TOOLCHAIN_VERSION=1.6.1 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=D:\nrf_v161\v1.6.1\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
-- Application: D:/nrf_v161/v1.6.1/nrf/samples/bluetooth/peripheral_lbs
-- Zephyr version: 2.6.0-rc1 (D:/nrf_v161/v1.6.1/zephyr), build: v2.6.0-rc1-ncs1
-- Found Python3: D:/nrf_v161/v1.6.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
-- Found west (found suitable version "0.11.0", minimum required is "0.7.1")
-- Configuring incomplete, errors occurred!
Including boilerplate (Zephyr base): D:/nrf_v161/v1.6.1/zephyr/cmake/app/boilerplate.cmake
-- Using NCS Toolchain 1.6.1 for building. (D:/nrf_v161/v1.6.1/toolchain/cmake)
CMake Error at D:/nrf_v161/v1.6.1/zephyr/cmake/zephyr_module.cmake:61 (message):
  Unmet or cyclic dependencies in modules:

  D:/nrf_v161/v1.6.1/nrfxlib depends on: ['hal_nordic']

  D:/nrf_v161/v1.6.1/modules/lib/matter depends on: ['nrfxlib']

  

Call Stack (most recent call first):
  D:/nrf_v161/v1.6.1/zephyr/cmake/app/boilerplate.cmake:183 (include)
  D:/nrf_v161/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  D:/nrf_v161/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:8 (find_package)



error: cmake failed
create_nordic_project.py failed (1)
Is there any idea for this error?

Thanks a lot. 

Parents
  • Hi!

    How have you installed the SDK? If you are using a command line environment please make sure to call "west update" after updating the SDK tag. You may also have to rebuild the project with a "Clean build folder" in SES.

    Best regards,
    Carl Richard

  • After reinstall several times, I build "peripheral_lbs" in nrf/samples/bluetooth without any modification. And it failed with messages below:

    Creating solution peripheral_lbs.emProject
    D:/nrf_v161/v1.6.1/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp -DBOARD_DIR=D:\nrf_v161\v1.6.1\zephyr\boards\arm\nrf5340dk_nrf5340 -BD:\nrf_v161\v1.6.1\nrf\samples\bluetooth\peripheral_lbs\build_nrf5340dk_nrf5340_cpuapp -SD:\nrf_v161\v1.6.1\nrf\samples\bluetooth\peripheral_lbs -DNCS_TOOLCHAIN_VERSION=1.6.1 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=D:\nrf_v161\v1.6.1\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
    -- Application: D:/nrf_v161/v1.6.1/nrf/samples/bluetooth/peripheral_lbs
    -- Zephyr version: 2.6.0-rc1 (D:/nrf_v161/v1.6.1/zephyr), build: v2.6.0-rc1-ncs1
    -- Found Python3: D:/nrf_v161/v1.6.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Found west (found suitable version "0.11.0", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpuapp
    -- Cache files will be written to: D:/nrf_v161/v1.6.1/zephyr/.cache
    -- Found dtc: D:/nrf_v161/v1.6.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (D:/nrf_v161/v1.6.1/toolchain/opt)
    -- Found BOARD.dts: D:/nrf_v161/v1.6.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: D:/nrf_v161/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/build_nrf5340dk_nrf5340_cpuapp/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: D:/nrf_v161/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/build_nrf5340dk_nrf5340_cpuapp/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: D:/nrf_v161/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/build_nrf5340dk_nrf5340_cpuapp/zephyr/include/generated/device_extern.h
    Parsing D:/nrf_v161/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/Kconfig
    Loaded configuration 'D:/nrf_v161/v1.6.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'D:/nrf_v161/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/prj.conf'
    -- Configuring incomplete, errors occurred!
    Including boilerplate (Zephyr base): D:/nrf_v161/v1.6.1/zephyr/cmake/app/boilerplate.cmake
    -- Using NCS Toolchain 1.6.1 for building. (D:/nrf_v161/v1.6.1/toolchain/cmake)
    
    warning: the hex symbol NRF_MODEM_LIB_SHMEM_CTRL_SIZE (defined at D:/nrf_v161/v1.6.1/nrf\lib\nrf_modem_lib/Kconfig:71) has a non-hex default NRF_MODEM_SHMEM_CTRL_SIZE (undefined)
    
    warning: <choice CC3XX_LOCK_VARIANT> (defined at D:/nrf_v161/v1.6.1/nrf\subsys\net\openthread/Kconfig:66) defined with type unknown
    
    warning: <choice CC3XX_LOCK_VARIANT> (defined at D:/nrf_v161/v1.6.1/nrf\subsys\net\openthread/Kconfig:66) defined without a prompt
    
    warning: the default selection CC3XX_ATOMIC_LOCK (undefined) of <choice CC3XX_LOCK_VARIANT> (defined at D:/nrf_v161/v1.6.1/nrf\subsys\net\openthread/Kconfig:66) is not contained in the choice
    
    warning: the default selection CC3XX_HW_MUTEX_LOCK (undefined) of <choice CC3XX_LOCK_VARIANT> (defined at D:/nrf_v161/v1.6.1/nrf\subsys\net\openthread/Kconfig:66) is not contained in the choice
    
    warning: <choice MEMFAULT_HTTP_PERIODIC_UPLOAD_CONTEXT> (defined at D:/nrf_v161/v1.6.1/nrf\modules\memfault/Kconfig:160) defined with type unknown
    
    warning: <choice MEMFAULT_HTTP_PERIODIC_UPLOAD_CONTEXT> (defined at D:/nrf_v161/v1.6.1/nrf\modules\memfault/Kconfig:160) defined without a prompt
    
    warning: the default selection MEMFAULT_HTTP_PERIODIC_UPLOAD_USE_DEDICATED_WORKQUEUE (undefined) of <choice MEMFAULT_HTTP_PERIODIC_UPLOAD_CONTEXT> (defined at D:/nrf_v161/v1.6.1/nrf\modules\memfault/Kconfig:160) is not contained in the choice
    
    warning: HAS_NORDIC_DRIVERS (defined at modules\hal_nordic\Kconfig:7) has direct dependencies 0 with value n, but is currently being y-selected by the following symbols:
     - SOC_SERIES_NRF53X (defined at soc/arm/nordic_nrf\nrf53\Kconfig.series:6), with value y, direct dependencies <choice> (value: y), and select condition <choice> (value: y)
    
    warning: HAS_NRFX (defined at modules\hal_nordic\nrfx/Kconfig:4) has direct dependencies 0 with value n, but is currently being y-selected by the following symbols:
     - SOC_SERIES_NRF53X (defined at soc/arm/nordic_nrf\nrf53\Kconfig.series:6), with value y, direct dependencies <choice> (value: y), and select condition <choice> (value: y)
    
    warning: NRFX_CLOCK (defined at modules\hal_nordic\nrfx/Kconfig:14) has direct dependencies HAS_HW_NRF_CLOCK && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
     - CLOCK_CONTROL_NRF (defined at drivers/clock_control/Kconfig.nrf:13), with value y, direct dependencies SOC_COMPATIBLE_NRF && CLOCK_CONTROL (value: y), and select condition !CLOCK_CONTROL_NRF_FORCE_ALT && SOC_COMPATIBLE_NRF && CLOCK_CONTROL (value: y)
    
    warning: NRFX_CLOCK_LFXO_TWO_STAGE_ENABLED (defined at modules\hal_nordic\nrfx/Kconfig:18) has direct dependencies NRFX_CLOCK && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
     - CLOCK_CONTROL_NRF_K32SRC_XTAL (defined at drivers/clock_control/Kconfig.nrf:36), with value y, direct dependencies <choice CLOCK_CONTROL_NRF_SOURCE> (value: y), and select condition !SOC_SERIES_BSIM_NRFXX && !CLOCK_CONTROL_NRF_FORCE_ALT && <choice CLOCK_CONTROL_NRF_SOURCE> (value: y)
    
    warning: NRFX_DPPI (defined at modules\hal_nordic\nrfx/Kconfig:26, drivers/serial/Kconfig.nrfx:375) has direct dependencies (HAS_HW_NRF_DPPIC && HAS_NRFX && 0) || (HAS_HW_NRF_DPPIC && (UART_0_NRF_HW_ASYNC || UART_1_NRF_HW_ASYNC || UART_2_NRF_HW_ASYNC || UART_3_NRF_HW_ASYNC) && UART_NRFX && SERIAL) with value n, but is currently being y-selected by the following symbols:
     - UART_ENHANCED_POLL_OUT (defined at drivers/serial/Kconfig.nrfx:388), with value y, direct dependencies (UART_0_ENHANCED_POLL_OUT || UART_1_ENHANCED_POLL_OUT || UART_2_ENHANCED_POLL_OUT || UART_3_ENHANCED_POLL_OUT) && UART_NRFX && SERIAL (value: y), and select condition HAS_HW_NRF_DPPIC && (UART_0_ENHANCED_POLL_OUT || UART_1_ENHANCED_POLL_OUT || UART_2_ENHANCED_POLL_OUT || UART_3_ENHANCED_POLL_OUT) && UART_NRFX && SERIAL (value: y)
    
    warning: NRFX_GPIOTE (defined at modules\hal_nordic\nrfx/Kconfig:65) has direct dependencies HAS_HW_NRF_GPIOTE && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
     - GPIO_NRFX (defined at drivers/gpio/Kconfig.nrfx:4), with value y, direct dependencies SOC_FAMILY_NRF && GPIO (value: y), and select condition SOC_FAMILY_NRF && GPIO (value: y)
    
    warning: NRFX_IPC (defined at modules\hal_nordic\nrfx/Kconfig:73) has direct dependencies HAS_HW_NRF_IPC && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
     - IPM_NRFX (defined at D:/nrf_v161/v1.6.1/zephyr/boards/arm/nrf5340dk_nrf5340/Kconfig:6, drivers/ipm/Kconfig:71), with value y, direct dependencies y (value: y), and select condition HAS_HW_NRF_IPC && IPM (value: y)
    
    warning: NRFX_NVMC (defined at modules\hal_nordic\nrfx/Kconfig:87) has direct dependencies HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
     - SOC_FLASH_NRF (defined at drivers/flash/Kconfig.nrf:10), with value y, direct dependencies SOC_FAMILY_NRF && !FLASH_NRF_FORCE_ALT && FLASH (value: y), and select condition SOC_FAMILY_NRF && !FLASH_NRF_FORCE_ALT && FLASH (value: y)
    
    error: Aborting due to Kconfig warnings
    
    CMake Error at D:/nrf_v161/v1.6.1/zephyr/cmake/kconfig.cmake:264 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      D:/nrf_v161/v1.6.1/zephyr/cmake/app/boilerplate.cmake:555 (include)
      D:/nrf_v161/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      D:/nrf_v161/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
      CMakeLists.txt:8 (find_package)
    
    
    
    error: cmake failed
    create_nordic_project.py failed (1)
     

Reply
  • After reinstall several times, I build "peripheral_lbs" in nrf/samples/bluetooth without any modification. And it failed with messages below:

    Creating solution peripheral_lbs.emProject
    D:/nrf_v161/v1.6.1/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp -DBOARD_DIR=D:\nrf_v161\v1.6.1\zephyr\boards\arm\nrf5340dk_nrf5340 -BD:\nrf_v161\v1.6.1\nrf\samples\bluetooth\peripheral_lbs\build_nrf5340dk_nrf5340_cpuapp -SD:\nrf_v161\v1.6.1\nrf\samples\bluetooth\peripheral_lbs -DNCS_TOOLCHAIN_VERSION=1.6.1 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=D:\nrf_v161\v1.6.1\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
    -- Application: D:/nrf_v161/v1.6.1/nrf/samples/bluetooth/peripheral_lbs
    -- Zephyr version: 2.6.0-rc1 (D:/nrf_v161/v1.6.1/zephyr), build: v2.6.0-rc1-ncs1
    -- Found Python3: D:/nrf_v161/v1.6.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Found west (found suitable version "0.11.0", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpuapp
    -- Cache files will be written to: D:/nrf_v161/v1.6.1/zephyr/.cache
    -- Found dtc: D:/nrf_v161/v1.6.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (D:/nrf_v161/v1.6.1/toolchain/opt)
    -- Found BOARD.dts: D:/nrf_v161/v1.6.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: D:/nrf_v161/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/build_nrf5340dk_nrf5340_cpuapp/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: D:/nrf_v161/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/build_nrf5340dk_nrf5340_cpuapp/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: D:/nrf_v161/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/build_nrf5340dk_nrf5340_cpuapp/zephyr/include/generated/device_extern.h
    Parsing D:/nrf_v161/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/Kconfig
    Loaded configuration 'D:/nrf_v161/v1.6.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'D:/nrf_v161/v1.6.1/nrf/samples/bluetooth/peripheral_lbs/prj.conf'
    -- Configuring incomplete, errors occurred!
    Including boilerplate (Zephyr base): D:/nrf_v161/v1.6.1/zephyr/cmake/app/boilerplate.cmake
    -- Using NCS Toolchain 1.6.1 for building. (D:/nrf_v161/v1.6.1/toolchain/cmake)
    
    warning: the hex symbol NRF_MODEM_LIB_SHMEM_CTRL_SIZE (defined at D:/nrf_v161/v1.6.1/nrf\lib\nrf_modem_lib/Kconfig:71) has a non-hex default NRF_MODEM_SHMEM_CTRL_SIZE (undefined)
    
    warning: <choice CC3XX_LOCK_VARIANT> (defined at D:/nrf_v161/v1.6.1/nrf\subsys\net\openthread/Kconfig:66) defined with type unknown
    
    warning: <choice CC3XX_LOCK_VARIANT> (defined at D:/nrf_v161/v1.6.1/nrf\subsys\net\openthread/Kconfig:66) defined without a prompt
    
    warning: the default selection CC3XX_ATOMIC_LOCK (undefined) of <choice CC3XX_LOCK_VARIANT> (defined at D:/nrf_v161/v1.6.1/nrf\subsys\net\openthread/Kconfig:66) is not contained in the choice
    
    warning: the default selection CC3XX_HW_MUTEX_LOCK (undefined) of <choice CC3XX_LOCK_VARIANT> (defined at D:/nrf_v161/v1.6.1/nrf\subsys\net\openthread/Kconfig:66) is not contained in the choice
    
    warning: <choice MEMFAULT_HTTP_PERIODIC_UPLOAD_CONTEXT> (defined at D:/nrf_v161/v1.6.1/nrf\modules\memfault/Kconfig:160) defined with type unknown
    
    warning: <choice MEMFAULT_HTTP_PERIODIC_UPLOAD_CONTEXT> (defined at D:/nrf_v161/v1.6.1/nrf\modules\memfault/Kconfig:160) defined without a prompt
    
    warning: the default selection MEMFAULT_HTTP_PERIODIC_UPLOAD_USE_DEDICATED_WORKQUEUE (undefined) of <choice MEMFAULT_HTTP_PERIODIC_UPLOAD_CONTEXT> (defined at D:/nrf_v161/v1.6.1/nrf\modules\memfault/Kconfig:160) is not contained in the choice
    
    warning: HAS_NORDIC_DRIVERS (defined at modules\hal_nordic\Kconfig:7) has direct dependencies 0 with value n, but is currently being y-selected by the following symbols:
     - SOC_SERIES_NRF53X (defined at soc/arm/nordic_nrf\nrf53\Kconfig.series:6), with value y, direct dependencies <choice> (value: y), and select condition <choice> (value: y)
    
    warning: HAS_NRFX (defined at modules\hal_nordic\nrfx/Kconfig:4) has direct dependencies 0 with value n, but is currently being y-selected by the following symbols:
     - SOC_SERIES_NRF53X (defined at soc/arm/nordic_nrf\nrf53\Kconfig.series:6), with value y, direct dependencies <choice> (value: y), and select condition <choice> (value: y)
    
    warning: NRFX_CLOCK (defined at modules\hal_nordic\nrfx/Kconfig:14) has direct dependencies HAS_HW_NRF_CLOCK && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
     - CLOCK_CONTROL_NRF (defined at drivers/clock_control/Kconfig.nrf:13), with value y, direct dependencies SOC_COMPATIBLE_NRF && CLOCK_CONTROL (value: y), and select condition !CLOCK_CONTROL_NRF_FORCE_ALT && SOC_COMPATIBLE_NRF && CLOCK_CONTROL (value: y)
    
    warning: NRFX_CLOCK_LFXO_TWO_STAGE_ENABLED (defined at modules\hal_nordic\nrfx/Kconfig:18) has direct dependencies NRFX_CLOCK && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
     - CLOCK_CONTROL_NRF_K32SRC_XTAL (defined at drivers/clock_control/Kconfig.nrf:36), with value y, direct dependencies <choice CLOCK_CONTROL_NRF_SOURCE> (value: y), and select condition !SOC_SERIES_BSIM_NRFXX && !CLOCK_CONTROL_NRF_FORCE_ALT && <choice CLOCK_CONTROL_NRF_SOURCE> (value: y)
    
    warning: NRFX_DPPI (defined at modules\hal_nordic\nrfx/Kconfig:26, drivers/serial/Kconfig.nrfx:375) has direct dependencies (HAS_HW_NRF_DPPIC && HAS_NRFX && 0) || (HAS_HW_NRF_DPPIC && (UART_0_NRF_HW_ASYNC || UART_1_NRF_HW_ASYNC || UART_2_NRF_HW_ASYNC || UART_3_NRF_HW_ASYNC) && UART_NRFX && SERIAL) with value n, but is currently being y-selected by the following symbols:
     - UART_ENHANCED_POLL_OUT (defined at drivers/serial/Kconfig.nrfx:388), with value y, direct dependencies (UART_0_ENHANCED_POLL_OUT || UART_1_ENHANCED_POLL_OUT || UART_2_ENHANCED_POLL_OUT || UART_3_ENHANCED_POLL_OUT) && UART_NRFX && SERIAL (value: y), and select condition HAS_HW_NRF_DPPIC && (UART_0_ENHANCED_POLL_OUT || UART_1_ENHANCED_POLL_OUT || UART_2_ENHANCED_POLL_OUT || UART_3_ENHANCED_POLL_OUT) && UART_NRFX && SERIAL (value: y)
    
    warning: NRFX_GPIOTE (defined at modules\hal_nordic\nrfx/Kconfig:65) has direct dependencies HAS_HW_NRF_GPIOTE && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
     - GPIO_NRFX (defined at drivers/gpio/Kconfig.nrfx:4), with value y, direct dependencies SOC_FAMILY_NRF && GPIO (value: y), and select condition SOC_FAMILY_NRF && GPIO (value: y)
    
    warning: NRFX_IPC (defined at modules\hal_nordic\nrfx/Kconfig:73) has direct dependencies HAS_HW_NRF_IPC && HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
     - IPM_NRFX (defined at D:/nrf_v161/v1.6.1/zephyr/boards/arm/nrf5340dk_nrf5340/Kconfig:6, drivers/ipm/Kconfig:71), with value y, direct dependencies y (value: y), and select condition HAS_HW_NRF_IPC && IPM (value: y)
    
    warning: NRFX_NVMC (defined at modules\hal_nordic\nrfx/Kconfig:87) has direct dependencies HAS_NRFX && 0 with value n, but is currently being y-selected by the following symbols:
     - SOC_FLASH_NRF (defined at drivers/flash/Kconfig.nrf:10), with value y, direct dependencies SOC_FAMILY_NRF && !FLASH_NRF_FORCE_ALT && FLASH (value: y), and select condition SOC_FAMILY_NRF && !FLASH_NRF_FORCE_ALT && FLASH (value: y)
    
    error: Aborting due to Kconfig warnings
    
    CMake Error at D:/nrf_v161/v1.6.1/zephyr/cmake/kconfig.cmake:264 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      D:/nrf_v161/v1.6.1/zephyr/cmake/app/boilerplate.cmake:555 (include)
      D:/nrf_v161/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      D:/nrf_v161/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
      CMakeLists.txt:8 (find_package)
    
    
    
    error: cmake failed
    create_nordic_project.py failed (1)
     

Children
  • Understood! Thanks for the clarification. I believe there may be an issue with your installation. Please try the following:
    - Deactivate any VPN and/or Antivirus
    - Move outside any corporate network
    - Remove the current installation
    - Install again

    We have seen several instances where VPN and Antivirus leads to issues with the installation.

    Best regards,
    Carl Richard

  • Thank you Carl for your answer! 

    I reinstall sdk 1.6.1 again according to your advice above. And there are still errors:

    Creating solution peripheral_lbs.emProject
    D:/nrfsdk161/v1.6.1/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp -DBOARD_DIR=D:\nrfsdk161\v1.6.1\zephyr\boards\arm\nrf5340dk_nrf5340 -BD:\nrfsdk161\v1.6.1\nrf\samples\bluetooth\peripheral_lbs\build_nrf5340dk_nrf5340_cpuapp -SD:\nrfsdk161\v1.6.1\nrf\samples\bluetooth\peripheral_lbs -DNCS_TOOLCHAIN_VERSION=1.6.1 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=D:\nrfsdk161\v1.6.1\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
    -- Application: D:/nrfsdk161/v1.6.1/nrf/samples/bluetooth/peripheral_lbs
    -- Zephyr version: 2.6.0-rc1 (D:/nrfsdk161/v1.6.1/zephyr), build: v2.6.0-rc1-ncs1
    -- Found Python3: D:/nrfsdk161/v1.6.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Found west (found suitable version "0.11.0", minimum required is "0.7.1")
    -- Configuring incomplete, errors occurred!
    Including boilerplate (Zephyr base): D:/nrfsdk161/v1.6.1/zephyr/cmake/app/boilerplate.cmake
    -- Using NCS Toolchain 1.6.1 for building. (D:/nrfsdk161/v1.6.1/toolchain/cmake)
    CMake Error at D:/nrfsdk161/v1.6.1/zephyr/cmake/zephyr_module.cmake:61 (message):
      Unmet or cyclic dependencies in modules:
    
      D:/nrfsdk161/v1.6.1/nrfxlib depends on: ['hal_nordic']
    
      
    
    Call Stack (most recent call first):
      D:/nrfsdk161/v1.6.1/zephyr/cmake/app/boilerplate.cmake:183 (include)
      D:/nrfsdk161/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      D:/nrfsdk161/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
      CMakeLists.txt:8 (find_package)
    
    
    
    error: cmake failed
    create_nordic_project.py failed (1)
    Does that mean there is still installation problems?

  • Hello again!

    There seems like there still is some errors then. Could you try the following:

    - Open the drop down menu besides the installed SDK (press the small arrow).
    - Press "Open bash"
    - Write "west update"

    Share the output from the command with me.

    Best regards,
    Carl Richard

Related