Description of problem: mpich depends on redhat-rpm-config Version-Release number of selected component (if applicable): mpich-devel-3.3.2-1.fc32.x86_64 How reproducible: Always Steps to Reproduce: 1. dnf install mpich-devel gcc-c++ 2. mpic++ --version Actual results: g++: fatal error: cannot read spec file ‘/usr/lib/rpm/redhat/redhat-hardened-cc1’: No such file or directory compilation terminated. Expected results: g++ (GCC) 10.0.1 20200123 (Red Hat 10.0.1-0.5) Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Additional info: `dnf install /usr/lib/rpm/redhat/redhat-hardened-cc1` resolves this issue.
I can't reproduce this: $ mock -i result/mpich-3.3.2-1.fc32.x86_64.rpm result/mpich-devel-3.3.2-1.fc32.x86_64.rpm $ mock --shell # module load mpi/mpich-x86_64 # mpic++ --version g++ (GCC) 10.0.1 20200123 (Red Hat 10.0.1-0.5) Copyright (C) 2020 Free Software Foundation, Inc. ...
mock seems to have redhat-rpm-config pre-installed. If you come from a clean system without redhat-rpm-config installed, that is not the case. $ podman --rm -it run fedora:rawhide # dnf install mpich-devel environment-modules # . /etc/profile # module load mpi # mpicc --version You should also be able to do this, by uninstalling redhat-rpm-config first, then installing mpich-devel.
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle. Changing version to 32.