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

  • Hi Rene,

    I did a quick try and there is no problem. Just try to short the path of the folder, put it into under root folder of your disk.

    C:\DEVA\cell-fund\v2.4.0-v2.x.x\lesson2\cellfund_less2_exer2_solution>west build -p  -b nrf9161dk_nrf9161_ns  
    -- west build: making build dir C:\DEVA\cell-fund\v2.4.0-v2.x.x\lesson2\cellfund_less2_exer2_solution\build pristine
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/DEVA/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.6.20240304.889616714482 for building. (C:/NCS/toolchains/cf2149caf2/cmake)
    -- Found Python3: C:/NCS/toolchains/cf2149caf2/opt/bin/python.exe (found suitable version "3.9.13", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: C:/NCS/v2.6.1/zephyr/.cache
    -- Zephyr version: 3.5.99 (C:/NCS/v2.6.1/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf9161dk_nrf9161_ns, Revision: 0.9.0
    -- Found host-tools: zephyr 0.16.5 (C:/NCS/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (C:/NCS/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found Dtc: C:/NCS/toolchains/cf2149caf2/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/NCS/v2.6.1/zephyr/boards/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_ns.dts
    -- Generated zephyr.dts: C:/DEVA/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/DEVA/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/DEVA/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/zephyr/dts.cmake
    Parsing C:/NCS/v2.6.1/zephyr/Kconfig
    Loaded configuration 'C:/NCS/v2.6.1/zephyr/boards/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_ns_defconfig'
    Merged configuration 'C:/DEVA/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/prj.conf'
    Configuration saved to 'C:/DEVA/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/zephyr/.config'
    Kconfig header saved to 'C:/DEVA/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") 
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/NCS/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    Dropping partition 'nonsecure_storage' since it is empty.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/DEVA/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build
    ←[92m-- west build: building application
    [2/268] Generating include/generated/version.h
    -- Zephyr version: 3.5.99 (C:/NCS/v2.6.1/zephyr), build: v3.5.99-ncs1-1-4-ga681edb8d456
    [7/268] Generating ../../tfm/CMakeCache.txt
    CMake Warning at cmake/version.cmake:22 (message):
      Actual TF-M version is not available from Git repository.  Settled to
      v2.0.0
    Call Stack (most recent call first):
      CMakeLists.txt:22 (include)
    
    
    -- Found Git: C:/NCS/toolchains/cf2149caf2/mingw64/bin/git.exe (found version "2.37.3.windows.1")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/NCS/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/NCS/toolchains/cf2149caf2/opt/bin/python.exe (found version "3.9.13") found components: Interpreter
    CMake Deprecation Warning at C:/NCS/v2.6.1/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
      'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
      instead.
    Call Stack (most recent call first):
      C:/NCS/v2.6.1/zephyr/cmake/modules/python.cmake:16 (find_package)
      C:/NCS/v2.6.1/zephyr/cmake/modules/user_cache.cmake:30 (include)
      C:/NCS/v2.6.1/zephyr/cmake/modules/extensions.cmake:5 (include)
      C:/NCS/v2.6.1/nrf/subsys/nrf_security/tfm/CMakeLists.txt:38 (include)
    
    
    -- Found Python3: C:/NCS/toolchains/cf2149caf2/opt/bin/python.exe (found suitable version "3.9.13", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/NCS/v2.6.1/zephyr/.cache
    -- Configuring done
    -- Generating done
    CMake Warning:
      Manually-specified variables were not used by the project:
    
        CRYPTO_RNG_MODULE_ENABLED
        MBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE
        PYTHON_PREFER
    
    
    -- Build files have been written to: C:/DEVA/cell-fund/v2.4.0-v2.x.x/lesson2/cellfund_less2_exer2_solution/build/tfm
    [12/268] Performing build step for 'tfm'
    [163/167] Linking C executable bin\tfm_s.axf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       32096 B        32 KB     97.95%
                 RAM:       10416 B        32 KB     31.79%
    [167/167] Generating ../bin/tfm_s.hex
    [15/268] Performing install step for 'tfm'
    -- Install configuration: "MinSizeRel"
    ----- Installing platform NS -----
    [266/268] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       77956 B       992 KB      7.67%
                 RAM:       24384 B     211608 B     11.52%
            IDT_LIST:          0 GB        32 KB      0.00%
    [268/268] Generating zephyr/merged.hex

    Best regards,

    Charlie

Related