Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 788361 - media-libs/game-music-emu-0.6.3 fails to build without gcc[sanitize] (ld: cannot find -lubsan)
Summary: media-libs/game-music-emu-0.6.3 fails to build without gcc[sanitize] (ld: can...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-05 15:34 UTC by Attila Tóth
Modified: 2021-07-02 20:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log + emerge --info.txt (build.log-emerge-info.txt,39.88 KB, text/plain)
2021-05-08 06:06 UTC, Ionen Wolkens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2021-05-05 15:34:39 UTC
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
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-05 15:50:19 UTC
No build.log and emerge —-info? Sorry to go about it, but it’s really useful for fixing these if we can’t reproduce.
Comment 2 Attila Tóth 2021-05-05 15:57:41 UTC
(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.
Comment 3 Ionen Wolkens gentoo-dev 2021-05-08 06:06:15 UTC
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
Comment 4 Attila Tóth 2021-05-08 08:15:18 UTC
(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.
Comment 5 Larry the Git Cow gentoo-dev 2021-07-02 20:12:10 UTC
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(+)