<head><!-- BaNnErBlUrFlE-HeAdEr-start -->
<style>
  #pfptBanner5hq3tf3 { all: revert !important; display: block !important; 
    visibility: visible !important; opacity: 1 !important; 
    background-color: #D0D8DC !important; 
    max-width: none !important; max-height: none !important }
  .pfptPrimaryButton5hq3tf3:hover, .pfptPrimaryButton5hq3tf3:focus {
    background-color: #b4c1c7 !important; }
  .pfptPrimaryButton5hq3tf3:active {
    background-color: #90a4ae !important; }
</style>

<!-- BaNnErBlUrFlE-HeAdEr-end -->
</head><!-- BaNnErBlUrFlE-BoDy-start -->
<!-- Preheader Text : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">
 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: 
</div>
<!-- Preheader Text : END -->

<!-- Email Banner : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerStart</div>

<!--[if ((ie)|(mso))]>
  <table border="0" cellspacing="0" cellpadding="0" width="100%" style="padding: 16px 0px 16px 0px; direction: ltr" ><tr><td>
    <table border="0" cellspacing="0" cellpadding="0" style="padding: 0px 10px 5px 6px; width: 100%; border-radius:4px; border-top:4px solid #90a4ae;background-color:#D0D8DC;"><tr><td valign="top">
      <table align="left" border="0" cellspacing="0" cellpadding="0" style="padding: 4px 8px 4px 8px">
        <tr><td style="color:#000000; font-family: 'Arial', sans-serif; font-weight:bold; font-size:14px; direction: ltr">
          This Message Is From an External Sender
        </td></tr>
        <tr><td style="color:#000000; font-weight:normal; font-family: 'Arial', sans-serif; font-size:12px; direction: ltr">
          This message came from outside your organization.
        </td></tr>

      </table>

    </td></tr></table>
  </td></tr></table>
<![endif]-->

<![if !((ie)|(mso))]>
  <div dir="ltr"  id="pfptBanner5hq3tf3" style="all: revert !important; display:block !important; text-align: left !important; margin:16px 0px 16px 0px !important; padding:8px 16px 8px 16px !important; border-radius: 4px !important; min-width: 200px !important; background-color: #D0D8DC !important; background-color: #D0D8DC; border-top: 4px solid #90a4ae !important; border-top: 4px solid #90a4ae;">
    <div id="pfptBanner5hq3tf3" style="all: unset !important; float:left !important; display:block !important; margin: 0px 0px 1px 0px !important; max-width: 600px !important;">
      <div id="pfptBanner5hq3tf3" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #D0D8DC !important; color:#000000 !important; color:#000000; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-weight:bold !important; font-weight:bold; font-size:14px !important; line-height:18px !important; line-height:18px">
        This Message Is From an External Sender
      </div>
      <div id="pfptBanner5hq3tf3" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #D0D8DC !important; color:#000000 !important; color:#000000; font-weight:normal; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-size:12px !important; line-height:18px !important; line-height:18px; margin-top:2px !important;">
This message came from outside your organization.
      </div>

    </div>

    <div style="clear: both !important; display: block !important; visibility: hidden !important; line-height: 0 !important; font-size: 0.01px !important; height: 0px"> </div>
  </div>
<![endif]>

<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerEnd</div>
<!-- Email Banner : END -->

<!-- BaNnErBlUrFlE-BoDy-end -->
<div dir="ltr"><div>Thanks a lot. That is the only issue. <br></div><div><span class="gmail-im">/usr/lib64/openmpi/include doesn't exist. <br></span></div><div><span class="gmail-im"><br></span></div><div><span class="gmail-im">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. <br></span></div><div><span class="gmail-im"><br></span></div><div><span class="gmail-im">Thanks,<br></span></div><div><span class="gmail-im"><br></span></div><div>f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’ [-Wmissing-include-dirs]<br>         CC linux-gnu-c-debug/obj/src/tao/unconstrained/impls/ntl/ntl.o<br>         CC linux-gnu-c-debug/obj/src/tao/util/tao_util.o<br>         FC linux-gnu-c-debug/obj/src/sys/objects/f2003-src/fsrc/optionenum.o<br>f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’ [-Wmissing-include-dirs]<br>         CC linux-gnu-c-debug/obj/src/tao/unconstrained/impls/owlqn/owlqn.o<br>         CC linux-gnu-c-debug/obj/src/tao/unconstrained/impls/ntr/ntr.o<br>         CC linux-gnu-c-debug/obj/src/tao/unconstrained/impls/nls/nls.o<br>         FC linux-gnu-c-debug/obj/src/dm/f90-mod/petscdmswarmmod.o<br>f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’ [-Wmissing-include-dirs]<br>         FC linux-gnu-c-debug/obj/src/dm/f90-mod/petscdmdamod.o<br>f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’ [-Wmissing-include-dirs]<br>         FC linux-gnu-c-debug/obj/src/dm/f90-mod/petscdmplexmod.o<br>f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’ [-Wmissing-include-dirs]<br>         FC linux-gnu-c-debug/obj/src/ksp/f90-mod/petsckspdefmod.o<br>f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’ [-Wmissing-include-dirs]<br>         FC linux-gnu-c-debug/obj/src/ksp/f90-mod/petscpcmod.o<br>f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’ [-Wmissing-include-dirs]<br>         FC linux-gnu-c-debug/obj/src/ksp/f90-mod/petsckspmod.o<br>f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’ [-Wmissing-include-dirs]<br>         FC linux-gnu-c-debug/obj/src/snes/f90-mod/petscsnesmod.o<br>f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’ [-Wmissing-include-dirs]<br>         FC linux-gnu-c-debug/obj/src/ts/f90-mod/petsctsmod.o<br>f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’ [-Wmissing-include-dirs]<br>         FC linux-gnu-c-debug/obj/src/tao/f90-mod/petsctaomod.o<br>f951: Warning: Nonexistent include directory ‘/usr/lib64/openmpi/include’ [-Wmissing-include-dirs]<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 13, 2024 at 2:07 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">>   Includes:   -I/usr/lib64/openmpi/include (*This is not the right include directory*)<br>
<br>
So this is the only issue? Does this dir not exist? If so, you can try the following fix:<br>
<br>
<a href="https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_requests/7545__;!!G_uCfscf7eWS!c2QjEeOosTxvYgWhf7la2e2Y8u4qLZmaeLr2oVBLbPIxtR4uDBVQ984G_-0YLJTunEXOkWm2dRXZCq1GLGKAtQ$" rel="noreferrer" target="_blank">https://gitlab.com/petsc/petsc/-/merge_requests/7545</a><br>
<br>
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.<br>
<br>
Satish<br>
<br>
<br>
On Mon, 13 May 2024, Satish Balay via petsc-users wrote:<br>
<br>
> On Mon, 13 May 2024, neil liu wrote:<br>
> <br>
> <br>
> > I also tried the 2nd way, it didn't work.<br>
> <br>
> configure.log attached is successful.<br>
> <br>
> >>>>>>>><br>
> Configure Options: --configModules=PETSc.Configure --optionsModule=config.compilerOptions --download-fblaslapack --with-mpi-dir=/usr/lib64/openmpi<br>
> <br>
> Compilers:<br>
>   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<br>
>     Version: gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)<br>
>   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<br>
>     Version: g++ (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)<br>
>   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<br>
>     Version: GNU Fortran (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)<br>
> <<<<<<br>
> <br>
> So the correct compilers from the specified  mpi location /usr/lib64/openmpi got used.<br>
> <br>
> What problem are you seeing with this build?<br>
> <br>
> Satish<br>
> <br>
<br>
</blockquote></div>