Page 1 of 1

MacOS 10.8.3 with gfortran from macports

Posted: Tue Apr 09, 2013 8:08 pm
by leoteo
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

Re: MacOS 10.8.3 with gfortran from macports

Posted: Tue Apr 09, 2013 9:12 pm
by Daniele Varsano
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