<div>Hi,</div>
<div>I have a configuration error as I install PETSc.</div>
<div> </div>
<div>According to the installation instructions, I first <strong><font color="#551a8b">Setup cygwin bash shell with Working Compilers:</font></strong></div>
<div> </div>
<div>C:\Program Files (x86)\Microsoft Visual Studio 8\VC&gt;c:\cygwin\bin\bash.exe --login</div>
<div> </div>
<div>I got the following message:</div>
<div><br>Your group is currently &quot;mkpasswd&quot;.  This indicates that your<br>gid is not in /etc/group and your uid is not in /etc/passwd.</div>
<div>The /etc/passwd (and possibly /etc/group) files should be rebuilt.<br>See the man pages for mkpasswd and mkgroup then, for example, run</div>
<div>mkpasswd -l [-d] &gt; /etc/passwd<br>mkgroup  -l [-d] &gt; /etc/group</div>
<div>Note that the -d switch is necessary for domain users.</div>
<div> </div>
<div>Then I run the commands:</div>
<div>mkpasswd -l &gt; /etc/passwd and </div>
<div>mkpasswd -l &gt; /etc/group</div>
<div> </div>
<div>at last, as I run command cl, I got message:</div>
<div> </div>
<div>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86</div>
<div>Copyright (C) Microsoft Corporation.  All rights reserved.</div>
<div>usage: cl [ option... ] filename... [ /link linkoption... ]</div>
<div> </div>
<div>So, I think it works now.</div>
<div> </div>
<div>Then I configure PETSc with the following command, but get the error &quot;C compiler you provided with -with-cc=win32fe cl does not work&quot;.</div>
<div> </div>
<div> </div>
<div><a href="mailto:liuy14@CC1DR1C515W05">liuy14@CC1DR1C515W05</a> /cygdrive/c/Yixun/VC/petsc-3.2-p5#  ./configure --with-cc=&#39;win32fe cl&#39; --with-fc=&#39;win32fe ifort&#39;  --with-cxx=&#39;win 32fe cl&#39;  --download-f-blas-lapack=1</div>

<div><br>===============================================================================<br>             Configuring PETSc to compile on your system<br>===============================================================================<br>
TESTING: configureExternalPackagesDir from config.framework(config/BuildSystem/c<br>TESTING: configureDebuggers from PETSc.utilities.debuggers(config/PETSc/utilitie<br>TESTING: configureCMake from PETSc.utilities.CMake(config/PETSc/utilities/CMake.<br>
TESTING: configureCLanguage from PETSc.utilities.languages(config/PETSc/utilitie<br>TESTING: configureLanguageSupport from PETSc.utilities.languages(config/PETSc/ut<br>TESTING: configureExternC from PETSc.utilities.languages(config/PETSc/utilities/<br>
TESTING: configureFortranLanguage from PETSc.utilities.languages(config/PETSc/ut<br>TESTING: configureMake from config.programs(config/BuildSystem/config/programs.p<br>TESTING: configureMkdir from config.programs(config/BuildSystem/config/programs.<br>
TESTING: configurePrograms from config.programs(config/BuildSystem/config/progra<br>TESTING: configureMercurial from config.sourceControl(config/BuildSystem/config/<br>TESTING: configureCVS from config.sourceControl(config/BuildSystem/config/source<br>
TESTING: configureSubversion from config.sourceControl(config/BuildSystem/config<br>TESTING: configureDirectories from PETSc.utilities.petscdir(config/PETSc/utiliti<br>TESTING: configureExternalPackagesDir from PETSc.utilities.petscdir(config/PETSc<br>
TESTING: configureInstallationMethod from PETSc.utilities.petscdir(config/PETSc/<br>TESTING: configureETags from PETSc.utilities.Etags(config/PETSc/utilities/Etags.<br>TESTING: getDatafilespath from PETSc.utilities.dataFilesPath(config/PETSc/utilit<br>
TESTING: resetEnvCompilers from config.setCompilers(config/BuildSystem/config/se<br>TESTING: checkMPICompilerOverride from config.setCompilers(config/BuildSystem/co<br>TESTING: checkVendor from config.setCompilers(config/BuildSystem/config/setCompi<br>
TESTING: checkInitialFlags from config.setCompilers(config/BuildSystem/config/se<br>TESTING: checkCCompiler from config.setCompilers(config/BuildSystem/config/setCo<br>  File &quot;/cygdrive/c/Yixun/VC/petsc-3.2-p5/config/BuildSystem/config/setCompilers<br>
.py&quot;, line 508, in checkCCompiler<br>    self.checkCompiler(&#39;C&#39;)<br>  File &quot;/cygdrive/c/Yixun/VC/petsc-3.2-p5/config/BuildSystem/config/setCompilers<br>.py&quot;, line 410, in checkCompiler<br>    raise RuntimeError(msg)<br>
*******************************************************************************<br>         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for detail<br>s):<br>-------------------------------------------------------------------------------<br>
C compiler you provided with -with-cc=win32fe cl does not work<br>*******************************************************************************</div>
<div> </div>
<div> </div>
<div>Thank you for your help.</div>
<div> </div>
<div>Best,</div>
<div> </div>
<div>Yixun</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>