Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 884825 - games-emulation/pcsx2-1.7.3602 fails to compile (CLANG-STRICTER-SYSTEM): x86_64-pc-linux-gnu-ld.bfd: libSoundTouch.so: undefined reference to __kmpc_for_static_fini
Summary: games-emulation/pcsx2-1.7.3602 fails to compile (CLANG-STRICTER-SYSTEM): x86_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: nE0sIghT
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-08 09:17 UTC by Agostino Sarubbo
Modified: 2024-01-15 07:29 UTC (History)
3 users (show)

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


Attachments
build.log.xz (build.log.xz,34.94 KB, application/x-xz)
2022-12-08 09:17 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-12-08 09:17:30 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-08 09:17:32 UTC
Created attachment 840969 [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-08 09:17:33 UTC
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)
Comment 3 nE0sIghT 2022-12-08 14:10:16 UTC
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.
Comment 4 Ionen Wolkens gentoo-dev 2022-12-08 19:22:58 UTC
(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).
Comment 5 Ionen Wolkens gentoo-dev 2023-07-25 01:47:42 UTC
On a side-note, pcsx2 no longer depends libsoundtouch outside of old stable 1.6.0.
Comment 6 Larry the Git Cow gentoo-dev 2024-01-15 07:29:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c75f09735b89ba465ad543ec885718a77566643a

commit c75f09735b89ba465ad543ec885718a77566643a
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-01-15 04:58:25 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-01-15 07:26:53 +0000

    games-emulation/pcsx2: drop 1.6.0-r3
    
    See bug #922149 for what motivated dropping it even though
    it's the upstream stable release.
    
    Note that this drops the x86 keyword, upstream does not
    support that anymore (only amd64+sse4.1 is supported).
    
    wrt bug #884825, there is no pcsx2 version left using system
    soundtouch.
    
    Closes: https://bugs.gentoo.org/884825
    Closes: https://bugs.gentoo.org/922149
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 games-emulation/pcsx2/Manifest                     |   1 -
 .../pcsx2/files/pcsx2-1.6.0-disable-setcap.patch   |  49 ----------
 .../pcsx2/files/pcsx2-1.6.0-wx-config.patch        |  20 ----
 games-emulation/pcsx2/pcsx2-1.6.0-r3.ebuild        | 105 ---------------------
 profiles/arch/amd64/no-multilib/package.mask       |   1 -
 5 files changed, 176 deletions(-)