<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div>
<div id="Signature">
<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="LPlnk">
https://gitlab.pnnl.gov/exasgd/frameworks/exago</a>.<br>
</span>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1">
<div id="LPBorder_GTaHR0cHM6Ly9naXRsYWIucG5ubC5nb3YvZXhhc2dkL2ZyYW1ld29ya3MvZXhhZ28." class="LPBorder902835" style="width: 100%; margin-top: 16px; margin-bottom: 16px; position: relative; max-width: 800px; min-width: 424px;">
<table id="LPContainer902835" 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="LPImageContainer902835" style="position: relative; margin-right: 12px; height: 160px; overflow: hidden;">
<a target="_blank" id="LPImageAnchor902835" href="https://gitlab.pnnl.gov/exasgd/frameworks/exago"><img id="LPThumbnailImageId902835" 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="LPTitle902835" 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 target="_blank" id="LPUrlAnchor902835" href="https://gitlab.pnnl.gov/exasgd/frameworks/exago" style="text-decoration: none; color:var(--themePrimary);">ExaSGD / Frameworks / ExaGO · GitLab</a></div>
<div id="LPDescription902835" 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="LPMetadata902835" 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;">
gitlab.pnnl.gov</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>
</body>
</html>