forum@abinit.org
Subject: The ABINIT Users Mailing List ( CLOSED )
List archive
- From: Chol-Jun Yu <yucj@ghi.rwth-aachen.de>
- To: forum@abinit.org
- Subject: Re: [abinit-forum] Makefile for Atompaw
- Date: Thu, 12 Apr 2007 17:18:15 +0200
- Organization: CME, RWTH Aachen
Hello,
I also the similiar compiling problem though I used g95.
My makefile is as follows,
LIBS = /home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a \
/home/yucj/ABINIT/paw/lapack-3.1.1/blas_LINUX.a \
-L/home/CommPackages/g95-install/lib/gcc-lib/i686-pc-linux-gnu/4.0.0/
F90 = g95
F90FLAGS = -g
LDFLAGS = $(F90FLAGS)
The errors are as follows,
g95 -g -c anderson_realmix.f90
g95 -g -c atomdata.f90
g95 -g -c globalmath.f90
g95 -g -c gridmod.f90
g95 -g -c excor.f90
g95 -g -c calcpotential.f90
g95 -g -c radialsch.f90
g95 -g -c radialsr.f90
g95 -g -c aeatom.f90
g95 -g -c pseudo.f90
g95 -g -c basis.f90
g95 -g -c atompaw.f90
g95 -g -o atompaw aeatom.o anderson_realmix.o atomdata.o \
atompaw.o basis.o calcpotential.o \
excor.o globalmath.o \
gridmod.o pseudo.o radialsch.o
radialsr.o /home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a
/home/yucj/ABINIT/paw/lapack-3.1.1/blas_LINUX.a
-L/home/CommPackages/g95-install/lib/gcc-lib/i686-pc-linux-gnu/4.0.0/
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(dormbr.o)(.text+0x2c3): In
function `dormbr_':
: undefined reference to `s_cat'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(dormbr.o)(.text+0x723): In
function `dormbr_':
: undefined reference to `s_cat'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(dormbr.o)(.text+0x7df): In
function `dormbr_':
: undefined reference to `s_cat'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(dormbr.o)(.text+0x8a3): In
function `dormbr_':
: undefined reference to `s_cat'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(dormlq.o)(.text+0x1da): In
function `dormlq_':
: undefined reference to `s_cat'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(dormlq.o)(.text+0x645):
more
undefined references to `s_cat' follow
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(dlamch.o)(.text+0xe23): In
function `dlamc2_':
: undefined reference to `s_wsfe'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(dlamch.o)(.text+0xe3f): In
function `dlamc2_':
: undefined reference to `do_fio'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(dlamch.o)(.text+0xe44): In
function `dlamc2_':
: undefined reference to `e_wsfe'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(ilaenv.o)(.text+0x62): In
function `ilaenv_':
: undefined reference to `s_copy'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(ilaenv.o)(.text+0x142): In
function `ilaenv_':
: undefined reference to `s_copy'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(ilaenv.o)(.text+0x163): In
function `ilaenv_':
: undefined reference to `s_copy'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(ilaenv.o)(.text+0x187): In
function `ilaenv_':
: undefined reference to `s_copy'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(ilaenv.o)(.text+0x1c5): In
function `ilaenv_':
: undefined reference to `s_cmp'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(ilaenv.o)(.text+0x1f0): In
function `ilaenv_':
: undefined reference to `s_cmp'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(ilaenv.o)(.text+0x223): In
function `ilaenv_':
: undefined reference to `s_cmp'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(ilaenv.o)(.text+0x251): In
function `ilaenv_':
: undefined reference to `s_cmp'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(ilaenv.o)(.text+0x278): In
function `ilaenv_':
: undefined reference to `s_cmp'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(ilaenv.o)(.text+0x29f):
more
undefined references to `s_cmp' follow
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(ilaenv.o)(.text+0xf7d): In
function `ilaenv_':
: undefined reference to `s_copy'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(ilaenv.o)(.text+0xfab): In
function `ilaenv_':
: undefined reference to `s_copy'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(ilaenv.o)(.text+0xfd9): In
function `ilaenv_':
: undefined reference to `s_copy'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(ilaenv.o)(.text+0x1007): In
function `ilaenv_':
: undefined reference to `s_copy'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(ilaenv.o)(.text+0x1035): In
function `ilaenv_':
: undefined reference to `s_copy'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(xerbla.o)(.text+0xe): In
function `xerbla_':
: undefined reference to `s_wsfe'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(xerbla.o)(.text+0x2a): In
function `xerbla_':
: undefined reference to `do_fio'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(xerbla.o)(.text+0x46): In
function `xerbla_':
: undefined reference to `do_fio'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(xerbla.o)(.text+0x4b): In
function `xerbla_':
: undefined reference to `e_wsfe'
/home/yucj/ABINIT/paw/lapack-3.1.1/lapack_LINUX.a(xerbla.o)(.text+0x5d): In
function `xerbla_':
: undefined reference to `s_stop'
make: *** [atompaw] Error 1
I used Lapack-3.1.1 which is the most recent and general version but maybe
does not fit to the AtomPaw code. I think we should use the proper lapack
library. I can't know about the
"/home/natalie/EL/publiccode/LAPACK/lapack_g95.a\
/home/natalie/EL/publiccode/LAPACK/blas_g95.a\"
With best regards,
Yu.
On Thursday, 12. April 2007 16:42, Anglade Pierre-Matthieu wrote:
> Hi,
>
> I'm very surprised that you use gfortran-4.0. Do you use it routinely
> ? I am quite conviced that this is a pre-pre-alpha version of
> gfortran. What happens if you use g95 or gfortran-4.2 ?
>
> regards
>
> PMA
>
> On 4/12/07, Pascal Rausch <rausch@physik.rwth-aachen.de> wrote:
> > Hi,
> >
> >
> > I am trying to compile Atompaw but have some trouble doing so. Iam using
> > Kubuntu 6.06 and gfortran. Compiling it, it starts well but then I get
> > this error (i just print here the first part of the output ):
> >
> > /usr/bin/gfortran-4.0 -static -o atompaw aeatom.o anderson_realmix.o
> > atomdata.o \
> > atompaw.o basis.o calcpotential.o \
> > excor.o globalmath.o \
> > gridmod.o pseudo.o radialsch.o radialsr.o /usr/lib/liblapack.a
> > /usr/lib/libblas.a -L/usr/lib
> > /usr/lib/libblas.a(xerbla.o): In function `xerbla_': multiple definition
> > of `xerbla_'
> > /usr/lib/liblapack.a(xerbla.o): first defined here
> > /usr/bin/ld: Warning: size of symbol `xerbla_' changed from 73 in
> > /usr/lib/liblapack.a(xerbla.o) to 55 in /usr/lib/libblas.a(xerbla.o)
> > /usr/lib/liblapack.a(dormbr.o): In function `dormbr_': undefined
> > reference to `s_cat'
> > /usr/lib/liblapack.a(dormbr.o): In function `dormbr_': undefined
> > reference to `s_cat'
> > /usr/lib/liblapack.a(dormlq.o): In function `dormlq_': undefined
> > reference to `s_cat'
> > /usr/lib/liblapack.a(dormlq.o): In function `dormlq_': undefined
> > reference to `s_cat'
> > /usr/lib/liblapack.a(dormqr.o): In function `dormqr_': undefined
> > reference to `s_cat'
> > /usr/lib/liblapack.a(dormqr.o): more undefined references to `s_cat'
> > follow /usr/lib/liblapack.a(dlamch.o): In function `dlamc2_': undefined
> > reference to `s_wsfe'
> > /usr/lib/liblapack.a(dlamch.o): In function `dlamc2_': undefined
> > reference to `do_fio'
> > ... etc
> >
> >
> > My makefile looks like this
> >
> > LIBS = /usr/lib/liblapack.a \
> > /usr/lib/libblas.a \
> > -L/usr/lib
> >
> > F90 = /usr/bin/gfortran-4.0
> > F90FLAGS = -static
> > LDFLAGS = $(F90FLAGS)
> >
> >
> > Any idea?
> >
> >
> > Yours sincerely
> >
> >
> > Pascal Rausch
--
Yu Chol Jun
-----------------------------------------------------------------------------
Computational Materials Engineering(CME)
Center for Computational Engineering Science(CCES)
Institute of Mineral Engineering(GHI), RWTH Aachen
Mauerstrasse 5, D-52064 Aachen, Germany
Tel: ++49 241 80 94969
Fax: ++49 241 80 92271
e-mail: yucj@ghi.rwth-aachen.de
-----------------------------------------------------------------------------
- phonon eigenvectors, bertazzi, 04/12/2007
- Re: [abinit-forum] phonon eigenvectors, Marcel Mohr, 04/12/2007
- about virtual crystal approximation, Wu Rongqin, 04/12/2007
- Makefile for Atompaw, Pascal Rausch, 04/12/2007
- Re: [abinit-forum] Makefile for Atompaw, Anglade Pierre-Matthieu, 04/12/2007
- Re: [abinit-forum] Makefile for Atompaw, Chol-Jun Yu, 04/12/2007
- Re: [abinit-forum] Makefile for Atompaw, Pascal Rausch, 04/12/2007
- Re: [abinit-forum] Makefile for Atompaw, Anglade Pierre-Matthieu, 04/12/2007
- 答复: [abinit-forum] Makefile for Atompaw, Wu Rongqin, 04/13/2007
- Re: [abinit-forum] Makefile for Atompaw, Pascal Rausch, 04/12/2007
- Re: [abinit-forum] Makefile for Atompaw, Chol-Jun Yu, 04/12/2007
- Re: [abinit-forum] Makefile for Atompaw, Anglade Pierre-Matthieu, 04/12/2007
- Re: [abinit-forum] phonon eigenvectors, Marcel Mohr, 04/12/2007
Archive powered by MHonArc 2.6.16.