<div dir="ltr"><div dir="ltr">On Thu, May 15, 2025 at 9:16 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:1px solid rgb(204,204,204);padding-left:1ex"><div>
<div>
        <span style="font-size:14px">Hello,</span><br>
<span style="font-size:14px">Recently I try successfully to install PETSc with Cygwin and Visual Studio on Windows10 plateform(with external packages metis and parmetis).</span> 
</div>
<div>
        <span style="font-size:14px"><br>
</span> 
</div>
<div>
        <span>Now I want to use hdf5, so I re-configure the PETSc on the cygwin with </span><span style="font-size:14px"><span style="font-family:SimSun,宋体,STSong;font-size:14px"><span style="background-color:rgb(255,255,255);color:rgb(34,40,50);font-family:SimSun,宋体,STSong;font-size:14px">Native Microsoft/Intel Windows Compilers.</span><span style="font-family:SimSun,宋体,STSong;font-size:14px"><br>
</span></span></span><span></span> 
</div>
<div>
        <span></span> 
</div>
<div>
        <span style="font-size:14px">The softwares/packages used below:</span><br>
<span style="font-size:14px">1. PETSc: version 3.23.2</span><br>
<span style="font-size:14px">2. VS: version 2022 </span><br>
<span style="font-size:14px">3. Intel MPI: download Intel oneAPI Base Toolkit and HPC Toolkit</span><br>
<span style="font-size:14px">4. Cygwin</span><br>
<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=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<br>
        <div>
                <br>
        </div>
<span style="font-size:14px"></span> 
</div>
<div>
        <span style="font-size:14px"><br>
</span><br>
<span style="font-size:14px">However it return an error:</span>
</div>
<div>
        <span><br>
</span> <span style="font-size:14px"></span>           UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<br>
---------------------------------------------------------------------------------------------<br>
       External package zlib does not support --download-zlib with Microsoft compilers<br>
*********************************************************************************************
</div>
<div>
        <span>---------------------------------------------------------------------------------------------</span><br>
<span>       External package hdf5 </span><span>does not support --download-hdf5 with Microsoft compilers</span><br>
        <div>
                <br>
        </div>
<span style="font-size:14px"></span><br>
<span style="font-size:14px">The configure.log is attached.<br>
</span> 
        <p style="font-size:14px">
                <br>
        </p>
        <p style="font-size:14px">
                It seem that I can't use <span style="color:rgb(34,40,50);font-family:SimSun,宋体,STSong;background-color:rgb(255,255,255)">Microsoft/Intel Windows Compilers to install hdf5, and </span> 
        </p>
        <ul style="box-sizing:border-box;padding-left:2rem;margin:0.4em 1.4rem 0px;color:rgb(34,40,50);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:16px">
                <li style="box-sizing:border-box">
                        <p style="box-sizing:border-box;margin-bottom:0px;font-size:1em">
                                Libraries built with Cygwin/GNU compilers are <span style="box-sizing:border-box;font-weight:bolder;margin-bottom:0px">not</span> compatible and cannot be linked with Microsoft or Intel compilers.  <span style="font-size:14px"><span style="font-family:SimSun,宋体,STSong;font-size:14px">But I do use Intel compiler on the Visual studio. </span></span>
                        </p>
                </li>
        </ul>
        <p style="box-sizing:border-box;margin-bottom:0px;font-size:1em">
                <br>
        </p>
        <p style="font-size:14px">
                 <span style="color:rgb(34,40,50);font-family:SimSun,宋体,STSong;background-color:rgb(255,255,255)"></span>
        </p>
        <p style="font-size:14px">
                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.  </p></div></div></blockquote><div>1. You can build under WSL2, which is what I would recommend.</div><div><br></div><div>2. If you really want to use Windows compilers, you will have to build HDF5 yourself.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>
<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><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!YEvzHiQxBu4jH7P_5mh66tM7zYwZp9qXzbyMwybgRUfsrNT9wBHxgW8-2A69zpap_nYgRiP51tb3JhXaZZIN$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>