[CPMD-list] Compling CPMD with IFC on Linux
Ari P Seitsonen
ari.p.seitsonen at iki.fi
Tue Sep 12 08:20:10 CEST 2006
Dear James,
Are you compiling on a 64-bit architecture, or did you copy the source
from an another machine (`uname -p` would probably show it)? The
> i386:x86-64 architecture of input file `sysdepend.o'
means that the file sysdepend.c was compiled in a 64-bit mode (AMD Athlon,
Opteron?) but all the rest with 32 bits (-arch pn4, -tpp7). You have to
decide which one to use; if you go for the 32 bits, please add the option
'-m32' into CC='gcc' (or CC='gcc -g' if debug'ging), remove sysdepend.o
and 'make' again. In case of a 64 architecture there are probably better
configurations.
Greetings from Paris (again),
apsi
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Ari P Seitsonen / Ari.P.Seitsonen at iki.fi / http://www.iki.fi/~apsi/
CNRS & IMPMC, Université Pierre et Marie Curie
Tel: +33-1-4427 7542, Fax: +33-1-4427 3785, GSM: +33-6-6736 3820
On Sat, 9 Sep 2006, james zhang wrote:
> Hi, everyone.
>
> I compiled CPMD, and got a warning, but CPMD exe still doesn't work.
> ld: warning: i386:x86-64 architecture of input file `sysdepend.o' is
> incompatible with i386 output
> I using this configure:
>
> #INFO#
> #INFO# Configuration to build a serial cpmd executable for
> #INFO# a Pentium 4 machine with the latest intel fortran compiler 'ifort'.
> #INFO#
> #INFO# $Id: BOCHUM-P4,v 1.2 2005/01/03 11:02:20 akohlmey Exp $
> #INFO#
>
> IRAT=2
> CFLAGS='-c -O2 -Wall'
> CPP='/lib/cpp -P -C -traditional'
> CPPFLAGS='-D__Linux -D__PGI -DLAPACK -DFFT_DEFAULT -DLINUX_IFC'
> FFLAGS='-c -r8 -w95 -O2 -pc64 -tpp7 -unroll -cm -tune pn4 -arch pn4'
> LFLAGS='-L. -latlas -Vaxlib'
> FFLAGS_GROMOS=' '
> if [ $debug ]; then
> FC='ifort -g'
> CC='gcc -g'
> LD='ifort -g'
> else
> FC='ifort '
> CC='gcc'
> LD='ifort -i-static'
> fi
>
> Thanks.
>
> --
> Sincerely yours,
> James jianzhang
> Department of Mechanical and Chemical Engineering
> North Carolina Agricultural and Technical State University
> 1601 East Market Street
> Greensboro, NC 27411
>
More information about the CPMD-list
mailing list