[petsc-users] Error in configuring PETSc with Cygwin on Windows by using MS-MPI

Barry Smith bsmith at petsc.dev
Tue Nov 11 09:29:01 CST 2025


  Where/how did you obtain /cygdrive/g/mypetsc/petsc-pkg-parmetis-45100eac9301.tar.gz ? Was it from PETSc ./configure?

    self.version          = '4.0.3'
    self.versionname      = 'PARMETIS_MAJOR_VERSION.PARMETIS_MINOR_VERSION.PARMETIS_SUBMINOR_VERSION'
    self.gitcommit         = 'v'+self.version+'-p9'
    self.download          = ['git://https://bitbucket.org/petsc/pkg-parmetis.git','https://bitbucket.org/petsc/pkg-parmetis/get/'+self.gitcommit+'.tar.gz']



> On Nov 11, 2025, at 7:35 AM, Matthew Knepley <knepley at gmail.com> wrote:
> 
> On Tue, Nov 11, 2025 at 4:44 AM 程奔 <ctchengben at mail.scut.edu.cn <mailto:ctchengben at mail.scut.edu.cn>> wrote:
>> Hello,
>> 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:
>> 1. PETSc: version 3.14.1
>> 2. VS: version 2022 
>> 3. MS MPI: download Microsoft MPI v10.1.2
>> 4. Cygwin
> 
> Quick question: Have you considered installing on WSL? I have had much better luck with that on Windows.
> 
> This seems to be an incompatibility of ParMetis Windows support and your version:
> 
> G:\VisualStudio2022\VC\Tools\MSVC\14.37.32822\include\stdint.h(37): error C2371: 'int_fast16_t': redefinition; different basic types^M
> 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'^M
> G:\VisualStudio2022\VC\Tools\MSVC\14.37.32822\include\stdint.h(41): error C2371: 'uint_fast16_t': redefinition; different basic types^M
> 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'^M
> 
>   Thanks,
> 
>      Matt
> 
>> 
>> And the compiler option in configuration is:
>> ./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-45100eac9301.tar.gz 
>> --with-strict-petscerrorcode=0 --with-64-bit-indices --download-hdf5=/cygdrive/g/mypetsc/hdf5-1.14.3-p1.tar.bz2
>> 
>> 
>> 
>> 
>> 
>> 
>> but there return an error:
>> *********************************************************************************************
>> =============================================================================================
>> =============================================================================================
>>                 Configuring PARMETIS with CMake; this may take several minutes
>> =============================================================================================
>> =============================================================================================
>>                Compiling and installing PARMETIS; this may take several minutes
>> =============================================================================================
>> 
>> 
>> *********************************************************************************************
>>            UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
>> ---------------------------------------------------------------------------------------------
>>                                Error running make on  PARMETIS
>> 
>> 
>> *********************************************************************************************
>> 
>> 
>> 
>> The configure.log is attached below.
>> 
>> So I write this email to report my problem and ask for your help.  
>> 
>> 
>> Looking forward your reply!
>> 
>> 
>> sinserely,
>> Cheng.
> 
> 
> 
> --
> What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
> -- Norbert Wiener
> 
> https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!dR4RcpHZAmunWDbmeNsF6mKarUO8DHjbwajZkjXJy-_DKnCMYIt_pdxNJd1ZnSGAKlBTYKkzGncQU7Y1GZWvVy4$  <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!dLmtriOEmUVP2A1oc3Mf52cboEA1wjKSpm11szn5VzeEqH4dEZEbvnyoNwoTWleZIFdbzRu6B635UNPR25nq$>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20251111/21a63cc5/attachment.html>


More information about the petsc-users mailing list