Can't build nRF Connect SDK example: compiler can't build object files with generated compile options

Hello! I've run into a problem after updating much of the environment (cmake, ninja, python, git, etc.) that I can't compile the code in nRF Connect SDK now. 

Initially I observed this problem on a project using an older version of nCS (1.6.1)  and gnuarmemb toolchain, so I thought, maybe it's somehow conflicting with the updated environment. So I updated nCS to 2.2.0 and downloaded new zephyr-sdk-0.15.2 toolchain. But no, the same problem. It occurs to me now on both versions of nCS and with both toolchains (compilers)

Ok, so I go to nrf/samples/crypto/ecdsa and try to execute west build -b nrf5340dk_nrf5340_cpuapp

And the build shortly fails with the following output:

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa
-- Found Python3: D:/Software/Anaconda3/python.exe (found suitable exact version "3.9.15") found components: Interpreter
-- Cache files will be written to: D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/.cache
-- Zephyr version: 3.2.99 (D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf5340dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.15.2 (D:/Programming/Embedded/nRF/zephyr-sdk-0.15.2)
-- Found toolchain: zephyr 0.15.2 (D:/Programming/Embedded/nRF/zephyr-sdk-0.15.2)
-- Found Dtc: D:/Software/Chocolatey/bin/dtc.exe (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Generated zephyr.dts: D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/dts.cmake
Parsing D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/Kconfig
Loaded configuration 'D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
Merged configuration 'D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/prj.conf'
Configuration saved to 'D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/.config'
Kconfig header saved to 'D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: D:/Programming/Embedded/nRF/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build
-- west build: building application
[1/250] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto.c.obj
FAILED: modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto.c.obj
ccache D:\Programming\Embedded\nRF\zephyr-sdk-0.15.2\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/nrf53 -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/lib/libc/minimal/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/common/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/tests/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/cmsis/CMSIS/Core/Include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/drivers/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/mdk -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/hal_nordic/nrfx/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/SEGGER -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/Config -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/segger/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include/mbedtls -Id:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -Id:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/mbedtls -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/psa -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/mbedtls -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/psa -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/src/drivers/nrf_cc3xx/include -isystem D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=D:/Programming/Embedded/nRF/zephyr-sdk-0.15.2/arm-zephyr-eabi/arm-zephyr-eabi -imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa=CMAKE_SOURCE_DIR -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr=ZEPHYR_BASE -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -Wno-unused-function -Wno-unused-variable -MD -MT modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto.c.obj -MF modules\nrfxlib\nrfxlib\nrf_security\src\CMakeFiles\mbedcrypto.dir\D_\Programming\Embedded\nRF\nRF-Connect-SDK\mbedtls\library\psa_crypto.c.obj.d -o modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto.c.obj -c D:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto.c
[2/250] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_aead.c.obj
FAILED: modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_aead.c.obj
ccache D:\Programming\Embedded\nRF\zephyr-sdk-0.15.2\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/nrf53 -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/lib/libc/minimal/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/common/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/tests/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/cmsis/CMSIS/Core/Include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/drivers/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/mdk -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/hal_nordic/nrfx/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/SEGGER -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/Config -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/segger/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include/mbedtls -Id:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -Id:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/mbedtls -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/psa -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/mbedtls -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/psa -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/src/drivers/nrf_cc3xx/include -isystem D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=D:/Programming/Embedded/nRF/zephyr-sdk-0.15.2/arm-zephyr-eabi/arm-zephyr-eabi -imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa=CMAKE_SOURCE_DIR -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr=ZEPHYR_BASE -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -Wno-unused-function -Wno-unused-variable -MD -MT modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_aead.c.obj -MF modules\nrfxlib\nrfxlib\nrf_security\src\CMakeFiles\mbedcrypto.dir\D_\Programming\Embedded\nRF\nRF-Connect-SDK\mbedtls\library\psa_crypto_aead.c.obj.d -o modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_aead.c.obj -c D:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_aead.c
[3/250] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_cipher.c.obj
FAILED: modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_cipher.c.obj
ccache D:\Programming\Embedded\nRF\zephyr-sdk-0.15.2\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/nrf53 -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/lib/libc/minimal/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/common/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/tests/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/cmsis/CMSIS/Core/Include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/drivers/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/mdk -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/hal_nordic/nrfx/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/SEGGER -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/Config -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/segger/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include/mbedtls -Id:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -Id:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/mbedtls -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/psa -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/mbedtls -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/psa -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/src/drivers/nrf_cc3xx/include -isystem D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=D:/Programming/Embedded/nRF/zephyr-sdk-0.15.2/arm-zephyr-eabi/arm-zephyr-eabi -imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa=CMAKE_SOURCE_DIR -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr=ZEPHYR_BASE -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -Wno-unused-function -Wno-unused-variable -MD -MT modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_cipher.c.obj -MF modules\nrfxlib\nrfxlib\nrf_security\src\CMakeFiles\mbedcrypto.dir\D_\Programming\Embedded\nRF\nRF-Connect-SDK\mbedtls\library\psa_crypto_cipher.c.obj.d -o modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_cipher.c.obj -c D:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_cipher.c
[4/250] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_client.c.obj
FAILED: modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_client.c.obj
ccache D:\Programming\Embedded\nRF\zephyr-sdk-0.15.2\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/nrf53 -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/lib/libc/minimal/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/common/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/tests/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/cmsis/CMSIS/Core/Include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/drivers/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/mdk -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/hal_nordic/nrfx/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/SEGGER -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/Config -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/segger/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include/mbedtls -Id:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -Id:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/mbedtls -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/psa -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/mbedtls -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/psa -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/src/drivers/nrf_cc3xx/include -isystem D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=D:/Programming/Embedded/nRF/zephyr-sdk-0.15.2/arm-zephyr-eabi/arm-zephyr-eabi -imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa=CMAKE_SOURCE_DIR -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr=ZEPHYR_BASE -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -Wno-unused-function -Wno-unused-variable -MD -MT modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_client.c.obj -MF modules\nrfxlib\nrfxlib\nrf_security\src\CMakeFiles\mbedcrypto.dir\D_\Programming\Embedded\nRF\nRF-Connect-SDK\mbedtls\library\psa_crypto_client.c.obj.d -o modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_client.c.obj -c D:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_client.c
[5/250] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_ecp.c.obj
FAILED: modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_ecp.c.obj
ccache D:\Programming\Embedded\nRF\zephyr-sdk-0.15.2\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/nrf53 -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/lib/libc/minimal/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/common/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/tests/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/cmsis/CMSIS/Core/Include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/drivers/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/mdk -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/hal_nordic/nrfx/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/SEGGER -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/Config -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/segger/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include/mbedtls -Id:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -Id:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/mbedtls -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/psa -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/mbedtls -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/psa -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/src/drivers/nrf_cc3xx/include -isystem D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=D:/Programming/Embedded/nRF/zephyr-sdk-0.15.2/arm-zephyr-eabi/arm-zephyr-eabi -imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa=CMAKE_SOURCE_DIR -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr=ZEPHYR_BASE -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -Wno-unused-function -Wno-unused-variable -MD -MT modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_ecp.c.obj -MF modules\nrfxlib\nrfxlib\nrf_security\src\CMakeFiles\mbedcrypto.dir\D_\Programming\Embedded\nRF\nRF-Connect-SDK\mbedtls\library\psa_crypto_ecp.c.obj.d -o modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_ecp.c.obj -c D:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_ecp.c
[6/250] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_hash.c.obj
FAILED: modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_hash.c.obj
ccache D:\Programming\Embedded\nRF\zephyr-sdk-0.15.2\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/nrf53 -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/lib/libc/minimal/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/common/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/tests/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/cmsis/CMSIS/Core/Include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/drivers/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/mdk -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/hal_nordic/nrfx/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/SEGGER -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/Config -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/segger/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include/mbedtls -Id:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -Id:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/mbedtls -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/psa -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/mbedtls -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/psa -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/src/drivers/nrf_cc3xx/include -isystem D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=D:/Programming/Embedded/nRF/zephyr-sdk-0.15.2/arm-zephyr-eabi/arm-zephyr-eabi -imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa=CMAKE_SOURCE_DIR -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr=ZEPHYR_BASE -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -Wno-unused-function -Wno-unused-variable -MD -MT modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_hash.c.obj -MF modules\nrfxlib\nrfxlib\nrf_security\src\CMakeFiles\mbedcrypto.dir\D_\Programming\Embedded\nRF\nRF-Connect-SDK\mbedtls\library\psa_crypto_hash.c.obj.d -o modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_hash.c.obj -c D:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_hash.c
[7/250] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_mac.c.obj
FAILED: modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_mac.c.obj
ccache D:\Programming\Embedded\nRF\zephyr-sdk-0.15.2\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/nrf53 -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/lib/libc/minimal/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/common/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/tests/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/cmsis/CMSIS/Core/Include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/drivers/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/mdk -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/hal_nordic/nrfx/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/SEGGER -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/Config -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/segger/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include/mbedtls -Id:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -Id:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/mbedtls -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/psa -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/mbedtls -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/psa -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/src/drivers/nrf_cc3xx/include -isystem D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=D:/Programming/Embedded/nRF/zephyr-sdk-0.15.2/arm-zephyr-eabi/arm-zephyr-eabi -imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa=CMAKE_SOURCE_DIR -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr=ZEPHYR_BASE -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -Wno-unused-function -Wno-unused-variable -MD -MT modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_mac.c.obj -MF modules\nrfxlib\nrfxlib\nrf_security\src\CMakeFiles\mbedcrypto.dir\D_\Programming\Embedded\nRF\nRF-Connect-SDK\mbedtls\library\psa_crypto_mac.c.obj.d -o modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_mac.c.obj -c D:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_mac.c
[8/250] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_rsa.c.obj
FAILED: modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_rsa.c.obj
ccache D:\Programming\Embedded\nRF\zephyr-sdk-0.15.2\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/nrf53 -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/lib/libc/minimal/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/common/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/tests/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/cmsis/CMSIS/Core/Include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/drivers/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/mdk -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/hal_nordic/nrfx/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/SEGGER -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/Config -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/segger/. -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include/mbedtls -Id:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -Id:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/mbedtls -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/psa -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/mbedtls -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/psa -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library -ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/src/drivers/nrf_cc3xx/include -isystem D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=D:/Programming/Embedded/nRF/zephyr-sdk-0.15.2/arm-zephyr-eabi/arm-zephyr-eabi -imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa=CMAKE_SOURCE_DIR -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr=ZEPHYR_BASE -fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -Wno-unused-function -Wno-unused-variable -MD -MT modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_rsa.c.obj -MF modules\nrfxlib\nrfxlib\nrf_security\src\CMakeFiles\mbedcrypto.dir\D_\Programming\Embedded\nRF\nRF-Connect-SDK\mbedtls\library\psa_crypto_rsa.c.obj.d -o modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_rsa.c.obj -c D:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto_rsa.c
[9/250] Generating include/generated/version.h
-- Zephyr version: 3.2.99 (D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr), build: v3.2.99-ncs1
[10/250] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'D:\Software\CMake\bin\cmake.EXE' --build 'D:\Programming\Embedded\nRF\nRF-Connect-SDK\nrf\samples\crypto\ecdsa\build'


OK, it looks a lot like the similar threads where the error was because of too long paths. But I tried moving my nCS into the D:/ drive directly and it was the same.

Now, this doesn't give much info about the error besides "FAILED", so I try to call CMake without west first:

cmake
	-DCMAKE_BUILD_TYPE=Debug 
	-DCMAKE_MAKE_PROGRAM=ninja
	-DCMAKE_C_COMPILER=D:/Programming/Embedded/nRF/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe 
	-DCMAKE_CXX_COMPILER=D:/Programming/Embedded/nRF/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++.exe 
	-G Ninja 
	-DBOARD=nrf5340dk_nrf5340_cpuapp 
	-S D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa 
	-B D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build

CMake creates the build directory, and then I try to compile the first failed file (psa_crypto.c), taking all the build parameters out of the west output above:

D:\Programming\Embedded\nRF\zephyr-sdk-0.15.2\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe 
	-DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" 
	-DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\"
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated 
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/nrf53
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/lib/libc/minimal/include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/common/.
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/tests/include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/cmsis/CMSIS/Core/Include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/drivers/include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/mdk
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/hal_nordic/nrfx/.
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/SEGGER
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/Config
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/segger/.
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include/mbedtls
	-ID:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include
	-ID:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/mbedtls
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/psa
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/mbedtls
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/psa
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/src/drivers/nrf_cc3xx/include 
	-isystem D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_platform/include 
	-fno-strict-aliasing 
	-Os 
	-imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated/autoconf.h 
	-ffreestanding 
	-fno-common 
	-g 
	-gdwarf-4 
	-fdiagnostics-color=always 
	-mcpu=cortex-m33 
	-mthumb 
	-mabi=aapcs 
	-mfp16-format=ieee 
	--sysroot=D:/Programming/Embedded/nRF/zephyr-sdk-0.15.2/arm-zephyr-eabi/arm-zephyr-eabi 
	-imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include/zephyr/toolchain/zephyr_stdint.h 
	-Wall 
	-Wformat 
	-Wformat-security 
	-Wno-format-zero-length 
	-Wno-main 
	-Wno-pointer-sign 
	-Wpointer-arith 
	-Wexpansion-to-defined 
	-Wno-unused-but-set-variable 
	-Werror=implicit-int 
	-fno-pic 
	-fno-pie 
	-fno-asynchronous-unwind-tables 
	-fno-reorder-functions 
	--param=min-pagesize=0 
	-fno-defer-pop 
	-fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa=CMAKE_SOURCE_DIR 
	-fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr=ZEPHYR_BASE 
	-fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK=WEST_TOPDIR 
	-ffunction-sections 
	-fdata-sections 
	-std=c99 
	-nostdinc 
	-Wno-unused-function 
	-Wno-unused-variable 
	-MD 
	-MT modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto.c.obj 
	-MF modules\nrfxlib\nrfxlib\nrf_security\src\CMakeFiles\mbedcrypto.dir\D_\Programming\Embedded\nRF\nRF-Connect-SDK\mbedtls\library\psa_crypto.c.obj.d 
	-o modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto.c.obj 
	-c D:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto.c

And it doesn't build, the output now being:

D:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto.c:6058:1: fatal error: opening dependency file modules\nrfxlib\nrfxlib\nrf_security\src\CMakeFiles\mbedcrypto.dir\D_\Programming\Embedded\nRF\nRF-Connect-SDK\mbedtls\library\psa_crypto.c.obj.d: No such file or directory
 6058 | }
      | ^
compilation terminated.

After tweaking and messing with the build parameters, I found out that it manages to build if -MF and -o parameters in the build string receive the absolute path, not relative. This works and creates the object file:

D:\Programming\Embedded\nRF\zephyr-sdk-0.15.2\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe 
	-DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" 
	-DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\"
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated 
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/nrf53
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/lib/libc/minimal/include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/soc/arm/nordic_nrf/common/.
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/tests/include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/cmsis/CMSIS/Core/Include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/drivers/include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/hal/nordic/nrfx/mdk
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/hal_nordic/nrfx/.
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/SEGGER
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/modules/debug/segger/Config
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/modules/segger/.
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_mbedcrypto/include/mbedtls
	-ID:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include
	-ID:/programming/embedded/nrf/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/mbedtls
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/include/psa
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/mbedtls
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/include/psa
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library
	-ID:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/nrf_security/src/drivers/nrf_cc3xx/include 
	-isystem D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing 
	-Os 
	-imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/zephyr/include/generated/autoconf.h 
	-ffreestanding 
	-fno-common 
	-g 
	-gdwarf-4 
	-fdiagnostics-color=always 
	-mcpu=cortex-m33 
	-mthumb 
	-mabi=aapcs 
	-mfp16-format=ieee 
	--sysroot=D:/Programming/Embedded/nRF/zephyr-sdk-0.15.2/arm-zephyr-eabi/arm-zephyr-eabi 
	-imacros D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr/include/zephyr/toolchain/zephyr_stdint.h 
	-Wall 
	-Wformat 
	-Wformat-security 
	-Wno-format-zero-length 
	-Wno-main 
	-Wno-pointer-sign 
	-Wpointer-arith 
	-Wexpansion-to-defined 
	-Wno-unused-but-set-variable 
	-Werror=implicit-int 
	-fno-pic 
	-fno-pie 
	-fno-asynchronous-unwind-tables 
	-fno-reorder-functions 
	--param=min-pagesize=0 
	-fno-defer-pop 
	-fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa=CMAKE_SOURCE_DIR 
	-fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK/zephyr=ZEPHYR_BASE 
	-fmacro-prefix-map=D:/Programming/Embedded/nRF/nRF-Connect-SDK=WEST_TOPDIR 
	-ffunction-sections 
	-fdata-sections 
	-std=c99 
	-nostdinc 
	-Wno-unused-function 
	-Wno-unused-variable 
	-MD 
	-MT modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto.c.obj 
	-MF D:\Programming\Embedded\nRF\nRF-Connect-SDK\nrf\samples\crypto\ecdsa\build\modules\nrfxlib\nrfxlib\nrf_security\src\CMakeFiles\mbedcrypto.dir\D_\Programming\Embedded\nRF\nRF-Connect-SDK\mbedtls\library\psa_crypto.c.obj.d 
	-o D:/Programming/Embedded/nRF/nRF-Connect-SDK/nrf/samples/crypto/ecdsa/build/modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto.c.obj 
	-c D:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto.c

So, long paths weren't the problem here. But cmake and ninja generate these options with the relative paths.

See part of build.ninja (generated in the build directory) which corresponds to this file. DEP_FILE has a relative path:

build modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/D_/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto.c.obj: C_COMPILER__mbedcrypto_Debug D$:/Programming/Embedded/nRF/nRF-Connect-SDK/mbedtls/library/psa_crypto.c || cmake_object_order_depends_target_mbedcrypto
  DEFINES = -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\"
  DEP_FILE = modules\nrfxlib\nrfxlib\nrf_security\src\CMakeFiles\mbedcrypto.dir\D_\Programming\Embedded\nRF\nRF-Connect-SDK\mbedtls\library\psa_crypto.c.obj.d

And in rules.ninja -MF parameter gets the value of DEP_FILE:

depfile = $DEP_FILE
deps = gcc
command = ccache D:\Programming\Embedded\nRF\zephyr-sdk-0.15.2\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in

So it doesn't seem to be wrong, but why could it fail?
I've tried compiling it with verbose options, but there was no difference apart from relative paths and failing instead of succeeding.
Maybe you can suggest something else to test and try?

Parents
  • Hi,

    Are you installing the SDK through the Toolchain Manager in nrf Connect for Desktop? That is the recommended way to install the SDK, and should install all necessary tools(cmake, python etc.).
    You do not need to install these yourself, and you do not need to download the zephyr sdk separately. Installing them yourself should not be a problem, but it can sometimes cause issues.

    After installing the SDK you should open the command line window through the drop-down menu next to the installed SDK version in Toolchain Manager:

    Opening the command line window from here ensures that the environment is correctly configured.

    Could you try that, and see if that solves the issues? If you still have issues, please post the new build log.

  • No, I installed it from the command line, using the page Installing manually as a reference. And it used to work.


    Your assumption for suggesting the toolchain manager would be that the computer is mostly used for programming Nordic devices and the whole environment can be suited for that. Unfortunately, this isn't always the case. I use tools like python, cmake, ARM GCC compiler and such for other things too, and having multiple instances of them is not always desired, as it's confusing, not very flexible and occupies more disk space. It's cool when it works on a fresh virtual machine, but much more difficult when a lot of software and env variables already installed. 

    Anyway, I tried previous versions of the compiler, cmake and ninja and the result is still the same.
    I don't know how validity of the SDK setup is verified, but I have the west-updated 2.2.0 nCS, env variables ZEPHYR_BASE and ZEPHYR_TOOLCHAIN_VARIANT are set as per the instruction, and have executed the setup.cmd in the Zephyr SDK toolchain to update the registry values.

    It could be that everything is set, but other software and paths also exist and something may be in conflict? 

Reply
  • No, I installed it from the command line, using the page Installing manually as a reference. And it used to work.


    Your assumption for suggesting the toolchain manager would be that the computer is mostly used for programming Nordic devices and the whole environment can be suited for that. Unfortunately, this isn't always the case. I use tools like python, cmake, ARM GCC compiler and such for other things too, and having multiple instances of them is not always desired, as it's confusing, not very flexible and occupies more disk space. It's cool when it works on a fresh virtual machine, but much more difficult when a lot of software and env variables already installed. 

    Anyway, I tried previous versions of the compiler, cmake and ninja and the result is still the same.
    I don't know how validity of the SDK setup is verified, but I have the west-updated 2.2.0 nCS, env variables ZEPHYR_BASE and ZEPHYR_TOOLCHAIN_VARIANT are set as per the instruction, and have executed the setup.cmd in the Zephyr SDK toolchain to update the registry values.

    It could be that everything is set, but other software and paths also exist and something may be in conflict? 

Children
  • Fixed this, turned out it was because of the ccache executable in my PATH (the tool to speed up compilation). And also, I didn't have to get rid of it, just reinstalled it.

    My Chocolatey/lib/ccache/tools had several versions of ccache, older ones still present, and a shim in Chocolatey/lib (which was in my PATH) referring to I don't know which version. So deleted the shim, uninstalled and reinstalled the package and now it can compile.

Related