View Issue Details

IDProjectCategoryView StatusLast Update
0000617AlmaLinux-10Generalpublic2026-03-28 20:00
Reportershah313 Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Summary0000617: h5pfc script uses incorrect `includedir` for OpenMPI on AlmaLinux 10
DescriptionAfter installing parallel HDF5 via `dnf install hdf5-openmpi`, the `h5pfc` compiler wrapper fails due to an incorrect include directory.

File affected:
`/usr/lib64/openmpi/bin/h5pfc`

The script defines an `includedir` that does not point to the correct location of OpenMPI Fortran modules, causing compilation failures for parallel HDF5 Fortran programs.

**System:**

* OS: AlmaLinux 10
* Architecture: x86_64

**Package Information:**
(Output of `rpm -qi hdf5-openmpi`)

```
Name : hdf5-openmpi
Version : 1.14.5
Release : 1.el10_0
Architecture: x86_64
Install Date: Thu 26 Mar 2026 12:10:19 PM EDT
Group : Unspecified
Size : 7476900
License : BSD-3-Clause
Signature :
              RSA/SHA256, Thu 24 Oct 2024 11:50:21 AM EDT, Key ID 33d98517e37ed158
Source RPM : hdf5-1.14.5-1.el10_0.src.rpm
Build Date : Thu 24 Oct 2024 09:51:10 AM EDT
Build Host : buildvm-x86-09.iad2.fedoraproject.org
Packager : Fedora Project
Vendor : Fedora Project
URL : https://www.hdfgroup.org/solutions/hdf5/
Bug URL : https://bugz.fedoraproject.org/hdf5
Summary : HDF5 openmpi libraries
Description :
HDF5 parallel openmpi libraries
```


**mpifort configuration:**
(Output of `mpifort --showme`)

```
gfortran -I/usr/include/openmpi-x86_64 -I/usr/lib64/openmpi/lib -L/usr/lib64/openmpi/lib -Wl,-rpath -Wl,/usr/lib64/openmpi/lib -Wl,--enable-new-dtags -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi
```

**Problem:**
The `includedir` in `h5pfc` does not match the actual OpenMPI module include path used by the system compiler toolchain.

**Fix / Workaround:**
Manually editing the script resolves the issue:

```bash
sudo nano /usr/lib64/openmpi/bin/h5pfc
```

Change:

```bash
includedir="..."
```

To:

```bash
includedir="/usr/lib64/gfortran/modules/openmpi/"
```

After this change, `h5pfc` works correctly and parallel HDF5 Fortran programs compile successfully.

**Expected behavior:**
`h5pfc` should automatically use the correct OpenMPI Fortran module include path without requiring manual modification.

**Actual behavior:**
Compilation fails unless the script is manually edited.

**Additional notes:**
The correct include paths appear to be consistent with the output of `mpifort --showme`, suggesting a mismatch between the HDF5 wrapper configuration and the OpenMPI toolchain configuration.
Steps To Reproduce# Core Math Libraries
sudo dnf install openblas-devel lapack-devel fftw-devel

# For parallel execution (MPI)
sudo dnf install openmpi-devel scalapack-openmpi-devel

# Install Parallel HDF5 !!!!
sudo dnf install hdf5-openmpi hdf5-openmpi-devel

# verify if it's parallel HDF5
h5pcc -showconfig | grep Parallel

# and check compiler
h5pcc -show

# Then try to compile quantum espresso 7.5 using cmake
cmake .. \
    -DCMAKE_Fortran_COMPILER=mpif90 \
    -DCMAKE_C_COMPILER=mpicc \
    -DCMAKE_BUILD_TYPE=Release \
    -DQE_ENABLE_OPENMP=ON \
    -DQE_ENABLE_SCALAPACK=ON \
    -DQE_ENABLE_HDF5=ON
Additional Informationafter I chaged that one line, I was able to compile quantum espresso without any issues
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2026-03-28 20:00 shah313 New Issue
The file specified in $g_log_destination "/var/log/mantis.log" is not writable.