[petsc-users] install PETSc on windows

Satish Balay balay at mcs.anl.gov
Mon Dec 6 18:59:08 CST 2021


Glad it worked. Thanks for the update.

Satish

On Mon, 6 Dec 2021, Ning Li wrote:

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



More information about the petsc-users mailing list