Created attachment 841239 [details] emerge --info and build log sys-libs/gpm-1.20.7-r5 fails to compile with CFLAGS=-flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing and LDFLAGS="-Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" /var/tmp/portage/sys-libs/gpm-1.20.7-r5/work/gpm-1.20.7-abi_x86_32.x86/src/headers/daemon.h:175:25: error: type of ‘cinfo’ does not match original declaration [-Werror=lto-type-mismatch] 175 | extern Gpm_Cinfo *cinfo[MAX_VC+1]; | ^ daemon/gpm.c:96:12: note: array types have different bounds 96 | Gpm_Cinfo *cinfo[MAX_VC+1]; | ^ daemon/gpm.c:96:12: note: ‘cinfo’ was previously declared here lto1: some warnings being treated as errors lto-wrapper: fatal error: x86_64-pc-linux-gnu-gcc returned 1 exit status compilation terminated. /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b043a3fc58e218b230173047b13038bb33888b9 commit 6b043a3fc58e218b230173047b13038bb33888b9 Author: Eli Schwartz <eschwartz93@gmail.com> AuthorDate: 2024-02-07 06:37:01 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-02-07 19:20:01 +0000 sys-libs/gpm: prevent LTO, since it is broken src/headers/daemon.h:175:25: error: type of ‘cinfo’ does not match original declaration [-Werror=lto-type-mismatch] Bug: https://bugs.gentoo.org/885323 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> sys-libs/gpm/gpm-1.20.7-r5.ebuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)