[petsc-users] Can not find the header file for OpenMPI

neil liu liufield at gmail.com
Mon May 13 13:53:13 CDT 2024


Thanks a lot. That is the only issue.
/usr/lib64/openmpi/include doesn't exist.

The configuration can be done without issue with the 2nd method. But when I
did make, the following warning came. I will study your link.

Thanks,

f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’
[-Wmissing-include-dirs]
         CC linux-gnu-c-debug/obj/src/tao/unconstrained/impls/ntl/ntl.o
         CC linux-gnu-c-debug/obj/src/tao/util/tao_util.o
         FC
linux-gnu-c-debug/obj/src/sys/objects/f2003-src/fsrc/optionenum.o
f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’
[-Wmissing-include-dirs]
         CC linux-gnu-c-debug/obj/src/tao/unconstrained/impls/owlqn/owlqn.o
         CC linux-gnu-c-debug/obj/src/tao/unconstrained/impls/ntr/ntr.o
         CC linux-gnu-c-debug/obj/src/tao/unconstrained/impls/nls/nls.o
         FC linux-gnu-c-debug/obj/src/dm/f90-mod/petscdmswarmmod.o
f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’
[-Wmissing-include-dirs]
         FC linux-gnu-c-debug/obj/src/dm/f90-mod/petscdmdamod.o
f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’
[-Wmissing-include-dirs]
         FC linux-gnu-c-debug/obj/src/dm/f90-mod/petscdmplexmod.o
f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’
[-Wmissing-include-dirs]
         FC linux-gnu-c-debug/obj/src/ksp/f90-mod/petsckspdefmod.o
f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’
[-Wmissing-include-dirs]
         FC linux-gnu-c-debug/obj/src/ksp/f90-mod/petscpcmod.o
f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’
[-Wmissing-include-dirs]
         FC linux-gnu-c-debug/obj/src/ksp/f90-mod/petsckspmod.o
f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’
[-Wmissing-include-dirs]
         FC linux-gnu-c-debug/obj/src/snes/f90-mod/petscsnesmod.o
f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’
[-Wmissing-include-dirs]
         FC linux-gnu-c-debug/obj/src/ts/f90-mod/petsctsmod.o
f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’
[-Wmissing-include-dirs]
         FC linux-gnu-c-debug/obj/src/tao/f90-mod/petsctaomod.o
f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’
[-Wmissing-include-dirs]

On Mon, May 13, 2024 at 2:07 PM Satish Balay <balay at mcs.anl.gov> wrote:

> >   Includes:   -I/usr/lib64/openmpi/include (*This is not the right
> include directory*)
>
> So this is the only issue? Does this dir not exist? If so, you can try the
> following fix:
>
> https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_requests/7545__;!!G_uCfscf7eWS!c2QjEeOosTxvYgWhf7la2e2Y8u4qLZmaeLr2oVBLbPIxtR4uDBVQ984G_-0YLJTunEXOkWm2dRXZCq1GLGKAtQ$ 
>
> However if this dir exists [i.e when --with-pkg-dir=DIR is specified and
> DIR/include exists] - configure will have no way of figuring out that this
> location is incorrect. And it should cause no harm to include it in compile
> commands.
>
> Satish
>
>
> On Mon, 13 May 2024, Satish Balay via petsc-users wrote:
>
> > On Mon, 13 May 2024, neil liu wrote:
> >
> >
> > > I also tried the 2nd way, it didn't work.
> >
> > configure.log attached is successful.
> >
> > >>>>>>>>
> > Configure Options: --configModules=PETSc.Configure
> --optionsModule=config.compilerOptions --download-fblaslapack
> --with-mpi-dir=/usr/lib64/openmpi
> >
> > Compilers:
> >   C Compiler:         /usr/lib64/openmpi/bin/mpicc  -fPIC -Wall
> -Wwrite-strings -Wno-unknown-pragmas -Wno-lto-type-mismatch
> -Wno-stringop-overflow -fstack-protector -fvisibility=hidden -g3 -O0
> >     Version: gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)
> >   C++ Compiler:         /usr/lib64/openmpi/bin/mpicxx  -Wall
> -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas
> -Wno-lto-type-mismatch -Wno-psabi -fstack-protector -fvisibility=hidden -g
> -O0  -std=gnu++20 -fPIC
> >     Version: g++ (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)
> >   Fortran Compiler:         /usr/lib64/openmpi/bin/mpif90  -fPIC -Wall
> -ffree-line-length-none -ffree-line-length-0 -Wno-lto-type-mismatch
> -Wno-unused-dummy-argument -g -O0
> >     Version: GNU Fortran (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)
> > <<<<<
> >
> > So the correct compilers from the specified  mpi location
> /usr/lib64/openmpi got used.
> >
> > What problem are you seeing with this build?
> >
> > Satish
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240513/13d9cd12/attachment-0001.html>


More information about the petsc-users mailing list