<div dir="ltr">Yes, removing --with-batch works. Thanks a lot.</div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Tue, Dec 17, 2019 at 11:58 AM Balay, Satish <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">You don't need --with-batch for this usage [esp with --with-mpi=0]<br>
<br>
<br>
Also suggest using latest petsc version [and update your code to it]<br>
<br>
Satish<br>
<br>
<br>
On Tue, 17 Dec 2019, Sam Guo wrote:<br>
<br>
> It is better but the configuration still failed.<br>
> <br>
> On Tue, Dec 17, 2019 at 8:42 AM Balay, Satish <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
> <br>
> > Alternative is to update PATH so that link.exe from compiler is before the<br>
> > one from cygwin.<br>
> ><br>
> > I have it at '/cygdrive/c/Program Files (x86)/Microsoft Visual Studio<br>
> > 14.0/VC/BIN/amd64/link.exe' so would do:<br>
> ><br>
> > export PATH='/cygdrive/c/Program Files (x86)/Microsoft Visual Studio<br>
> > 14.0/VC/BIN/amd64':$PATH<br>
> ><br>
> > And verify with:<br>
> ><br>
> > balay@ps4 ~<br>
> > $ which link.exe<br>
> > /cygdrive/c/Program Files (x86)/Microsoft Visual Studio<br>
> > 14.0/VC/BIN/amd64/link.exe<br>
> ><br>
> > balay@ps4 ~<br>
> > $<br>
> ><br>
> ><br>
> > Satish<br>
> ><br>
> ><br>
> > On Tue, 17 Dec 2019, Sam Guo wrote:<br>
> ><br>
> > > I cannot move link.exe:<br>
> > > $ mv link.exe link_cyg.exe<br>
> > > mv: cannot move 'link.exe' to 'link_cyg.exe': Permission denied<br>
> > ><br>
> > > I figure I need admin privilege.<br>
> > ><br>
> > > On Mon, Dec 16, 2019 at 8:30 PM Balay, Satish <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
> > ><br>
> > > > Try:<br>
> > > ><br>
> > > > mv /usr/bin/link.exe /usr/bin/link-cygwin.exe<br>
> > > ><br>
> > > > And rerun configure<br>
> > > ><br>
> > > > Satish<br>
> > > ><br>
> > > > ------<br>
> > > ><br>
> > > ><br>
> > > > On Mon, 16 Dec 2019, Sam Guo wrote:<br>
> > > ><br>
> > > > > Thanks for the quick response. I attach the configure.log again.<br>
> > > > ><br>
> > > > > icl is found<br>
> > > > > $ icl<br>
> > > > > Intel(R) C++ Intel(R) 64 Compiler for applications running on<br>
> > Intel(R)<br>
> > > > 64,<br>
> > > > > Version 18.0.3.210 Build 20180410<br>
> > > > > Copyright (C) 1985-2018 Intel Corporation.  All rights reserved.<br>
> > > > > icl: command line error: no files specified; for help type "icl<br>
> > /help"<br>
> > > > ><br>
> > > > > On Mon, Dec 16, 2019 at 7:03 PM Balay, Satish <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>><br>
> > wrote:<br>
> > > > ><br>
> > > > > > The attached configure.log is a link file. Can you resend the log<br>
> > from<br>
> > > > > > PETSC_ARCH/lib/petsc/conf<br>
> > > > > ><br>
> > > > > > Also can you verify that you followed instructions from<br>
> > > > > ><br>
> > <a href="https://www.mcs.anl.gov/petsc/documentation/installation.html#windows" target="_blank" rel="noreferrer">https://www.mcs.anl.gov/petsc/documentation/installation.html#windows</a><br>
> > > > > > [its not explicitly specified - but you need to run the correct cmd<br>
> > > > that<br>
> > > > > > sets up Intel compiler - instead of the MS compiler]<br>
> > > > > ><br>
> > > > > > i.e verify 'icl' works from cygwin/bash - before attempting<br>
> > configure.<br>
> > > > > ><br>
> > > > > > Satish<br>
> > > > > ><br>
> > > > > > On Mon, 16 Dec 2019, Sam Guo wrote:<br>
> > > > > ><br>
> > > > > > > Dear PETSc dev team,<br>
> > > > > > >    I tried to compile petsc using intel compiler win32fe icl on<br>
> > > > cygwin<br>
> > > > > > but<br>
> > > > > > > encountered error. By the way, I am able to compile using visual<br>
> > > > studio<br>
> > > > > > > compiler win32fe cl.<br>
> > > > > > ><br>
> > > > > > ><br>
> > > > > ><br>
> > > ><br>
> > ===============================================================================<br>
> > > > > > >              Configuring PETSc to compile on your system<br>
> > > > > > ><br>
> > > > > ><br>
> > > ><br>
> > ===============================================================================<br>
> > > > > > ><br>
> > > > > ><br>
> > > ><br>
> > ===============================================================================<br>
> > > > > > > Warning: "with-clean" is specified. Removing all build files from<br>
> > > > > > ><br>
> > > > > ><br>
> > > ><br>
> > arch-starccmplus_s===============================================================================<br>
> > > > > > > TESTING: checkCCompiler from<br>
> > > > > > ><br>
> > > > > ><br>
> > > ><br>
> > config.setCompilers(config/BuildSystem/config/setCompilers.py*******************************************************************************<br>
> > > > > > >          UNABLE to CONFIGURE with GIVEN OPTIONS    (see<br>
> > > > configure.log for<br>
> > > > > > > details):<br>
> > > > > > ><br>
> > > > > ><br>
> > > ><br>
> > -------------------------------------------------------------------------------<br>
> > > > > > > C compiler you provided with -with-cc=win32fe icl does not work.<br>
> > > > > > > Cannot compile/link C with<br>
> > > > > > > /home/xianzhongg/dev/star/petsc/lib/petsc/bin/win32fe/win32fe<br>
> > icl.<br>
> > > > > > ><br>
> > > > > ><br>
> > > ><br>
> > *******************************************************************************<br>
> > > > > > ><br>
> > > > > > > BR,<br>
> > > > > > > Sam<br>
> > > > > > ><br>
> > > > > ><br>
> > > > > ><br>
> > > > ><br>
> > > ><br>
> > > ><br>
> > ><br>
> ><br>
> ><br>
> <br>
<br>
</blockquote></div>