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
glibc: fix cross compilation build failure #76972
Conversation
4240112
to
3aee042
Compare
This change fixes the symptoms, but I'm really not sure of the cause. Why is the gcc 8 warning only showing up now? There's also some overlap with the |
3aee042
to
8af88dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes the build for me.
I assume that this is due to the fact that we still have glibc 2.27 which was released >2 years ago (current version is 2.30) and it's just not "compatible" with newer compilers (the glibc 2.30 update is currently worked on in #66528).
Just a wild guess, but perhaps nobody noticed? (it seems to occur only when cross-compiling and we had gcc7 by default for a long time). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I didn't see that one before, I basically tried the same after getting notified in #77504 and this seems fine. But before merging, I'd prefer to wait for some more reviews :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - however, it might be wiser to apply it for non-cross too - either here (and then target staging), or as a follow-up PR to staging once this PR is merged.
Wouldn't it be better to apply the patch for the OOB access? It seems like a fix that's easy to apply. |
@Mindavi indeed - so this should |
This was preventing a mass-rebuild by returning null. As of 5f2d96b it always returns a string.
ae4eeb9
to
53a5b0c
Compare
Updating but patch doesn't apply. Hold on a moment while I sort this out. |
53a5b0c
to
5101476
Compare
@flokli sorry I got the backport wrong. Please revert this or see fixup PR. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Motivation for this change
Fix cross compiled glibc which fails due to warnings. I don't know why these warnings only show up in cross compilation, but it lets us avoid a mass rebuild of glibc.
Tested on an x86_64 builder
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @