Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HuaRongSAO opened this issue Jun 1, 2017 · 5 comments
Open

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

HuaRongSAO opened this issue Jun 1, 2017 · 5 comments

Comments

@HuaRongSAO
Copy link

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
Copy link

Looks like you dont have opencl installed on your system

@luluwebmaster
Copy link

luluwebmaster commented Jun 11, 2017

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

@BenBao93
Copy link

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
Copy link

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

@UjjavalMoradiya
Copy link

UjjavalMoradiya commented Jan 6, 2018

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants