https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-emulation/pcem-17-r1 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 787886 [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: ./configure: line 5198: CXXFLAGS?=-O3 -fcommon: command not found checking whether to enable debugging... ./configure: line 5197: CFLAGS?=-O3 -fcommon: command not found x87_ops_arith.h:180:14: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstrict-aliasing]]
Upstream now force no strict aliasing: https://github.com/sarah-walker-pcem/pcem/commit/85e1ef3ee4b5b1598957bfa95312f42a1eaef6e6
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1b92480a177be6170a1d850d9066bb12c28f06a commit d1b92480a177be6170a1d850d9066bb12c28f06a Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2022-07-16 19:46:10 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2022-07-16 20:40:50 +0000 app-emulation/pcem: filter LTO Closes: https://bugs.gentoo.org/854528 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> app-emulation/pcem/pcem-17-r1.ebuild | 4 ++++ 1 file changed, 4 insertions(+)
FWIW this one needs -fno-strict-aliasing appended too.
(In reply to Sam James from comment #5) > FWIW this one needs -fno-strict-aliasing appended too. Is this with filter-lto really needed?
(In reply to Conrad Kostecki from comment #6) > (In reply to Sam James from comment #5) > > FWIW this one needs -fno-strict-aliasing appended too. > > Is this with filter-lto really needed? yes, because if it's not strict aliasing compliant, it'll break anyway (-O2 enables -fstrict-aliasing)