[CPMD-list] Compling CPMD with IFC on Linux

Juerg Hutter hutter at pci.unizh.ch
Tue Sep 12 10:54:27 CEST 2006


Hi

you need to compile the Fortran and C part of CPMD with
the same options for 64 or 32 bit. Currently you used
64 bit for the fortran part (-pc64) and 32 bit for
C (default for gcc).

regards

Juerg Hutter

----------------------------------------------------------
Juerg Hutter                   Phone : ++41 44 635 4491
Physical Chemistry Institute   FAX   : ++41 44 635 6838
University of Zurich           E-mail: hutter at pci.unizh.ch
Winterthurerstrasse 190
CH-8057 Zurich, Switzerland
----------------------------------------------------------


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