NebulousLabs / Sia-GPU-Miner

A GPU Miner for Sia
MIT License
151 stars 79 forks source link

/usr/bin/ld: no find -lOpenCL #61

Open HuaRongSAO opened 7 years ago

HuaRongSAO commented 7 years ago

cc -c -std=c11 -Wall -pedantic -O2 -o network.o network.c cc -o sia-gpu-miner sia-gpu-miner.o network.o -lOpenCL -lcurl /usr/bin/ld: no find -lOpenCL collect2: error: ld returned 1 exit status Makefile:23: recipe for target 'sia-gpu-miner' failed make: *** [sia-gpu-miner] Error 1

leberknecht commented 7 years ago

Looks like you dont have opencl installed on your system

luluwebmaster commented 7 years ago

Hello, I have the same problem, but my drivers are already updated :-/

BenBao93 commented 7 years ago

I am facing the exact same issue on a newly set up Ubuntu 16.04 system, all libs are installed as described in README.md. When running make I get this: cc -c -std=c11 -Wall -pedantic -O2 -o sia-gpu-miner.o sia-gpu-miner.c sia-gpu-miner.c: In function ‘main’: sia-gpu-miner.c:484:2: warning: ‘clCreateCommandQueue’ is deprecated [-Wdeprecated-declarations] command_queue = clCreateCommandQueue(context, device_id, 0, &ret); ^ In file included from sia-gpu-miner.c:18:0: /usr/include/CL/cl.h:1359:1: note: declared here clCreateCommandQueue(cl_context /* context */, ^ cc -c -std=c11 -Wall -pedantic -O2 -o network.o network.c cc -o sia-gpu-miner sia-gpu-miner.o network.o -lOpenCL -lcurl /usr/bin/ld: cannot find -lOpenCL collect2: error: ld returned 1 exit status Makefile:23: recipe for target 'sia-gpu-miner' failed make: *** [sia-gpu-miner] Error 1

BenBao93 commented 7 years ago

Managed to fix this with a downgrade to Ubuntu 14.04 where it works as it should.

UjjavalMoradiya commented 6 years ago

I had the same error on ubuntu 16.04, and it resolved by following steps given in the following link : [https://askubuntu.com/questions/850281/opencl-on-ubuntu-16-04-intel-sandy-bridge-cpu](OpenCL On ubuntu 16.04, Intel Sandy Bridge CPU)