starpu-runtime / starpu

This is a mirror of https://gitlab.inria.fr/starpu/starpu where our development happens, but contributions are welcome here too!
https://starpu.gitlabpages.inria.fr/
GNU Lesser General Public License v2.1
60 stars 12 forks source link

Linking fails with -lOpenGL not found #54

Open devreal opened 1 month ago

devreal commented 1 month ago

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 commented 1 month ago

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

sthibaul commented 1 month ago

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