<div dir="ltr"><div dir="ltr">On Tue, Nov 11, 2025 at 4:44 AM 程奔 <<a href="mailto:ctchengben@mail.scut.edu.cn">ctchengben@mail.scut.edu.cn</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<div style="font-size:14px">
        <span style="font-size:14px">Hello,</span><br>
<span style="font-size:14px">Recently I try to install PETSc with Cygwin since I'd like to use PETSc with Visual Studio on Windows10 plateform.For the sake of clarity, I firstly list the softwares/packages used below:</span><br>
<span style="font-size:14px">1. PETSc: version 3.14.1</span><br>
<span style="font-size:14px">2. VS: version 2022 </span><br>
<span style="font-size:14px">3. MS MPI: download <span>Microsoft MPI v10.1.2</span></span><br>
<span style="font-size:14px">4. Cygwin</span></div></div></blockquote><div><br></div><div>Quick question: Have you considered installing on WSL? I have had much better luck with that on Windows.</div><div><br></div><div>This seems to be an incompatibility of ParMetis Windows support and your version:</div><div><br></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">G:\VisualStudio2022\VC\Tools\MSVC\14.37.32822\include\stdint.h(37): error C2371: 'int_fast16_t': redefinition; different basic types</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">^M</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">G:\mypetsc\petsc-3.24.1\arch-mswin-c-opt\externalpackages\petsc-pkg-parmetis-f5e3aab04fd5\headers\ms_stdint.h(80): note: see declaration of 'int_fast16_t'</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">^M</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">G:\VisualStudio2022\VC\Tools\MSVC\14.37.32822\include\stdint.h(41): error C2371: 'uint_fast16_t': redefinition; different basic types</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">^M</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">G:\mypetsc\petsc-3.24.1\arch-mswin-c-opt\externalpackages\petsc-pkg-parmetis-f5e3aab04fd5\headers\ms_stdint.h(84): note: see declaration of 'uint_fast16_t'</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">^M</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">  Thanks,</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">     Matt</span></p></div><div><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><div style="font-size:14px"><br>
<span style="font-size:14px">And the compiler option in configuration is:</span><br>
<span style="font-size:14px"></span>./configure --with-debugging=0 --with-cc=cl --with-fc=0 --with-cxx=cl 
</div>
<div style="font-size:14px">
        --download-f2cblaslapack=/cygdrive/g/mypetsc/f2cblaslapack-3.8.0.q2.tar.gz 
</div>
<div style="font-size:14px">
        --with-mpi-include=\[/cygdrive/g/MSmpi/MicrosoftSDKs/Include,/cygdrive/g/MSmpi/MicrosoftSDKs/Include/x64\] 
</div>
<div style="font-size:14px">
        --with-mpi-lib=\[/cygdrive/g/MSmpi/MicrosoftSDKs/Lib/x64/msmpifec.lib,/cygdrive/g/MSmpi/MicrosoftSDKs/Lib/x64/msmpi.lib\] 
</div>
<div style="font-size:14px">
        --with-mpiexec=/cygdrive/g/MSmpi/MicrosoftMPI/Bin/mpiexec 
</div>
<div style="font-size:14px">
        --download-metis=/cygdrive/g/mypetsc/petsc-pkg-metis-69fb26dd0428.tar.gz 
</div>
<div style="font-size:14px">
        --download-parmetis=/cygdrive/g/mypetsc/petsc-pkg-parmetis-45100eac9301.tar.gz 
</div>
<div style="font-size:14px">
        --with-strict-petscerrorcode=0 --with-64-bit-indices --download-hdf5=/cygdrive/g/mypetsc/hdf5-1.14.3-p1.tar.bz2<br>
        <div>
                <br>
        </div>
<span style="font-size:14px"></span><br>
<span style="font-size:14px"><br>
</span><br>
<span style="font-size:14px"><br>
</span><br>
<span style="font-size:14px">but there return an error:</span><br>
<span style="font-size:14px">*********************************************************************************************</span><br>
<span style="font-size:14px"></span><span>=============================================================================================</span><br>
<span>=============================================================================================</span><br>
<span>                Configuring PARMETIS with CMake; this may take several minutes</span><br>
<span>=============================================================================================</span><br>
<span>=============================================================================================</span><br>
<span>               Compiling and installing PARMETIS; this may take several minutes</span><br>
<span>=============================================================================================</span><br>
<span><br>
</span><br>
<span>*********************************************************************************************</span><br>
<span>           UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):</span><br>
<span>---------------------------------------------------------------------------------------------</span><br>
<span>                               Error running make on  PARMETIS</span><br>
        <div style="font-size:14px;white-space:nowrap">
                <br>
        </div>
<span style="font-size:14px"></span><br>
<span style="font-size:14px">*********************************************************************************************</span><br>
<span style="font-size:14px"><br>
</span> 
        <p style="font-size:14px">
                <br>
        </p>
        <p style="font-size:14px">
                The configure.log is attached below.
        </p>
        <p style="font-size:14px">
                So I write this email to report my problem and ask for your help.  
        </p>
<br>
<span style="font-size:14px">Looking forward your reply!</span><br>
<span style="font-size:14px"><br>
</span><br>
<span style="font-size:14px">sinserely,</span><br>
<span style="font-size:14px">Cheng.</span><br>
<span style="font-size:16px"></span> 
</div></div></blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!dLmtriOEmUVP2A1oc3Mf52cboEA1wjKSpm11szn5VzeEqH4dEZEbvnyoNwoTWleZIFdbzRu6B635UNPR25nq$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>