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