计算化学公社

 找回密码 Forget password
 注册 Register
Views: 1264|回复 Reply: 0
打印 Print 上一主题 Last thread 下一主题 Next thread

[CP2K] CP2K安装问题:recompile with -fPIE

[复制链接 Copy URL]

1

帖子

0

威望

13

eV
积分
14

Level 1 能力者

跳转到指定楼层 Go to specific reply
楼主
各位大神们,我想请教下,我在做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



本版积分规则 Credits rule

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2026-2-21 07:26 , Processed in 0.194520 second(s), 26 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list