24小时热门版块排行榜    

查看: 901  |  回复: 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的回帖
相关版块跳转 我要订阅楼主 卡开发发 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 化学调剂0703 +7 啊我我的 2026-03-11 7/350 2026-03-15 23:03 by 凌千颂111
[考研] 调剂 +8 调剂的考研学生 2026-03-09 8/400 2026-03-15 22:14 by Winj1e
[考研] 080500,材料学硕302分求调剂学校 +4 初识可乐 2026-03-14 5/250 2026-03-14 21:08 by peike
[考研] 265求调剂 +4 威化饼07 2026-03-12 4/200 2026-03-14 17:23 by userper
[考研] 288求调剂 +14 王晓阳- 2026-03-09 19/950 2026-03-14 02:05 by JourneyLucky
[考研] 一志愿湖师大化学289求调剂 +6 XMCMM3.14159 2026-03-10 6/300 2026-03-14 00:28 by JourneyLucky
[考研] 321求调剂 +3 CUcat 2026-03-10 3/150 2026-03-14 00:25 by JourneyLucky
[考研] 一志愿西南交大,材料专硕317求调剂 +5 lx8568 2026-03-11 5/250 2026-03-13 21:43 by peike
[考研] 304求调剂 +7 7712b 2026-03-13 7/350 2026-03-13 21:42 by peike
[考研] 四川大学085601材料工程专硕 初试294求调剂 +4 祝我们好在冬天 2026-03-11 4/200 2026-03-13 21:39 by peike
[考研] 311求调剂 +3 冬十三 2026-03-13 3/150 2026-03-13 20:41 by JourneyLucky
[考研] 310求调剂 +3 【上上签】 2026-03-11 3/150 2026-03-13 16:16 by JourneyLucky
[考研] 304求调剂(085602一志愿985) +12 化工人999 2026-03-09 12/600 2026-03-13 12:02 by JourneyLucky
[考研] 0856化工原理 +6 z2839474511 2026-03-10 6/300 2026-03-13 10:41 by houyaoxu
[考研] 296求调剂 +3 大口吃饭 身体健 2026-03-13 3/150 2026-03-13 10:31 by 学员8dgXkO
[考研] 321求调剂(食品/专硕) +3 xc321 2026-03-12 6/300 2026-03-13 08:45 by xc321
[考研] 085600 材料与化工 295 求调剂 +10 dream…… 2026-03-10 12/600 2026-03-12 13:46 by dream……
[硕博家园] 木虫好像不热闹了,是不是? +4 偏振片 2026-03-10 4/200 2026-03-10 09:51 by longwave
[考研] 数二英二309分请求调剂 +3 dtdxzxx 2026-03-09 4/200 2026-03-09 19:56 by yuningshan
[考研] 一志愿山东大学,总分327,英语二79,有论文,有竞赛,已过四六级 +3 木木目目1 2026-03-09 3/150 2026-03-09 19:52 by yuningshan
信息提示
请填处理意见