OSX 10.8 issues with 12.8 and mpich2-1.4

Hi,

this may be somewhat off topic but I am hoping someone here may have had this problem.

After installing PGI 12.8 Fortran, I am trying to ./configure mpich2 on a macbook pro. I get this error:

checking whether Fortran 77 and C objects are compatible... no
checking for file... file
configure: error: ****  Incompatible Fortran and C Object File Types!  ****
F77 Object File Type produced by "/opt/pgi/osx86-64/2012/bin/pgf77 -m64 " is : : cannot open `' (No such file or directory).
 C  Object File Type produced by "/opt/local/bin/gcc-mp-4.4 -m64   -O2" is : : Mach-O 64-bit object x86_64.

I looked into this a bit and found that it should be addressed with -m64 Flags. However, setting these does not seem to work. The configure command I use is:

./configure  F77=/opt/pgi/osx86-64/2012/bin/pgf77 FFLAGS="-m64" FC=/opt/pgi/osx86-64/2012/bin/pgf95 FCFLAGS="-m64" CC=/opt/local/bin/gcc-mp-4.4 CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS=-m64

Am I missing something obvious? Any help would be appreciated.

Thanks, Jan

I actually just figured this out with the help of this forum. What happened is that the Xcode installation is not aware of the new processor targets. Targeting “-tp nehalem-64” in the FCFLAGS solved the problem.

./configure F77=/opt/pgi/osx86-64/2012/bin/pgf77 FFLAGS="-m64 -tp nehalem-64" FC=/opt/pgi/osx86-64/2012/bin/pgf95 FCFLAGS="-m64 -tp nehalem-64" CC=/opt/local/bin/gcc-mp-4.4 CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS=-m64

Cheers, Jan

Hi Jan,

It’s our understanding that Xcode 4.3.3 will add AVX support, but targeting an older non-AVX processor works as well.

Thanks,
Mat

Hi Mat,

I am using XCode 4.4.1 (released Aug 7 2012) and it would not work without targeting an older processor. This was the case for any compiling. I added -tp nehalem-64 to all my makefiles and it seems to work fine.

Hopefully a newer version of Xcode will add support.

Thanks, Jan