Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 784548 - [guru] media-libs/amdvlk: missing pthread_cond_clockwait@@GLIBC_2.30
Summary: [guru] media-libs/amdvlk: missing pthread_cond_clockwait@@GLIBC_2.30
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: GURU project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-20 20:02 UTC by skala.antonin
Modified: 2022-11-16 19:33 UTC (History)
0 users

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


Attachments
Build log (build.tar.xz,69.07 KB, application/x-xz)
2021-04-20 20:03 UTC, skala.antonin
Details
Build log GCC 9.3 (gcc9-build.tar.xz,68.95 KB, application/x-xz)
2021-04-23 20:22 UTC, skala.antonin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description skala.antonin 2021-04-20 20:02:06 UTC
Hello, when I try to install media-libs/amdvlk it ends up with error:

/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: compiler/llpc/libllpc.a(llpcShaderCache.cpp.o): undefined reference to symbol 'pthread_cond_clockwait@@GLIBC_2.30'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libpthread.so.0: error adding symbols: DSO missing from command line

Install steps:
nano /etc/portage/repos.conf/guru.conf
##
[guru]
location = /var/db/repos/guru
sync-type = git
sync-uri = https://github.com/gentoo-mirror/guru.git
##

emerge --sync guru

mkdir -p /etc/portage/package.accept_keywords/

nano /etc/portage/package.accept_keywords/amdvlk
##
=media-libs/amdvlk-2021.1.2::guru **
##

mkdir -p /etc/portage/package.unmask
echo "=media-libs/amdvlk-2021.1.2::guru" > /etc/portage/package.unmask/amdvlk

cd /var/db/repos/guru
git reset --hard origin/master

emerge --ask media-libs/amdvlk
Comment 1 skala.antonin 2021-04-20 20:03:00 UTC
Created attachment 701331 [details]
Build log
Comment 2 Steven Davies 2021-04-23 13:12:18 UTC
I have a feeling this is an imcompatibility with GCC-10. Can you try with GCC-9?
Comment 3 skala.antonin 2021-04-23 20:19:54 UTC
Hello, with GCC 9 build fail with:

/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: compiler/llpc/CMakeFiles/amdllpc.dir/tool/amdllpc.cpp.o: undefined reference to symbol '_ZN4llvm17parseAssemblyFileENS_9StringRefERNS_12SMDiagnosticERNS_11LLVMContextEPNS_11SlotMappingE'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/media-libs/amdvlk-2021.1.2/work/amdvlk-2021.1.2_build-abi_x86_64.amd64/compiler/llpc/llvm/lib/libLLVMAsmParser.so.12git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Comment 4 skala.antonin 2021-04-23 20:22:50 UTC
Created attachment 702102 [details]
Build log GCC 9.3
Comment 5 Steven Davies 2021-04-24 18:42:06 UTC
I can confirm this too - it compiles fine following the instructions upstream but I can't get it to compile in an ebuild any more. I was hoping to make an ebuild for the latest 2021.Q2.1 release but that has the same problem.
Comment 6 skala.antonin 2021-04-24 18:45:26 UTC
When I pass LDFLAGS='-pthread, I can overcome first error 'pthread_cond_clockwait@@GLIBC_2.30' on gcc10 but it stil fail on '_ZN4llvm17parseAssemblyFileENS...
Comment 7 Reva Denis 2022-10-28 06:23:26 UTC
Bug is obsolete.
Comment 8 Larry the Git Cow gentoo-dev 2022-11-16 19:33:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=955851505c0c5538d143422cc5e65aca280df338

commit 955851505c0c5538d143422cc5e65aca280df338
Author:     Denis Reva <denis7774@gmail.com>
AuthorDate: 2022-11-16 17:03:06 +0000
Commit:     Denis Reva <denis7774@gmail.com>
CommitDate: 2022-11-16 17:03:20 +0000

    media-libs/amdvlk: updated to 2022.4.2
    
    Reduced installation time
    
    Fixed warning about installation directory
    
    Closes: https://bugs.gentoo.org/878803
    Closes: https://bugs.gentoo.org/784548
    Closes: https://bugs.gentoo.org/872461
    Signed-off-by: Denis Reva <denis7774@gmail.com>

 media-libs/amdvlk/Manifest                         |  10 +-
 ...dvlk-2022.4.1.ebuild => amdvlk-2022.4.2.ebuild} |  32 ++-
 .../files/amdvlk-2022.4.2-license-path.patch       |  13 +
 ...2022.4.2-reduced-llvm-installations-part2.patch | 175 ++++++++++++
 ...mdvlk-2022.4.2-reduced-llvm-installations.patch | 309 +++++++++++++++++++++
 5 files changed, 519 insertions(+), 20 deletions(-)