[CPMD-list] Compling CPMD with IFC on Linux

Axel Kohlmeyer akohlmey at cmm.chem.upenn.edu
Mon Sep 11 18:51:20 CEST 2006


On 9/9/06, james zhang <james.zhangj at gmail.com> 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

you are obviously using a 32-bit version of the intel compiler on
a x86_64 linux system. please either change gcc to gcc -m32
or install the em64t version of the intel compiler. as the linker
told you, you cannot linke 32-bit and 64-bit code into one binary.

cheers,
   axel.

>
> 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
>
> _______________________________________________
> CPMD-list mailing list
> CPMD-list at cpmd.org
> http://cpmd.org/mailman/listinfo/cpmd-list
>
>
>


-- 
=======================================================================
Axel Kohlmeyer   akohlmey at cmm.chem.upenn.edu   http://www.cmm.upenn.edu
  Center for Molecular Modeling   --   University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.



More information about the CPMD-list mailing list