<html aria-label="message body"><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>G:\VisualStudio2022\VC\Tools\MSVC\14.37.32822\include\stdint.h(37): error C2371: 'int_fast16_t': redefinition; different basic types</div><div>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'</div><div>G:\VisualStudio2022\VC\Tools\MSVC\14.37.32822\include\stdint.h(41): error C2371: 'uint_fast16_t': redefinition; different basic types</div><div>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'</div><div>G:\VisualStudio2022\VC\Tools\MSVC\14.37.32822\include\stdint.h(49): warning C4005: 'INT8_MIN': macro redefinition</div><div>G:\mypetsc\petsc-3.24.1\arch-mswin-c-opt\externalpackages\petsc-pkg-parmetis-f5e3aab04fd5\headers\ms_stdint.h(107): note: see previous definition of 'INT8_MIN'</div><div><br></div><div>Parmetis has its own definitions for many C standard types, etc in headers\ms_stdint.h that duplicate what is available in stdint.h on Unix systems. Normally, this gets included when __MSC_ is defined instead of stdint.h (in gk_arch.h).</div><div><br></div><div>But for some reason, with your system it appears that Microsoft's stdint.h is also getting included; presumably brought in through some other system include file since it is only included in one place.</div><div><br></div><div><div>$ git grep stdint.h</div><div>headers/gk_arch.h:  #include "ms_stdint.h"</div><div>headers/gk_arch.h:  #include <stdint.h></div><div>headers/ms_inttypes.h:#include "ms_stdint.h"</div><div>headers/ms_stdint.h:// ISO C9x  compliant stdint.h for Microsoft Visual Studio</div></div><div><br></div><div>You have a fairly old VisualStudio, 2022. Can you upgrade to the latest? Let us know if this resolves the problem.</div><div><br></div><div>Barry</div><div><br></div><div><br></div><div><br></div><div><br></div><div> <br><br></div><div><br></div><div><br></div><div><br></div><div><br><blockquote type="cite"><div>On Nov 12, 2025, at 5:29 AM, 程奔 <202321009113@mail.scut.edu.cn> wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div class="default-font-1762943396356" style="font-size: 14px; font-family: 宋体, arial, Verdana, sans-serif; caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><p style="margin: 0px 0px 14px; font-size: 14px;">Hi Barry</p><p style="margin: 0px 0px 14px; font-size: 14px;">Thanks for your reply.</p><p style="margin: 0px 0px 14px; font-size: 14px;">I check the package <span style="text-wrap-mode: wrap;">parmetis</span>,and the "<span style="text-wrap-mode: wrap;">petsc-pkg-parmetis-45100eac9301.tar.gz"</span><span class="Apple-converted-space"> </span>is form <span style="text-wrap-mode: wrap;"><a href="https://urldefense.us/v3/__https://bitbucket.org/petsc/pkg-parmetis/get/v4.0.3.tar.gz__;!!G_uCfscf7eWS!anttFLuihC7sv3xitFbNls4Ab1QfxVAGNr1EttbSarqqFMdkXJIg9_aN1RakIYDBWqtKJJM8jYn3SxcuaKW6S2Q$">https://bitbucket.org/petsc/pkg-parmetis/get/v4.0.3.tar.gz</a>. So I made a mistake about the package.</span></p><p style="margin: 0px 0px 14px; font-size: 14px;">Then I download the package form<span class="Apple-converted-space"> </span><span style="text-wrap-mode: wrap;"><a href="https://urldefense.us/v3/__https://bitbucket.org/petsc/pkg-parmetis/get/v4.0.3-p9.tar.gz__;!!G_uCfscf7eWS!anttFLuihC7sv3xitFbNls4Ab1QfxVAGNr1EttbSarqqFMdkXJIg9_aN1RakIYDBWqtKJJM8jYn3SxcuBzzHK7w$">https://bitbucket.org/petsc/pkg-parmetis/get/v4.0.3-p9</a></span><span style="text-wrap-mode: wrap;"><a href="https://urldefense.us/v3/__https://bitbucket.org/petsc/pkg-parmetis/get/v4.0.3-p9.tar.gz__;!!G_uCfscf7eWS!anttFLuihC7sv3xitFbNls4Ab1QfxVAGNr1EttbSarqqFMdkXJIg9_aN1RakIYDBWqtKJJM8jYn3SxcuBzzHK7w$">.tar.gz</a><span class="Apple-converted-space"> </span>and it is "<span style="text-wrap-mode: nowrap;">petsc-pkg-parmetis-f5e3aab04fd5.tar.gz" </span></span></p><p style="margin: 0px 0px 14px; font-size: 14px;"><span style="text-wrap-mode: wrap;"><span style="text-wrap-mode: nowrap;"><br></span></span></p><div style="margin: 0px 0px 14px; font-size: 14px;"><span style="text-wrap-mode: wrap;"><span style="text-wrap-mode: nowrap;"></span></span><br class="webkit-block-placeholder"></div><div class="default-font-1699420820908" style="text-wrap-mode: wrap;"><span style="text-wrap: nowrap;">Then the compiler option in configuration is:</span><span style="text-wrap-mode: nowrap;"></span><br></div><p style="margin: 0px 0px 14px; font-size: 14px;">./configure --with-debugging=0 --with-cc=cl --with-fc=0 --with-cxx=cl --download-f2cblaslapack=/cygdrive/g/mypetsc/f2cblaslapack-3.8.0.q2.tar.gz --with-mpi-include=\[/cygdrive/g/MSmpi/MicrosoftSDKs/Include,/cygdrive/g/MSmpi/MicrosoftSDKs/Include/x64\] --with-mpi-lib=\[/cygdrive/g/MSmpi/MicrosoftSDKs/Lib/x64/msmpifec.lib,/cygdrive/g/MSmpi/MicrosoftSDKs/Lib/x64/msmpi.lib\] --with-mpiexec=/cygdrive/g/MSmpi/MicrosoftMPI/Bin/mpiexec --download-metis=/cygdrive/g/mypetsc/petsc-pkg-metis-69fb26dd0428.tar.gz --download-parmetis=/cygdrive/g/mypetsc/petsc-pkg-parmetis-f5e3aab04fd5.tar.gz --with-strict-petscerrorcode=0 --with-64-bit-indices<br></p><div><br></div><p style="margin: 0px 0px 14px; font-size: 14px;"><span style="text-wrap-mode: wrap;"><span style="text-wrap-style: initial;">but it still have the same error:</span><br style="text-wrap-mode: wrap;"><span style="text-wrap-style: initial;">*********************************************************************************************</span><br style="text-wrap-mode: wrap;"><span style="text-wrap-style: initial;"></span>=============================================================================================<br style="text-wrap-mode: wrap;">=============================================================================================<br style="text-wrap-mode: wrap;">                Configuring PARMETIS with CMake; this may take several minutes<br style="text-wrap-mode: wrap;">=============================================================================================<br style="text-wrap-mode: wrap;">=============================================================================================<br style="text-wrap-mode: wrap;">               Compiling and installing PARMETIS; this may take several minutes<br style="text-wrap-mode: wrap;">=============================================================================================<br style="text-wrap-mode: wrap;"><br><br style="text-wrap-mode: wrap;">*********************************************************************************************<br style="text-wrap-mode: wrap;">           UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<br style="text-wrap-mode: wrap;">---------------------------------------------------------------------------------------------<br style="text-wrap-mode: wrap;">                               Error running make on  PARMETIS<br style="text-wrap-mode: wrap;"></span></p><div><br></div><p style="margin: 0px 0px 14px;"><span style="text-wrap-style: initial;"></span><br style="text-wrap-mode: wrap;"><span style="text-wrap-style: initial;">*********************************************************************************************</span></p><p style="margin: 0px 0px 14px;"><span style="text-wrap-style: initial;"><br></span></p><div style="margin: 0px 0px 14px;"><span style="text-wrap-style: initial;"></span><br class="webkit-block-placeholder"></div><p style="margin: 0px 0px 14px; text-wrap-mode: wrap;">The new configure.log is attached below.</p><p style="margin: 0px 0px 14px; text-wrap-mode: wrap;">So I ask for your help again.  </p><p style="margin: 0px 0px 14px;"><br style="text-wrap-mode: wrap;"><span style="text-wrap-style: initial;">Looking forward your reply!</span><br style="text-wrap-mode: wrap;"><span style="text-wrap-style: initial;"><br></span><br style="text-wrap-mode: wrap;"><span style="text-wrap-style: initial;">sinserely,</span><br style="text-wrap-mode: wrap;"><span style="text-wrap-style: initial;">Cheng.</span></p><p style="margin: 0px 0px 14px;"><span style="text-wrap-style: initial;"><br></span><br></p><p style="margin: 0px 0px 14px; font-size: 14px;"><span style="text-wrap-mode: wrap;"></span><br></p><br><br><blockquote name="replyContent" class="ReferenceQuote" style="font-size: 14px; padding-left: 5px; margin-left: 5px; border-left-width: 2px; border-left-style: solid; border-left-color: rgb(182, 182, 182); margin-right: 0px;">-----原始邮件-----<br><b>发件人:</b><span class="Apple-converted-space"> </span><span id="rc_from">"Barry Smith" <bsmith@petsc.dev></span><br><b>发送时间:</b><span class="Apple-converted-space"> </span><span id="rc_senttime">2025-11-11 23:29:01 (星期二)</span><br><b>收件人:</b><span class="Apple-converted-space"> </span>"Matthew Knepley" <knepley@gmail.com><br><b>抄送:</b><span class="Apple-converted-space"> </span>程奔 <ctchengben@mail.scut.edu.cn>, petsc-users@mcs.anl.gov<br><b>主题:</b><span class="Apple-converted-space"> </span>Re: [petsc-users] Error in configuring PETSc with Cygwin on Windows by using MS-MPI<br><br><div aria-label="message body"><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><br></div>  Where/how did you obtain <span style="font-size: 14px;">/cygdrive/g/mypetsc/petsc-pkg-parmetis-45100eac9301.tar.gz ? Was it from PETSc ./configure?</span><div><span style="font-size: 14px;"><br></span></div><div><div>    self.version          = '4.0.3'</div><div>    self.versionname      = 'PARMETIS_MAJOR_VERSION.PARMETIS_MINOR_VERSION.PARMETIS_SUBMINOR_VERSION'</div><div>    self.gitcommit         = 'v'+self.version+'-p9'</div><div>    self.download          = ['git://https://bitbucket.org/petsc/pkg-parmetis.git','https://bitbucket.org/petsc/pkg-parmetis/get/'+self.gitcommit+'.tar.gz']</div><div><br></div><div><br></div><div><br><blockquote type="cite"><div>On Nov 11, 2025, at 7:35 AM, Matthew Knepley <knepley@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><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-width: 1px; border-left-style: solid; border-left-color: 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><div 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-width: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><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></div><div 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-width: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><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></div><div 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-width: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><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></div><div 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-width: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><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><span class="Apple-converted-space"> </span></div><div 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-width: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="gmail-s2" style="font-variant-ligatures: no-common-ligatures; color: rgb(64, 11, 217);"><br></span></div><div 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-width: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="gmail-s2" style="font-variant-ligatures: no-common-ligatures; color: rgb(64, 11, 217);">  Thanks,</span></div><div 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-width: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="gmail-s2" style="font-variant-ligatures: no-common-ligatures; color: rgb(64, 11, 217);"><br></span></div><div 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-width: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="gmail-s2" style="font-variant-ligatures: no-common-ligatures; color: rgb(64, 11, 217);">     Matt</span></div></div><div><br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: 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="margin: 0px 0px 14px; font-size: 14px;"><br></p><p style="margin: 0px 0px 14px; font-size: 14px;">The configure.log is attached below.</p><p style="margin: 0px 0px 14px; 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 class="Apple-converted-space"> </span></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></div></blockquote></div><br></div></div></div></blockquote></div></div></blockquote></div></body></html>