-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
gcc12: mark broken for MIPS64 with unspecified ABI #237780
base: master
Are you sure you want to change the base?
Conversation
Seems like there's a bug in this version of GCC that prevents it from building unless the ABI is explicitly specified in the triple or -mabi. No other GCC versions in Nixpkgs are affected.
Do you know by chance if it was explicitly fixed in newer gcc versions? My worry is that While at it: which attribute do you build (if we have one in |
I don't. I suppose I could possibly bisect and find out, but I don't know how bisectable GCC is.
I don't undersand what you mean here. I tested all other GCC versions for the same MIPS doubles, and I regularly test builds for all other Linux architectures in
nix-build -A buildPackages.gcc12 --argstr crossSystem mips64-linux |
Aha, no problem. I can look at it as well.
Aha. My minor worry was that
Thank you! Did not know you can do it that way :) I tried a few
Is it the same thing you observe? That one should be easy to track down in |
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=e08835fd3a4a6559b79c26db9b18df0e838d943e looks like a good candidate, added in gcc-13+ (did not test yet). |
It should really be the default way people use, so we don't proliferate rarely-used "examples", and to make it more obvious that the platforms can be customised. In future, I'd like to clear out
Yes |
Was not it. WDYT of disabling just sanitizer instead: #237815 |
Hey thanks for tracking this down. I was able to reproduce the problem (both mips64 and mips64el). I think @trofi had the right solution with 6cec03027a07162b1fe1d5bfd61c98e98eb5c316. I also was able to verify that his 6cec03027a07162b1fe1d5bfd61c98e98eb5c316 fixes it. Could we do that instead? I've opened #238716 to do that. |
Description of changes
Seems like there's a bug in this version of GCC that prevents it from building unless the ABI is explicitly specified in the triple or -mabi. No other GCC versions in Nixpkgs are affected.
We might want to consider bumping MIPS to GCC 13 early to get around this.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)