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

Linking fails with -lOpenGL not found #54

Open
devreal opened this issue Jul 30, 2024 · 2 comments
Open

Linking fails with -lOpenGL not found #54

devreal opened this issue Jul 30, 2024 · 2 comments

Comments

@devreal
Copy link

devreal commented Jul 30, 2024

Steps to reproduce

On Frontier, load rocm/6.0.0 and try to build StarPU 1.4.7.

Obtained behavior

Linking fails with:

  CCLD     implicit_stencil
ld.lld: error: unable to find library -lOpenCL
clang: error: linker command failed with exit code 1 (use -v to see invocation)

If I disable builduing of examples the build succeeds. Tried passing --disable-socl but that had no effect.

Configuration

../configure --disable-openmp --disable-build-tests --enable-blas-lib=none --disable-fortran CC=cc CXX=CC FC=ftn

Configuration result

config.log

Distribution

StarPU 1.4.7 release.

@sthibaul
Copy link
Collaborator

You'd rather want --disable-opencl to avoid an issue with OpenCL

@sthibaul
Copy link
Collaborator

What is odd here is that in config.log it does link fine:

configure:35797: checking for main in -lOpenCL
configure:35817: cc -o conftest -g -O2  -D_GNU_SOURCE   conftest.c -lOpenCL  -lrt  -lpthread >&5
configure:35817: $? = 0
configure:35827: result: yes

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

2 participants