GNU bug report logs - #78019
LTO build fails with diffutils 3.12

Previous Next

Package: diffutils;

Reported by: Christian Hesse <list <at> eworm.de>

Date: Wed, 23 Apr 2025 17:58:01 UTC

Severity: normal

Full log


Message #11 received at 78019 <at> debbugs.gnu.org (full text, mbox):

From: Christian Hesse <list <at> eworm.de>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 78019 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#78019: LTO build fails with diffutils 3.12
Date: Fri, 25 Apr 2025 11:43:46 +0200
[Message part 1 (text/plain, inline)]
Paul Eggert <eggert <at> cs.ucla.edu> on Wed, 2025/04/23 11:56:
> These are false positives from GCC. I worked around the last one by 
> installing the attached patch.

Which attached patch? Do you refer the grep issue here?

> The others are due to GCC bug 80922 
> <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80922>.
> 
> How are you invoking 'configure' and 'make', to enable -flto? Perhaps 
> diffutils can work around the other GCC bugs by looking at the arguments 
> to 'configure' and 'make' and disabling -Wmaybe-uninitialized if you're 
> using -flto.

This is the PKGBUILD file we use to build the Arch Linux package:

https://gitlab.archlinux.org/archlinux/packaging/packages/diffutils/-/blob/main/PKGBUILD

Note that we have set `options=('!lto')` to make the build tools disable lto.

According to our build tools (devtools) we set `LTOFLAGS="-flto=auto"` when
building with lto:

https://gitlab.archlinux.org/archlinux/devtools/-/blob/master/config/makepkg/x86_64.conf#L50

We are suffering these build issues with lots of gnu tools (including grep,
which you fix already; and gzip) since switching to building from git. This
now includes running `bootstrap`. Probably this is caused because newer
autotools generating a different configure script.
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
putchar(b-1/(/*    Chris            cc -ox -xc - && ./x    */b/42*2-3)*42);}
[Message part 2 (application/pgp-signature, inline)]

This bug report was last modified 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.