Closed
Description
I tried this code:
#![feature(rustc_private)]
extern crate rustc_driver;
fn main() {}
I expected to see this happen: Compiles fine.
Instead, this happened:
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/bjorn/.rustup/toolchains/nightly-2020-05-25-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "rust_out.rust_out.7rcbfp3g-cgu.0.rcgu.o" "rust_out.rust_out.7rcbfp3g-cgu.1.rcgu.o" "rust_out.rust_out.7rcbfp3g-cgu.2.rcgu.o" "rust_out.rust_out.7rcbfp3g-cgu.3.rcgu.o" "rust_out.rust_out.7rcbfp3g-cgu.4.rcgu.o" "-o" "rust_out" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/home/bjorn/.rustup/toolchains/nightly-2020-05-25-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/home/bjorn/.rustup/toolchains/nightly-2020-05-25-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lrustc_driver-fefef43299f39010" "-Wl,--start-group" "-L" "/home/bjorn/.rustup/toolchains/nightly-2020-05-25-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lstd-265ff16c7b6b86f9" "-Wl,--end-group" "-Wl,-Bstatic" "/home/bjorn/.rustup/toolchains/nightly-2020-05-25-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-a1755b3e88842f5d.rlib" "-Wl,-Bdynamic" "-lLLVM-10-rust-1.45.0-nightly" "-lutil" "-ldl" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-ldl" "-lutil"
= note: /usr/bin/ld: cannot find -lLLVM-10-rust-1.45.0-nightly
collect2: error: ld returned 1 exit status
Meta
rustc --version --verbose
:
rustc 1.45.0-nightly (46e85b432 2020-05-24)
binary: rustc
commit-hash: 46e85b4328fe18492894093c1092dfe509df4370
commit-date: 2020-05-24
host: x86_64-unknown-linux-gnu
release: 1.45.0-nightly
LLVM version: 10.0