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
rustc-1.19.0 make install fails with "could not find native static library lzma" #43545
Comments
|
You'll need to have a copy of liblzma around on your system: https://tukaani.org/xz/ |
|
I do have liblzma on my system: |
|
I've got the same error trying to build rust 1.19.0. And I do have liblzma too: Running error: could not find native static library |
|
Looks like liblzma.a is just not installed to rustc-1.19.0-src/build/i686-unknown-linux-gnu/stage0-tools/i686-unknown-linux-gnu/release/build/lzma-sys-307e68ecb4275fe2/out/lib/ |
|
Still failing for me with 1.20.0 |
|
I have the same issue when attempting to compile rustc 1.20 on amd64-linux. = note: /usr/lib64/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /tmp/rustc-1.20.0-src/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/liblzma_sys-0be566c65e5be899.rlib(liblzma_la-common.o): relocation R_X86_64_32 against Any many more of this same error message. Note that there is a liblzma.a falling out of the build process. Using that instead of the system one yields the same error messages. Also note that I'm using my own distro here, which uses a stock gcc with no patches. In particular, the default mode is -fno-pic, as the GNU project is shipping gcc. |
|
I do not know that this is a Rust issue, though? It looks like it would more likely be the fault of |
|
@Mark-Simulacrum The issue only happens when compiling rustc from source. I can create an empty project, add xz2 to the dependencies in the Cargo.toml, and lzma_sys compiles just fine. However when I attempt to |
|
Could you clone this repo and try to reproduce that way? |
|
@Mark-Simulacrum On stable branch rust-installer fails to build both with and without On master rust-installer builds without |
|
Has there been any progress regarding this issue? Installing Rust 1.19.0 from source fails here too. |
|
Same issue here in Solus Bootstrapping 1.20.0 with 1.19.0 using Rust official stage0 (2017-07-20). The liblzma libset built with |
|
Rust 1.21.0 with lzma-sys v0.1.8 seems to build fine. No idea, how to tell Rust 1.19.0 to use the newer lzma-sys. |
|
I'm going to close this since past Rust releases are immutable; I haven't heard anyone mention this being a problem since 1.19. |
Using the same build process that worked for me with rustc-1.18.0:
This gave errors:
Oddly, after this failure, I found a directory /home/daniel/src/rustc/rustc-1.19.0/debian/tmp/home/daniel/src/rustc/rustc-1.19.0/obj-x86_64-linux-gnu/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/build/lzma-sys-21cbe9c072a2ac8f/out/ within the DESTDIR.
(By the way, this is for my own homebrew one-user "distribution", not for official Debian or Ubuntu, etc., packaging.)
The text was updated successfully, but these errors were encountered: