gpu-post icon indicating copy to clipboard operation
gpu-post copied to clipboard

gpu-setup-test does not use libgpu-setup.so from the same folder by default

Open sudachen opened this issue 4 years ago • 4 comments

Since gpu-setup-test is linked without rpath hints it does not use executable's folder to find shared libaries. To fix this it's enough to add -Wl,rpath,\$ORIGIN in link flags for linux/OSX targets.

sudachen avatar Jul 12 '21 13:07 sudachen

Please could you describe a test case for linux for this, because in CI I don't see such a problem.

AndrewAR2 avatar Nov 05 '21 10:11 AndrewAR2

hi @avive! could you please respond to @AndrewAR2's question above? is this issue still topical?

Primaveralina avatar Nov 22 '21 11:11 Primaveralina

The case is to try to launch the testapp from a release. If you don't add its path to LD_LIBRARY_PATH env var. e.g. via export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH then the app won't find the lib which is in the same directory. For more info see the instructions we currently give to users: https://product.spacemesh.io/#/join_devnet

avive avatar Nov 22 '21 11:11 avive

Please include the version and Linux distribution you are using so that I can reproduce the problem. This issue does not reproduce on CI, macOS, Debian 10, or Ubuntu 20.04.

AndrewAR2 avatar Nov 22 '21 11:11 AndrewAR2