<div dir="ltr">

















<pre style="margin:0cm 0cm 0.0001pt;font-size:10pt;font-family:"Courier New"">Hi,<span></span></pre><pre style="margin:0cm 0cm 0.0001pt;font-size:10pt;font-family:"Courier New""><span> </span></pre><pre style="margin:0cm 0cm 0.0001pt;font-size:10pt;font-family:"Courier New"">I failed to configue PETSc on Windows with latest Intel OneAPI toolkit:<span></span></pre><pre style="margin:0cm 0cm 0.0001pt;font-size:10pt;font-family:"Courier New""><span> </span></pre><pre style="margin:0cm 0cm 0.0001pt;font-size:10pt;font-family:"Courier New"">./configure --with-cc="win32fe cl" --with-cxx="win32fe cl" --with-fc=0 \<span></span></pre><pre style="margin:0cm 0cm 0.0001pt;font-size:10pt;font-family:"Courier New"">        --with-debugging=0 --with-shared-libraries=0 --with-x=0 --with-quad-precision=0 \<span></span></pre><pre style="margin:0cm 0cm 0.0001pt;font-size:10pt;font-family:"Courier New"">        --with-threadcomm=1 --with-openmp=1 \<span></span></pre><pre style="margin:0cm 0cm 0.0001pt;font-size:10pt;font-family:"Courier New"">        --with-blaslapack-include="$MKLROOT/include" \<span></span></pre><pre style="margin:0cm 0cm 0.0001pt;font-size:10pt;font-family:"Courier New"">        --with-blaslapack-lib="-L$MKLROOT/lib/intel64 mkl_core.lib mkl_intel_thread.lib mkl_intel_lp64.lib libiomp5md.lib" \<span></span></pre><pre style="margin:0cm 0cm 0.0001pt;font-size:10pt;font-family:"Courier New"">        --with-mpi-include="$I_MPI_ROOT/include" \<span></span></pre><pre style="margin:0cm 0cm 0.0001pt;font-size:10pt;font-family:"Courier New"">        --with-mpi-lib="-L$I_MPI_ROOT/lib/release impi.lib" \<span></span></pre><pre style="margin:0cm 0cm 0.0001pt;font-size:10pt;font-family:"Courier New"">        --with-mpiexec="$I_MPI_ROOT/bin/mpiexec" \<span></span></pre><pre style="margin:0cm 0cm 0.0001pt;font-size:10pt;font-family:"Courier New"">        --ignore-cygwin-link<span></span></pre>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span><span> </span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>However, the configuration was successful
with Intel OneAPI 2022.1.0.93 or previous version.<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span><span> </span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>Error message:<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span><span> </span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>=============================================================================================<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>                        
Configuring PETSc to compile on your system<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>=============================================================================================<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>=============================================================================================<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>                                    
***** WARNING *****<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>  Using default optimization C flags
"-O". You might consider manually setting optimal<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>  optimization flags for your system
with COPTFLAGS="optimization flags" see<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>  config/examples/arch-*-opt.py for
examples<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>=============================================================================================<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>=============================================================================================<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>                      
              *****
WARNING *****<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>  Using default Cxx optimization
flags "-O". You might consider manually setting optimal<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>  optimization flags for your system
with CXXOPTFLAGS="optimization flags" see<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>  config/examples/arch-*-opt.py for
examples<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>=============================================================================================<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>TESTING: checkCxxLibraries from
config.compilers(config/BuildSystem/config/compilers.py:450)<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>*********************************************************************************************<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>          
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>---------------------------------------------------------------------------------------------<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>  Cxx libraries cannot directly be
used with C as linker.<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>  If you don't need the C++ compiler
to build external packages or for you application you<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>  can run<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>  ./configure with --with-cxx=0.
Otherwise you need a different combination of C and C++<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>  compilers<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>*********************************************************************************************<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span><span> </span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>makefile:24:
/cygdrive/e/petsc-v3.19.2/arch-mswin-c-opt/lib/petsc/conf/petscrules: No such
file or directory<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>make[1]: *** No rule to make target
'/cygdrive/e/petsc-v3.19.2/arch-mswin-c-opt/lib/petsc/conf/petscrules'. 
Stop.<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>gmakefile:67: arch-mswin-c-opt/lib/petsc/conf/files:
No such file or directory<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>make: *** [GNUmakefile:17:
/cygdrive/e/petsc-v3.19.2/arch-mswin-c-opt/include/petscconf.h] Error 2<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>makefile:24:
/cygdrive/e/petsc-v3.19.2/arch-mswin-c-opt/lib/petsc/conf/petscrules: No such
file or directory<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>make[1]: *** No rule to make target
'/cygdrive/e/petsc-v3.19.2/arch-mswin-c-opt/lib/petsc/conf/petscrules'. 
Stop.<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>/cygdrive/e/petsc-v3.19.2/lib/petsc/conf/variables:140:
/cygdrive/e/petsc-v3.19.2/arch-mswin-c-opt/lib/petsc/conf/petscvariables: No
such file or directory<span></span></span></p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:"Calibri",sans-serif"><span>make: *** [GNUmakefile:17:
/cygdrive/e/petsc-v3.19.2/arch-mswin-c-opt/lib/petsc/conf/petscvariables] Error
2<span></span></span></p>





</div>