<html><head></head><body><div class="ydp25018da2yahoo-style-wrap" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px;"><div>Hello,</div></div><div class="ydp7a249421yahoo_quoted" id="ydp7a249421yahoo_quoted_5655608314"><div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;"><div><div id="ydp7a249421yiv4153437756"><div><div class="ydp7a249421yiv4153437756WordSection1"> 
<p class="ydp7a249421yiv4153437756MsoNormal">I am trying to build Petsc-3.4.2 in my Windows-10 workstation using Cygwin, with Intel-2018 compilers and MKL, and MPICH2. The configuration/compilation/installation seem to finish without problem, but test program (ex19) failed since it
 could not find a shared lib. Then I linked the libpetsc.lib with my program (in Fortran-90), but it got run time crash when it calls KSPSetPCSide(ksp_solver,PC_RIGHT,ierr) or other Petsc subroutines. Note that this package was built, tested and worked well with the same Fortran-90 program in my Windows-7 workstation. </p> 
<p class="ydp7a249421yiv4153437756MsoNormal">Also tried Petsc-3.12.4 but got the same errors.</p> 
<p class="ydp7a249421yiv4153437756MsoNormal">The following is my configuration:<br></p> 
<p class="ydp7a249421yiv4153437756MsoNormal">===============</p> 
<div>
<p class="ydp7a249421yiv4153437756MsoNormal" style="margin-left:.25in;"><span style="font-size:12.0pt;font-family:New serif;">./configure --with-cc='win32fe icl' --with-fc='win32fe ifort' --with-cxx='win32fe icl' --with-petsc-arch="</span><span style="font-size:12.0pt;">arch-win64-release</span><span style="font-size:12.0pt;font-family:New serif;">"
 --prefix=/cygdrive/c/cygwin_cache/petsc-3.4.2-release-win-64bit --with-blas-lapack-dir="/cygdrive/c/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018.5.274/windows/mkl/lib/intel64" --with-mpi-dir="/cygdrive/c/Program Files/mpich2x64" --with-debugging=0
 --</span><span style="font-size:12.0pt;">useThreads=0 </span><span style="font-size:12.0pt;font-family:New serif;">--with-x=0 --with-x11=0 --with-xt=0 --with-shared-libraries=0</span></p> 
</div>
<p class="ydp7a249421yiv4153437756MsoNormal">===============<br></p> 
<p class="ydp7a249421yiv4153437756MsoNormal">The error message of running ex19 is:<br></p> 
<p class="ydp7a249421yiv4153437756MsoNormal">=================</p> 
<p class="ydp7a249421yiv4153437756MsoNormal">$ make PETSC_DIR=/cygdrive/c/cygwin_cache/petsc-3.4.2-debug-win-64bit test</p> 
<p class="ydp7a249421yiv4153437756MsoNormal">Running test examples to verify correct installation</p> 
<p class="ydp7a249421yiv4153437756MsoNormal">Using PETSC_DIR=/cygdrive/c/cygwin_cache/petsc-3.4.2-debug-win-64bit and PETSC_ARCH=arch-win64-debug</p> 
<p class="ydp7a249421yiv4153437756MsoNormal">Possible error running C/C++ src/snes/examples/tutorials/ex19 with 1 MPI process</p> 
<p class="ydp7a249421yiv4153437756MsoNormal">See http://www.mcs.anl.gov/petsc/documentation/faq.html</p> 
<p class="ydp7a249421yiv4153437756MsoNormal">C:/Program Files/mpich2x64/bin/mpiexec.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory</p> 
<p class="ydp7a249421yiv4153437756MsoNormal">=================<br></p> 
<p class="ydp7a249421yiv4153437756MsoNormal"><span lang="EN-GB" style="color:black;">Thanks a lot for any suggestions.</span><br></p> 
<p class="ydp7a249421yiv4153437756MsoNormal"><span lang="EN-GB" style="color:black;">Best Regards,</span></p> 
<p class="ydp7a249421yiv4153437756MsoNormal"><span lang="EN-GB" style="color:black;">Qin</span></p> 
<p class="ydp7a249421yiv4153437756MsoNormal">  </p> 
<p class="ydp7a249421yiv4153437756MsoNormal">  </p> 
</div>
</div>
</div></div>
            </div>
        </div></body></html>