Open SachinBM-CE opened 3 weeks ago
It'd be easier to sort these errors if you don't add a -j flag to make. That way it's more obvious what file these are coming from. It's not wildly unusual to see problems with ssize_t as it's definition tends to vary from system to system. Sharing the os and compiler might aid in pointing you in the right direction.
Thank you !! I'm working on a WSL Ubuntu OS and using a gcc-11 compiler.
Something is not correct with your HDF5 installation,
ssize_t
is defined in H5public.h only if H5_SIZEOF_SSIZE_T == 0
This constant is defined in H5pubconf.h to be 8 on non __APPLE__
and 4 or 8 on Macs.
Did you build hdf5 and adios with the same compiler? Which version of hdf5 are you using?
Oh, missed the fact this is WSL. So your hdf5 seems to be picked up from Clover installed on Windows. You definitely need to point to a hdf5 install on the Ubuntu WSL.
HDF5_DIR=...your-path...
cmake ... -DCMAKE_PREFIX_PATH="${HDF5_DIR};..." ....
Thank you. My HDF5 Version is 1.10.7
$ git clone https://github.com/ornladios/ADIOS2.git ADIOS2
$ mkdir adios2-build && cd adios2-build
$ HDF5_DIR=/usr/include/hdf5/serial
$ cmake ../ADIOS2 -DADIOS2_BUILD_EXAMPLES=ON -DCMAKE_PREFIX_PATH="${HDF5_DIR}"
$ make
Are these the correct commands to use now?
Yes, but only if you are building adios as a serial library. If you have MPI installed in this case, you have to force it off with -DADIOS2_USE_MPI=OFF
. Otherwise, you need a parallel hdf5 installation.
The following errors pop up when
make -j 16
command is executed. Please help me to tackle this and proceed with the installation.