[petsc-users] configuration error on Windows with VS2005

Yixun Liu yxliuwm at gmail.com
Wed Nov 16 10:16:47 CST 2011


Hi,
I have a configuration error as I install PETSc.

According to the installation instructions, I first *Setup cygwin bash
shell with Working Compilers:*

C:\Program Files (x86)\Microsoft Visual Studio 8\VC>c:\cygwin\bin\bash.exe
--login

I got the following message:

Your group is currently "mkpasswd".  This indicates that your
gid is not in /etc/group and your uid is not in /etc/passwd.
The /etc/passwd (and possibly /etc/group) files should be rebuilt.
See the man pages for mkpasswd and mkgroup then, for example, run
mkpasswd -l [-d] > /etc/passwd
mkgroup  -l [-d] > /etc/group
Note that the -d switch is necessary for domain users.

Then I run the commands:
mkpasswd -l > /etc/passwd and
mkpasswd -l > /etc/group

at last, as I run command cl, I got message:

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for
80x86
Copyright (C) Microsoft Corporation.  All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]

So, I think it works now.

Then I configure PETSc with the following command, but get the error "C
compiler you provided with -with-cc=win32fe cl does not work".


liuy14 at CC1DR1C515W05 /cygdrive/c/Yixun/VC/petsc-3.2-p5#  ./configure
--with-cc='win32fe cl' --with-fc='win32fe ifort'  --with-cxx='win 32fe cl'
--download-f-blas-lapack=1

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


Thank you for your help.

Best,

Yixun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111116/09cdba6c/attachment-0001.htm>


More information about the petsc-users mailing list