24小时热门版块排行榜    

查看: 657  |  回复: 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的回帖

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的回帖
查看全部 5 个回答

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的回帖

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的回帖
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 311求调剂 +4 南迦720 2026-02-28 4/200 2026-02-28 16:31 by etapple
[考研] 0856材料求调剂 +8 hyf hyf hyf 2026-02-28 9/450 2026-02-28 16:27 by etapple
[考研] 285求调剂 +3 满头大汗的学生 2026-02-28 3/150 2026-02-28 16:22 by 无际的草原
[考研] 265分求调剂不调专业和学校有行学上就 +4 礼堂丁真258 2026-02-28 6/300 2026-02-28 16:18 by 求调剂zz
[考研] 312求调剂 +4 吃宵夜1 2026-02-28 5/250 2026-02-28 16:11 by gjm133
[考博] 26申博 +3 想申博! 2026-02-26 3/150 2026-02-28 16:07 by nxgogo
[考研] 材料类求调剂 +3 wana_kiko 2026-02-28 3/150 2026-02-28 15:03 by lature00
[考研] 290求调剂 +4 材料专硕调剂; 2026-02-28 5/250 2026-02-28 13:32 by houyaoxu
[考研] 0856调剂 +3 刘梦微 2026-02-28 3/150 2026-02-28 13:22 by houyaoxu
[考研] 寻找调剂 +3 LYidhsjabdj 2026-02-28 3/150 2026-02-28 12:59 by miniwendy
[考研] 304求调剂 +5 曼殊2266 2026-02-28 6/300 2026-02-28 12:44 by 迷糊CCPs
[硕博家园] 博士自荐 +6 科研狗111 2026-02-26 9/450 2026-02-28 12:32 by seaskyy
[考研] 298求调剂 +4 axyz3 2026-02-28 4/200 2026-02-28 11:21 by wang_dand
[考研] 280求调剂 +6 Qq206./ 2026-02-21 6/300 2026-02-28 11:20 by 我!要一战成硕
[考博] 博士推荐 +3 花儿笑? 2026-02-21 4/200 2026-02-27 18:30 by 黑!在干嘛
[高分子] 求环氧树脂研发1名 +3 孙xc 2026-02-25 10/500 2026-02-27 13:22 by ichall
[基金申请] 什么是人一生最重要的? +10 瞬息宇宙 2026-02-21 10/500 2026-02-27 08:46 by tfang
[基金申请] 面上可以超过30页吧? +12 阿拉贡aragon 2026-02-22 13/650 2026-02-26 22:09 by Hahaxia
[教师之家] 版面费该交吗 +14 苹果在哪里 2026-02-22 17/850 2026-02-26 11:55 by AGI智创机器人
[硕博家园] 【博士招生】太原理工大学2026化工博士 +4 N1ce_try 2026-02-24 8/400 2026-02-26 08:40 by N1ce_try
信息提示
请填处理意见