Hi!

I’m having issues building HDF5 1.10.1 on OS X El Capitan Version 10.11.6, the 
homebrew version worked find with clang with my test application, but with the 
latest gcc and g++ I was having an issue that I was able to duplicate updating. 
 Somewhere on the internet it recommended rebuilding from scratch the hdf5 
libraries

Here I’m trying to use gcc and g++ version 7.2.0:
$ gcc-7 --version
gcc-7 (Homebrew GCC 7.2.0) 7.2.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ g++-7 --version
g++-7 (Homebrew GCC 7.2.0) 7.2.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ echo $SHELL
/bin/bash
$ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Copyright (C) 2007 Free Software Foundation, Inc.

$ CC="gcc-7" CXX="g++-7 -std=c++11" ../configure --prefix=/usr/local/hdf5 
--enable-cxx
$ make -j 5

Making all in test
  CCLD     testhdf5
ld: warning: option -s is obsolete and being ignored
ld: warning: ignoring file ./.libs/libh5test.a, file was built for archive 
which is not the architecture being linked (x86_64): ./.libs/libh5test.a
Undefined symbols for architecture x86_64:
  "_AddTest", referenced from:
      _main in testhdf5.o
  "_GetTestCleanup", referenced from:
      _main in testhdf5.o
  "_GetTestExpress", referenced from:
      _size1_helper in tsohm.o
      _size2_helper in tsohm.o
  "_GetTestNumErrs", referenced from:
      _main in testhdf5.o

Any recommendations?

Thanks,
Jason



_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to