[petsc-users] Error in configuring HDF5 with Cygwin on Windows by using Intel MPI
程奔
ctchengben at mail.scut.edu.cn
Thu May 15 08:15:36 CDT 2025
Hello,
Recently I try successfully to install PETSc with Cygwin and Visual Studio on Windows10 plateform(with external packages metis and parmetis).
Now I want to use hdf5, so I re-configure the PETSc on the cygwin with Native Microsoft/Intel Windows Compilers.
The softwares/packages used below:
1. PETSc: version 3.23.2
2. VS: version 2022
3. Intel MPI: download Intel oneAPI Base Toolkit and HPC Toolkit
4. Cygwin
And the compiler option in configuration is:
./configure --with-debugging=0 --with-cc=cl --with-fc=ifort --with-cxx=cl --with-blaslapack-lib=-L/cygdrive/g/Intel/oneAPI/mkl/2023.2.0/lib/intel64 mkl-intel-lp64-dll.lib mkl-sequential-dll.lib mkl-core-dll.lib --download-fblaslapack=/cygdrive/g/mypetsc/petsc-pkg-fblaslapack-e8a03f57d64c.tar.gz --with-mpi-include=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/include --with-mpi-lib=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/lib/release/impi.lib --with-mpiexec=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/bin/mpiexec -localonly --download-metis=/cygdrive/g/mypetsc/petsc-pkg-metis-8b194fdf0966.tar.gz --download-parmetis=/cygdrive/g/mypetsc/petsc-pkg-parmetis-f5e3aab04fd5.tar.gz --with-strict-petscerrorcode=0 --with-64-bit-indices --download-hdf5=/cygdrive/g/mypetsc/hdf5-1.14.3-p1.tar.bz2 --download-zlib=/cygdrive/g/mypetsc/zlib-1.3.1.tar.gz
However it return an error:
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
---------------------------------------------------------------------------------------------
External package zlib does not support --download-zlib with Microsoft compilers
*********************************************************************************************
---------------------------------------------------------------------------------------------
External package hdf5 does not support --download-hdf5 with Microsoft compilers
The configure.log is attached.
It seem that I can't use Microsoft/Intel Windows Compilers to install hdf5, and
Libraries built with Cygwin/GNU compilers are not compatible and cannot be linked with Microsoft or Intel compilers. But I do use Intel compiler on the Visual studio.
So I wrrit this email to report my problem and ask for your help that how can I use PETSc with hdf5 on the Windows.
Looking forward your reply!
sinserely,
Cheng.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250515/3a533458/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: configure.log
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250515/3a533458/attachment-0001.ksh>
More information about the petsc-users
mailing list