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
Created attachment 701331 [details] Build log
I have a feeling this is an imcompatibility with GCC-10. Can you try with GCC-9?
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
Created attachment 702102 [details] Build log GCC 9.3
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.
When I pass LDFLAGS='-pthread, I can overcome first error 'pthread_cond_clockwait@@GLIBC_2.30' on gcc10 but it stil fail on '_ZN4llvm17parseAssemblyFileENS...
Bug is obsolete.
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(-)