-
Notifications
You must be signed in to change notification settings - Fork 13k
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
powerpc-unknown-linux-gnu fails to compile simple crates #50960
Comments
@lu-zero think you can possibly bisect to find the source of the problem? The cargo-bisect-rustc tool may help: |
rustc-1.24.0 seems working. Now I can build cargo-bisect-rustc and try. If in the mean time you could unbreak 1.26.0 would be great btw :) |
I used
|
|
I believe we're waiting on a bisection here to a nightly range or a specific PR. Given that we're T-3 weeks from release if that doesn't happen soon we'll want the bisection soon. |
I gave @nikomatsakis access to the instance since I was unable to get a result less coarse than what I posted before. |
Now rust-1.26.1 installs and fails as well:
|
I'm assigning @nikomatsakis and nominating for compiler team. 1.26.1 did not contain any fixes for this issue so it's unsurprising that it continues to not work. |
To be clear, I do have access to the machine, but I also have very little time at the moment to really take advantage of that and do investigation =) (powerpc is not a Tier 1 platform, so it's not clear how much time to allocate here.) That said, I would like it to work!
are you saying that the nightly builds prior to this worked great? |
No, no nightly picked up by the bisect program worked. All failed in different ways. |
@lu-zero could you share access to your instance with me as well? I want to try to help with the bisection if I can. |
Sure |
I have tested @LionNatsu 's patch from the LLVM review site and I can confirm that Rust works again for me \o/. Great job! |
@glaubitz Thanks for opening the LLVM buf and creating a patch. I'm glad the combined effort could track this down. |
@edelsohn All credits go to @LionNatsu :) |
Hmm, so while the LLVM bug was now fixed,
Even rustc 1.24 doesn't work anymore. I have the impression that something external is causing this. |
@glaubitz Have you checked this message? I have already fixed this recently rust-random/rand#589, released at rand 0.4.3. |
Aha! I haven't seen that. Thanks a lot for pointing me at that. You probably saved me lots of digging now ;). |
You're welcome :) |
FWIW, their |
Is it actually necessary to add other architectures like sparc64 there as well? I have just skimmed over the code, so I don't know whether the syscall definitions are necessary. |
It's not necessary -- |
Right, I completely forgot about the fact that |
The LLVM fix is now committed. The next step for Rust is to backport it onto rust-lang/llvm branch |
Nightly is still suffering from the rand issue:
I have to fix that manually first and then re-try. |
@cuviper Yes, for some reason it took |
There is Maybe it's actually the rustup shim getting in your way? If you also compiled that yourself, it looks like they're still locked on 0.4.2: |
No, I've never used |
Turns out I'm an idiot. I put the cross-compiled Testing now, looks good but let me wait for the build to finish. |
I can confirm that on nightly, This can be resolved as fixed and closed. Thanks everyone! |
You tested with #54266 applied? Normally we would let that PR merge close the bug automatically. |
No, I tested the nightly and confirmed that it works. |
Well, nightly doesn't have the fix yet, so I think you just got lucky that the bug didn't manifest. Meaning that the unwritten stack locations must have had "harmless" bytes in them already, this time. |
That surprises me. Without the fix, I could barely compile anything on powerpc. It bailed out very early trying to build the compiler itself. The nightly, on the other hand, works completely fine. But I just looked, nightly doesn't seem to have it. What are the odds. |
Update LLVM to fix "bool" arguments on PPC32 Fixes rust-lang#50960.
Example:
Additionally I cannot install stable on powerpc and powerpc64le due
rust-doc
being not available.The text was updated successfully, but these errors were encountered: