24小时热门版块排行榜    

投票标题: fhi98PP安装问题 (单选)

  • fhi98PP安装求助
    1 (100%)
查看: 1459  |  回复: 4
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

jfgood

木虫 (小有名气)

[求助] fhi98PP安装问题 已有1人参与

很想知道 fhi98PP的makefile文集怎么设定编译器呢,还有里边的FFLAGS ,有相关的知识讲解么,找了好久了,每次设定完,以为没错了,一编译,基本都是一下提示



make
gcc  -c fhipp.f
fhipp.f:289.1:

d     write(ie,*)'%fhipp - state count: norb=',norb,                    
1
错误: (1)处语句标号中出现非数字字符
fhipp.f:289.72:

d     write(ie,*)'%fhipp - state count: norb=',norb,                    
                                                                        1
错误: (1)处需要 WRITE 语句
fhipp.f:290.1:

d    1  ' of',(nc+nv)*nspinmx                                          
1
错误: (1)处语句标号中出现非数字字符
fhipp.f:290.6:

d    1  ' of',(nc+nv)*nspinmx                                          
      1
错误: (1)处的名字中有非法字符
fhipp.f:291.1:

d     do i=1,norb                                                      
1
错误: (1)处语句标号中出现非数字字符
fhipp.f:292.1:

d       write(ie,*) n(i),l(i),f(i)                                      
1
错误: (1)处语句标号中出现非数字字符
fhipp.f:293.1:

d     enddo                                                            
1
错误: (1)处语句标号中出现非数字字符
fhipp.f:531.1:

d         write(ie,*)'%fhipp - core nstart=',nstart,' norbnow=',norbnow
1
错误: (1)处语句标号中出现非数字字符
fhipp.f:532.1:

d         tc = fmom(0,mmax,al,1.d0,r,dcs(1,ispin))                     
1
错误: (1)处语句标号中出现非数字字符
fhipp.f:533.1:

d         write(ie,*)'%fhipp - dcs electrons=',tc                       
1
错误: (1)处语句标号中出现非数字字符
fhipp.f:534.1:

d         tc = fmom(0,mmax,al,1.d0,r,dc)                                
1
错误: (1)处语句标号中出现非数字字符
fhipp.f:535.1:

d         write(ie,*)'%fhipp - dc electrons=',tc                        
1
错误: (1)处语句标号中出现非数字字符
fhipp.f:536.1:

d         tc = fmom(0,mmax,al,1.d0,r,ds(1,ispin))                       
1
错误: (1)处语句标号中出现非数字字符
fhipp.f:537.1:

d         write(ie,*)'%fhipp - ds electrons=',tc                        
1
错误: (1)处语句标号中出现非数字字符
fhipp.f:538.1:

d         tc = fmom(0,mmax,al,1.d0,r,rho)                              
1
错误: (1)处语句标号中出现非数字字符
fhipp.f:539.1:

d         write(ie,*)'%fhipp - rho electrons=',tc                       
1
错误: (1)处语句标号中出现非数字字符
fhipp.f:952.1:

d       write(ie,*) '%fhipp - option',                                 
1
错误: (1)处语句标号中出现非数字字符
fhipp.f:952.72:

d       write(ie,*) '%fhipp - option',                                 
                                                                        1
错误: (1)处需要 WRITE 语句
fhipp.f:953.1:

d    &    l1-1,np(l1),fp(l1),rc(l1),ep(l1),i_pp_type(l1)               
1
错误: (1)处语句标号中出现非数字字符
fhipp.f:953.6:

d    &    l1-1,np(l1),fp(l1),rc(l1),ep(l1),i_pp_type(l1)               
      1
错误: (1)处的名字中有非法字符
make: *** [fhipp.o] 错误 1
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

jfgood

木虫 (小有名气)

jf@jf:~/fhi98PP/src$ make
ifort  -static -o fhipp.x fhipp.o ncpp.o hamann.o tromarLAPACK.o dnlcc7LAPACK.o defrtm.o outwfct.o labelmap.o ggarad.o gga91_sr.o bpgcxc.o ldaxc.o corlyp.o pbe.o logmesh.o atomini.o sratom_n.o vestat.o vexcor.o dftseq.o atoaux.o darraux.o anderson.o moment.o spinorbit.o relxc.o pberev.o stat_orb.o fxc_mgga_pk.o vklix.o invermat.o arhf.o acgc.o gaunt.o ecp.o cepvwn.o vexcos.o ../lib/libFREE.a
这算成功了么?
4楼2014-04-20 12:51:44
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 5 个回答

mywai520

铁杆木虫 (著名写手)


【答案】应助回帖

★ ★ ★ ★
感谢参与,应助指数 +1
jfgood: 金币+4, ★★★很有帮助 2014-04-20 12:14:25
我很纳闷,你编译的文件明明是fortran的*.f 文件,你却用C编译器去编译,这能不出错。
既然装了gcc,那应该有gfortran,把makefile中的gcc改为gfortran,若是有intel编译器,可以改为ifort。
2楼2014-04-20 11:46:52
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

jfgood

木虫 (小有名气)

