Solver 0.1: unexpected banner "OpenCL build failed (-11). Build log follows:"

Solution: Use the correct Github repo: https://github.com/mbevand/silentarmy

Hey guys, running 16.04 Ubuntu, installed AMD SDK and driver as advised in silentarmy installation instructions, successfully run the make command generating the silentarmy and sa-solver binaries, but then any time I try to run silentarmy (even just the default command without providing pool options) I get the following:

xxxx@xxxx:~/sa-nr$ ./silentarmy
Connecting to us1-zcash.flypool.org:3333
Solver 0.0: unexpected banner "OpenCL build failed (-11). Build log follows:"
Solver 0.1: unexpected banner "OpenCL build failed (-11). Build log follows:"
Stratum server sent us the first job
Mining on 1 device

And then it just hangs. I let it run for a couple of minutes to see if the CPU would do anything, but never seem to get any solves. This rig was running okay on Windows, just unstable, so I wanted to switch it over to linux. It's currently 2x RX 470's. Let me know if anyone else has seen this or has any ideas. I've already re-installed from scratch once :frowning:

Edit:

It does pick up my devices:

xxx@xxx:~/sa-nr$ silentarmy --list
Devices on platform "AMD Accelerated Parallel Processing":
ID 0: Ellesmere
ID 1: Ellesmere
ID 2: AMD FX(tm)-6300 Six-Core Processor

I ran into something like this, and it came down to not having the correct AMD OpenCL drivers. I noticed that running sa-solver gave more informative output than just running silentarmy. Can you run ./sa-solver and post the build log lines?

Also, post the output of ./sa-solver --list or ./silentarmy --list so we can make sure it actually recognizes your video card. If the video card doesn't show up as device 0, then you'll need to pass the correct device into the command with the --use= option.

Thanks for the quick reply! Here's that output:

xxx@xxx:~/sa-nr$ ./sa-solver
Solving default all-zero 140-byte header
Building program
OpenCL build failed (-11). Build log follows:
input.cl:537:5: error: use of undeclared identifier 'p'
p += xi_offset;
^
input.cl:538:31: error: use of undeclared identifier 'p'
for (i = 0; i < cnt; i++, p += 32)
^
input.cl:539:45: error: use of undeclared identifier 'p'
first_words[i] = *(__global uchar *)p;
^
3 errors generated.

error: Clang front-end compilation failed!
Frontend phase failed compilation.
Error: Compiling CL to IR

Yep, those are good. Should have had those in OP:

xxx@xxx:~/sa-nr$ silentarmy --list
Devices on platform "AMD Accelerated Parallel Processing":
ID 0: Ellesmere
ID 1: Ellesmere
ID 2: AMD FX(tm)-6300 Six-Core Processor

Well, this is clearly a problem. The Clang compiler is reporting an error. Can you make sure you've grabbed the correct branch of the code?

1 Like

It's because you are running an unofficial, modified, broken fork of silentarmy (I noticed from your directory name: "sa-nr").

Download the official version at: https://github.com/mbevand/silentarmy

1 Like

Wow, that appears to be working. Idiot I am sometimes....

That works without commands, gunna try running with pool options now.

Yup, that did it! Thanks man. BTW, any way to get this to mine at NiceHash? Just tried real quick and it gave me a connection error.

Thanks!

Nicehash isn't currently supported. (Actually it works half the time because 1 of their 2 servers fix 5 bytes of the nonce and the other 17 bytes.)

Hmm, if it's predictable couldn't that be factored in? I just like the idea of NiceHash because it takes away the need to hold the ZEC at all, and renters pay a premium :stuck_out_tongue:

anyone can help me.. i got the same error.. already do as tutorial on github for install driver but can't get 2 GPU work..

Now ./silentarmy --list not show 2 cards.
quangtuyen@quangtuyen-desktop:~/silentarmy$ lspci -v | grep VGA
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480] (rev c7) (prog-if 00 [VGA controller])
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480] (rev c7) (prog-if 00 [VGA controller])
quangtuyen@quangtuyen-desktop:~/silentarmy$ ./silentarmy --list
Devices on platform "AMD Accelerated Parallel Processing":
ID 0: Intel(R) Pentium(R) CPU G3440 @ 3.30GHz