Repository navigation
zip: fix build with GCC 14 - #359020
zip: fix build with GCC 14#359020
Conversation
|
I’d actually like to merge this pretty promptly as I’ve had a few things blocked on OpenJDK builds. But it’s kind of awful that we’re just downgrading the compilation to sweep some UB further under the rug – can you add a comment that |
|
So... I was apparently foolish enough to assume that "no more of the new warnings" = "fixed zip package". There is no maintained fork of zip, right? |
Afaik, no. Same goes for unzip. |
|
Gentoo has More Patches that might be worth trying: https://gitweb.gentoo.org/repo/gentoo.git/tree/app-arch/zip/files |
|
The same error occurs at |
|
Wouldn't just dropping the optimization flag work? |
That would be equivalent to |
23d9e14 to
5edddbe
Compare
|
I've pushed an alternative approach where we use GCC 13 instead. Not very nice but it works |
|
Not sure I feel good about this – if it’s GCC 14 miscompiling the code then we’re in trouble and can expect other issues throughout the tree. OTOH if it’s UB in |
|
I just found https://bugzilla.redhat.com/show_bug.cgi?id=2165653 and will try their patch later. But it doesn't really match our problem. |
|
Nevermind, we already include that patch. |
emilazy
left a comment
There was a problem hiding this comment.
This worries me, but I’m okay proceeding with it for now if you split the patches into another commit and adjust the comment.
318bad1 to
983a7df
Compare
|
So I just found another patch: https://sources.debian.org/data/main/z/zip/3.0-14/debian/patches/12-fix-build-with-gcc-14.patch Which I want to try out. I was comparing the build logs, and this patch removes some differences. |
983a7df to
521f1b4
Compare
Co-authored-by: Emily <[email protected]>
521f1b4 to
584da3b
Compare
| ./fix-memset-detection.patch | ||
| # Implicit declaration of `closedir` and `opendir` cause dirent detection to fail with clang 16. | ||
| ./fix-implicit-declarations.patch | ||
| # Buffer overflow on Unicode characters in path names |
There was a problem hiding this comment.
This patch was moved below as part of the Gentoo patches.
emilazy
left a comment
There was a problem hiding this comment.
Builds on aarch64-linux and aarch64-darwin. Thanks for getting to the root of this! Much happier with this than pinning the compiler.
GCC 14 breaks the package
ref. #356812
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)