新的进展:makefile文件
# $Header:$
#mf 28-06-03 cleaned, deleted ESSL
#
# Makefile_linux (GNU make) for theorem@fhi
#
# pseudopotential generating program      make fhipp.x
# pseudopotential testing program         make pslp.x
# removing garbage                        make clean
#
# ---- begin settings ----

#FC      = pgf90
#FC      = g77
#FC      = g++
FC      = ifort
FFLAGS  =
#CFLAGS        =
LD      = $(FC)
LDFLAGS = $(FFLAGS) -static

# (LAPACK) public domain routines, ESSL no longer supported
LIB     = LAPACK

# ---- end settings ----

ifeq ($(LIB), LAPACK)
        MODE    = LAPACK
        LIBS    = -L../lib -lFREE
        LIBS    = ../lib/libFREE.a
endif

OBJ_GNCPP         = fhipp.o ncpp.o hamann.o tromar$(MODE).o dnlcc7$(MODE).o defrtm.o

OBJ_PSLP          = pslp.o psatom.o rcovalent.o ppcheck.o derlkb.o

OBJ_SPECTRAL_TEST = klbyii$(MODE).o laguerre.o gaussq.o

OBJ_KINETIC_TEST  = kinkon.o dfbt_srt.o bessel.o

OBJ_SHARED        = outwfct.o labelmap.o ggarad.o gga91_sr.o bpgcxc.o ldaxc.o corlyp.o pbe.o \
                    logmesh.o atomini.o sratom_n.o vestat.o vexcor.o dftseq.o \
                    atoaux.o darraux.o anderson.o moment.o spinorbit.o relxc.o \
                    pberev.o stat_orb.o fxc_mgga_pk.o\
                    vklix.o invermat.o arhf.o acgc.o gaunt.o ecp.o cepvwn.o \
                    vexcos.o

OBJ_ESSL          = dgef.o dges.o dspev.o errsav.o errset.o einfo.o

all : fhipp.x pslp.x

OBJ_GNCPP_X = $(OBJ_GNCPP) $(OBJ_SHARED)

OBJ_PSLP_X  = $(OBJ_PSLP) $(OBJ_SHARED) $(OBJ_SPECTRAL_TEST) $(OBJ_KINETIC_TEST)

%.o : %.f
        $(FC) $(FFLAGS) -c $*.f

fhipp.x : $(OBJ_GNCPP_X)
        $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)

pslp.x : $(OBJ_PSLP_X)
        $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)

$(OBJ_SPECTRAL_TEST) : basis.h gauss.h

fhipp.o ncpp.o pslp.o dftseq.o logmesh.o : default.h

$(OBJ_PSLP) $(OBJ_GNCPP) : $(LIBS) parameter.h

$(LIBS) :
ifeq ($(MODE),LAPACK)
        cd ../lib; $(MAKE) -f make.libFREE
endif

clean :
        rm -f *.o

# contents
#
#   fhipp.f           main
#   ncpp.f            pseudopotentials
#   hamann.f          hamann generator
#   tromar.f          troullier-martins generator
#   dnlcc7.f          pseudocore generator
#   defrtm.f          default cutoff radii for troullier-martins

#   pslp.f            main
#   psatom.f          pseudoatom
#   rcovalent.f       radii for logarithmic derivatives
#   ppcheck.f         log derivatives & ghost state analysis
#   derlkb.f          radial integrator for separable case

#   labelmap.f        labels for elements and XC functionals
#   outwfct.f         output subroutines
#   ggarad.f          gradient-corrected xc
#   gga91_sr.f        Perdew/Wang GGA91 xc
#   bpgcxc.f          Becke/Perdew xc
#   ldaxc.f           various LDA xc
#   cepvwn.f          Vosko/Wilk/Nussair LDA <inactive>
#   corlyp.f          Lee/Yang/Parr c
#   pbe.f             Burke/Perdew/Ernzerhof (PBE) GGA
#   pberev.f          revised PBE GGAs
#   acgc.f            (kli-x) for gaunt coefficients
#   arhf.f            (kli-x) fock matrix elements
#   vklix.f           (kli-x) kli equation solver
#   fxc_mgga_pk.f     Perdew/Kurth/Blaha/Zupan meta GGA
#   stat_orb.f        kinetic energy densit for meta GGA
#   atomini.f         potential initialisation
#   logmesh.f         radial mesh initialisation
#   sratom_n.f        all-electron atom
#   vestat.f          Poisson & Hartree
#   vexcor.f          exchange-correlation
#   vexcos.f          exchange-correlation spin-polarized
#   dftseq.f          radial deq solver
#   atoaux.f          predictor-corrector auxiliaries
#   darraux.f         array manipulation auxiliary
#   anderson.f        potential mixer
#   moment.f          radial moments etc.
#   spinorbit.f       spin-orbit couplings <inactive>

#   parameter.h       array dimensions
#   default.h         mesh & accuracy settings

#   klbyii.f          nonlocal hamiltonian in polynomial representation
#   laguerre.f        auxiliary: associated laguerre polynomials
#   gauss.f           gauss quadrature
#   gauss.h           gauss quadrature weights and absissas
#   basis.h           scaling parameters for laguerre polynomials

