<div dir="ltr">Thanks for your reply.<br><br>After I added '--with-shared-libraries=0', the configuration stage passed and now it is executing the 'make' command!<div><br></div><div>Thanks very much</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 6, 2021 at 5:21 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@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">>>><br>
Executing: /home/LiNin/petsc-3.16.1/lib/petsc/bin/win32fe/win32fe ifort  -o /cygdrive/c/Users/LiNin/AppData/Local/Temp/petsc-5ly209eh/config.libraries/conftest.exe    -MD -O3 -fpp /cygdrive/c/Users/LiNin/AppData/Local/Temp/petsc-5ly209eh/config.libraries/conftest.o  /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ SDKs/MPI/Lib/x64/msmpi.lib /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ SDKs/MPI/Lib/x64/msmpifec.lib Ws2_32.lib<br>
stdout: LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library<br>
<<<<br>
<br>
I'm not sure why this link command is giving this error. Can you retry with '--with-shared-libraries=0'?<br>
<br>
Satish<br>
<br>
<br>
On Mon, 6 Dec 2021, Ning Li wrote:<br>
<br>
> Howdy,<br>
> <br>
> I am trying to install PETSc on windows with cygwin but got an mpi error.<br>
> Could you have a look at my issue and give me some instructions?<br>
> <br>
> Here is the information about my environment:<br>
> 1. operation system: windows 11<br>
> 2. visual studio version: 2019<br>
> 3. intel one API toolkit is installed<br>
> 4. Microsoft MS MPI is installed.<br>
> 5. Intel MPI is uninstalled.<br>
> 6. PETSc version: 3.16.1<br>
> <br>
> this is my configuration:<br>
> ./configure --with-cc='win32fe cl' --with-fc='win32fe ifort'<br>
> --prefix=~/petsc-opt/ --PETSC_ARCH=windows-intel-opt<br>
> --with-mpi-include=['/cygdrive/c/Program Files (x86)/Microsoft<br>
> SDKs/MPI/Include','/cygdrive/c/Program Files (x86)/Microsoft<br>
> SDKs/MPI/Include/x64'] --with-mpi-lib=['/cygdrive/c/Program Files<br>
> (x86)/Microsoft SDKs/MPI/Lib/x64/msmpi.lib','/cygdrive/c/Program Files<br>
> (x86)/Microsoft SDKs/MPI/Lib/x64/msmpifec.lib']<br>
> --with-blas-lapack-lib=['/cygdrive/c/Program Files<br>
> (x86)/Intel/oneAPI/mkl/2021.3.0/lib/intel64/mkl_intel_lp64.lib','/cygdrive/c/Program<br>
> Files<br>
> (x86)/Intel/oneAPI/mkl/2021.3.0/lib/intel64/mkl_core.lib','/cygdrive/c/Program<br>
> Files (x86)/Intel/oneAPI/mkl/2021.3.0/lib/intel64/mkl_sequential.lib']<br>
> --with-scalapack-include='/cygdrive/c/Program Files<br>
> (x86)/Intel/oneAPI/mkl/2021.3.0/include'<br>
> --with-scalapack-lib=['/cygdrive/c/Program Files<br>
> (x86)/Intel/oneAPI/mkl/2021.3.0/lib/intel64/mkl_scalapack_lp64.lib','/cygdrive/c/Program<br>
> Files<br>
> (x86)/Intel/oneAPI/mkl/2021.3.0/lib/intel64/mkl_blacs_msmpi_lp64.lib']<br>
> --with-fortran-interfaces=1 --with-debugging=0<br>
> <br>
> attached is the configure.log file.<br>
> <br>
> Thanks<br>
> <br>
> Ning Li<br>
> <br>
<br>
</blockquote></div>