24小时热门版块排行榜    

Znn3bq.jpeg
查看: 674  |  回复: 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 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 349学科化学045106求调剂,化学类都可以 +5 保好懂懂 2026-04-08 5/250 2026-04-08 23:32 by cheerful9622
[考博] 材料方向考博,求推荐 +3 言语aaa 2026-04-05 4/200 2026-04-08 22:22 by nxgogo
[考研] 一志愿深大085601材料工程专业(专硕)300分可以调剂去哪 +16 10160315 2026-04-02 16/800 2026-04-08 19:45 by syjjj0321
[考研] 一志愿电子科技大学085600材料与化工 329分求调剂 +11 Naiko 2026-04-04 11/550 2026-04-08 14:00 by wutongshun
[考研] 283分求调剂 +14 试试看呗 2026-04-04 14/700 2026-04-08 07:03 by lijunpoly
[考研] 081700学硕,323分,一志愿中国海洋大学求调剂学校 +19 披星河 2026-04-04 19/950 2026-04-07 15:00 by 上岸快快
[考研] 319分085702安全工程求调剂 +6 rious 2026-04-05 6/300 2026-04-07 09:42 by jp9609
[考研] 求助 +3 卡卡东88 2026-04-06 4/200 2026-04-06 15:28 by going home
[考研] 第一志愿东南大学物理313,有科研竞赛获奖经历,希望物理复试调剂 +3 马内橙 2026-04-05 3/150 2026-04-06 10:32 by 蓝云思雨
[考研] 262求调剂 +7 天下第一文 2026-04-04 8/400 2026-04-05 21:31 by 激流勇渡
[考研] +5 化工专硕323分 2026-04-04 5/250 2026-04-05 08:02 by 544594351
[考研] 一志愿郑大0705求调剂 +3 橘十一 2026-04-02 4/200 2026-04-05 00:05 by chongya
[考研] 求调剂 +4 晟功? 2026-04-03 4/200 2026-04-04 21:58 by hemengdong
[考研] 301求调剂 +18 骆驼男人 2026-04-02 18/900 2026-04-04 20:33 by 蓝云思雨
[考研] 294求调剂 +6 Grey_Ey 2026-04-03 6/300 2026-04-03 20:46 by 欣喜777
[考研] 11408,284分,二战真诚求调剂 +4 12.27 2026-04-02 4/200 2026-04-03 14:14 by dxiaoxin
[硕博家园] 求老师收留 +9 lllq123 2026-04-03 9/450 2026-04-03 13:48 by 呼吸都是减肥
[考研] 生物学硕341求调剂 +4 你笑起来像云朵 2026-04-03 4/200 2026-04-03 10:32 by macy2011
[考研] 303求调剂 +3 一色清羽 2026-04-02 4/200 2026-04-03 10:22 by 蓝云思雨
[考研] 279求调剂 +5 傅文秋 2026-04-02 5/250 2026-04-02 18:10 by 笔落锦州
信息提示
请填处理意见