24小时热门版块排行榜    

查看: 659  |  回复: 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 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 298求调剂 +6 人间唯你是清欢 2026-02-28 7/350 2026-02-28 18:48 by 无际的草原
[考研] 材料学调剂 +4 提神豆沙包 2026-02-28 4/200 2026-02-28 18:26 by houyaoxu
[基金申请] 面上模板改不了页边距吧? +3 ieewxg 2026-02-25 3/150 2026-02-28 18:25 by addressing
[考研] 高分子化学与物理调剂 +4 好好好1233 2026-02-28 5/250 2026-02-28 18:20 by liqiongjy
[考研] 276求调剂 +3 路lyh123 2026-02-28 3/150 2026-02-28 18:02 by houyaoxu
[考研] 求调剂 +3 repeatt?t 2026-02-28 3/150 2026-02-28 18:00 by houyaoxu
[考研] 化工专硕348,一志愿985求调剂 +3 弗格个 2026-02-28 5/250 2026-02-28 17:04 by sandychj
[高分子] 求环氧树脂研发1名 +3 孙xc 2026-02-25 11/550 2026-02-28 16:57 by ichall
[考博] 博士推荐 +4 花儿笑? 2026-02-21 5/250 2026-02-28 16:55 by mumin1990
[考博] 26申博 +3 想申博! 2026-02-26 3/150 2026-02-28 16:07 by nxgogo
[考研] 295求调剂 +4 19171856320 2026-02-28 4/200 2026-02-28 13:39 by ms629
[考研] 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
[硕博家园] 博士自荐 +6 科研狗111 2026-02-26 9/450 2026-02-28 12:32 by seaskyy
[考研] 272求调剂 +3 田智友 2026-02-28 3/150 2026-02-28 12:31 by 王加浩to
[考研] 298求调剂 +4 axyz3 2026-02-28 4/200 2026-02-28 11:21 by wang_dand
[基金申请] 什么是人一生最重要的? +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
[硕博家园] 【博士招生】太原理工大学2026化工博士 +4 N1ce_try 2026-02-24 8/400 2026-02-26 08:40 by N1ce_try
信息提示
请填处理意见