I/O API bin-create "Cannot find mpif.h error"

Please read the detailed instructions https://cjcoats.github.io/ioapi/AVAIL.html#build in the I/O API Installation Document, playing particular attention to item # 5.
Find out the underlying compiler for your OpenMPI installation, and choose the appropriate Makeinclude.$BIN for that installation.

Also, decide whether you need to enable distributed I/O or not.

If you had been following the instructions, you would not have had “raw” occurrences of either the GNU gfortran nor the Intel ifort compilers…