https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: games-emulation/pcsx2-1.7.3602 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
Created attachment 840969 [details] build.log.xz build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Error(s) that match a know pattern in addition to what has been reported in the summary: -- Could NOT find Vtune (missing: VTUNE_LIBRARIES VTUNE_INCLUDE_DIRS) /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: pcsx2/pcsx2 clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
The linker references to /usr/lib64/libSoundTouch.so which is in another package. It looks like pcsx2 missing openpm library while linking with libSoundTouch. It can be pkgconf problem (if it is used) or cmake one as I understand.
(In reply to nE0sIghT from comment #3) > The linker references to /usr/lib64/libSoundTouch.so which is in another > package. > It looks like pcsx2 missing openpm library while linking with libSoundTouch. > It can be pkgconf problem (if it is used) or cmake one as I understand. Given happened with another package, I suspect the issue is with SoundTouch rather than pcsx2 when using clang16/strict (not that I looked into this).
On a side-note, pcsx2 no longer depends libsoundtouch outside of old stable 1.6.0.