https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: games-emulation/melonds-0.9.4_p1-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 792068 [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: FAILED: src/CMakeFiles/core.dir/DSi_SD.cpp.o FAILED: src/CMakeFiles/core.dir/GPU2D_Soft.cpp.o FAILED: src/CMakeFiles/core.dir/NDS.cpp.o /var/tmp/portage/games-emulation/melonds-0.9.4_p1-r1/work/melonDS-0.9.4/src/DSi_SD.cpp:272:6: 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=9d86757bf63ca43fc97c236c616d0dfd8d8b4912 commit 9d86757bf63ca43fc97c236c616d0dfd8d8b4912 Author: Maciej Barć <xgqt@gentoo.org> AuthorDate: 2022-07-23 17:50:54 +0000 Commit: Maciej Barć <xgqt@gentoo.org> CommitDate: 2022-07-23 17:50:54 +0000 games-emulation/melonds: filter lto Closes: https://bugs.gentoo.org/858710 Signed-off-by: Maciej Barć <xgqt@gentoo.org> games-emulation/melonds/melonds-0.9.3-r2.ebuild | 3 ++- games-emulation/melonds/melonds-0.9.4_p1-r1.ebuild | 3 ++- games-emulation/melonds/melonds-9999.ebuild | 7 ++++++- 3 files changed, 10 insertions(+), 3 deletions(-)
Needs -fno-strict-aliasing.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65321f59f7f8ae5756dfc2685b942449152f31ad commit 65321f59f7f8ae5756dfc2685b942449152f31ad Author: Sam James <sam@gentoo.org> AuthorDate: 2022-07-24 01:56:06 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-07-24 16:24:00 +0000 games-emulation/melonds: disable strict aliasing Bug: https://bugs.gentoo.org/858710 Signed-off-by: Sam James <sam@gentoo.org> games-emulation/melonds/melonds-0.9.3-r2.ebuild | 2 ++ games-emulation/melonds/melonds-0.9.4_p1-r1.ebuild | 2 ++ games-emulation/melonds/melonds-9999.ebuild | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-)