ethereum-mining / ethminer

Ethereum miner with OpenCL, CUDA and stratum support
GNU General Public License v3.0
5.97k stars 2.28k forks source link

Fails to run benchmarks on 5500xt in linux #2212

Open wbehrens-on-gh opened 3 years ago

wbehrens-on-gh commented 3 years ago

Describe the bug when running the ethminer benchmark ethminer -G -M 1 I get the following error fatal error: cannot open file '/usr/share/clc/gfx1012-amdgcn-mesa-mesa3d.bc': No such file or directory I'm using the build in arch's aur.

To Reproduce 1 Install ethminer from aur 2 install ocl requirements for mesa and amdgpu 3 run ocl benchmark

Expected behavior A benchmark to run

Full Run Log

ethminer 0.19.0
Build: linux/release/gnu

 i 15:33:45 ethminer Selected pool localhost:0
 i 15:33:45 ethminer Established connection to localhost:0
 i 15:33:45 ethminer Spinning up miners...
cl 15:33:45 cl-0     no exit option enabled for non AMD opencl device
cl 15:33:45 cl-0     OpenCL OpenCL 1.1 Mesa 20.3.4 not supported, but platform Clover might work nevertheless. USE AT OWN RISK!
cl 15:33:45 cl-0     Using Device :  Radeon RX 5500 XT (NAVI14, DRM 3.40.0, 5.11.2-zen1-1-zen, LLVM 11.1.0) OpenCL 1.1 Mesa 20.3.4 Memory : 8.00 GB (8589934592 B)
 i 15:33:45 sim      Epoch : 0 Difficulty : 4.29 Gh
 i 15:33:45 sim      Job: e74bdfb7… block 1 localhost:0
cl 15:33:46 cl-0     Generating split DAG + Light (total): 1024.00 MB
cl 15:33:46 cl-0     OpenCL kernel
 X 15:33:46 cl-0     OpenCL kernel build log:
fatal error: cannot open file '/usr/share/clc/gfx1012-amdgcn-mesa-mesa3d.bc': No such file or directory

 X 15:33:46 cl-0     OpenCL kernel build error (-11):
clBuildProgram
SIGSEGV encountered ...
stack trace:
backtrace() returned 7 addresses
ethminer(+0xa3a16) [0x55b2e8646a16]
/usr/lib/libc.so.6(+0x3cf80) [0x7efee7112f80]
ethminer(+0x35737f) [0x55b2e88fa37f]
ethminer(+0x149fe6) [0x55b2e86ecfe6]
ethminer(+0x4054c4) [0x55b2e89a84c4]
/usr/lib/libpthread.so.0(+0x9299) [0x7efee740b299]
/usr/lib/libc.so.6(clone+0x43) [0x7efee71d5053] 

Environment (please complete the following information):

LongerHV commented 3 years ago

I see the same on Arch Linux with Radeon Vega64. There is a workaround though: #2155