Page 1 of 1

esp-idf/v6.0: CMake Error at ... components/mbedtls/mbedtls/tf-psa-crypto/core MISSING

Posted: Fri Mar 13, 2026 12:44 pm
by Drohne
Hello,

I'm with the lost FreeBSD community trying to get ESP-IDF running for small projects. A couple of days ago I did the last git fetch/rebase on IDF v6.0, everything worked so far. But as of today, another pull leaves the ESP-IDF tree corrupt:

[...]
CMake Error at /PATH/esp-idf-idf60/tools/cmake/component.cmake:321 (message):
Include directory
'/PATH/esp-idf-idf60/components/mbedtls/mbedtls/tf-psa-crypto/core'
is not a directory.
Call Stack (most recent call first):
/PATH/esp-idf-idf60/tools/cmake/component.cmake:496 (__component_add_include_dirs)
/PATH/esp-idf-idf60/components/mbedtls/CMakeLists.txt:49 (idf_component_register)

This seems to me like another flaw of missing commits, the directory
components/mbedtls/mbedtls/tf-psa-crypto/
does only contain 'doxygen' - nothing more. Everything required by the build framework ist missing ...

Re: esp-idf/v6.0: CMake Error at ... components/mbedtls/mbedtls/tf-psa-crypto/core MISSING

Posted: Mon Mar 23, 2026 9:36 am
by slazyhw
Same error here. Any progress on this?

Re: esp-idf/v6.0: CMake Error at ... components/mbedtls/mbedtls/tf-psa-crypto/core MISSING

Posted: Mon Mar 23, 2026 11:24 am
by slazyhw
Did you clone the entire esp-idf repository again or did you just switch to the new version tag in your old local copy?

mbedtls is a git submodule and I think that just switching the tag will not touch the submodules at all which would still fit your prior idf version.

Get a new, clean copy of the repo and then switch to the tag before your first build. That fixed it for me.