Scalapack error in compilation of cp2k

32 views
Skip to first unread message

Siva Bharadwaj V

unread,
Mar 18, 2025, 5:01:27 AM3/18/25
to cp2k
Hi everyone, I am having an error while compiling the cp2k and the error shows this

usr/bin/ld: /home/batmen/cp2k/tools/toolchain/install/scalapack-2.2.1/lib/libscalapack.a(clarnv.f.o): relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
make[3]: *** [/home/batmen/cp2k/obj/local/psmp/all.dep:166: /home/batmen/cp2k/exe/local/dbt_tas_unittest.psmp] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/home/batmen/cp2k/Makefile:146: all] Error 2
make[1]: *** [/home/batmen/cp2k/Makefile:135: popt] Error 2
make: *** [Makefile:123: all] Error 2

This is the last line please tell how to solve this
Thanks in advance
Reply all
Reply to author
Forward
0 new messages