24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 912  |  回复: 2

卡开发发

专家顾问 (著名写手)

Ab Initio Amateur

[交流] 各位大侠,帮忙看看小弟的nwchem为啥编译不出 已有1人参与

各位大侠帮忙看看:
我用的编译器是ifort,icc 系统是 rhel5.4-x86-64
bashrc下挂的是ifort icc impi mkl。
采用的nwchem-6.0,额外安装了gotoblas-1.13&lapack-3.31,均没在bashrc下挂,两者安装生成的*.a,*.so均拷贝到/usr/lib64
之前编译siesta和abinit都过了,但是编译nwchem就趴了。
export TCGRSH=/usr/bin/ssh
export LARGE_FILES=TRUE
export LIB_DEFINES="-DDFLT_TOT_MEM=524111744"
export NWCHEM_TOP=/home/Admin/nwchem-6.0
export NWCHEM_TARGET=LINUX64
export NWCHEM_TARGET_CPU=x86_64
export NWCHEM_MODULES=all
export USE_MPI=y
#export USE_MPIF=n
export HAS_BLAS=yes
export BLASOPT="-L/usr/lib64 -llapack -lgoto2"

# Intel MPI
export MPI_LOC=/software/intel/impi/3.2.1.009
export MPI_LIB=$MPI_LOC/lib64
export MPI_INCLUDE=$MPI_LOC/include64
export LIBMPI="-lmpigf -lmpigi -lmpi_ilp64 -lmpi"

make realclean
make nwchem_config
make FC=ifort CC=icc >& make.log
以上是仿照我们老师的脚本写的configure.sh
之后出现了如下错误:
makelog的最后两行出现了:

