-
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
Bootstrapping rustc for sparc64-unknown-linux-gnu fails with linker errors #45456
Comments
I think this is likely to be more of |
Indeed, https://github.com/alexcrichton/cc-rs/blob/9839b14742b8721d69b0f8df3d925107b477476a/src/lib.rs#L1411-L1446 looks like a likely culprit. Looks like Lines 426 to 457 in b796087
|
@jrtc27 Thanks, I was looking for exactly that! I already opened a PR for cc-rs. Will look into the bootstrap code in a second. |
@Mark-Simulacrum @jrtc27 The two changes have resolved the problems, but we're still running into this issue:
Any idea? Edit: Seems like it's a problem that occurs when running multiple jobs in parallel. Without "-j$JOBS", it succeeds. |
bootstrap: Add openssl configuration for sparc64-unknown-linux-gnu Hi! This adds the target missing mapping for sparc64-unknown-linux-gnu. See: rust-lang#45456 Thanks
Since both rust-lang/cc-rs#262 and #45465 have been merged, I am closing this one now. |
I have tried to bootstrap rustc for sparc64-unknown-linux-gnu with:
which fails with:
The message
/usr/bin/ld: /home/glaubitz/rust/rust/build/x86_64-unknown-linux-gnu/stage1-std/sparc64-unknown-linux-gnu/release/deps/std-5e8ebc384e5dfd82.std0.rust-cgu.o: Relocations in generic ELF (EM: 43)
is repeated several hundred times which is why I cut the all but two instances of that message out.From the error messages above, it seems that the build process is invoking the wrong linker binary:
It's invoking
/usr/bin/ld
, but it should actually invoke/usr/bin/sparc64-linux-gnu-ld
.I haven't looked at the code yet, but I would suggest that the build process should always call external compilers and binutils using the GNU triplet prefix.
PS: I am one of Debian's sparc64 porters and I will be happy to provide to a fast SPARC-T5 porterbox to anyone who is interested in working on Rust on Linux/SPARC.
The text was updated successfully, but these errors were encountered: