<div dir="ltr">Could you send the configure.log of your petsc build?<div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">--Junchao Zhang</div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 23, 2021 at 3:37 PM Mancinelli, Asher J via petsc-maint <<a href="mailto:petsc-maint@mcs.anl.gov">petsc-maint@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">




<div dir="ltr">
<div>
<div id="gmail-m_7432967268146403131Signature">
<div><span style="font-size:12pt">Hello all,</span></div>
<div><span style="font-size:12pt"><br>
</span></div>
<div><span style="font-size:12pt">We are attempting to build an application that relies on PETSc with Cray MPICH, and we're encountering the following build-time error:<br>
</span></div>
<div><span style="font-size:12pt"><br>
</span></div>
<div><span style="font-size:12pt">cd <snip>/exago/build/src/utils && hipcc -DHAVE_HIP -I<snip>/exago/include -I<snip>/exago/build -I<snip>spack/opt/spack/cray-sles15-zen2/clang-12.0.0-rocm4.2-mpich/magma-2.6.1-l3ckgjdgsf4yhyzzb5zaibqg5u6lzgdb/include -isystem
 <snip>spack/opt/spack/cray-sles15-zen2/clang-12.0.0-rocm4.2-mpich/mumps-5.4.0-3naioareijver7s2em5sdsejh7s74kvf/include -isystem <cray-mpich prefix>/include -isystem <snip>spack/opt/spack/cray-sles15-zen2/clang-12.0.0-rocm4.2-mpich/petsc-3.14.1-bzve7phvhb7sf6ikzmm3jwgzjwgnm4ro/include
 -O3 -DNDEBUG -fPIC -D__INSDIR__=\"\" -std=gnu++11 -MD -MT src/utils/CMakeFiles/UTILS_obj_static.dir/utils.cpp.o -MF CMakeFiles/UTILS_obj_static.dir/utils.cpp.o.d -o CMakeFiles/UTILS_obj_static.dir/utils.cpp.o -c <snip>/exago/src/utils/utils.cpp
<div>In file included from <snip>/exago/src/utils/utils.cpp:2:</div>
<div>In file included from <snip>/exago/include/common.h:8:</div>
<div>In file included from <snip>/spack/opt/spack/cray-sles15-zen2/clang-12.0.0-rocm4.2-mpich/petsc-3.14.1-bzve7phvhb7sf6ikzmm3jwgzjwgnm4ro/include/petsc.h:5:</div>
<div>In file included from <snip>/spack/opt/spack/cray-sles15-zen2/clang-12.0.0-rocm4.2-mpich/petsc-3.14.1-bzve7phvhb7sf6ikzmm3jwgzjwgnm4ro/include/petscbag.h:4:</div>
<div><snip>/spack/opt/spack/cray-sles15-zen2/clang-12.0.0-rocm4.2-mpich/petsc-3.14.1-bzve7phvhb7sf6ikzmm3jwgzjwgnm4ro/include/petscsys.h:211:6: error: "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"</div>
<div>#    error "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"</div>
<span>     ^</span><br>
</span></div>
<div><span style="font-size:12pt"><br>
</span></div>
<div><span style="font-size:12pt">I've replaced some possibly sensitive paths with text in angle brackets for a description, eg <cray-mpich prefix>.</span></div>
<div><span style="font-size:12pt"><br>
</span></div>
<div><span style="font-size:12pt">Is this a known issue? Is it apparent from this text that we're doing anything wrong?<br>
</span></div>
<div><span style="font-size:12pt"><br>
</span></div>
<div><span style="font-size:12pt">Our source may be found at this repository: <a href="https://gitlab.pnnl.gov/exasgd/frameworks/exago" id="gmail-m_7432967268146403131LPlnk" target="_blank">
https://gitlab.pnnl.gov/exasgd/frameworks/exago</a>.<br>
</span>
<div>
<div id="gmail-m_7432967268146403131LPBorder_GTaHR0cHM6Ly9naXRsYWIucG5ubC5nb3YvZXhhc2dkL2ZyYW1ld29ya3MvZXhhZ28." style="width:100%;margin-top:16px;margin-bottom:16px;max-width:800px;min-width:424px">
<table id="gmail-m_7432967268146403131LPContainer902835" role="presentation" style="padding:12px 36px 12px 12px;width:100%;border-width:1px;border-style:solid;border-color:rgb(200,200,200);border-radius:2px">
<tbody>
<tr style="border-spacing:0px" valign="top">
<td>
<div id="gmail-m_7432967268146403131LPImageContainer902835" style="margin-right:12px;height:160px;overflow:hidden">
<a id="gmail-m_7432967268146403131LPImageAnchor902835" href="https://gitlab.pnnl.gov/exasgd/frameworks/exago" target="_blank"><img id="gmail-m_7432967268146403131LPThumbnailImageId902835" alt="" style="display: block;" width="160" height="160" src="https://gitlab.pnnl.gov/assets/gitlab_logo-7ae504fe4f68fdebb3c2034e36621930cd36ea87924c11ff65dbcb8ed50dca58.png"></a></div>
</td>
<td style="width:100%">
<div id="gmail-m_7432967268146403131LPTitle902835" style="font-size:21px;font-weight:300;margin-right:8px;font-family:wf_segoe-ui_light,"Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;margin-bottom:12px">
<a id="gmail-m_7432967268146403131LPUrlAnchor902835" href="https://gitlab.pnnl.gov/exasgd/frameworks/exago" style="text-decoration:none" target="_blank">ExaSGD / Frameworks / ExaGO · GitLab</a></div>
<div id="gmail-m_7432967268146403131LPDescription902835" style="font-size:14px;max-height:100px;color:rgb(102,102,102);font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;margin-bottom:12px;margin-right:8px;overflow:hidden">
PNNL GitLab - Scientific Software Collaboration Platform</div>
<div id="gmail-m_7432967268146403131LPMetadata902835" style="font-size:14px;font-weight:400;color:rgb(166,166,166);font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif">
<a href="http://gitlab.pnnl.gov" target="_blank">gitlab.pnnl.gov</a></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;text-align:start;background-color:rgb(255,255,255)">
<span style="font-size:12pt"><br>
</span></p>
<p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;text-align:start;background-color:rgb(255,255,255)">
<span style="font-size:12pt">Cheers,</span><br>
</p>
<p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;text-align:start;background-color:rgb(255,255,255)">
<b><span style="margin:0px;font-size:11pt">Asher Mancinelli</span></b></p>
<p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;text-align:start;background-color:rgb(255,255,255)">
<span style="font-size:10pt">Research Computing</span><br>
</p>
<p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;text-align:start;background-color:rgb(255,255,255)">
<b style="font-size:11pt;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit"><span style="color:rgb(234,108,22);font-size:10pt">Pacific Northwest National Laboratory</span></b><br>
</p>
<p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;text-align:start;background-color:rgb(255,255,255)">
<br>
</p>
</div>
</div>
</div>
</div>
</div>

</blockquote></div>