<div><font>Hi,</font></div><div><font><br></font></div><div><font>VS2022 really sovled this error and there is no more error with the compiler, this is a good news!</font></div><div><font><br></font></div><div><font>However, a new problem comes with the link option for MS-MPI (since MPICH2 doesn't work):</font></div><div><font><br></font></div><div><font>I've made reference to PETSc website and downloaded MS-MPI in directory D:\MicrosoftMPI and D:\MicrosoftSDKs to avoid space (by the way, method on https://petsc.org/release/install/windows/ which use shortname for a path is not useful anymore for win10 because shortname doesn't exist, see [1]). I have no idea if my tying format is not correct since the PETSc website doesn't show the coding for two include directories. Below is my typing:</font></div><div><font><br></font></div><div><font>./configure --with-cc='win32fe cl' --with-fc=0 --with-cxx='win32fe cl' --with-shared-libraries=0 --with-mpi-include='[/cygdrive/d/MicrosoftSDKs/MPI/Include,/cygdrive/d/MicrosoftSDKs/MPI/Include/x64]' --with-mpi-lib=-L"/cygdrive/d/MicrosoftSDKs/MPI/Lib/x64 msmpifec.lib msmpi.lib" --with-mpiexec="/cygdrive/d/MicrosoftMPI/Bin/mpiexec"</font></div><div><font><br></font></div><div><font>This ends up with the error information:</font></div><div><font><br></font></div><div><font><div>--with-mpi-lib=['-L/cygdrive/d/MicrosoftSDKs/MPI/Lib/x64', 'msmpifec.lib', 'msmpi.lib'] and</div><div>--with-mpi-include=['/cygdrive/d/MicrosoftSDKs/MPI/Include', '/cygdrive/d/MicrosoftSDKs/MPI/Include/x64'] did not work</div><div><br></div><div>This may not be a very delicacy problem? And I am voluntary to make a summary about this installation once it succeed.</div><div><br></div><div>Sorry for always bother with problem,</div><div>FENG</div></font></div><div><font><br></font></div><div><font>[1] https://superuser.com/questions/348079/how-can-i-find-the-short-path-of-a-windows-directory-file</font></div><div><includetail><div> </div><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Satish Balay"<balay@mcs.anl.gov>;</div><div><b>Date: </b> Fri, Mar 3, 2023 12:12 PM</div><div><b>To: </b> "Barry Smith"<bsmith@petsc.dev>; <wbr></div><div><b>Cc: </b> "冯上玮"<fengshw3@mail2.sysu.edu.cn>; "petsc-users"<petsc-users@mcs.anl.gov>; <wbr></div><div><b>Subject: </b> Re: [petsc-users] Error in configuring PETSc with Cygwin</div></div><div> </div><div style="position:relative;"><div id="tmpcontent_res"></div>Perhaps the compilers are installed without english - so we can't read the error messages. <br><br>>      x64    Microsoft (R) C/C++  Ż        19.29.30147   <br><br>We test with:<br><br>Microsoft (R) C/C++ Optimizing Compiler Version 19.32.31329 for x64<br><br>I guess that's VS2019 vs VS2022?<br><br>You can try using --with-cxx=0 and see if that works.<br><br>Satish<br><br>On Thu, 2 Mar 2023, Barry Smith wrote:<br><br>> <br>>    The compiler is burping out some warning message which confuses configure into thinking there is a problem. <br>> <br>> cl:        warning D9035 :  experimental:preprocessor  ѡ   ѷ         ڽ    İ汾   Ƴ <br>> cl:        warning D9036 :ʹ á Zc:preprocessor      ʹ á experimental:preprocessor  <br>> cl:        warning D9002 :    δ֪ѡ -Qwd10161  :<br>> <br>> Any chance you can use a more recent version of VS. If not, we'll need to send you a file for the warning message.<br>> <br>> <br>> <br>> > On Mar 2, 2023, at 9:12 PM, 冯上玮 <fengshw3@mail2.sysu.edu.cn> wrote:<br>> > <br>> > Hi, <br>> > <br>> > This time I try with ./configure --with-cc='win32fe cl' --with-fc=0 --with-cxx='win32fe cl' --download-f2cblaslapack, without fortran may have no problem in consideration that other libs will be used are CGNS and METIS.<br>> > <br>> > Unfortunately, however, another error appeared as:<br>> > <br>> > Cxx libraries cannot directly be used with C as linker.<br>> > If you don't need the C++ compiler to build external packages or for you application you can run<br>> > ./configure with --with-cxx=0. Otherwise you need a different combination of C and C++ compilers<br>> >  <br>> >  The attachment is the log file, but some parts are unreadable. <br>> > <br>> > Thanks for your continuous aid!<br>> > ------------------ Original ------------------<br>> > From:  "Satish Balay"<balay@mcs.anl.gov>;<br>> > Date:  Fri, Mar 3, 2023 02:13 AM<br>> > To:  "冯上玮"<fengshw3@mail2.sysu.edu.cn>;<br>> > Cc:  "petsc-users"<petsc-users@mcs.anl.gov>;<br>> > Subject:  Re: [petsc-users] Error in configuring PETSc with Cygwin<br>> >  <br>> > On Fri, 3 Mar 2023, 冯上玮 wrote:<br>> > <br>> > > Hi team,<br>> > > <br>> > > <br>> > > Recently I try to install PETSc with Cygwin since I'd like to use PETSc with Visual Studio on Windows10 plateform. For the sake of clarity, I firstly list the softwares/packages used below:<br>> > > <br>> > > <br>> > > 1. PETSc: version 3.18.5<br>> > > 2. VS: version 2019<br>> > > 3. Intel Parallel Studio XE: version 2020<br>> > > 4. Cygwin with py3.8 and make (and default installation)<br>> > > <br>> > > <br>> > > And because I plan to use Intel mpi, the compiler option in configuration is:<br>> > > <br>> > > <br>> > > ./configure --with-cc='win32fe cl' --with-fc='win32fe ifort' --with-cxx='win32fe cl' --download-fblaslapack<br>> > <br>> > Check config/examples/arch-ci-mswin-opt-impi.py for an example on specifying IMPI [and MKL - instead of fblaslapack]. And if you don't need MPI - you can use --with-mpi=0<br>> > <br>> > > <br>> > > <br>> > > where there is no option for mpi.<br>> > > <br>> > > <br>> > > While the PROBLEM came with the compiler option --with-fc='win32fe ifort', which returned an error (or two) as:<br>> > > <br>> > > <br>> > > Cannot run executables created with FC. If this machine uses a batch system<br>> > > to submit jobs you will need to configure using ./configure with the additional option&nbsp; --with-batch.<br>> > > Otherwise there is problem with the compilers. Can you compile and run code with your compiler '/cygdrive/d/petsc/petsc-3.18.5/lib/petsc/bin/win32fe/win32fe ifort'?<br>> > <br>> > If you are not using PETSc from fortran - you don't need ifort. You can use --with-fc=0 [with MKL or --download-f2cblaslapack]<br>> > <br>> > If you are still encountering errors - send us configure.log for the failed build.<br>> > <br>> > Satish<br>> > <br>> > > <br>> > > <br>> > > <br>> > > Note that both ifort of x64 and ifort of ia-32 ended with the same error above and I install IPS with options related to mkl and fblaslapack. Something a bit suspectable is that I open Cygwin with dos. (actually the Intel Compiler 19.1 Update 3 Intel 64 Visual Studio 2019, x86 environment for the test of ifort ia-32 ,in particularlly)<br>> > > <br>> > > <br>> > > Therefore, I write this e-mail to you in order to confirm if I should add "--with-batch" or the error is caused by other reason, such as ifort ?<br>> > > <br>> > > <br>> > > Looking forward your reply!<br>> > > <br>> > > <br>> > > Sinserely,<br>> > > FENG.<br>> > <br>> > <configure.txt><br>> <br>> <br><br></div></div><!--<![endif]--></includetail></div>