| View previous topic :: View next topic |
| Author |
Message |
jand
Joined: 17 Aug 2008 Posts: 48
|
Posted: Wed Sep 12, 2012 4:58 pm Post subject: 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:
| Code: |
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:
| Code: | | ./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 |
|
| Back to top |
|
 |
jand
Joined: 17 Aug 2008 Posts: 48
|
Posted: Wed Sep 12, 2012 5:35 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Thu Sep 13, 2012 1:23 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
jand
Joined: 17 Aug 2008 Posts: 48
|
Posted: Thu Sep 13, 2012 1:44 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|