This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Project fails to build due to "Failed to find mbedtls, cannot build security libraries"

Hi, i am using ncs version 1.6.1. I am able to build the project on my windows computer. A few months ago i set up a CI build on a Linux machine which also worked. However i have come to use the Linux machine again to run a CI build and run into the error when trying to build "Failed to find mbedtls, cannot build security libraries". It still works on my windows machine. It should be noted that ncs is downloaded each time before a CI build. I have also tried setting the ARM_MBEDTLS_PATH variable to the correct mbedtls path but this also doesn't work. Any idea as to what config might be wrong?

Parents
  • Hi,

    I got the same error with NCS 1.6.0 and Ubuntu 18.04.

    After some debugging I found that a new version of west was released earlier this month. After downgrading to 0.12.0, everything worked fine again.

    In your build script, use:

    pip3 install --user west==0.12.0

    You also need to replace each "west" occurrence in requirements files that installs the newest version:

    cd ncs
    find . -iname req\*txt -print0 | xargs -0 grep 'west>='

    Edit every one of these files and replace the line with "west==0.12.0".

    This workaround doesn't fix the root cause but makes your build work again.

  • Hi,

    Thanks for your solution it worked perfectly for me when i downgraded west to v0.11.1. I didn't have to do the extra step of replacing each "west" occurrence in the requirements file.

Reply Children
No Data
Related