Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

failed to run custom build command for libc v0.2.158 #1553

Unanswered
rbauduin asked this question in Q&A
Discussion options

I'm trying to cross compile a rust project, and it fails with this error:

$ RUST_BACKTRACE=1 cross build --target aarch64-unknown-linux-gnu
 Compiling libc v0.2.158
error: failed to run custom build command for `libc v0.2.158`
Caused by:
 process didn't exit successfully: `/target/debug/build/libc-253a6a580007d013/build-script-build` (exit status: 101)
 --- stdout
 cargo:rerun-if-changed=build.rs
 --- stderr
 thread 'main' panicked at /cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.158/build.rs:222:9:
 failed to run rustc: rustc: error while loading shared libraries: libLLVM.so.18.1-rust-1.80.1-stable: cannot open shared object file: No such file or directory

Any suggestion on how to fix it?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /