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

HTTP application update problem compiling

Hi,

I have problem compiling "HTTP application update" sample form the SDK for the NRF9160. I am using all the latest tools:
* segger embedded studio: v4.18
* nrf SDK v1.0

The error I get:
"opening dependency file C:/Users/NUC/Documents/nordic-sdk/ncs/nrf/samples/nrf9160/http_application_update/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\NUC\Documents\nordic-sdk\ncs\mbedtls\library\memory_buffer_alloc.c.obj.d: No such file or directory"

Best regards,
Voja

Parents Reply Children
  • Last lines of build (I've removed threads other than the one with the error):


    9> Compiling ‘aria.c’
    9> C:/gnuarmemb/bin/arm-none-eabi-gcc -DBUILD_VERSION=v1.14.99-ncs2 -DKERNEL -DMBEDTLS_CONFIG_FILE="nrf-config.h" -DNRF9160_XXAA -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__ZEPHYR__=1 -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/kernel/include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/arch/arm/include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/include/drivers -Ispm/zephyr/include/generated -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/soc/arm/nordic_nrf/nrf91 -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/soc/arm/nordic_nrf/include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/lib/libc/minimal/include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/ext/hal/cmsis/Include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/ext/hal/nordic/nrfx -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/ext/hal/nordic/nrfx/drivers/include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/ext/hal/nordic/nrfx/hal -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/ext/hal/nordic/nrfx/mdk -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/ext/hal/nordic/. -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/nrf/include -Ispm/zephyr/modules/nrfxlib/nrf_security/include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/mbedtls/include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/mbedtls/include/mbedtls -isystem c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/include -isystem c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/include-fixed -isystem C:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/nrfxlib/crypto/nrf_cc310_mbedcrypto/include/mbedtls -Os -nostdinc -g -imacros C:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/nrf/samples/nrf9160/http_application_update/build_nrf9160_pca10090ns/spm/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -ffunction-sections -fdata-sections -mabi=aapcs -march=armv8-m.main+dsp -mcmse -std=c99 -MD -MF C:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/nrf/samples/nrf9160/http_application_update/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\34e723374994a7b00674c8649efb9003\aria.c.obj.d -fno-diagnostics-show-caret -o spm/zephyr/modules/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/spm_mbedcrypto_vanilla.dir/34e723374994a7b00674c8649efb9003/aria.c.obj -c C:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/mbedtls/library/aria.c
    [...]

    9> C:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/mbedtls/library/asn1parse.c:387:1: fatal error: opening dependency file C:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/nrf/samples/nrf9160/http_application_update/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\asgeir.s.hustad\Dev\Nordic_SDK\ncs\mbedtls\library\asn1parse.c.obj.d: No such file or directory
    9> compilation terminated.

    Build failed

    Oddly, I'm now missing asn1parse.c.obj.d, not memory_buffer_alloc.c.obj.d like last time and like Vojislav Milivojevic.

    This is with nRF Connect SDK v.1.0.0, then ran west update afterwards to update dependencies. No error messages from that. MbedTLS was checked out with ref 53546ea0 as detached head.


  • Try deleting the build directory and build again.

  • Is this a SES specific issue or does it also happen when compiling on the command line?

  • I have only used SES, actually! But got FOTA to work without using the sample, so haven't invested more time on it for now Slight smile

Related