MacOS 10.8.3 with gfortran from macports

Having trouble compiling the Yambo source? Using an unusual architecture? Problems with the "configure" script? Problems in GPU architectures? This is the place to look.

Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, andrea marini, Daniele Varsano, Conor Hogan, Nicola Spallanzani

Forum rules
If you have trouble compiling Yambo, please make sure to list:
(1) the compiler (vendor and release: e.g. intel 10.1)
(2) the architecture (e.g. 64-bit IBM SP5)
(3) if the problems occur compiling in serial/in parallel
(4) the version of Yambo (revision number/major release version)
(5) the relevant compiler error message
Post Reply
leoteo
Posts: 30
Joined: Tue Apr 09, 2013 5:40 pm

MacOS 10.8.3 with gfortran from macports

Post by leoteo » Tue Apr 09, 2013 8:08 pm

Hi,

I had some small problems compiling Yambo 3.3.0-rev36 on MacOS 10.8.3 and just wanted to share the configure options that worked for me.
I used the gcc47 port from macports (thus the <cmd>-mp-4.7).

Code: Select all

./configure F77=gfortran-mp-4.7 FC=gfortran-mp-4.7 CC=gcc-mp-4.7 CPP=cpp-mp-4.7 FCCPP=cpp-mp-4.7
When configuring libcx, it looks for an environment variable FCCPP (supposedly the C preprocessor used to preprocess the Fortran sources), which is not documented in the ./configure --help of yambo (maybe it should be included there?). This variable defaults to /lib/cpp, which did not exist on my macbook and resulted in the compilation to fail.

Furthermore, although I did not specify external blas/lapack libraries and the output of ./configure stated

Code: Select all

# [XX ] Built-in BLAS/LAPACK/LOCAL

, it somehow managed to pick up the ATLAS version I had in /opt/local/lib, leading to undefined references at the linking stage. When I deactivated the ATLAS port, compilation worked fine.

Best,
Leopold
Leopold Talirz
Swiss Federal Laboratories for Materials Science and Technology, Dübendorf, Switzerland
http://www.surfaces.ch

User avatar
Daniele Varsano
Posts: 3816
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: MacOS 10.8.3 with gfortran from macports

Post by Daniele Varsano » Tue Apr 09, 2013 9:12 pm

Dear Leopold,
thank you very much for you effort and sharing this information. Some of the issues you post were discussed before in the forum,
for earlier macos version. It is very nice to have a complete procedure for compilation of yambo in the recent macos release.

Thanks again,

Daniele
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/

Post Reply