Hi everyone,
I encounter the following error during the installation of cp2K in ubuntu 20.04.
/usr/bin/ld: /home/albert/cp2k/cp2k/tools/toolchain/install/libsmm/lib/libsmm_dnn.a(smm_dnn.o):
relocation R_X86_64_32S against `.rodata' can not be used when making a
PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
make[4]: *** [/home/albert/cp2k/cp2k/obj/local/sopt/all.dep:123: /home/albert/cp2k/cp2k/exe/local/libcp2k_unittest.sopt] Error 1
make[3]: *** [Makefile:141: all] Error 2
If I recompile as suggested with option -fPIE, I obtain the followin error:
ERROR: (install_cp2k_toolchain.sh) Unknown flag: -fPIE
I am looking forward to a any suggestion than can help me solve this issue.
Regards
Albert