On Windows 10 64-bit, build TF-M 1.6 (tag TF-Mv1.6.0),regression test:
cmake -S . \
-B cmake_build \
-DTFM_PLATFORM=nuvoton/m2354 \
-DTFM_TOOLCHAIN_FILE=toolchain_GNUARM.cmake \
-DTFM_PSA_API=ON \
-DTEST_S=ON \
-DTEST_NS=ON \
-DTFM_PERIPH_ACCESS_TEST=ON \
-DCMAKE_BUILD_TYPE=Release \
-G"Unix Makefiles"
Meet failure like:
[ 7%] Built target tfm_app_rot_partition_secure_client_2
[ 7%] Building C object tf-m-tests/test/secure_fw/common_test_services/tfm_secure_client_service/CMakeFiles/tfm_psa_rot_partition_secure_client_service.dir/tfm_secure_client_service.o
[ 7%] Building C object tf-m-tests/test/secure_fw/common_test_services/tfm_secure_client_service/CMakeFiles/tfm_psa_rot_partition_secure_client_service.dir/__/__/__/__/__/generated/secure_fw/test_services/tfm_secure_client_service/auto_generated/intermedia_tfm_secure_client_service.o
C:/CCLi8/IoT/mbed/mbed-tfm/trusted-firmware-m/cmake_build/generated/secure_fw/test_services/tfm_secure_client_service/auto_generated/intermedia_tfm_secure_client_service.c:12:1: fatal error: opening dependency file CMakeFiles/tfm_psa_rot_partition_secure_client_service.dir/__/__/__/__/__/generated/secure_fw/test_services/tfm_secure_client_service/auto_generated/intermedia_tfm_secure_client_service.o.d: No such file or directory
12 | uint8_t tfm_sp_secure_test_partition_stack[0x0D00] __attribute__((aligned(8))); | ^~~~~~~
compilation terminated.
make[2]: * [tf-m-tests/test/secure_fw/common_test_services/tfm_secure_client_service/CMakeFiles/tfm_psa_rot_partition_secure_client_service.dir/build.make:90: tf-m-tests/test/secure_fw/common_test_services/tfm_secure_client_service/CMakeFiles/tfm_psa_rot_partition_secure_client_service.dir/__/__/__/__/__/generated/secure_fw/test_services/tfm_secure_client_service/auto_generated/intermedia_tfm_secure_client_service.o] Error 1
make[1]: * [CMakeFiles/Makefile2:2453: tf-m-tests/test/secure_fw/common_test_services/tfm_secure_client_service/CMakeFiles/tfm_psa_rot_partition_secure_client_service.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Per look, it results from too long path. Though I try "subst" to short the build path, it is still too long.
Environment
OS: Windows 10 64-bit
Compiler: GNU Arm Embedded Toolchain 10.3-2021.07
TF-M: TF-Mv1.6.0