-
Notifications
You must be signed in to change notification settings - Fork 379
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
Failed to run build command for libc, failed to get rustc version #1189
Comments
Luckily this doesn't happen in CI on |
can you run with
|
sure! This below is ran inside the container shell.
|
so why is it failing here I'm not sure what's happening here, maybe something is setting |
Not sure if that's what you meant, but that's what I get in the container: $ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/valentin/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin
$ echo $RUSTC
� So yeah something is up with the |
No, |
Okay yep that's actually strange. It means RUSTC is correct, invoking the |
can you add [patch.crates-io.libc]
git = "https://github.com/Emilgardis/libc"
branch = "debug-output" to your
|
Thanks for taking the time to solve this with me @Emilgardis here is the output with the patched libc:
|
Checklist
Describe your issue
When trying to build my project at https://github.com/beeb/remote-wol-rs using cross, I am faced with the following error:
failed to run custom build command for libc v0.2.139
thread 'main' panicked at 'Failed to get rustc version', /home/valentin/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/libc-0.2.139/build.rs:135:9
I have to use the nightly toolchain. I performed a
cargo clean
before building.What target(s) are you cross-compiling for?
aarch64-unknown-linux-gnu, x86_64-pc-windows-gnu, x86_64-unknown-linux-gnu
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.4 (8c86a98 2023-01-06)
Example
Additional information / notes
Another project at work (not public) cross-compiles fine on the same machine, with the same targets, even libc v0.2.139 which is the same version as above. Not sure what's different about this project.
The text was updated successfully, but these errors were encountered: