Error when building configuration

Hi,

When building a project with nrfonnect , sdk-nrf v1.7.1 that worked for colleagues I got strange 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

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 ?

  • Hi, 

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

    Try to delete the build folder and build again. 

    Are you building the sample (which one) or your application? 

    Are you using nRF9160DK or a custom board? 

    Regards, 
    Amanda

  • I try to delete the build folder and build again (it does not solve the problem).
    I was trying to build our own application.

    We are using the nRF9160DK.

  • Hi Amanda,

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

    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

1 2