Skip to content
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

Linker error for LLVM-10-rust-1.45.0-nightly when building compiler plugins #72594

Closed
jdm opened this issue May 26, 2020 · 3 comments
Closed
Labels
O-linux Operating system: Linux

Comments

@jdm
Copy link
Contributor

jdm commented May 26, 2020

Servo has a crate of compiler plugins (https://github.com/servo/servo/tree/master/components/script_plugins) which now fails to build on linux starting with the 5/22 nightly.

error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/repo/target/debug/deps/script_plugins.script_plugins.blvvqtbe-cgu.0.rcgu.o" "/repo/target/debug/deps/script_plugins.script_plugins.blvvqtbe-cgu.1.rcgu.o" "/repo/target/debug/deps/script_plugins.script_plugins.blvvqtbe-cgu.10.rcgu.o" "/repo/target/debug/deps/script_plugins.script_plugins.blvvqtbe-cgu.11.rcgu.o" "/repo/target/debug/deps/script_plugins.script_plugins.blvvqtbe-cgu.12.rcgu.o" "/repo/target/debug/deps/script_plugins.script_plugins.blvvqtbe-cgu.13.rcgu.o" "/repo/target/debug/deps/script_plugins.script_plugins.blvvqtbe-cgu.14.rcgu.o" "/repo/target/debug/deps/script_plugins.script_plugins.blvvqtbe-cgu.15.rcgu.o" "/repo/target/debug/deps/script_plugins.script_plugins.blvvqtbe-cgu.2.rcgu.o" "/repo/target/debug/deps/script_plugins.script_plugins.blvvqtbe-cgu.3.rcgu.o" "/repo/target/debug/deps/script_plugins.script_plugins.blvvqtbe-cgu.4.rcgu.o" "/repo/target/debug/deps/script_plugins.script_plugins.blvvqtbe-cgu.5.rcgu.o" "/repo/target/debug/deps/script_plugins.script_plugins.blvvqtbe-cgu.6.rcgu.o" "/repo/target/debug/deps/script_plugins.script_plugins.blvvqtbe-cgu.7.rcgu.o" "/repo/target/debug/deps/script_plugins.script_plugins.blvvqtbe-cgu.8.rcgu.o" "/repo/target/debug/deps/script_plugins.script_plugins.blvvqtbe-cgu.9.rcgu.o" "-o" "/repo/target/debug/deps/libscript_plugins.so" "-Wl,--version-script=/tmp/rustctxfHYp/list" "/repo/target/debug/deps/script_plugins.a9q7pget1xzpz9k.rcgu.o" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/repo/target/debug/deps" "-L" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lrustc_driver-36ab768154a08cc2" "-Wl,--start-group" "-L" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lstd-265ff16c7b6b86f9" "-Wl,--end-group" "-Wl,-Bstatic" "/tmp/rustctxfHYp/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" "-shared" "-fuse-ld=gold"
  = note: /usr/bin/ld.gold: error: cannot find -lLLVM-10-rust-1.45.0-nightly
          collect2: error: ld returned 1 exit status
          
error: aborting due to previous error
error: could not compile `script_plugins`.
@jdm jdm added O-linux Operating system: Linux regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. labels May 26, 2020
@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label May 26, 2020
@JohnTitor
Copy link
Member

I think you should add llvm-tools(-preview) component.

@Mark-Simulacrum
Copy link
Member

Yes, this is expected fallout from a recent change. Please let me know if it's causing serious problems though, it's plausible we can find an alternative way of achieving the goals of the PR that broke this.
The rustc-dev component which you need for this isn't shipped on stable so this isn't a stable-to-nightly regression.

@Mark-Simulacrum Mark-Simulacrum removed I-prioritize Issue: Indicates that prioritization has been requested for this issue. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. labels May 26, 2020
@jdm
Copy link
Contributor Author

jdm commented May 26, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-linux Operating system: Linux
Projects
None yet
Development

No branches or pull requests

4 participants