Error occours when compiling parallel HDF5-1.8.11 with openmpi-4.1.1


The “configure” operation as follow is all right.

shell$ CC=/usr/local/openmpi/bin/mpicc CXX=/usr/local/openmpi/bin/mpicxx ./configure --prefix=/usr/local/wyj-hdf5 --enable-parallel --enable-hl --enable-shared --enable-static

But a error occours when I “make” it.



Can you show the error - I went through the log and did not find an error - just warnings.


Thanks for your attention.
It was an oversight on my part, and I don’t think there’s been a mistake. But before that it reported the following error:

h5tools_dump.c:635:9: error: C++ style comments are not allowed in ISO C90
635 | //HGOTO_ERROR(dimension_break, H5E_tools_min_id_g, “Could not allocate buffer for ptdata”);
| ^
h5tools_dump.c:635:9: note: (this will be reported only once per input file)

But by changing the comment for all // styles in the HDF5 folder to /* */, I’ve solved the problem. So Everything’s fine now.


Yes, that comment style has been fixed in later code.