https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-emulation/86Box-3.5 fails to compile (lto). Discovered on: amd64 (internal ref: lto_tinderbox) NOTE: This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Created attachment 787862 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: -- Could NOT find ECM (missing: ECM_DIR) FAILED: src/codegen/CMakeFiles/dynarec.dir/codegen_ops.c.o /var/tmp/portage/app-emulation/86Box-3.5/work/86Box-3.5/src/codegen/codegen_ops_fpu.h:627:32: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3c20be17f9819a3a50a73627224eaa6aca694b1 commit a3c20be17f9819a3a50a73627224eaa6aca694b1 Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2022-07-16 19:52:48 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2022-07-16 20:40:51 +0000 app-emulation/86Box: filter lto Closes: https://bugs.gentoo.org/854507 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> app-emulation/86Box/86Box-3.6.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
FWIW this one needs -fno-strict-aliasing appended too.