-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp-idf-sys build started fail on arm mac os #287
Comments
same here |
I have the same problem. |
2 weeks ago the add this in your Cargo.toml [patch.crates-io]
cc = { git = "https://github.com/rust-lang/cc-rs", tag = "1.0.83" } than run |
if |
@Vollbrecht Thank you, |
thank u very much
thkans |
Building with |
Just |
[patch.crates-io] Not work for me. But export CRATE_CC_NO_DEFAULTS=1 Work i can build [patch.crates-io] warning: [email protected]: (esp-idf-sys) Removed env vars that might affect the ESP IDF C build: error: failed to run custom build command for Caused by: --- stderr
Call Stack (most recent call first): thread 'main' panicked at /Users/fr/.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 |
look at the output : |
@Vollbrecht this worked for me!! Thank you! I was struggling with it since 10 days |
Can you please open an issue in rust-lang/cc-rs ? |
FYI, rust-lang/cc-rs#1005 |
It seems that setting I think updating the build script to disable default flags would probably fix this. |
I did some investigation, the break change is introduced by rust-lang/cc-rs#709.
Further more, I checked CMakeCache.txt in the demo esp-idf project, related CFLAGS shows like:
this is CMakeCache.txt in
and when
and with
Related code position: esp-idf-sys/build/native/cargo_driver.rs Lines 527 to 528 in 3b9fb74
// TARGET_CC checked at here |
If that is the case, then rust-lang/cc-rs#1000 should fix this. It fixes the compiler detection logic by using C macros instead of |
@clouds56 Can you have a try of rust-lang/cc-rs#1000 , to see if it fixed the issue please? |
I've tried current main branch (at commit
And the CMakeCache.txt still uses
You might also interest in the CMakeError.log
|
Same issue here, downgrade to 1.0.83 resolves. |
@zrll12 that seams unrelated to to issue, you are building against your host target and not against the specific esp targets. Either you forgot to directly pass the target as an argument or if you are using the .cargo/config.toml files it is missing the correct configuration. |
esp-idf-sys build started fail on arm mac os
esp-idf-sys
v0.34.0
target
esp32
Log
The text was updated successfully, but these errors were encountered: