Re: [netcdfgroup] HDF5-1.8.8

I was able to compile HDF5-1.8.8 on OSX Lion.
I used intel 12 compilers, and was only able to compile netcdf 4.1.2 with it, 
though no luck with netcdf 4.1.3. 

-Erik

HDF5-1.8.8

export F77=ifort
export FC=ifort
export FCFLAGS='-O3 -ip'
export FFLAGS='-O3 -ip'
export CC=icc
export CFLAGS='-O3 -ip'
export CXX=icpc
export CXXFLAGS='-O3 -ip'

./configure --with-zlib=$HOME/local/zlib/zlib_intel_12.0 
--with-szlib=/$HOME/local/szip/szip_intel_12.0 
--prefix=$HOME/local/hdf5/hdf5_1.8.8_ifort-icc_12.0 --enable-fortran 
--enable-cxx


NETCDF 4 (4.1.2)

./configure --with-hdf5=$HOME/local/hdf5/hdf5_1.8.8_ifort-icc_12.0 
--with-zlib=$HOME/local/zlib/zlib_intel_12.0 
--with-szlib=$HOME/local/szip/szip_intel_12.0 
--prefix=$HOME/local/netcdf/netcdf_4.1.2_ifort-icc_12.0_with_hdf5-8.8 
--enable-netcdf-4

_______________________________________________________
Erik Noble
Graduate Research
NASA Goddard Institute for Space Studies
University of Colorado, Environmental Studies
2880 Broadway, New York, NY-10025, USA

Tel: +1 (212) 678-5512; Fax: +1 (212) 678-5552
E-mail: erik.noble@xxxxxxxx, erik.noble@xxxxxxxxxxxx
WEB:  http://www.giss.nasa.gov/staff/enoble.html
GISS: http://www.giss.nasa.gov
CCSR: http://www.ccsr.columbia.edu
_______________________________________________________


On Dec 2, 2011, at 5:15 PM, Dr. Kenneth P. Bowman wrote:

> On Dec 2, 2011, at 3:28 PM, Dave Allured wrote:
> 
>> [[Please fix your subject line]]
> 
> Sorry, my fault.
> 
> I am using the compiler that comes from Apple with XCode, which apparently is 
> 4.2.
> 
> $ gcc -version
> i686-apple-darwin11-llvm-gcc-4.2: no input files
> 
> Ken
> 
> 
>> 
>> Ken et al,
>> 
>> My IT team also got a successful build of netCDF 4.1.3 with HDF-1.8.8 on Mac 
>> Pro with OS X 10.7.2.  We did *not* get any conversion test failures like 
>> you did.
>> 
>> This may be related to GCC version.  We used GCC 4.5.3 from Mac Ports, not 
>> Apple default which is older, not 4.6.*.  This may be a reasonable 
>> workaround.  What C compiler are you using?
>> 
>> mac27:/usr/local/src/hdf5-1.8.8 78> \
>> ? grep gcc- install.gfortran
>> compiler 'gcc' is GNU gcc-4.5.3
>> 
>> mac27:/usr/local/src/hdf5-1.8.8 79> \
>> ? grep -e 'hard.*long double.*char' install.gfortran
>> Testing hard normalized long double -> signed char conversions PASSED
>> Testing hard normalized long double -> unsigned char conversions PASSED
>> Testing hard denormalized long double -> signed char conversions PASSED
>> Testing hard denormalized long double -> unsigned char conversions PASSED
>> Testing hard special long double -> signed char conversions PASSED
>> Testing hard special long double -> unsigned char conversions PASSED
>> 
>> Note there is a high priority bug, maybe related to GCC version, currently 
>> being addressed by the HDF group.  The symptoms are similar to yours.
>> 
>> http://mail.hdfgroup.org/pipermail/hdf-forum_hdfgroup.org/2011-November/005314.html
>> 
>> --Dave
>> 
>> On 12/2/2011 12:35 PM, Dr. Kenneth P. Bowman wrote:
>>> FYI, I just tried building netCDF with HDF-1.8.8 on a Mac Pro
>>> running OS X 10.7.2 (Lion).
>>> 
>>> Zlib installs fine, but HDF5 will not build properly. I get the same
>>> error running 'make check' whether I use HDF5-1.8.6, 1.8.7, or 1.8.8
>>> (see below).
>>> 
>>> The response from HDFGroup is "use OS X 10.6.8". Unfortunately all
>>> new Macs come with 10.7, and downgrading is not really an option.
>>> 
>>> NetCDF 4.1.3 without HDF5 built just fine. Thanks, guys!
>>> 
>>> Ken Bowman
>>> 
>>> 
>>> Testing hard normalized float -> unsigned long conversions PASSED
>>> Testing hard normalized double -> unsigned long conversions PASSED
>>> Testing hard normalized long double -> signed char conversions
>>> Command terminated abnormally.
>>> 1.61 real 0.09 user 0.03 sys
>>> make[4]: *** [dt_arith.chkexe_] Error 1
>>> make[3]: *** [build-check-s] Error 2
>>> make[2]: *** [test] Error 2
>>> make[1]: *** [check-am] Error 2
>>> make: *** [check-recursive] Error 1
>>> 
>>> 
>>>> Date: Thu, 01 Dec 2011 12:39:15 -0700
>>>> From: Russ Rew <russ@xxxxxxxxxxxxxxxx <mailto:russ@xxxxxxxxxxxxxxxx>>
>>>> To: Roy Mendelssohn <Roy.Mendelssohn@xxxxxxxx
>>>> <mailto:Roy.Mendelssohn@xxxxxxxx>>
>>>> Cc: NetCDF Group List <netcdfgroup@xxxxxxxxxxxxxxxx
>>>> <mailto:netcdfgroup@xxxxxxxxxxxxxxxx>>
>>>> Subject: Re: [netcdfgroup] HDF5-1.8.8
>>>> 
>>>> Hi Roy,
>>>> 
>>>>> HDF5-1.8.8 has been announced. Is this a recommended change for
>>>>> netcdf?
>>>>> Does the most recent library work with it?
>>>> 
>>>> We've tested on a Fedora 16 platform and verified that HDF5-1.8.8
>>>> works
>>>> fine with both netCDF-4.1.3 and with the current snapshot release,
>>>> which
>>>> will soon be a beta release of netCDF-4.2. However, we haven't tested
>>>> with HDF5-1.8.8 on other platforms yet.
>>>> 
>>>> When netCDF-4.2 is released, we'll recommend building it with the most
>>>> recent HDF5-1.8.x version (unless you build with
>>>> --disable-netcdf-4, in
>>>> which case you won't need HDF5).
>>>> 
>>>> --Russ
> 
> ____________________________________________________________________________
> Kenneth P. Bowman
> Professor and Department Head
> Department of Atmospheric Sciences
> Texas A&M University
> 3150 TAMU
> College Station, TX   77843-3150
> 
> k-bowman@xxxxxxxx
> Voice 979-845-7671
> Fax 979-862-4060
> 
> http://atmo.tamu.edu/profile/KBowman
> 
> 
> 
> 
> 
> 
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit: 
> http://www.unidata.ucar.edu/mailing_lists/

  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: