>   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!a7OhWBQn8Zp5RfRnLqjH2JjyNYkp3CksuvTPa8FN5YXKhfigeeaNOYe29DFk4jQywze4XBM6KGVRw1AFXd6_vj0$
 

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
> 

Reply via email to