This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

mbedtls missing

Dear, 

I started a new laptop Windows 10 Pro

installed nRF Connect, and followed the Started Assistant

installed the toolchain

downloaded the SES (v4.20a) 

-------------- i done it manytimes before 

then, I tried to run asset_tracker or at_client, gps.....

I got the same error:

Building ‘spm/zephyr/include/generated/driver-validation.h’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘spm/zephyr/include/generated/driver-validation.h’
Building ‘spm/zephyr/CMakeFiles/spm_driver_validation_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_driver_validation_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/include/generated/kobj-types-enum.h’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘spm/zephyr/include/generated/kobj-types-enum.h’
Building ‘spm/zephyr/include/generated/otype-to-str.h’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/CMakeFiles/spm_kobj_types_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_kobj_types_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/misc/generated/syscalls.json’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘spm/zephyr/misc/generated/syscalls.json’
Building ‘spm/zephyr/include/generated/syscall_list.h’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘spm/zephyr/include/generated/syscall_list.h’
Building ‘spm/zephyr/CMakeFiles/spm_syscall_list_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/include/generated/syscall_dispatch.c’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_syscall_list_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/include/generated/syscall_macros.h’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘spm/zephyr/include/generated/syscall_macros.h’
Building ‘spm/zephyr/CMakeFiles/spm_syscall_macros_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_syscall_macros_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_offsets’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_offsets’ from solution ‘build’ in configuration ‘Common’
1> Compiling ‘offsets.c’
Building ‘spm/zephyr/include/generated/offsets.h’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘spm/zephyr/include/generated/offsets.h’
Building ‘spm/zephyr/CMakeFiles/spm_offsets_h’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_offsets_h’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_app’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_arch__arm__core’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_arch__arm__core__cortex_m’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_arch__arm__core__cortex_m__mpu’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_drivers__serial’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_kernel’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_lib__libc__minimal’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_mbedcrypto_vanilla’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_mbeddrbg’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_zephyr’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/linker.cmd’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘spm/zephyr/linker.cmd’
Building ‘spm/zephyr/CMakeFiles/spm_linker_script_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_linker_script_target’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_zephyr_prebuilt’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/spm_app/libspm_app.a’ from solution ‘build’ in configuration ‘Common’
2> Compiling ‘main.c’
Building ‘spm/zephyr/libspm_zephyr.a’ from solution ‘build’ in configuration ‘Common’
1> Archiving ‘libspm_app.a’
2> Compiling ‘isr_tables.c’
3> Compiling ‘sw_isr_common.c’
4> Compiling ‘arm_core_cmse.c’
5> Compiling ‘arm_core_tz.c’
6> Compiling ‘crc32_sw.c’
1> Compiling ‘crc8_sw.c’
7> Compiling ‘crc16_sw.c’
8> Compiling ‘crc7_sw.c’
9> Compiling ‘fdtable.c’
10> Compiling ‘mempool.c’
11> Compiling ‘rb.c’
12> Compiling ‘thread_entry.c’
2> Compiling ‘work_q.c’
3> Compiling ‘printk.c’
6> Compiling ‘configs.c’
1> Compiling ‘soc.c’
7> Compiling ‘mpu_regions.c’
5> Compiling ‘nrfx_glue.c’
8> Compiling ‘system_nrf9160.c’
4> Compiling ‘power.c’
12> Compiling ‘reboot.c’
9> Compiling ‘policy_residency.c’
6> Compiling ‘uart_console.c’
2> Compiling ‘nrf_power_clock.c’
7> Compiling ‘sys_clock_init.c’
10> Compiling ‘nrf_rtc_timer.c’
8> Compiling ‘spm.c’
1> Compiling ‘secure_services.c’
Building ‘spm/zephyr/arch/arm/core/libspm_arch__arm__core.a’ from solution ‘build’ in configuration ‘Common’
1> Archiving ‘libspm_zephyr.a’
2> Assembling ‘exc_exit.S’
3> Assembling ‘swap_helper.S’
4> Assembling ‘cpu_idle.S’
5> Assembling ‘fault_s.S’
6> Assembling ‘isr_wrapper.S’
7> Compiling ‘irq_init.c’
8> Compiling ‘swap.c’
1> Compiling ‘irq_manage.c’
9> Compiling ‘fault.c’
10> Compiling ‘thread.c’
11> Compiling ‘fatal.c’
12> Compiling ‘sys_fatal_error_handler.c’
3> Compiling ‘thread_abort.c’
Building ‘spm/zephyr/arch/arm/core/cortex_m/libspm_arch__arm__core__cortex_m.a’ from solution ‘build’ in configuration ‘Common’
1> Archiving ‘libspm_arch__arm__core.a’
2> Assembling ‘vector_table.S’
3> Assembling ‘reset.S’
4> Assembling ‘nmi_on_reset.S’
5> Compiling ‘prep_c.c’
6> Compiling ‘scb.c’
7> Compiling ‘nmi.c’
8> Compiling ‘exc_manage.c’
Building ‘spm/zephyr/arch/arm/core/cortex_m/mpu/libspm_arch__arm__core__cortex_m__mpu.a’ from solution ‘build’ in configuration ‘Common’
1> Archiving ‘libspm_arch__arm__core__cortex_m.a’
2> Compiling ‘arm_core_mpu.c’
3> Compiling ‘arm_mpu.c’
Building ‘spm/zephyr/lib/libc/minimal/libspm_lib__libc__minimal.a’ from solution ‘build’ in configuration ‘Common’
1> Archiving ‘libspm_arch__arm__core__cortex_m__mpu.a’
2> Compiling ‘atoi.c’
3> Compiling ‘strtol.c’
4> Compiling ‘strtoul.c’
5> Compiling ‘malloc.c’
6> Compiling ‘bsearch.c’
7> Compiling ‘exit.c’
1> Compiling ‘strstr.c’
8> Compiling ‘strncasecmp.c’
9> Compiling ‘string.c’
10> Compiling ‘prf.c’
11> Compiling ‘stdout_console.c’
12> Compiling ‘sprintf.c’
2> Compiling ‘fprintf.c’
Building ‘spm/zephyr/drivers/serial/libspm_drivers__serial.a’ from solution ‘build’ in configuration ‘Common’
1> Archiving ‘libspm_lib__libc__minimal.a’
2> Compiling ‘uart_nrfx_uarte.c’
Building ‘spm/zephyr/modules/nrfxlib/nrf_security/src/mbedtls/libspm_mbeddrbg.a’ from solution ‘build’ in configuration ‘Common’
1> Archiving ‘libspm_drivers__serial.a’
2> Compiling ‘ctr_drbg.c’
3> Compiling ‘entropy.c’
Building ‘spm/zephyr/modules/nrfxlib/nrf_security/src/mbedtls/libspm_mbedcrypto_vanilla.a’ from solution ‘build’ in configuration ‘Common’
1> Archiving ‘libspm_mbeddrbg.a’
2> Compiling ‘aes.c’
3> Compiling ‘aesni.c’
4> Compiling ‘arc4.c’
5> Compiling ‘aria.c’
6> Compiling ‘asn1parse.c’
7> Compiling ‘asn1write.c’
1> Compiling ‘bignum.c’
8> Compiling ‘base64.c’
9> Compiling ‘blowfish.c’
10> Compiling ‘camellia.c’
11> Compiling ‘ccm.c’
12> Compiling ‘chacha20.c’
2> Compiling ‘chachapoly.c’
3> Compiling ‘cipher.c’
5> Compiling ‘cmac.c’
9> C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/mbedtls/library/blowfish.c:32:0: fatal error: opening dependency file C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/nrf/samples/nrf9160/at_client/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\HoangNguyen\Projects\ziot_01\ncs_master_07oct2019\mbedtls\library\blowfish.c.obj.d: No such file or directory
9> compilation terminated.
10> C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/mbedtls/library/camellia.c:32:0: fatal error: opening dependency file C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/nrf/samples/nrf9160/at_client/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\HoangNguyen\Projects\ziot_01\ncs_master_07oct2019\mbedtls\library\camellia.c.obj.d: No such file or directory
10> compilation terminated.
12> C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/mbedtls/library/chacha20.c:30:0: fatal error: opening dependency file C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/nrf/samples/nrf9160/at_client/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\HoangNguyen\Projects\ziot_01\ncs_master_07oct2019\mbedtls\library\chacha20.c.obj.d: No such file or directory
12> compilation terminated.
6> C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/mbedtls/library/asn1parse.c:387:1: fatal error: opening dependency file C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/nrf/samples/nrf9160/at_client/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\HoangNguyen\Projects\ziot_01\ncs_master_07oct2019\mbedtls\library\asn1parse.c.obj.d: No such file or directory
6> compilation terminated.
2> C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/mbedtls/library/chachapoly.c:27:0: fatal error: opening dependency file C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/nrf/samples/nrf9160/at_client/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\HoangNguyen\Projects\ziot_01\ncs_master_07oct2019\mbedtls\library\chachapoly.c.obj.d: No such file or directory
2> compilation terminated.
7> C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/mbedtls/library/asn1write.c:389:1: fatal error: opening dependency file C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/nrf/samples/nrf9160/at_client/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\HoangNguyen\Projects\ziot_01\ncs_master_07oct2019\mbedtls\library\asn1write.c.obj.d: No such file or directory
7> compilation terminated.
Build failed

I tried with SES v4.18 and the ncs_joakim#943 (it worked well on my old computer before) and I got the same problem. 

What did I miss on my new computer? Could you plz help me. 

Thanks, 

Best Regards, 

Hoang Nguyen

Related