Closed tomvictor closed 7 months ago
this is most likely the same problem we are tracking here https://github.com/esp-rs/esp-idf-sys/issues/287 .
Can you try to build with the CRATE_CC_NO_DEFAULTS=1
env variable set? You can either directly provide it with CRATE_CC_NO_DEFAULTS=1 cargo build
or set it in the projects .cargo/config.toml inside the [env] section
Thanks @Vollbrecht for the quick response, it is working perfectly fine now.
I am trying to build the ´hardware-check´ sample program on mac os with M1 pro processor. I have followed the software installation described in the doc, then also tried to redo it exactly like in the Development docker container, but the issue still persist. Fortunately I am able to build successfully using the devcontainer.
It fails with the following output:
CMake will not be able to correctly generate this project. Call Stack (most recent call first): /Users/dev_user/.espressif/esp-idf/v5.1.2/tools/cmake/project.cmake:448 (__project) CMakeLists.txt:28 (project)
thread 'main' panicked at /Users/dev_user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cmake-0.1.50/src/lib.rs:1098:5:
command did not execute successfully, got: exit status: 1
build script failed, must exit now note: run with
RUST_BACKTRACE=1
environment variable to display a backtrace`Really appreciate any suggestions
Thanks