-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rust build of 1.47.0: rustdoc fails when cross-building for NetBSD/sparc64 #78406
Comments
Are you self-bootstrapping the cross build (setting rustc/cargo 1.47 as well)? I guess that's the only difference I can think of that would obviously cause things like this. It's also possible this is just always broken, rust-lang/rust doesn't cross-compile documentation I think for most platforms so we don't really test it. |
cc @jyn514 |
The easiest way to fix this is just to disambiguate the intra-doc link:
I highly recommend setting |
See also #76526. |
Nor sure I fully understand the question. The bootstrap compiler is 1.46.0, but it looks like in this instance it's the built-as-part-of-bootstrap
and just prior to the error the build log contains
so this is done as part of the stage 2 of the bootstrap.
Hm. "Room for improvement!" :) |
Thanks, that worked. Silly of me not trying that variant first...
Is this really supposed to be |
Yes, thanks, I meant Are you interested in making a PR with the |
I already fixed this one in #77777. |
Great, so this is fixed in nightly then. |
This does confuse me too. |
While building for NetBSD/sparc64 with NetBSD/amd64 as host, I reproducibly encounter this error:
...and since this is an error, the whole build fails. Trying to append
()
to thestring as suggested just produces another error, so is obviously not the right thing to do.
Oddly, when building natively on NetBSD/amd64, this error is not flagged.
Also, when cross-building for NetBSD/macppc or NetBSD/armv7 on NetBSD/amd64,
this error is also not flagged.
I expected to see the build complete without errors; 1.46.0 certainly did.
Yes, we carry a number of patches to rust in pkgsrc, not all of them up-streamable...
Still, hints for what might be the root cause of this failure are most welcome,
or how I might work around this issue.
It seems odd that it's complaining about what on the face of it appears to be a
Linux-specific function when this isn't run on or being built for Linux...
Meta
rustc --version --verbose
:(That's the bootstrap version used.)
Backtrace
The text was updated successfully, but these errors were encountered: