My program is coded in C++, I think that it's not a good choice for cxx=0, 
whatever the configuration in this way works or not.
Anyway, I'll search for getting VS2022 and retry installation.

--------------原始邮件--------------
发件人:"Satish&nbsp;Balay "<[email protected]&gt;;
发送时间:2023年3月3日(星期五) 中午12:12
收件人:"Barry Smith" <[email protected]&gt;;
抄送:"冯上玮 "<[email protected]&gt;;"petsc-users 
"<[email protected]&gt;;
主题:Re: [petsc-users] Error in configuring PETSc with Cygwin
-----------------------------------

 Perhaps the compilers are installed without english - so we can't read the 
error messages. 

&gt;&nbsp;    &nbsp;x64&nbsp;  &nbsp;Microsoft (R) C/C++&nbsp; Ż       
&nbsp;19.29.30147&nbsp;  

We test with:

Microsoft (R) C/C++ Optimizing Compiler Version 19.32.31329 for x64

I guess that's VS2019 vs VS2022?

You can try using --with-cxx=0 and see if that works.

Satish

On Thu, 2 Mar 2023, Barry Smith wrote:

&gt; 
&gt;&nbsp;&nbsp;&nbsp; The compiler is burping out some warning message which 
confuses configure into thinking there is a problem. 
&gt; 
&gt; cl:&nbsp;      &nbsp;warning D9035 :  experimental:preprocessor  ѡ   ѷ     
    ڽ    İ汾   Ƴ 
&gt; cl:&nbsp;      &nbsp;warning D9036 :ʹ á Zc:preprocessor      ʹ á 
experimental:preprocessor  
&gt; cl:&nbsp;      &nbsp;warning D9002 :    δ֪ѡ -Qwd10161  :
&gt; 
&gt; 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.
&gt; 
&gt; 
&gt; 
&gt; &gt; On Mar 2, 2023, at 9:12 PM, 冯上玮 <[email protected]&gt; wrote:
&gt; &gt; 
&gt; &gt; Hi, 
&gt; &gt; 
&gt; &gt; 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.
&gt; &gt; 
&gt; &gt; Unfortunately, however, another error appeared as:
&gt; &gt; 
&gt; &gt; Cxx libraries cannot directly be used with C as linker.
&gt; &gt; If you don't need the C++ compiler to build external packages or for 
you application you can run
&gt; &gt; ./configure with --with-cxx=0. Otherwise you need a different 
combination of C and C++ compilers
&gt; &gt;&nbsp; 
&gt; &gt;&nbsp; The attachment is the log file, but some parts are unreadable. 
&gt; &gt; 
&gt; &gt; Thanks for your continuous aid!
&gt; &gt; ------------------ Original ------------------
&gt; &gt; From:&nbsp; "Satish Balay"<[email protected]&gt;;
&gt; &gt; Date:&nbsp; Fri, Mar 3, 2023 02:13 AM
&gt; &gt; To:&nbsp; "冯上玮"<[email protected]&gt;;
&gt; &gt; Cc:&nbsp; "petsc-users"<[email protected]&gt;;
&gt; &gt; Subject:&nbsp; Re: [petsc-users] Error in configuring PETSc with 
Cygwin
&gt; &gt;&nbsp; 
&gt; &gt; On Fri, 3 Mar 2023, 冯上玮 wrote:
&gt; &gt; 
&gt; &gt; &gt; Hi team,
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; 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:
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; 1. PETSc: version 3.18.5
&gt; &gt; &gt; 2. VS: version 2019
&gt; &gt; &gt; 3. Intel Parallel Studio XE: version 2020
&gt; &gt; &gt; 4. Cygwin with py3.8 and make (and default installation)
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; And because I plan to use Intel mpi, the compiler option in 
configuration is:
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; ./configure --with-cc='win32fe cl' --with-fc='win32fe ifort' 
--with-cxx='win32fe cl' --download-fblaslapack
&gt; &gt; 
&gt; &gt; 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
&gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; where there is no option for mpi.
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; While the PROBLEM came with the compiler option 
--with-fc='win32fe ifort', which returned an error (or two) as:
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; Cannot run executables created with FC. If this machine uses a 
batch system
&gt; &gt; &gt; to submit jobs you will need to configure using ./configure with 
the additional option&amp;nbsp; --with-batch.
&gt; &gt; &gt; 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'?
&gt; &gt; 
&gt; &gt; If you are not using PETSc from fortran - you don't need ifort. You 
can use --with-fc=0 [with MKL or --download-f2cblaslapack]
&gt; &gt; 
&gt; &gt; If you are still encountering errors - send us configure.log for the 
failed build.
&gt; &gt; 
&gt; &gt; Satish
&gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; 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)
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; 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 
?
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; Looking forward your reply!
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; Sinserely,
&gt; &gt; &gt; FENG.
&gt; &gt; 
&gt; &gt; <configure.txt&gt;
&gt; 
&gt;

Reply via email to