Mac OSX 10.10 build problem


Ran into difficulties with “configure”: “error: cannot compute sizeof (size_t)”
I realized that I was using gcc 5.1 and that clang might be better. Sure enough, the following configure command worked.

./configure --prefix=/Users/Shared/hdf5 -enable-fortran --enable-build-mode=production FC=gfortran CC=clang 2>&1 | tee hdf-config.out
make -j 2 2>&1 | tee hdf-make.out
sudo make install 2>&1 | tee hdf-install.out

Note that, because I wanted the parallel (MPI) capability, I had to also rebuild openmpi, thus:

./configure --prefix=/Users/Shared/openmpi311 FC=gfortran CC=gcc CXX=g++ --enable-static CFLAGS=-m64 CXXFLAGS=-m64 FFLAGS=-m64 FCFLAGS=-m64 2>&1 | tee openmpi-config.out
make -j 2 2>&1 | tee openmpi-make.out
sudo make install 2>&1 | tee openmpi-install.out

Hope this helps others,
Tony Rollett