24小时热门版块排行榜    

查看: 663  |  回复: 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 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 290求调剂 +8 材料专硕调剂; 2026-02-28 9/450 2026-03-01 12:46 by 闭眼看蓝天
[考研] 材料化工调剂 +7 今夏不夏 2026-03-01 7/350 2026-03-01 12:36 by houyaoxu
[考研] 化工299分求调剂 一志愿985落榜 +3 嘻嘻(*^ω^*) 2026-03-01 3/150 2026-03-01 12:35 by houyaoxu
[考研] 材料284求调剂,一志愿郑州大学英一数二 +7 想上岸的土拨鼠 2026-02-28 7/350 2026-03-01 11:44 by 月下best
[考研] 291分工科求调剂 +7 science饿饿 2026-03-01 8/400 2026-03-01 10:43 by sunny81
[考研] 0856求调剂285 +6 吕仔龙 2026-02-28 6/300 2026-03-01 10:03 by wang_dand
[硕博家园] 博士自荐 +6 科研狗111 2026-02-26 10/500 2026-03-01 10:02 by 科研狗111
[论文投稿] 求助coordination chemistry reviews 的写作模板 10+3 ljplijiapeng 2026-02-27 4/200 2026-03-01 09:07 by babero
[论文投稿] Optics letters投稿被拒求助 30+3 luckyry 2026-02-26 4/200 2026-03-01 09:06 by babero
[考研] 298求调剂 +5 axyz3 2026-02-28 5/250 2026-03-01 06:45 by 刘兵
[考研] 304求调剂 +3 52hz~~ 2026-02-28 5/250 2026-03-01 00:00 by 52hz~~
[考研] 化工专硕348,一志愿985求调剂 +4 弗格个 2026-02-28 6/300 2026-02-28 22:00 by wang_dand
[考研] 292求调剂 +3 yhk_819 2026-02-28 3/150 2026-02-28 21:57 by gaoxiaoniuma
[考博] 26申博 +4 想申博! 2026-02-26 4/200 2026-02-28 21:37 by limorning
[考研] 264求调剂 +3 巴拉巴拉根556 2026-02-28 3/150 2026-02-28 21:31 by gaoxiaoniuma
[考研] 085600材料工程一志愿中科大总分312求调剂 +8 吃宵夜1 2026-02-28 10/500 2026-02-28 20:27 by L135790
[考研] 0856材料求调剂 +10 hyf hyf hyf 2026-02-28 11/550 2026-02-28 18:50 by 无际的草原
[考研] 265分求调剂不调专业和学校有行学上就 +4 礼堂丁真258 2026-02-28 6/300 2026-02-28 16:18 by 求调剂zz
[考研] 0856调剂 +3 刘梦微 2026-02-28 3/150 2026-02-28 13:22 by houyaoxu
[硕博家园] 【博士招生】太原理工大学2026化工博士 +4 N1ce_try 2026-02-24 8/400 2026-02-26 08:40 by N1ce_try
信息提示
请填处理意见