/home/Admin/nwchem-6.0/bin/LINUX64_x86_64/nwchem: hidden symbol `__svml_log2' in /software/intel/Compiler/11.1/038/lib/intel64/libsvml.a(svml_stub_dln2.o) is referenced by DSO
ld: final link failed: Nonrepresentable section on output
make: *** [all] 错误 1

额外检查前面的内容出现warning:
warning: -jN forced in submake: disabling jobserver mode.
make  CC=icc FC=ifort clean
make[2]: warning: -jN forced in submake: disabling jobserver mode.
for dir in ma global tcgmsg-mpi LinAlg/lapack+blas tcgmsg armci/src pario; do make  CC=icc FC=ifort  -C $dir clean || exit 1 ; done
make[3]: warning: -jN forced in submake: disabling jobserver mode.
/bin/rm -f *.o *.p *core *stamp *trace *.x *events* *.x *.o
/bin/rm -rf ./obj *.obj *.exe
if [ -f ../lib/LINUX64/libma.a ]
这样一些类似的错误。我把make改成了txt.各位大侠麻烦看看这是啥毛病。
小弟在此谢过。
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

不一定挂在论坛,计算问题问题欢迎留言。
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

卡开发发

专家顾问 (著名写手)

Ab Initio Amateur

make.log看看发上去没
不一定挂在论坛,计算问题问题欢迎留言。
2楼2011-10-15 16:58:07
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wuy069

铁杆木虫 (正式写手)


小木虫(金币+0.5):给个红包,谢谢回帖
引用回帖:
1楼: Originally posted by 卡开发发 at 2011-10-15 16:56:15:
各位大侠帮忙看看:
我用的编译器是ifort,icc 系统是 rhel5.4-x86-64
bashrc下挂的是ifort icc impi mkl。
采用的nwchem-6.0,额外安装了gotoblas-1.13&lapack-3.31,均没在bashrc下挂,两者安装生成的*.a ...

你好像没有刷新mkl吧,所以加载库时出问题了;
下面是我根据coolrainbow专家在网上写的博客以及网上的一些资料改编的脚本(用ifort,icc,impi,mkl编译):
#!/bin/csh

# Author: wuy

# This script is used for compiling NWChem

# Basic configuration
# WARNING£oModify the memsize for your own machine£¡£¡£¡

setenv LARGE_FILES TRUE
setenv LIB_DEFINES -DDFLT_TOT_MEM=260609088

# Remote communication
# If you do not use MPICH, comment them, else modify the MPI_LOC for your machine

setenv USE_MPI   y
setenv USE_MPIF y
setenv MPI_LOC   /opt/intel/impi/4.0.0.027
setenv MPI_LIB   $MPI_LOC/lib64
setenv MPI_INCLUDE   $MPI_LOC/include64
setenv LIBMPI    "-lmpigf -lmpigi -lmpi_ilp64 -lmpi"

# Code tree

setenv NWCHEM_TOP /share/apps/nwchem/intel/nwchem-6.0

# Platform

setenv NWCHEM_TARGET LINUX64

# Python configuration
# If you do not use PYTHON, comment them.

#setenv PYTHONHOME    /usr
#setenv PYTHONVERSION 2.4

# Blas configuration
# This is related to your own machine. Here I have used MKL Blas. If you do not have any own Blas, comment all

setenv MKLLIB   /opt/intel/mkl/10.2.5.035/lib/em64t
setenv MKLINC   /opt/intel/mkl/10.2.5.035/include
setenv BLASOPT   "-L${MKLLIB} -lguide -lmkl_lapack -lmkl_core -lmkl_sequential -lsvml"

# What will be compiled

setenv NWCHEM_MODULES "all"

# Starting...
# Set your own complier

setenv FC /opt/intel/Compiler/11.1/072/bin/intel64/ifort
setenv CC /opt/intel/Compiler/11.1/072/bin/intel64/icc
setenv FOPTIMIZE "-O3 -xSSE2,SSE3,SSSE3,SSE4.1,SSE4.2 -no-prec-div -funroll-loops -multiple-processes=8 -unroll-aggressive"
setenv COPTIMIZE "-O3 -xSSE2,SSE3,SSSE3,SSE4.1,SSE4.2 -no-prec-div -funroll-loops"

make FC=ifort CC=icc

把上面的脚本写在compile_nwchem.sh里(根据你自己系统的环境自己再改改),把compile_nwchem.sh放进要编译程序目录的src文件夹里
chmod 750 compile_nwchem.sh
./compile_nwchem.sh &> make.log &

希望对你有用!
3楼2011-10-18 08:54:33
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 卡开发发 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 316求调剂 +5 yyx想调剂 2026-04-05 5/250 2026-04-05 22:22 by 咔咔咔咔9
[考研] 302分 085601求调剂推荐 +11 zyx上岸! 2026-04-05 11/550 2026-04-05 22:13 by dongzh2009
[考研] 338求调剂 +3 我想上岸ii 2026-04-05 3/150 2026-04-05 19:59 by nepu_uu
[考研] 326求调剂 +3 顾若浮生 2026-04-05 3/150 2026-04-05 18:32 by 蓝云思雨
[考研] 工科08专硕机械275求调剂 +3 AaAa7420 2026-04-02 3/150 2026-04-05 13:26 by jp9609
[考研] 323求调剂(计算机视觉和大模型项目经历) +3 chaoxiicy 2026-03-31 3/150 2026-04-05 10:33 by zhq0425
[考研] 男生,一志愿沪9生物学071000,初试308求调剂 +3 刘墨墨 2026-04-04 3/150 2026-04-05 08:26 by barlinike
[考研] 材料工程085601数二英一335求调剂 +6 双马尾痞老板2 2026-03-31 6/300 2026-04-04 22:29 by hemengdong
[考研] 材料专硕306英一数二 +8 z1z2z3879 2026-03-31 8/400 2026-04-04 22:08 by hemengdong
[考研] 怎么删帖子啊 +3 缝曦1000 2026-04-04 3/150 2026-04-04 14:20 by 土木硕士招生
[考研] 266求调剂 +3 08电气工程 2026-04-03 3/150 2026-04-03 14:05 by 1753564080
[考研] 一志愿北京交通大学材料工程总分358 +4 cs0106 2026-04-03 4/200 2026-04-03 13:41 by 百灵童888
[考研] 313求调剂 +3 ~微微凉~ 2026-04-03 3/150 2026-04-03 11:25 by 啵啵啵0119
[考研] 319求调剂 +18 太容易1018 2026-04-01 18/900 2026-04-03 11:18 by linyelide
[考研] 一志愿中国科学院大学265求调剂 +9 恬淡ye 2026-03-31 10/500 2026-04-03 11:10 by txp1986
[考研] 能源动力 调剂 +3 不破不立0 2026-04-02 3/150 2026-04-02 12:46 by ffffjjjj
[考研] 085900土木水利336分求调剂 +4 Zhangjiangj 2026-03-31 6/300 2026-04-02 11:40 by 1753564080
[考研] 279求调剂 +7 莫xiao 2026-04-01 7/350 2026-04-01 22:05 by 客尔美德
[考研] 335求调剂 +3 321* 2026-03-31 4/200 2026-04-01 00:00 by 321*
[考研] 求调剂 生物学 377分 +6 zzll03 2026-03-31 6/300 2026-03-31 17:33 by 唐沐儿
信息提示
请填处理意见