Error when building configuration

Hi,

When building a project with nrfonnect , sdk-nrf v1.7.1 that worked for colleagues I got strange warnings:

warning: NRFX_UARTE2 (defined at /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/modules/hal_nordic/nrfx/Kconfig:366) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied...Codewarning: NRFX_UARTE2 (defined at /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/modules/hal_nordic/nrfx/Kconfig:366) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: 0 (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_NRFX_UARTE2.html and/or look up
NRFX_UARTE2 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.


/media/manu/manuLinux/system/nordic/nRF_connect/nrf_connect_sdk/nrf/samples/spm/prj.conf:6: warning: attempt to assign the value 'y' to the undefined symbol NCS_SAMPLES_DEFAULTS

/media/manu/manuLinux/system/nordic/nRF_connect/nrf_connect_sdk/nrf/samples/spm/prj.conf:8: warning: attempt to assign the value 'y' to the undefined symbol IS_SPM

/media/manu/manuLinux/system/nordic/nRF_connect/nrf_connect_sdk/nrf/samples/spm/prj.conf:9: warning: attempt to assign the value 'y' to the undefined symbol FW_INFO

/media/manu/manuLinux/system/nordic/nRF_connect/nrf_connect_sdk/nrf/subsys/partition_manager/partition_manager_enabled.conf:7: warning: attempt to assign the value 'y' to the undefined symbol PARTITION_MANAGER_ENABLED

/media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/child_image/spm.conf:2: warning: attempt to assign the value 'y' to the undefined symbol SPM_NRF_UARTE2_NS

/media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/child_image/spm.conf:5: warning: attempt to assign the value 'y' to the undefined symbol SPM_NRF_REGULATORS_NS

/media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/spm/zephyr/misc/generated/extra_kconfig_options.conf:2: warning: attempt to assign the value 'y' to the undefined symbol SPM_SECURE_SERVICES

/media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/spm/zephyr/misc/generated/extra_kconfig_options.conf:3: warning: attempt to assign the value 'y' to the undefined symbol SPM_SERVICE_FIND_FIRMWARE_INFO

/media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/spm/zephyr/misc/generated/extra_kconfig_options.conf:4: warning: attempt to assign the value 'y' to the undefined symbol SPM_SERVICE_READ

/media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/spm/zephyr/misc/generated/extra_kconfig_options.conf:5: warning: attempt to assign the value 'y' to the undefined symbol SPM_SERVICE_RNG

/media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/spm/zephyr/misc/generated/extra_kconfig_options.conf:6: warning: attempt to assign the value 'y' to the undefined symbol SPM_SERVICE_S0_ACTIVE

warning: HAS_NRFX (defined at /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/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_NRF91X (defined at /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/soc/arm/nordic_nrf/nrf91/Kconfig.series:6), with value y, direct dependencies <choice> (value: y), and select condition <choice> (value: y)

warning: NRFX_CLOCK (defined at /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/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 /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/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 /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/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 /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/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)

error: Aborting due to Kconfig warnings

and the building aborts.

What is very strange is that some of the files where error are reported do not exist on my file system:

  1. /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/modules/hal_nordic/nrfx/Kconfig
  2. /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/drivers/clock_control/Kconfig.nrf
  3. /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/soc/arm/nordic_nrf/nrf91/Kconfig.series

A lot of things are missing in the build directory that the building is trying to use (/media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build)

  • modules/hal_nordic
  • drivers
  • soc

I also get CMake warning about old behaviors but I do not know if this is related

=== child image spm -  begin ===
Including boilerplate (Zephyr base): /home/manu/manuLinux/system/nordic/nRF_connect/nrf_connect_sdk/zephyr/cmake/app/boilerplate.cmake
CMake Deprecation Warning at /home/manu/manuLinux/system/nordic/nRF_connect/nrf_connect_sdk/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy):
  The OLD behavior for policy CMP0079 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  /home/manu/manuLinux/system/nordic/nRF_connect/nrf_connect_sdk/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  /home/manu/manuLinux/system/nordic/nRF_connect/nrf_connect_sdk/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/custom_serial_lte_modem/build/CMakeLists.txt:8 (find_package)

It correspond tot that policy:

# Use the old CMake behaviour until the build scripts have been ported
# to the new behaviour.
# CMP0079: "target_link_libraries() allows use with targets in other directories"
cmake_policy(SET CMP0079 OLD)

So maybe the problem is related to that ?

Parents Reply Children
  • Hi Amanda,

    I tried a Hello_world sample project and get the exact same error:

    warning: NRFX_UARTE2 (defined at /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/hello_world_9160/hello_world/build/modules/hal_nordic/nrfx/Kconfig:366) was assigned the value 'y' but
    got the value 'n'. Check these unsatisfied dependencies: 0 (=n). See
    http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_NRFX_UARTE2.html and/or look up
    NRFX_UARTE2 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.
    
    
    /media/manu/manuLinux/system/nordic/nRF_connect/nrf_connect_sdk/nrf/samples/spm/prj.conf:6: warning: attempt to assign the value 'y' to the undefined symbol NCS_SAMPLES_DEFAULTS
    
    /media/manu/manuLinux/system/nordic/nRF_connect/nrf_connect_sdk/nrf/samples/spm/prj.conf:8: warning: attempt to assign the value 'y' to the undefined symbol IS_SPM
    
    /media/manu/manuLinux/system/nordic/nRF_connect/nrf_connect_sdk/nrf/samples/spm/prj.conf:9: warning: attempt to assign the value 'y' to the undefined symbol FW_INFO
    
    /media/manu/manuLinux/system/nordic/nRF_connect/nrf_connect_sdk/nrf/subsys/partition_manager/partition_manager_enabled.conf:7: warning: attempt to assign the value 'y' to the undefined symbol PARTITION_MANAGER_ENABLED
    
    /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/hello_world_9160/hello_world/build/spm/zephyr/misc/generated/extra_kconfig_options.conf:2: warning: attempt to assign the value 'y' to the undefined symbol SPM_SECURE_SERVICES
    
    /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/hello_world_9160/hello_world/build/spm/zephyr/misc/generated/extra_kconfig_options.conf:3: warning: attempt to assign the value 'y' to the undefined symbol SPM_SERVICE_FIND_FIRMWARE_INFO
    
    /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/hello_world_9160/hello_world/build/spm/zephyr/misc/generated/extra_kconfig_options.conf:4: warning: attempt to assign the value 'y' to the undefined symbol SPM_SERVICE_READ
    
    /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/hello_world_9160/hello_world/build/spm/zephyr/misc/generated/extra_kconfig_options.conf:5: warning: attempt to assign the value 'y' to the undefined symbol SPM_SERVICE_RNG
    
    warning: HAS_NRFX (defined at /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/hello_world_9160/hello_world/build/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_NRF91X (defined at /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/hello_world_9160/hello_world/build/soc/arm/nordic_nrf/nrf91/Kconfig.series:6), with value y, direct dependencies <choice> (value: y), and select condition <choice> (value: y)
    
    warning: NRFX_CLOCK (defined at /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/hello_world_9160/hello_world/build/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 /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/hello_world_9160/hello_world/build/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 /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/hello_world_9160/hello_world/build/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 /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/hello_world_9160/hello_world/build/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)
    
    error: Aborting due to Kconfig warnings
    
    CMake Error at /home/manu/manuLinux/system/nordic/nRF_connect/nrf_connect_sdk/zephyr/cmake/kconfig.cmake:268 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      /home/manu/manuLinux/system/nordic/nRF_connect/nrf_connect_sdk/zephyr/cmake/app/boilerplate.cmake:554 (include)
      /home/manu/manuLinux/system/nordic/nRF_connect/nrf_connect_sdk/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      /home/manu/manuLinux/system/nordic/nRF_connect/nrf_connect_sdk/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
      /media/manu/manuLinux/code/sources.yguel/straTagGem/stratg/nordic_nrf/nrf9160/hello_world_9160/hello_world/build/CMakeLists.txt:8 (find_package)

    I also check and the building system is also looking for non existent folders:

    • in build/modules directory there is only a nrf repository (no hal_nordic directory)
    • soc/arm/nordic_nrf/nrf91/Kconfig.series does not exist (directory build/soc does not exist)
  • Try this command "west build -p -b nrf9160dk_nrf9160_ns". If it still has the issue, try to run "west update" and do it again.

    -Amanda 

  • Hi,

    It does not change anything. The warnings causing the error are still there and still cause the error.

    Furthermore, the missing folders are still missing.

    - Regards,

    Manuel

  • Hi, 

    I would suggest you delete the NCS and download/install it again. 

    -Amanda

Related