starpu icon indicating copy to clipboard operation
starpu copied to clipboard

Linking fails with -lOpenGL not found

Open devreal opened this issue 1 year ago • 2 comments

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.

devreal avatar Jul 30 '24 01:07 devreal

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

sthibaul avatar Jul 30 '24 15:07 sthibaul

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

sthibaul avatar Jul 30 '24 15:07 sthibaul