PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Course

HDF5-1.8.5, Mac OS X Server 10.6.4, PGI Fortran 9.0
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
coreypgi



Joined: 20 Aug 2009
Posts: 4

PostPosted: Mon Oct 04, 2010 7:33 am    Post subject: HDF5-1.8.5, Mac OS X Server 10.6.4, PGI Fortran 9.0 Reply with quote

I'm trying to compile HDF5-1.8.5 on Mac OS X Server 10.6.4 with PGI Fortran 9.0 and gcc-4.2.1 and/or gcc-4.0.1. I'm trying for a 32-bit compile and thus using the 32-bit pgfortran and the "-m32" switch on gcc.

The compilation fails consistently with the following error:
/usr/bin/ranlib: object: .libs/libhdf5_fortran.a(H5f90global.o) malformed object (LC_SEGMENT command 0 filesize field greater than vmsize field)
ar: internal ranlib command failed

Some searches for this error haven't turned up anything useful. There are a few threads in this forum, but nothing that seems relevant.
Does anyone here have any insight on this error or on compiling HDF5 on OS X?
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Mon Oct 04, 2010 10:44 am    Post subject: Reply with quote

Hi,

Please try pgf90 instead of pgfortran. The HDF5 still takes pgf90 and has not yet configured for pgfortran.

Hongyon
Back to top
View user's profile
coreypgi



Joined: 20 Aug 2009
Posts: 4

PostPosted: Mon Oct 04, 2010 12:55 pm    Post subject: Reply with quote

I, unfortunately, still get the same error using pgf90 rather than pgfortran.
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Mon Oct 04, 2010 1:00 pm    Post subject: Reply with quote

What is your configuration line:

This is mine:
./configure FC=pgf90 CC="gcc -m32" CXX="g++ -m32"


Which version of PGI compiler do you use? How do you set you path to PGI? Please make sure you do make clean first.

Hongyon
Back to top
View user's profile
coreypgi



Joined: 20 Aug 2009
Posts: 4

PostPosted: Mon Oct 04, 2010 2:44 pm    Post subject: Reply with quote

The full command I was using:
./configure --prefix=/Users/corey/tmp/local/hdf5-1.8.5-patch1 --enable-fortran --with-zlib=/Users/corey/tmp/local/zlib-1.2.5 --with-szlib=/Users/corey/tmp/local/szip-2.1 --with-default-api-version=v16

I noticed you don't have the --enable-fortran flag in yours which skips the compilation of libhdf5_fortran and thus the problem. I didn't specifically set the CXX to include the -m32 flag. I tried that, but still get the error.

PGI compiler version:
pgf90 9.0-4 32-bit target on Apple OS/X

HDF5 version:
hdf5-1.8.5-patch1

corey$ echo $PATH
/opt/pgi/osx86/9.0/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

$PATH is set in my .bash_profile.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
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