24小时热门版块排行榜    

查看: 593  |  回复: 4
当前主题已经存档。
【有奖交流】积极回复本帖子,参与交流,就有机会分得作者 nanoeer 的 35 个金币

nanoeer

木虫 (正式写手)

Good good study, day day up

[交流] 【求助】Sun上编译vasp

系统配置如下:
CPU : Sun Microsystems Sun-Fire E6900 16x 1200 MHz US-I 64 bits Processor
OS : Solaris 8
Fortran Compiler:Sun Studio 10
编译vasp.4.lib没问题,但编译vasp.4.6时有error。直接对makefile.sun进行编译,没有进行任何修改。系统显示error如下:
===================================
makefile.sun:184: warning: ignoring old commands for target `none'
makefile.sun:206: warning: overriding commands for target `fft3dlib_f77.o'
makefile.sun:191: warning: ignoring old commands for target `fft3dlib_f77.o'
f90 -g -free  -fast -dalign   -I../../archives/mpich/include/ -c xml.f
f90: Warning: -xarch=native has been explicitly specified, or implicitly specified by a macro option, -xarch=native on this architecture implies -xarch=v8plusb which generates code that does not run on pre UltraSPARC III processors

              WRITE(uixml, '(A,"",A,""',ADVANCE="Yes"  blank(1:inden),tag,str(1:i)
                                                                                                                                   ^
"xml.f", Line = 804, Column = 132: ERROR: Unexpected syntax: "EOS" was expected but found "(".

              WRITE(uixml, '(A,"",A,""',ADVANCE="Yes"  blank(1:inden),tag,str(1:i)
                                                                                                                                   ^
"xml.f", Line = 857, Column = 132: ERROR: Unexpected syntax: "EOS" was expected but found "(".
f90:: Too many arguments
hkpu11% f90: Warning: -xarch=native has been explicitly specified, or implicitly specified by a macro option, -xarch=native on this architecture implies -xarch=v8plusb which generates code that does not run on pre UltraSPARC III processors

              WRITE(uixml, '(A,"",A,""',ADVANCE="Yes"  blank(1:inden),tag,str(1:i)
                                                                                                                                   ^
"xml.f", Line = 804, Column = 132: ERROR: Unexpected syntax: "EOS" was expected but found "(".

              WRITE(uixml, '(A,"",A,""',ADVANCE="Yes"  blank(1:inden),tag,str(1:i)
                                                                                                                                   ^
"xml.f", Line = 857, Column = 132: ERROR: Unexpected syntax: "EOS" was expected but found "(".

f90comp: 1550 SOURCE LINES
f90comp: 2 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
make: *** [xml.o] Error 1
===================================

有经验的高手给点建议吧,该如何解决呢?多谢了!

[ Last edited by nanoeer on 2008-10-7 at 20:59 ]
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wuchenwf

荣誉版主 (职业作家)

★ ★ ★ ★ ★
nanoeer(金币+5,VIP+0):fft用的什么我也不清楚,makefile里好像没有链接
sun没用过,不过看前三行好像是fft库,你用的是什么fft库啊
2楼2008-10-11 15:46:09
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wuli8

荣誉版主 (知名作家)

…………

优秀版主优秀版主

★ ★ ★ ★ ★ ★ ★ ★ ★ ★
nanoeer(金币+5,VIP+0):fft用的什么我也不清楚,makefile里好像没有链接
nanoeer(金币+5,VIP+0):前面这条发错了,呵呵,兄弟再帮忙看看吧
修改makefile.sun数学库函数的路径,即可
…………
3楼2008-10-11 16:13:16
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

nanoeer

木虫 (正式写手)

Good good study, day day up

兄弟再帮我看看吧,多谢了!

引用回帖:
Originally posted by wuli8 at 2008-10-11 16:13:
修改makefile.sun数学库函数的路径,即可

我用的makefile如下:
.SUFFIXES: .inc .f .F
#-----------------------------------------------------------------------
# all CPP processed fortran files have the extension .f
SUFFIX=.f

#-----------------------------------------------------------------------
# MPI version using SUN MPI from the hpc package:
# before compiling a few things must be done manually:
# 1. `IU5=5' to `IU5=35' in main.F
# 1. `IU5=5' to `IU5=35' in main.F
#-----------------------------------------------------------------------
FC=mpf90
F77=mpf77
FCL=$(FC)
CPP     = ./preprocess <$*.F | /usr/ccs/lib/cpp -C -P -DMPI -Duse_collective -Dkind8 -DNGZhalf >$*.f
MPI     = -lmpi
LIB     = -L../vasp.4.lib  ../vasp.4.lib/linpack_double.o -ldmy -xlic_lib=sunperf $(MPI)
FFT3D   = fftmpi.o fftmpi_map.o fft3dlib.o
#-----------------------------------------------------------------------
..........
..........
..........
应该改下面的吗?
FC=/opt/SUNWhpc/HPC5.0/bin/mpf90
F77=/opt/SUNWhpc/HPC5.0/bin/mpf77(这两个路径不加编译时mpf77:can not find command)
.......
LIB  = -L/rhome5/vasp/vasp.4.lib/linpack_double.o -ldmy -xlic_lib=sunperf $(MPI)

但是我在/opt/SUNWspro/lib下找不到sunperf,不知道这个sunperf路径是什么?

[ Last edited by nanoeer on 2008-10-11 at 19:54 ]
4楼2008-10-11 19:52:15
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wuli8

荣誉版主 (知名作家)

…………

优秀版主优秀版主

makefile.sun:184: warning: ignoring old commands for target `none'
makefile.sun:206: warning: overriding commands for target `fft3dlib_f77.o'
makefile.sun:191: warning: ignoring old commands for target `fft3dlib_f77.o'
184,206,191行要修改,具体的路径要看你的编译器和数学库的安装位置。这个我帮不了你。你可以在百度中搜一下。
…………
5楼2008-10-11 22:47:18
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 nanoeer 的主题更新
普通表情 高级回复(可上传附件)
信息提示
请填处理意见