Alternative is to update PATH so that link.exe from compiler is before the one from cygwin.
I have it at '/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/amd64/link.exe' so would do: export PATH='/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/amd64':$PATH And verify with: balay@ps4 ~ $ which link.exe /cygdrive/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/amd64/link.exe balay@ps4 ~ $ Satish On Tue, 17 Dec 2019, Sam Guo wrote: > I cannot move link.exe: > $ mv link.exe link_cyg.exe > mv: cannot move 'link.exe' to 'link_cyg.exe': Permission denied > > I figure I need admin privilege. > > On Mon, Dec 16, 2019 at 8:30 PM Balay, Satish <[email protected]> wrote: > > > Try: > > > > mv /usr/bin/link.exe /usr/bin/link-cygwin.exe > > > > And rerun configure > > > > Satish > > > > ------ > > > > > > On Mon, 16 Dec 2019, Sam Guo wrote: > > > > > Thanks for the quick response. I attach the configure.log again. > > > > > > icl is found > > > $ icl > > > Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) > > 64, > > > Version 18.0.3.210 Build 20180410 > > > Copyright (C) 1985-2018 Intel Corporation. All rights reserved. > > > icl: command line error: no files specified; for help type "icl /help" > > > > > > On Mon, Dec 16, 2019 at 7:03 PM Balay, Satish <[email protected]> wrote: > > > > > > > The attached configure.log is a link file. Can you resend the log from > > > > PETSC_ARCH/lib/petsc/conf > > > > > > > > Also can you verify that you followed instructions from > > > > https://www.mcs.anl.gov/petsc/documentation/installation.html#windows > > > > [its not explicitly specified - but you need to run the correct cmd > > that > > > > sets up Intel compiler - instead of the MS compiler] > > > > > > > > i.e verify 'icl' works from cygwin/bash - before attempting configure. > > > > > > > > Satish > > > > > > > > On Mon, 16 Dec 2019, Sam Guo wrote: > > > > > > > > > Dear PETSc dev team, > > > > > I tried to compile petsc using intel compiler win32fe icl on > > cygwin > > > > but > > > > > encountered error. By the way, I am able to compile using visual > > studio > > > > > compiler win32fe cl. > > > > > > > > > > > > > > > > =============================================================================== > > > > > Configuring PETSc to compile on your system > > > > > > > > > > > =============================================================================== > > > > > > > > > > > =============================================================================== > > > > > Warning: "with-clean" is specified. Removing all build files from > > > > > > > > > > > arch-starccmplus_s=============================================================================== > > > > > TESTING: checkCCompiler from > > > > > > > > > > > config.setCompilers(config/BuildSystem/config/setCompilers.py******************************************************************************* > > > > > UNABLE to CONFIGURE with GIVEN OPTIONS (see > > configure.log for > > > > > details): > > > > > > > > > > > ------------------------------------------------------------------------------- > > > > > C compiler you provided with -with-cc=win32fe icl does not work. > > > > > Cannot compile/link C with > > > > > /home/xianzhongg/dev/star/petsc/lib/petsc/bin/win32fe/win32fe icl. > > > > > > > > > > > ******************************************************************************* > > > > > > > > > > BR, > > > > > Sam > > > > > > > > > > > > > > > > > > > > >
