Hi ,
I,m working in developing cellular IOT in that GIT repository code they given i copied and cloned the git repository of developing cellular IOT exercise lesson 2,3,4 etc but i'm facing issue on building error in VS code for past 4 days. I have installed all the latest tools they mentioned. what is the solution. below i post the error i got in terminal.
Executing task: nRF Connect: Generate config [email protected] for lesson3/cellfund_less3_exer1_solution
Building cellfund_less3_exer1_solution
west build --build-dir c:/Users/pmariyappan/nrf_gitrepo/cell-fund/v2.4.0-v2.x.x/lesson3/cellfund_less3_exer1_solution/build c:/Users/pmariyappan/nrf_gitrepo/cell-fund/v2.4.0-v2.x.x/lesson3/cellfund_less3_exer1_solution --pristine --board [email protected] --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=c:/Users/pmariyappan/nrf_gitrepo/cell-fund/v2.4.0-v2.x.x/lesson3/cellfund_less3_exer1_solution/prj.conf
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/Users/pmariyappan/nrf_gitrepo/cell-fund/v2.4.0-v2.x.x/lesson3/cellfund_less3_exer1_solution
-- CMake version: 3.20.5
-- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: C:/Users/pmariyappan/ncs/v2.5.1/zephyr/.cache
-- Zephyr version: 3.4.99 (C:/Users/pmariyappan/ncs/v2.5.1/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: nrf9160dk_nrf9160_ns, Revision: 1.1.0 (Active: 0.14.0)
-- Found host-tools: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/c57af46cb7/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: C:/Users/pmariyappan/ncs/v2.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
-- Found devicetree overlay: C:/Users/pmariyappan/ncs/v2.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_0_14_0.overlay
-- Generated zephyr.dts: C:/Users/pmariyappan/nrf_gitrepo/cell-fund/v2.4.0-v2.x.x/lesson3/cellfund_less3_exer1_solution/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/Users/pmariyappan/nrf_gitrepo/cell-fund/v2.4.0-v2.x.x/lesson3/cellfund_less3_exer1_solution/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/Users/pmariyappan/nrf_gitrepo/cell-fund/v2.4.0-v2.x.x/lesson3/cellfund_less3_exer1_solution/build/zephyr/dts.cmake
Parsing C:/Users/pmariyappan/ncs/v2.5.1/zephyr/Kconfig
Loaded configuration 'C:/Users/pmariyappan/ncs/v2.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig'
Merged configuration 'c:/Users/pmariyappan/nrf_gitrepo/cell-fund/v2.4.0-v2.x.x/lesson3/cellfund_less3_exer1_solution/prj.conf'
Configuration saved to 'C:/Users/pmariyappan/nrf_gitrepo/cell-fund/v2.4.0-v2.x.x/lesson3/cellfund_less3_exer1_solution/build/zephyr/.config'
Kconfig header saved to 'C:/Users/pmariyappan/nrf_gitrepo/cell-fund/v2.4.0-v2.x.x/lesson3/cellfund_less3_exer1_solution/build/zephyr/include/generated/autoconf.h'
-- Found GnuLd: c:/ncs/toolchains/c57af46cb7/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/c57af46cb7/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:/Users/pmariyappan/nrf_gitrepo/cell-fund/v2.4.0-v2.x.x/lesson3/cellfund_less3_exer1_solution/build
-- west build: building application
[2/260] Generating include/generated/version.h
-- Zephyr version: 3.4.99 (C:/Users/pmariyappan/ncs/v2.5.1/zephyr), build: 83980fe16794
[7/260] Generating ../../tfm/CMakeCache.txt
CMake Warning at cmake/version.cmake:22 (message):
Actual TF-M version is not available from Git repository. Settled to
v1.8.0
Call Stack (most recent call first):
CMakeLists.txt:22 (include)
-- Found Git: C:/ncs/toolchains/c57af46cb7/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/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found version "3.8.2") found components: Interpreter
CMake Deprecation Warning at C:/Users/pmariyappan/ncs/v2.5.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:/Users/pmariyappan/ncs/v2.5.1/zephyr/cmake/modules/python.cmake:16 (find_package)
C:/Users/pmariyappan/ncs/v2.5.1/zephyr/cmake/modules/user_cache.cmake:30 (include)
C:/Users/pmariyappan/ncs/v2.5.1/zephyr/cmake/modules/extensions.cmake:5 (include)
C:/Users/pmariyappan/ncs/v2.5.1/nrf/subsys/nrf_security/tfm/CMakeLists.txt:36 (include)
-- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: C:/Users/pmariyappan/ncs/v2.5.1/zephyr/.cache
-- Configuring done
CMake Warning in C:/Users/pmariyappan/ncs/v2.5.1/nrf/subsys/nrf_security/src/CMakeLists.txt:
The object file directory
C:/Users/pmariyappan/nrf_gitrepo/cell-fund/v2.4.0-v2.x.x/lesson3/cellfund_less3_exer1_solution/build/tfm/secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/crypto_service_mbedcrypto.dir/./
has 204 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
C_/Users/pmariyappan/ncs/v2.5.1/modules/crypto/mbedtls/library/memory_buffer_alloc.o
cannot be safely placed under this directory. The build may not work
correctly.
-- Generating done
-- Build files have been written to: C:/Users/pmariyappan/nrf_gitrepo/cell-fund/v2.4.0-v2.x.x/lesson3/cellfund_less3_exer1_solution/build/tfm
[35/156] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.dir/797dbedeec13b10b77d0411673894474/auto_generated/intermedia_tfm_crypto.o
ninja: error: mkdir(secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/crypto_service_mbedcrypto.dir/C_/Users/pmariyappan/ncs/v2.5.1/modules/crypto/mbedtls/library): No such file or directory
ninja: build stopped: .
FAILED: modules/trusted-firmware-m/tfm-prefix/src/tfm-stamp/tfm-build tfm/secure_fw/s_veneers.o tfm/tf-m-tests/app/libtfm_api_ns.a tfm/generated/interface/include/psa_manifest/sid.h tfm/platform/ns/libplatform_ns.a tfm/bin/tfm_s.elf tfm/bin/tfm_s.bin tfm/bin/tfm_s.hex tfm/bin/tfm_ns.bin tfm/bin/tfm_ns.hex tfm/bin/tfm_s_signed.bin tfm/bin/tfm_ns_signed.bin tfm/bin/tfm_s_ns_signed.bin tfm/install/interface/src/tfm_attest_api.c tfm/install/interface/src/tfm_crypto_api.c tfm/install/interface/src/tfm_fwu_api.c tfm/install/interface/src/tfm_its_api.c tfm/install/interface/src/tfm_platform_api.c tfm/install/interface/src/tfm_ps_api.c tfm/install/interface/src/tfm_psa_ns_api.c tfm/install/interface/src/tfm_ioctl_core_ns_api.c
cmd.exe /C "cd /D C:\Users\pmariyappan\nrf_gitrepo\cell-fund\v2.4.0-v2.x.x\lesson3\cellfund_less3_exer1_solution\build\tfm && C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.exe --build . -j 1"
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' --build 'c:\Users\pmariyappan\nrf_gitrepo\cell-fund\v2.4.0-v2.x.x\lesson3\cellfund_less3_exer1_solution\build'
* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.