Package Details: libhsakmt-git 1.0.0.2.gfd24c14-1

Git Clone URL: https://aur.archlinux.org/libhsakmt-git.git (read-only)
Package Base: libhsakmt-git
Description: AMD HSA KMT Library (freedesktop)
Upstream URL: https://cgit.freedesktop.org/amd/hsakmt/
Licenses: custom:AMD
Provides: libhsakmt
Submitter: AdmiralAkber
Maintainer: AdmiralAkber
Last Packager: AdmiralAkber
Votes: 1
Popularity: 0.000001
First Submitted: 2016-07-05 10:35
Last Updated: 2016-07-05 10:42

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

ArchAur777 commented on 2017-03-16 10:37

yaourt -S libhsakmt
yaourt -S hsa-runtime-git

/opt/hsa/sample/vector_copy
./vector_copy: error while loading shared libraries: libhsakmt.so.1: cannot open shared object file: No such file or directory

LD_INCLUDE_PATH=/usr/local/lib /opt/hsa/sample/vector_copy
./vector_copy: error while loading shared libraries: libhsakmt.so.1: cannot open shared object file: No such file or directory


[root@eastwoodarch /opt/hsa/lib] 2017-03-16 06:25:46 EDT -0400
# ls -lht
total 18M
lrwxrwxrwx 1 root root 26 Jan 14 00:54 libhsa-ext-finalize64.so -> libhsa-ext-finalize64.so.1
-rwxr-xr-x 1 root root 12M Jan 14 00:54 libhsa-ext-finalize64.so.1
lrwxrwxrwx 1 root root 23 Jan 14 00:54 libhsa-ext-image64.so -> libhsa-ext-image64.so.1
-rwxr-xr-x 1 root root 1.1M Jan 14 00:54 libhsa-ext-image64.so.1
lrwxrwxrwx 1 root root 21 Jan 14 00:54 libhsa-runtime64.so -> libhsa-runtime64.so.1
-rwxr-xr-x 1 root root 402K Jan 14 00:54 libhsa-runtime64.so.1
lrwxrwxrwx 1 root root 27 Jan 14 00:54 libhsa-runtime-tools64.so -> libhsa-runtime-tools64.so.1
-rwxr-xr-x 1 root root 4.1M Jan 14 00:54 libhsa-runtime-tools64.so.1


# ls -lht /usr/local/lib
total 44K
-rwxr-xr-x 1 root root 38K Mar 6 23:01 libhsakmt-1.so.0.0.1
drwxr-xr-x 2 root root 4.0K Mar 6 23:01 pkgconfig
lrwxrwxrwx 2 root root 20 Mar 6 23:01 libhsakmt-1.so -> libhsakmt-1.so.0.0.1
lrwxrwxrwx 1 root root 20 Mar 6 23:01 libhsakmt-1.so.0 -> libhsakmt-1.so.0.0.1
lrwxrwxrwx 2 root root 20 Mar 6 23:01 libhsakmt.so.1 -> libhsakmt-1.so.0.0.1

cat /etc/ld.so.conf.d/libhsakmt.conf
/usr/local/lib
/opt/hsa/lib

ldconfig

/opt/hsa/sample/vector_copy
./vector_copy: error while loading shared libraries: libhsakmt.so.1: cannot open shared object file: No such file or directory

LD_INCLUDE_PATH=/usr/local/lib /opt/hsa/sample/vector_copy
./vector_copy: error while loading shared libraries: libhsakmt.so.1: cannot open shared object file: No such file or directory


I found this quite odd. So I did trace on the binary itself and found it's looking for that so in other directories instead of the ldconfig path.

pacman -S strace
strace /opt/hsa/sample/vector_copy
open("/usr/lib/tls/x86_64/libhsakmt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls/x86_64", 0x7ffc5c8a3360) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libhsakmt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls", 0x7ffc5c8a3360) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64/libhsakmt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64", 0x7ffc5c8a3360) = -1 ENOENT (No such file or directory)
open("/usr/lib/libhsakmt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib", {st_mode=S_IFDIR|0755, st_size=208896, ...}) = 0
writev(2, [{iov_base="./vector_copy", iov_len=13}, {iov_base=": ", iov_len=2}, {iov_base="error while loading shared libra"..., iov_len=36}, {iov_base=": ", iov_len=2}, {iov_base="libhsakmt.so.1", iov_len=14}, {iov_base=": ", iov_len=2}, {iov_base="cannot open shared object file", iov_len=30}, {iov_base=": ", iov_len=2}, {iov_base="No such file or directory", iov_len=25}, {iov_base="\n", iov_len=1}], 10./vector_copy: error while loading shared libraries: libhsakmt.so.1: cannot open shared object file: No such file or directory


So I placed one other symbolic link for that share object file in one of those directories:

ln -s -T /usr/local/lib/libhsakmt.so.1 /usr/lib/libhsakmt.so.1

ls -lht libhsakmt.so.1
lrwxrwxrwx 1 root root 29 Mar 16 05:46 libhsakmt.so.1 -> /usr/local/lib/libhsakmt.so.1


/opt/hsa/sample/vector_copy
./vector_copy: /usr/lib/libhsakmt.so.1: no version information available (required by /opt/hsa/lib/libhsa-runtime64.so.1)
Segmentation fault (core dumped)