media-libs/game-music-emu-0.6.3 fails to compile if USE="sanitize" is not enabled for sys-devel/gcc:11. The linker complains about missing -lubsan. CMake enables UBSAN according to CMakeLists.txt - even in case of sys-devel/gcc:11[-sanitize], but necessary lib (/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/libubsan.so.1.0.0) only gets installed with sanitize enabled. I haven't tested this with other sys-devel/gcc versions. Sanitize seems to be a new USE flag for sys-devel/gcc. Reproducible: Always
No build.log and emerge —-info? Sorry to go about it, but it’s really useful for fixing these if we can’t reproduce.
(In reply to Sam James from comment #1) > No build.log and emerge —-info? Sorry to go about it, but it’s really useful > for fixing these if we can’t reproduce. Sure, of course - sorry for the missing logs. It just takes time to re-emerge gcc-11 with -sanitize, reproduce and harvest the logs. I'll get back and attach.
Created attachment 706602 [details] build.log + emerge --info.txt This doesn't seem to be gcc11, I get this with gcc10 as well. workaround: MYCMAKEARGS='-DENABLE_UBSAN=off' emerge game-music-emu
(In reply to Ionen Wolkens from comment #3) > Created attachment 706602 [details] > build.log + emerge --info.txt > > This doesn't seem to be gcc11, I get this with gcc10 as well. > > workaround: > MYCMAKEARGS='-DENABLE_UBSAN=off' emerge game-music-emu USE="sanitize" is introduced for gcc:11. For gcc:10 I also come to the workaround conclusion you've mentioned then I proceeded to gcc:11 and with that it's possible to compile with USE="sanitize" and UBSAN=ON.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ea64d9eabcfcd1b34860061a2c8e2f28f588155 commit 0ea64d9eabcfcd1b34860061a2c8e2f28f588155 Author: Miroslav Šulc <fordfrog@gentoo.org> AuthorDate: 2021-07-02 20:11:58 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2021-07-02 20:11:58 +0000 media-libs/game-music-emu: disabled sanitize in 0.6.3 Closes: https://bugs.gentoo.org/788361 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> media-libs/game-music-emu/game-music-emu-0.6.3.ebuild | 7 +++++++ 1 file changed, 7 insertions(+)