-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Rustbuild: Building stage0 with system installed rust with rustlib in /usr/lib64 fails #51698
Labels
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Comments
aclemons
added a commit
to aclemons/slackbuilds.org
that referenced
this issue
Jun 22, 2018
This took longer than expected to get sorted out on my side. Building 1.26.2 from 1.25.0 on x86_64 was failing. I finally managed to track down a workaround and have added a patch for that. rust-lang/rust#51698 Signed-off-by: Andrew Clemons <[email protected]>
aclemons
added a commit
to aclemons/slack-rust-bootstrap
that referenced
this issue
Jun 22, 2018
Also confirmed that 1.25.0 cannot rebuild itself (building 1.25.0 again with a system installed 1.25.0). It fails with the same error. 1.24.1 can so it seems the change was added during the 1.25 cycle. |
aclemons
added a commit
to aclemons/slackbuilds.org
that referenced
this issue
Jun 22, 2018
This took longer than expected to get sorted out on my side. Building 1.26.2 from 1.25.0 on x86_64 was failing. I finally managed to track down a workaround and have added a patch for that. rust-lang/rust#51698 Signed-off-by: Andrew Clemons <[email protected]>
willysr
pushed a commit
to SlackBuildsOrg/slackbuilds
that referenced
this issue
Jun 23, 2018
This took longer than expected to get sorted out on my side. Building 1.26.2 from 1.25.0 on x86_64 was failing. I finally managed to track down a workaround and have added a patch for that. rust-lang/rust#51698 Signed-off-by: Andrew Clemons <[email protected]>
aclemons
added a commit
to aclemons/slack-rust-bootstrap
that referenced
this issue
Jul 15, 2018
jonas-schievink
added
the
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
label
Jan 27, 2019
I think this has since been fixed; we aren't planning to backport patches to 1.25 at this late date. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I initially built rust version 1.19.0 from source using the downloaded stage0 snapshot compiler and have been building each successive version with the previous version with this config.toml:
(The 1.19.0 config.toml did not include rustc/cargo configs)
This worked fine until rust 1.26.x. This now breaks building stage0 (further details below).
Environment:
Slackware64 14.2
It does not break on Slackware 14.2 (32bit) using libdir = "lib" in the config.toml.
After some research, I've found a workaround.
In the file
src/bootstrap/builder.rs
,fn sysroot_libdir
always sets the libdir toPath::new("lib")
for stage0. This is fine for the case of building with the downloaded stage0, but not for the case of using the system rustc with rustlib in /usr/lib64.After I changed the source to use lib64 when building on x86_64, I could finally build 1.26.x successfully.
Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: