PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

OSX 10.8 issues with 12.8 and mpich2-1.4

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation
View previous topic :: View next topic  
Author Message
jand



Joined: 17 Aug 2008
Posts: 57

PostPosted: Wed Sep 12, 2012 4:58 pm    Post subject: OSX 10.8 issues with 12.8 and mpich2-1.4 Reply with quote

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
View user's profile
jand



Joined: 17 Aug 2008
Posts: 57

PostPosted: Wed Sep 12, 2012 5:35 pm    Post subject: Reply with quote

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
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6119
Location: The Portland Group Inc.

PostPosted: Thu Sep 13, 2012 1:23 pm    Post subject: Reply with quote

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
View user's profile
jand



Joined: 17 Aug 2008
Posts: 57

PostPosted: Thu Sep 13, 2012 1:44 pm    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group