Skip to Content.
Sympa Menu

forum - Re: [abinit-forum] installing 5.4.4p on Mac OS X 10.5.6

forum@abinit.org

Subject: The ABINIT Users Mailing List ( CLOSED )

List archive

Re: [abinit-forum] installing 5.4.4p on Mac OS X 10.5.6


Chronological Thread 
  • From: Alain Jacques <ajs.jacques@gmail.com>
  • To: forum@abinit.org
  • Subject: Re: [abinit-forum] installing 5.4.4p on Mac OS X 10.5.6
  • Date: Mon, 12 Jan 2009 09:06:36 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding:from; b=BZVuv5c9oCcJgC04Ofxz2bREYxxqtAHBMndc2l+y0LskJ7gYzpDE0jjsYsvkzPxYY0 qNhcuaKS+fZ3NzcAhnXfppHSvQRwWgbyOhDfzn7H9l8cb+rFNSQiyekokwp8ibETTDCo JMa8l55pus7mrytU2p6SxT9X1+OCTiZMgXWvg=

Hello Matt,


Matthew Lyle wrote:
Re: [abinit-forum] installing 5.4.4p on Mac OS X 10.5.6 Thanks for your prompt reply Alain – I’m currently using gfortran v4.2 (i686-apple-darwin8-gfortran-4.2).

Probably not directly related to your compilation problem, I am surprised about your gfortran-4.2 version ... it should be i686-apple-darwin9 for OSX 10.5 (unless you compiled your gcc toolchain by yourself and didn't modify the --host or --target options). Maybe check if you have installed the right gfortran version ... may be outdated or broken

Anyway, my gcc/gfortran 4.2 says ...
gfortran-4.2 -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /Volumes/Data/Builds/apple/gcc_42-5566/build/obj/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/usr/share/man --enable-languages=c,objc,c++,obj-c++,fortran --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-gxx-include-dir=/usr/include/c++/4.0.0 --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5566)


The ABINIT 5.4.4 version was what I was using last year; however, it cannot function past 1 Jan 2009, hence the patched version. It’s currently installed and working on the server that a few of us are using – but I would also like to run small jobs on my MacBook (so the v5.4.4p is necessary for consistency).

Poor idea of the time bomb.


The file defs_fftdata.mod resides in /abinit-5.4.4p/src/defs (though it was not there prior to compiling defs_fftdata.f90, so perhaps gfortran is in at least some way working).

I have some difficulties to give you efficient help because I cannot reproduce the error although I am using the same config - MBP/OSX 10.5.6/gfortan-4.2.1 and abinit-5.4.4p. What I did ...

tar xzf abinit-5.4.4p.tar.gz
cd abinit-5.4.4p/
mkdir tmp-build
cd tmp-build
../configure --with-cpp-optflags="-DpgiFortran -DNDEBUG" CC=gcc-4.2 CPP=cpp-4.2 CXX=g++-4.2 FC=gfortran-4.2 CFLAGS="-O2" CXXFLAGS="-O2" FCFLAGS="-O2"
make

... and it goes up to the end and produces a working exec:
otool -L src/main/abinis
src/main/abinis:
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.3)

The --with-cpp-optflag is only relevant to netcdf. The *FLAGS= only controls optimization. My gcc/gfortran 4.2 compiler and libs are in the path. If your compiler configuration differs, you may have to export PATH= and export DYLD_LIBRARY_PATH= before the configure. Building in a separate directory is highly recommended. Don't try a parallel build - maybe interfaces_*.F90 compilation is invoked before the .mod is in the right place.


Kind regards,

Alain




Archive powered by MHonArc 2.6.15.

Top of Page