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
  • I had the same issue but I've got mine fixed after a couple of hours of snooping through the files and turning up nothing...

    Turns out, the path to that file was just WAY too darn long and so the compiler was unable to create the memory_buffer_alloc.c.obj.d file in that directory. What I did is move the ncs folder right to my user profile folder, I guess for you NUC, you could also probably shorten the http_application_update folder name to help.

    @asgeirsh your directory seems pretty long too...I hope this is your solution as well :)

    Please please please let me know if this helps :)

    Martin G

Reply
  • I had the same issue but I've got mine fixed after a couple of hours of snooping through the files and turning up nothing...

    Turns out, the path to that file was just WAY too darn long and so the compiler was unable to create the memory_buffer_alloc.c.obj.d file in that directory. What I did is move the ncs folder right to my user profile folder, I guess for you NUC, you could also probably shorten the http_application_update folder name to help.

    @asgeirsh your directory seems pretty long too...I hope this is your solution as well :)

    Please please please let me know if this helps :)

    Martin G

Children
  • I think this may be it! I had an issue with too long filenames when i copied another project later. Changed up the folders I used there, but didn't think to go back and try it with this sample project.

  • Hi!

    I am using

    SES 4.20a 

    West 0.6.3

    NCS v1.0.0

    and have the same problem when building from SES, but also with building directly with west.

    Target folder is 

    /c/Users/ABCD123/Documents/workspace/nrf91_root/ncs/nrf/samples/nrf9160/at_client/build_nrf9160_pca10090ns

    And results in the following error:

    C:/Users/ABCD123/Documents/workspace/nrf91_root/ncs/mbedtls/library/memory_buffer_alloc.c:614:1: fatal error: opening dependency file C:/Users/ABCD123/Documents/workspace/nrf91_root/ncs/nrf/samples/nrf9160/at_client/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\ABCD123\Documents\workspace\nrf91_root\ncs\mbedtls\library\memory_buffer_alloc.c.obj.d: No such file or directory

    If I set target folder to "build" and run from command line

    west build -b nrf9160_pca10090ns -d build

    Everything is ok and the build works,

    If I put ncs in a folder near C: (e.g. "/c/nrf91/ncs") and run with 

    west build -b nrf9160_pca10090ns -d build_nrf9160_pca10090ns

    it works fine.

    So it has definitly to do with the length of the path. It seems like there is a limit.

Related