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

Bug 955948

Summary: dev-util/spirv-llvm-translator: libLLVMSPIRVLib.so.19.1: cannot open shared object file: No such file or directory
Product: Gentoo/Alt Reporter: Benjamin Block <bebl>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: UNCONFIRMED ---    
Severity: normal CC: bebl, conikost, llvm
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Benjamin Block 2025-05-14 10:22:24 UTC
When installing dev-util/spirv-llvm-translator in PREFIX the resulting executable can't resolve symbols/libraries properly. The emerge works fine, but the result is unsuable

~ $ command -v llvm-spirv
/home/share/gentoo/usr/lib/llvm/19/bin/llvm-spirv
~ $ llvm-spirv
llvm-spirv: error while loading shared libraries: libLLVMSPIRVLib.so.19.1: cannot open shared object file: No such file or directory
~ $ readelf -a "$(command -v llvm-spirv)"
ELF Header:
...
Dynamic section at offset 0x24898 contains 32 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libLLVMSPIRVLib.so.19.1]
 0x0000000000000001 (NEEDED)             Shared library: [libSPIRV-Tools.so]
 0x0000000000000001 (NEEDED)             Shared library: [libLLVM.so.19.1]
 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000c (INIT)               0x7000
 0x000000000000000d (FINI)               0x1b568
 0x0000000000000019 (INIT_ARRAY)         0x24c90
 0x000000000000001b (INIT_ARRAYSZ)       16 (bytes)
 0x000000000000001a (FINI_ARRAY)         0x24ca0
 0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)
 0x000000006ffffef5 (GNU_HASH)           0x348
 0x0000000000000005 (STRTAB)             0x1648
 0x0000000000000006 (SYMTAB)             0x400
 0x000000000000000a (STRSZ)              9472 (bytes)
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000015 (DEBUG)              0x0
 0x0000000000000003 (PLTGOT)             0x25ae8
 0x0000000000000002 (PLTRELSZ)           3168 (bytes)
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000017 (JMPREL)             0x60d0
 0x0000000000000007 (RELA)               0x3df0
 0x0000000000000008 (RELASZ)             8928 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000000000001e (FLAGS)              BIND_NOW
 0x000000006ffffffb (FLAGS_1)            Flags: NOW PIE
 0x000000006ffffffe (VERNEED)            0x3cd0
 0x000000006fffffff (VERNEEDNUM)         4
 0x000000006ffffff0 (VERSYM)             0x3b48
 0x000000006ffffff9 (RELACOUNT)          222
 0x0000000000000000 (NULL)               0x0
...

I'm guessing the RPATH/RUNPATH is missing the the executable, so it doesn't look at the right place for `libLLVMSPIRVLib.so.19.1`.

I attach build output.

Reproducible: Always
Comment 1 Benjamin Block 2025-05-14 10:23:44 UTC
Created attachment 928793 [details]
build.log