-
Couldn't load subscription status.
- Fork 13.9k
Closed
Description
Steps to reproduce:
- Clone this git repository
- Run
./configure && make - Run
x86_64-unknown-linux-gnu/stage2/bin/rustc --help
Expected results: the help message. rustc can be used in place to compile stuff.
Actual result:
x86_64-unknown-linux-gnu/stage2/bin/rustc: symbol lookup error: x86_64-unknown-linux-gnu/stage2/bin/rustc: undefined symbol: _ZN2rt10lang_start20h8e79fc6788a362d0mJzE
The instructions in README.md also include make install which would fix this issue, but:
make installdefaults to writing to a directory that typically requires root access- I might already have a (potentially different) version of Rust installed system-wide.
I’m told I can pass --enable-rpath to ./configure, but that’s exactly the kind of secret sauce that I shouldn’t need to know.
Possible solutions:
- Make
--enable-rpaththe default for source builds (binary builds distributed on rust-lang.org don’t have to use that default) - Make
bin/rustca wrapper script that sets the correct environment variables (e.g.LD_LIBRARY_PATHon Linux). This might also help with Support installing multiple release channels #19263.
CC @brson
Metadata
Metadata
Assignees
Labels
No labels