Building HDF5 1.6.5 on Mac OS X 10.4 as 64 bit, problems

Hello,

I would like to compile HDF5 1.6.5 as 64 bit on Mac OS X 10.4.9. I was
looking at:
<http://hdf.ncsa.uiuc.edu/HDF5/release/platforms5.html>

and it appears that this has not been tried. At least it seems HDF5 is
64-bit clean in general.

I have tried as follows:

export MACOSX_DEPLOYMENT_TARGET=10.4
export SDKROOT=/Developer/SDKs/MacOSX10.4u.sdk
export CFLAGS="-isysroot ${SDKROOT} -O0 -gdwarf-2 -arch x86_64"
export CXXFLAGS="-isysroot ${SDKROOT} -O0 -gdwarf-2 -arch x86_64"
./configure --prefix=/some/path/to/somewhere

Everything looks good up to here. 'long' is correctly detected as 64
bit. Then I do:

make test

This results in:

libtool: link: warning: `AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen
support.
rm -f .libs/testhdf5.nm .libs/testhdf5.nmS .libs/testhdf5.nmT
creating .libs/testhdf5S.c
generating symbol list for `testhdf5'
(cd .libs && gcc -c -fno-builtin "testhdf5S.c")
rm -f .libs/testhdf5S.c .libs/testhdf5.nm .libs/testhdf5.nmS .libs/
testhdf5.nmT
gcc .libs/testhdf5S.o -isysroot /Developer/SDKs/MacOSX10.4u.sdk -O0 -
gdwarf-2 -arch x86_64 -o .libs/testhdf5 testhdf5.o tarray.o tattr.o
tconfig.o tfile.o tgenprop.o th5s.o theap.o titerate.o tmeta.o tmisc.o
trefer.o trefstr.o tselect.o tskiplist.o ttime.o ttst.o tvltypes.o
tvlstr.o -L./.libs -lh5test -L../src/.libs -lhdf5 -lz -lm
ld64 warning: in .libs/testhdf5S.o, file is not of required architecture
ld64 warning: in ./.libs/libh5test.dylib, file is not of required architecture
ld64 warning: in ../src/.libs/libhdf5.dylib, file is not of required
architecture
Undefined symbols:
  .
  . *SNIP*
  .
  _H5T_IEEE_F64LE_g, referenced from:
      _test_compat in tarray.o
  _TestInit, referenced from:
      _main in testhdf5.o
  _H5HP_create, referenced from:
      _test_heap_create in theap.o
      _test_heap_create in theap.o
      _test_heap_insert_min in theap.o
      _test_heap_insert_max in theap.o
      _test_heap_insert_many_core in theap.o
      _test_heap_remove_min in theap.o
      _test_heap_remove_max in theap.o
      _test_heap_remove_many_core in theap.o
      _test_heap_change_min in theap.o
      _test_heap_change_max in theap.o
      _test_heap_incdec_min in theap.o
      _test_heap_incdec_max in theap.o
  _H5Pget_class, referenced from:
      _test_genprop_basic_list in tgenprop.o
      _test_genprop_refcount in tgenprop.o
ld64-62.1 failed: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [testhdf5] Error 1

I have tried the same thing with 1.8.0 beta1 and it works. But I can't
use 1.8.

Has anyone else tried this?

Thank you,

···

--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.

Sean,

You are correct: we do not support this configuration and it was never tested.

Could you please try two things:

1. disable shared libraries (use --disable-shared configuration flag)
2. try the latest hdf5.1.6 snapshot ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/hdf5/snapshots

Please let me know the results.

Thank you!

Elena

···

At 6:10 PM -0400 5/31/07, Sean McBride wrote:

Hello,

I would like to compile HDF5 1.6.5 as 64 bit on Mac OS X 10.4.9. I was
looking at:
<http://hdf.ncsa.uiuc.edu/HDF5/release/platforms5.html>

and it appears that this has not been tried. At least it seems HDF5 is
64-bit clean in general.

I have tried as follows:

export MACOSX_DEPLOYMENT_TARGET=10.4
export SDKROOT=/Developer/SDKs/MacOSX10.4u.sdk
export CFLAGS="-isysroot ${SDKROOT} -O0 -gdwarf-2 -arch x86_64"
export CXXFLAGS="-isysroot ${SDKROOT} -O0 -gdwarf-2 -arch x86_64"
./configure --prefix=/some/path/to/somewhere

Everything looks good up to here. 'long' is correctly detected as 64
bit. Then I do:

make test

This results in:

libtool: link: warning: `AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen
support.
rm -f .libs/testhdf5.nm .libs/testhdf5.nmS .libs/testhdf5.nmT
creating .libs/testhdf5S.c
generating symbol list for `testhdf5'
(cd .libs && gcc -c -fno-builtin "testhdf5S.c")
rm -f .libs/testhdf5S.c .libs/testhdf5.nm .libs/testhdf5.nmS .libs/
testhdf5.nmT
gcc .libs/testhdf5S.o -isysroot /Developer/SDKs/MacOSX10.4u.sdk -O0 -
gdwarf-2 -arch x86_64 -o .libs/testhdf5 testhdf5.o tarray.o tattr.o
tconfig.o tfile.o tgenprop.o th5s.o theap.o titerate.o tmeta.o tmisc.o
trefer.o trefstr.o tselect.o tskiplist.o ttime.o ttst.o tvltypes.o
tvlstr.o -L./.libs -lh5test -L../src/.libs -lhdf5 -lz -lm
ld64 warning: in .libs/testhdf5S.o, file is not of required architecture
ld64 warning: in ./.libs/libh5test.dylib, file is not of required architecture
ld64 warning: in ../src/.libs/libhdf5.dylib, file is not of required
architecture
Undefined symbols:
  .
  . *SNIP*
  .
  _H5T_IEEE_F64LE_g, referenced from:
      _test_compat in tarray.o
  _TestInit, referenced from:
      _main in testhdf5.o
  _H5HP_create, referenced from:
      _test_heap_create in theap.o
      _test_heap_insert_min in theap.o
      _test_heap_insert_max in theap.o
      _test_heap_insert_many_core in theap.o
      _test_heap_remove_min in theap.o
      _test_heap_remove_max in theap.o
      _test_heap_remove_many_core in theap.o
      _test_heap_change_min in theap.o
      _test_heap_change_max in theap.o
      _test_heap_incdec_min in theap.o
      _test_heap_incdec_max in theap.o
  _H5Pget_class, referenced from:
      _test_genprop_basic_list in tgenprop.o
      _test_genprop_refcount in tgenprop.o
ld64-62.1 failed: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [testhdf5] Error 1

I have tried the same thing with 1.8.0 beta1 and it works. But I can't
use 1.8.

Has anyone else tried this?

Thank you,

--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.

--

------------------------------------------------------------
Elena Pourmal
The HDF Group
1901 So First ST.
Suite C-2
Champaign, IL 61820

epourmal@hdfgroup.org
(217)333-0238 (office)
(217)333-9049 (fax)
------------------------------------------------------------

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.

You are correct: we do not support this configuration and it was never

tested.

Could you please try two things:

1. disable shared libraries (use --disable-shared configuration flag)

This worked, thanks!

2. try the latest hdf5.1.6 snapshot
ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/hdf5/snapshots

We didn't try this, but we use static libs only anyway, so that's fine.

Please let me know the results.

So as I said it builds and links fine, though we have not actually
tested if it works at run time.

Thanks,

···

On 2007-05-31 17:23, Elena Pourmal said:

--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.