#   kinkon.f          fourier analysis of wavefunctions
#   dfbt_srt.f        fourier bessel transform
#   bessel.f          bessel functions

提示错误

ifort -Wall -static -o fhipp.x fhipp.o ncpp.o hamann.o tromarLAPACK.o dnlcc7LAPACK.o defrtm.o outwfct.o labelmap.o ggarad.o gga91_sr.o bpgcxc.o ldaxc.o corlyp.o pbe.o logmesh.o atomini.o sratom_n.o vestat.o vexcor.o dftseq.o atoaux.o darraux.o anderson.o moment.o spinorbit.o relxc.o pberev.o stat_orb.o fxc_mgga_pk.o vklix.o invermat.o arhf.o acgc.o gaunt.o ecp.o cepvwn.o vexcos.o ../lib/libFREE.a
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
../lib/libFREE.a(ilaenv.o):在函数‘ilaenv_’中:
ilaenv.f.text+0x3b9):对‘_gfortran_compare_string’未定义的引用
ilaenv.f.text+0x3dc):对‘_gfortran_compare_string’未定义的引用
ilaenv.f.text+0x419):对‘_gfortran_compare_string’未定义的引用
ilaenv.f.text+0x438):对‘_gfortran_compare_string’未定义的引用
ilaenv.f.text+0x457):对‘_gfortran_compare_string’未定义的引用
../lib/libFREE.a(ilaenv.o):ilaenv.f.text+0x476): more undefined references to `_gfortran_compare_string' follow
../lib/libFREE.a(xerbla.o):在函数‘xerbla_’中:
xerbla.f.text+0x68):对‘_gfortran_st_write’未定义的引用
xerbla.f.text+0x86):对‘_gfortran_transfer_character_write’未定义的引用
xerbla.f.text+0xa4):对‘_gfortran_transfer_integer_write’未定义的引用
xerbla.f.text+0xb3):对‘_gfortran_st_write_done’未定义的引用
xerbla.f.text+0xc2):对‘_gfortran_stop_string’未定义的引用
make: *** [fhipp.x] 错误 1
3楼2014-04-20 12:10:46
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 如果此刻你正在为国基感到焦虑,不妨来听听这首《基金之外》 +7 scalable 2026-08-24 7/350 2026-08-24 23:01 by anata1209
[基金申请] 没有任何消息-是不是就凉了 +7 图啦图啦 2026-08-24 8/400 2026-08-24 22:00 by maomao_da
[硕博家园] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 0XLacIJUOj8D 2026-08-24 5/250 2026-08-24 21:51 by BZKMTicpDhFj
[基金申请] 人气不行了 +10 fansofjerry 2026-08-21 10/500 2026-08-24 21:03 by zhanghaozhu
[基金申请] 我面上完蛋了 +9 且听虎啸 2026-08-20 10/500 2026-08-24 20:08 by 苦寒来香
[基金申请] filecode,4个jtjc了 +14 ziyangfang 2026-08-19 17/850 2026-08-24 18:37 by 哈哈蛤?
[基金申请] 建议基金发布提前给出明确的时间点 +13 kulium 2026-08-21 16/800 2026-08-24 16:27 by superceng
[基金申请] 范进中举一文的中心思想 +6 炎黄贵胄 2026-08-22 7/350 2026-08-24 11:58 by 6543yes
[基金申请] 朋友圈看到的 +7 wangzilk 2026-08-18 9/450 2026-08-24 10:50 by cmrandy
[基金申请] 放榜前的不淡定 20+4 snowwithsea 2026-08-19 17/850 2026-08-24 10:20 by echo8914667
[基金申请] 明天应该可查了!? +4 chengyan1220 2026-08-23 4/200 2026-08-24 08:47 by gloomy6159
[基金申请] 什么时候开奖? +10 CrisMessi 2026-08-18 11/550 2026-08-24 06:50 by 开心的小狮子
[基金申请] 2026年的国家社科基金项目通讯评审的新规则与新动向、新挑战 +4 process2012 2026-08-23 5/250 2026-08-23 19:58 by jurkat.1640
[基金申请] 今天放榜吗? +15 布布和一二 2026-08-19 16/800 2026-08-23 09:55 by 张春生
[基金申请] 看来今天不会放榜了? +8 chengyan1220 2026-08-21 11/550 2026-08-21 17:52 by dcqxinyang
[基金申请] 应该是下周三26日公布了吧? +4 哈哈蛤? 2026-08-21 4/200 2026-08-21 10:58 by Vivilian
[基金申请] 今天放榜没戏了吧 +9 yuleib84 2026-08-19 11/550 2026-08-21 10:06 by gltch
[基金申请] 基金啊基金 +4 longfie172 2026-08-20 4/200 2026-08-21 08:58 by mark mao
[基金申请] 重要消息,中午系统在维护 +11 yuleib84 2026-08-18 12/600 2026-08-20 11:09 by xskun
[基金申请] 明天放榜? +5 Shxjjxjkx 2026-08-18 5/250 2026-08-18 18:14 by -大大大大大-
信息提示
请填处理意见