计算化学公社

标题: CP2K安装问题:recompile with -fPIE [打印本页]

作者
Author:
17875787234    时间: 2022-12-24 14:17
标题: CP2K安装问题:recompile with -fPIE
各位大神们,我想请教下,我在做gromacs与cp2k的联动安装中,做make时总是遇到这个问题,假如我的-DBUILD_SHARED_LIBS=OFF时,会出现如下(recompile with -fPIE)的问题。如果把其调为ON时,又会出现recompile with -fPIC,请问有没有人遇到过这种情况,有没有什么解决方法,感谢各位。

/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(acc_stream.o): relocation R_X86_64_32 ainst `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(acc_mem.o): relocation R_X86_64_32 agast `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(acc_dev.o): relocation R_X86_64_32 agast `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(acc_event.o): relocation R_X86_64_32 ainst `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(acc_init.o): relocation R_X86_64_32 agnst `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(acc_error.o): relocation R_X86_64_32 ainst `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(dbcsr_dist_operations.o): relocation R86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(dbcsr_index_operations.o): relocation X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(dbcsr_block_access.o): relocation R_X864_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(dbcsr_block_operations.o): relocation X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(dbcsr_iterator_operations.o): relocati R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(dbcsr_work_operations.o): relocation R86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(dbcsr_acc_operations.o): relocation R_6_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(dbcsr_mm_dist_operations.o): relocatioR_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(dbcsr_mm_sched.o): relocation R_X86_642 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(dbcsr_mm_hostdrv.o): relocation R_X86__32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(dbcsr_mm_csr.o): relocation R_X86_64_3against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(libsmm_acc_benchmark.o): relocation R_6_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: /media/hxz/Mdel/gmx/cp2k_qm/cp2k-2022.2/lib/local_cuda/sdbg/exts/dbcsr/libdbcsr.a(dbcsr_mm_accdrv.o): relocation R_X86_632 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
make[2]: *** [src/programs/CMakeFiles/gmx.dir/build.make:100:bin/gmx_cp2k] 错误 1
make[1]: *** [CMakeFiles/Makefile2:6819:src/programs/CMakeFiles/gmx.dir/all] 错误 2
make: *** [Makefile:163:all] 错误 2








欢迎光临 计算化学公社 (http://bbs.keinsci.com/) Powered by Discuz! X3.3