I use:
- rustup to setup rust.
- the manual way to setup ESP-IDF from the wiki. with additional clang setup for rust.
- Rust esp-idf-template setup with esp-idf v4.4, rust nightly and std.
- remove the mbedtls fix for a old bug.
- there is another bug that causes
cargo build
to fail inpython3 ".embuild/espressif/esp-idf/master/tools/idf_tools.py" --idf-path ".embuild/espressif/esp-idf/master" --non-interactive install-python-env
with
ERROR: This script was called from a virtual environment, can not create a virtual environment again
which can be fixed by changing this lines “or” to “and”.
than cargo build fails with:
/nix/store/a0s1vq35j3g6aa757v7yg0a001l01ng4-glibc-2.34-210-dev/include/limits.h:145:5: error: function-like macro '__GLIBC_USE' is not defined
more output is here
I don’t understand how it can fail in using glibc where ‘__GLIBC_USE’ is defined in features.h
So the question is how to debug this?