Hello Matt,
We tried building HDF4 with gcc 5.3.0 and 6.0.1 on Linux CentOS 7 and could not
reproduce the issue. However, our gcc is not built with pkgsrc.
On our machine gcc 5.3 is configured like this:
$ /opt/gcc/5.3.0/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/opt/gcc/5.3.0/bin/gcc
COLLECT_LTO_WRAPPER=/opt/gcc/5.3.0/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-5.3.0/configure --prefix=/opt/gcc/5.3.0/
--enable-languages=c,c++,fortran
Thread model: posix
gcc version 5.3.0 (GCC)
Looking at your config.log file we see this for the gcc configure line:
Configured with: ../gcc-5.3.0/configure --disable-libstdcxx-pch --enable-nls
--with-libiconv-prefix=/usr --disable-multilib --enable-__cxa_atexit
--with-gxx-include-dir=/nasa/pkgsrc/2015Q4/gcc5/include/c++/
--enable-languages='c obj-c++ objc fortran c++' --enable-shared
--enable-long-long --with-local-prefix=/nasa/pkgsrc/2015Q4/gcc5 --enable-libssp
--enable-threads=posix --with-boot-ldflags='-static-libstdc++ -static-libgcc
-Wl,-R/nasa/pkgsrc/2015Q4/lib ' --with-arch=nocona --with-tune=nocona
--with-fpmath=sse --prefix=/nasa/pkgsrc/2015Q4/gcc5
--build=x86_64-unknown-linux --host=x86_64-unknown-linux
--infodir=/nasa/pkgsrc/2015Q4/gcc5/info --mandir=/nasa/pkgsrc/2015Q4/gcc5/man
We are wondering if the issue could be due to single quotes being used for
option values rather than double quotes. For example:
--with-boot-ldflags='-static-libstdc++ -static-libgcc
-Wl,-R/nasa/pkgsrc/2015Q4/lib '
The HDF4 configure puts double quotes around options.
You could try setting the correct options in LDFLAGS before configuring HDF4.
That will override the choices made by configure.
However, it is not clear whether that will help or not, since these options are
with gcc, not HDF4.
If that doesn't help please send us your Makefiles and we will look at them to
see what we can find.
Thanks!
-Barbara
[email protected]<mailto:[email protected]>
_______________________________________________
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