oberon_spake2p.o.d: No such file or directory; Cellular IoT Fundamentals course on lesson 2, exercise 2

Hi,

I'm stuck in the Cellular IoT Fundamentals course on lesson 2, exercise 2. When adding build configuration I get the following error:

[31/167] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/crypto_service_mbedcrypto.dir/C_/ncs/v2.6.1/nrf/ext/oberon/psa/drivers/oberon_spake2p.o
FAILED: secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/crypto_service_mbedcrypto.dir/C_/ncs/v2.6.1/nrf/ext/oberon/psa/drivers/oberon_spake2p.o
C:\ncs\toolchains\cf2149caf2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DBL1_HEADER_SIZE=0x000 -DBL1_TRAILER_SIZE=0x000 -DBL2_HEADER_SIZE=0x000 -DBL2_TRAILER_SIZE=0x000 -DCONFIG_TFM_FLOAT_ABI=0 -DCONFIG_TFM_USE_TRUSTZONE -DCRYPTO_HW_ACCELERATOR -DDAUTH_CHIP_DEFAULT -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-psa-crypto-want-config.h\" -DMBEDTLS_PSA_CRYPTO_DRIVERS -DMBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER -DMBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE=\"nrf-psa-crypto-config.h\" -DMCUBOOT_IMAGE_NUMBER=1 -DNRF9120_XXAA -DNRF91_SERIES -DNRF_ALLOW_NON_SECURE_FAULT_HANDLING -DNRF_ALLOW_NON_SECURE_RESET -DNRF_NS_STORAGE -DNRF_SECURE_UART_INSTANCE=1 -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DPLATFORM_DEFAULT_BL1 -DPLATFORM_NS_NV_COUNTERS=0 -DPROJECT_CONFIG_HEADER_FILE=\"C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/modules/nrf/modules/trusted-firmware-m/tfm_config.h\" -DPSA_CRYPTO_SECURE -DPS_CRYPTO_AEAD_ALG_CCM -DPS_ENCRYPTION -DSECURE_UART1 -DTFM_EXCEPTION_INFO_DUMP -DTFM_FIH_PROFILE_OFF -DTFM_INTERNAL_TRUSTED_STORAGE_SERVICE_SID=0x00000070 -DTFM_ISOLATION_LEVEL=1 -DTFM_PARTITION_CRYPTO -DTFM_PARTITION_LOG_LEVEL=TFM_PARTITION_LOG_LEVEL_SILENCE -DTFM_PARTITION_NS_AGENT_TZ -DTFM_PARTITION_PLATFORM -DTFM_SPM_LOG_LEVEL=TFM_SPM_LOG_LEVEL_INFO -DTFM_SPM_LOG_RAW_ENABLED -D__NRF_TFM__ -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/crypto -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/crypto/psa_driver_api -IC:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/include/generated -IC:/ncs/v2.6.1/nrf/subsys/nrf_security/tfm/../include -IC:/ncs/v2.6.1/nrf/ext/oberon/psa/core/include -IC:/ncs/v2.6.1/nrf/ext/oberon/psa/core/library -IC:/ncs/v2.6.1/modules/crypto/mbedtls/include -IC:/ncs/v2.6.1/modules/crypto/mbedtls/library -IC:/ncs/v2.6.1/nrf/subsys/nrf_security/tfm/../../../../nrfxlib/crypto/nrf_oberon/include -IC:/ncs/v2.6.1/nrf/subsys/nrf_security/tfm/../../../../nrfxlib/crypto/nrf_oberon/include/mbedtls -IC:/ncs/v2.6.1/nrf/ext/oberon/psa/drivers -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/interface/include -IC:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/generated/interface/include -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/config -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/include -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/firmware_update -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/initial_attestation -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/internal_trusted_storage -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/platform -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/protected_storage -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/spm/include -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/. -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/native_drivers -IC:/ncs/v2.6.1/modules/hal/nordic/nrfx -IC:/ncs/v2.6.1/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.6.1/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/common -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/platform/.. -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/services/include -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/nrf91/. -IC:/ncs/v2.6.1/nrf/modules/trusted-firmware-m/tfm_boards/include -IC:/ncs/v2.6.1/nrf/modules/trusted-firmware-m/tfm_boards/partition -IC:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/../zephyr/include/generated -IC:/ncs/v2.6.1/nrf/modules/trusted-firmware-m/tfm_boards/board -IC:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/../zephyr/misc/generated/syscalls_links/include -IC:/ncs/v2.6.1/zephyr/include -IC:/ncs/v2.6.1/nrf/modules/trusted-firmware-m/tfm_boards/services/include -IC:/ncs/v2.6.1/nrf/include -IC:/ncs/v2.6.1/nrf/include/tfm -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/accelerator/interface -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/platform/ext -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/cmsis -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/common -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/driver -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/platform/include -IC:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/lib/fih/inc -isystem C:/ncs/v2.6.1/nrfxlib/crypto/nrf_cc310_platform/include -isystem C:/ncs/v2.6.1/nrfxlib/crypto/nrf_oberon/include/mbedtls -isystem C:/ncs/v2.6.1/nrfxlib/crypto/nrf_oberon/include -mcpu=cortex-m33+nofp -Os -DNDEBUG -specs=nano.specs -Wall -Wno-format -Wno-return-type -Wno-unused-but-set-variable -c -fdata-sections -ffunction-sections -fno-builtin -fshort-enums -funsigned-char -mthumb -nostdlib -std=c99 -gdwarf-4 -g -imacros C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/zephyr/include/generated/autoconf.h -Wno-unused-function -Wno-unused-variable -Wno-stringop-overflow -Wno-stringop-overread -Wno-strict-aliasing -Wno-uninitialized -Wno-maybe-uninitialized -Wno-unused-const-variable -Wno-unused-parameter -mfloat-abi=soft -mcmse -Wno-unused-value -include C:/ncs/v2.6.1/modules/tee/tf-m/trusted-firmware-m/platform/include/cmsis_override.h -MD -MT secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/crypto_service_mbedcrypto.dir/C_/ncs/v2.6.1/nrf/ext/oberon/psa/drivers/oberon_spake2p.o -MF secure_fw\partitions\crypto\mbedcrypto\nrf_security_src\CMakeFiles\crypto_service_mbedcrypto.dir\C_\ncs\v2.6.1\nrf\ext\oberon\psa\drivers\oberon_spake2p.o.d -o secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/crypto_service_mbedcrypto.dir/C_/ncs/v2.6.1/nrf/ext/oberon/psa/drivers/oberon_spake2p.o -c C:/ncs/v2.6.1/nrf/ext/oberon/psa/drivers/oberon_spake2p.c
C:/ncs/v2.6.1/nrf/ext/oberon/psa/drivers/oberon_spake2p.c:589:1: fatal error: opening dependency file secure_fw\partitions\crypto\mbedcrypto\nrf_security_src\CMakeFiles\crypto_service_mbedcrypto.dir\C_\ncs\v2.6.1\nrf\ext\oberon\psa\drivers\oberon_spake2p.o.d: No such file or directory
589 | }
| ^
compilation terminated.
ninja: build stopped: subcommand failed.
FAILED: modules/trusted-firmware-m/tfm-prefix/src/tfm-stamp/tfm-build tfm/bin/tfm_s.elf tfm/bin/tfm_s.bin tfm/bin/tfm_s.hex tfm/bin/tfm_s_signed.bin tfm/bin/tfm_s_ns_signed.bin tfm/api_ns/interface/lib/s_veneers.o tfm/api_ns/interface/src/tfm_attest_api.c tfm/api_ns/interface/src/tfm_crypto_api.c tfm/api_ns/interface/src/tfm_fwu_api.c tfm/api_ns/interface/src/tfm_its_api.c tfm/api_ns/interface/src/tfm_platform_api.c tfm/api_ns/interface/src/tfm_ps_api.c tfm/api_ns/interface/src/tfm_tz_psa_ns_api.c tfm/api_ns/interface/src/tfm_ioctl_core_ns_api.c C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/modules/trusted-firmware-m/tfm-prefix/src/tfm-stamp/tfm-build C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/bin/tfm_s.elf C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/bin/tfm_s.bin C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/bin/tfm_s.hex C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/bin/tfm_s_signed.bin C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/bin/tfm_s_ns_signed.bin C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/api_ns/interface/lib/s_veneers.o C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/api_ns/interface/src/tfm_attest_api.c C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/api_ns/interface/src/tfm_crypto_api.c C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/api_ns/interface/src/tfm_fwu_api.c C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/api_ns/interface/src/tfm_its_api.c C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/api_ns/interface/src/tfm_platform_api.c C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/api_ns/interface/src/tfm_ps_api.c C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/api_ns/interface/src/tfm_tz_psa_ns_api.c C:/Users/renof/Documents/coding/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm/api_ns/interface/src/tfm_ioctl_core_ns_api.c
cmd.exe /C "cd /D C:\Users\renof\Documents\coding\cell-fund\v2.4.0-v2.x.x\lesson2\cellfund_less2_exer2_solution\build\tfm && C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.exe --build . -j 1"
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.EXE' --build 'c:\Users\renof\Documents\coding\cell-fund\v2.4.0-v2.x.x\lesson2\cellfund_less2_exer2_solution\build'

I'm using the nRF9161 DK.

This is my build configuration:

The folder "\build\tfm\secure_fw\partitions\crypto\mbedcrypto\nrf_security_src\CMakeFiles\crypto_service_mbedcrypto.dir\C_\ncs\v2.6.1\nrf\ext\oberon\psa\drivers" is empty

I also tried the solution cellfund_less2_exer2_solution, but there the issue is the same.

How can I solve this?

Thanks!

Rene

Related