Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 884781

Summary: games-emulation/desmume-0.9.13-r1 fails to compile (CLANG-STRICTER-SYSTEM): x86_64-pc-linux-gnu-ld.bfd: libSoundTouch.so: undefined reference to __kmpc_for_static_init_4u
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Games <games>
Status: CONFIRMED ---    
Severity: normal CC: ykonotopov
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=884825
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.xz

Description Agostino Sarubbo gentoo-dev 2022-12-07 21:09:25 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: games-emulation/desmume-0.9.13-r1 fails to compile (CLANG-STRICTER-SYSTEM).
Discovered on: amd64 (internal ref: clang-stricter_tinderbox)

NOTE:
(CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode

This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types

See also:
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
https://wiki.gentoo.org/wiki/Modern_C_porting
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-07 21:09:27 UTC
Created attachment 840859 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2022-12-07 21:09:28 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/usr/bin/x86_64-pc-linux-gnu-ld.bfd: /usr/lib64/libSoundTouch.so: undefined reference to `__kmpc_critical'
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: /usr/lib64/libSoundTouch.so: undefined reference to `__kmpc_end_critical'
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: /usr/lib64/libSoundTouch.so: undefined reference to `__kmpc_for_static_fini'
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: /usr/lib64/libSoundTouch.so: undefined reference to `__kmpc_for_static_init_4'
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: /usr/lib64/libSoundTouch.so: undefined reference to `__kmpc_for_static_init_4u'
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: /usr/lib64/libSoundTouch.so: undefined reference to `__kmpc_fork_call'
FAILED: cli/desmume-cli 
FAILED: gtk/desmume 
Run-time dependency openal found: NO (tried pkgconfig and cmake)
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-07 21:31:14 UTC
libSoundTouch seems terribly underlinked, likely clang 16 related