# problem compiling with hdf5

**URL:** <https://openmc.discourse.group/t/problem-compiling-with-hdf5/133>\
**Category:** User Support\
**Created:** [February 21, 2015, 9:41pm UTC](https://openmc.discourse.group/t/problem-compiling-with-hdf5/133 "2015-02-21T21:41:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![khurrum](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@khurrum](https://openmc.discourse.group/u/khurrum)\
**Post date:** [February 21, 2015, 9:41pm UTC](https://openmc.discourse.group/t/problem-compiling-with-hdf5/133/1 "2015-02-21T21:41:58Z")

</div>

Hello everyone

i tried compiling openmc with hdf5 support. i downloaded HDF5 1.8.14. installed it with instruction given in section 2.2.1 of installation. used the command to

export FC=h5pfc

then this error happened.

[46%] Building Fortran object CMakeFiles/openmc.dir/hdf5\_interface.F90.o  
/home/khurrum/Work/openmc/src/hdf5\_interface.F90:1791.47:

mem\_space\_id=dspace, xfer\_prp = plist)  
1  
Error: There is no specific subroutine for the generic ‘h5dread\_vl\_f’ at (1)  
/home/khurrum/Work/openmc/src/hdf5\_interface.F90:1737.45:

mem\_space\_id=dspace, xfer\_prp=plist)  
1  
Error: There is no specific subroutine for the generic ‘h5dwrite\_vl\_f’ at (1)  
/home/khurrum/Work/openmc/src/hdf5\_interface.F90:779.47:

mem\_space\_id=dspace, xfer\_prp = plist)  
1  
Error: There is no specific subroutine for the generic ‘h5dread\_vl\_f’ at (1)  
/home/khurrum/Work/openmc/src/hdf5\_interface.F90:737.29:

mem\_space\_id=dspace)  
1  
Error: There is no specific subroutine for the generic ‘h5dwrite\_vl\_f’ at (1)  
make[3]: \*\*\* [CMakeFiles/openmc.dir/hdf5\_interface.F90.o] Error 1  
make[2]: \*\*\* [CMakeFiles/openmc.dir/hdf5\_interface.F90.o.provides] Error 2  
make[1]: \*\*\* [CMakeFiles/openmc.dir/all] Error 2  
make: \*\*\* [all] Error 2

i am working at ubuntu 12.04 LTS. your help in this regard will be highly appreciated.

---

<div class="post-metadata">

**Author:** ![Bryan\_Herman](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@Bryan\_Herman](https://openmc.discourse.group/u/Bryan_Herman)\
**Post date:** [February 22, 2015, 4:28am UTC](https://openmc.discourse.group/t/problem-compiling-with-hdf5/133/2 "2015-02-22T04:28:39Z")

</div>

These are my commands to build mpich and parallel hdf5:

# Build MPICH

wget [http://www.mpich.org/static/downloads/3.1.3/mpich-3.1.3.tar.gz](http://www.mpich.org/static/downloads/3.1.3/mpich-3.1.3.tar.gz)  
tar -xzvf mpich-3.1.3.tar.gz  
cd mpich-3.1.3  
./configure --prefix=/opt/mpich/3.1.3-gnu  
make -j  
make install  
cd …

# Build PHDF5

wget [http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.14.tar.gz](http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.14.tar.gz)  
tar -xzvf hdf5-1.8.14.tar.gz  
cd hdf5-1.8.14  
CC=/opt/mpich/3.1.3-gnu/bin/mpicc FC=/opt/mpich/3.1.3-gnu/bin/mpif90   
./configure   
–prefix=/opt/phdf5/1.8.14-gnu --enable-fortran   
–enable-fortran2003 --enable-parallel  
make -j  
make install  
cd …

Let me know if this gives you problems.

---

<div class="post-metadata">

**Author:** ![khurrum](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@khurrum](https://openmc.discourse.group/u/khurrum)\
**Post date:** [February 22, 2015, 9:30am UTC](https://openmc.discourse.group/t/problem-compiling-with-hdf5/133/3 "2015-02-22T09:30:23Z")

</div>

I have successfully installed mpich and hdf5 with parallel option enabled. The error I posted is during installation of openmc with parallel enabled Fortran wrapper of hdf5

---

<div class="post-metadata">

**Author:** ![khurrum](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@khurrum](https://openmc.discourse.group/u/khurrum)\
**Post date:** [February 22, 2015, 1:09pm UTC](https://openmc.discourse.group/t/problem-compiling-with-hdf5/133/4 "2015-02-22T13:09:27Z")

</div>

this is the output of cmake showing that it detects the h5pfc fortran wrapper but don’t know what is the problem with the compilation

– The Fortran compiler identification is GNU  
– Check for working Fortran compiler: /home/khurrum/Downloads/hdf5-1.8.14/build/bin/h5pfc  
– Check for working Fortran compiler: /home/khurrum/Downloads/hdf5-1.8.14/build/bin/h5pfc – works  
– Detecting Fortran compiler ABI info  
– Detecting Fortran compiler ABI info - done  
– Checking whether /home/khurrum/Downloads/hdf5-1.8.14/build/bin/h5pfc supports Fortran 90  
– Checking whether /home/khurrum/Downloads/hdf5-1.8.14/build/bin/h5pfc supports Fortran 90 – yes  
– Detected parallel HDF5 wrapper: /home/khurrum/Downloads/hdf5-1.8.14/build/bin/h5pfc  
– Found PythonInterp: /usr/bin/python (found version “2.7.3”)  
– Configuring done  
– Generating done  
– Build files have been written to: /home/khurrum/Work/openmc/src

---

<div class="post-metadata">

**Author:** ![paulromano](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/paulromano/32/486_2.png) [@paulromano](https://openmc.discourse.group/u/paulromano)\
**Post date:** [February 23, 2015, 3:28pm UTC](https://openmc.discourse.group/t/problem-compiling-with-hdf5/133/5 "2015-02-23T15:28:13Z")

</div>

When you built HDF5, did you use the --enable-fortran and --enable-fortran2003 options?

Paul

---

<div class="post-metadata">

**Author:** ![khurrum](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@khurrum](https://openmc.discourse.group/u/khurrum)\
**Post date:** [February 23, 2015, 3:37pm UTC](https://openmc.discourse.group/t/problem-compiling-with-hdf5/133/6 "2015-02-23T15:37:29Z")

</div>

Yes I did. As in my last post I have shown output of cmake which detected f5pfs so this means Fortran was enabled. I have run some examples of hdf5 to check its installation and they are working fine
