• 回答数

    1

  • 浏览数

    1913

  • 收藏数

    0

作者:姐不吃这招 发表于 2018-11-23 17:40:24
跳转到指定楼层
/usr/bin/ld: /lustre/pub/lib/libm.a(s_sin.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/lustre/pub/lib/libm.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libgmxpreprocess.la] Error 1
make[3]: Leaving directory `/lustre/user/chenm/softwares/gromacs-4.5.5/src/kernel'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/lustre/user/chenm/softwares/gromacs-4.5.5/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/lustre/user/chenm/softwares/gromacs-4.5.5/src'
make: *** [all-recursive] Error 1
请教大家一下不知道是哪里出错了才这样报错的,该如何调试?谢谢啊!



分享:
回复

使用道具

该用户从未签到

新手上路

Rank: 1

积分
46
极客币
62
主题
10
帖子
28
注册时间
2018-10-31
在线时间
2 小时
性别
保密
 楼主| 发表于 2018-11-23 17:40:52 | 显示全部楼层
大家好!问题解决了,因为我要跑的是并行,所以在./configure文件中应该加入--disable-shared,同时如果安装的超算不支持图形化的话,还要再加一个 --without-x
这样编译下来就不会报类似的错误了,尤其注意如果报错中出现recompile with -fPIC,那么就要考虑是否漏加了--disable-shared
回复

使用道具 举报

高级模式 评论
您需要登录后才可以回帖 登录 | 立即注册 微信登录