[petsc-dev] Need help compiling on Windows (Cygwin)

Olumide 50295 at web.de
Fri Apr 23 23:08:44 CDT 2010


Here's the result of my latest attempt:
./configure --with-cc='win32fe cl' --with-fc=0 
--download-c-blas-lapack=1 --download-mpich=1 --with-clanguage=cxx

Unfortunately, it didn't work. BTW, I'm using the Visual Studio command 
prompt, and cl works fine. I'd like to compile petsc for for linking 
with win32 libraries.

Thanks,

- Olumide

================================================================================
TEST checkSharedLinkerPaths from 
config.setCompilers(/cygdrive/c/Downloads/src/petsc-dev/config/BuildSystem/config/setCompilers.py:1175)
TESTING: checkSharedLinkerPaths from 
config.setCompilers(config/BuildSystem/config/setCompilers.py:1175)
   Determine the shared linker path options
        - IRIX: -rpath
        - Linux, OSF: -Wl,-rpath,
        - Solaris: -R
        - FreeBSD: -Wl,-R,
         Pushing language C
sh: uname -s
Executing: uname -s
sh: CYGWIN_NT-5.1

sh: /cygdrive/c/Downloads/src/petsc-dev/bin/win32fe/win32fe cl -flags
Executing: /cygdrive/c/Downloads/src/petsc-dev/bin/win32fe/win32fe cl -flags
sh: cl : Command line warning D4002 : ignoring unknown option '-flags'
cl : Command line error D2003 : missing source filename

       Trying C linker flag -Wl,-rpath,
sh: /cygdrive/c/Downloads/src/petsc-dev/bin/win32fe/win32fe cl -c -o 
conftest.o   conftest.c
Executing: /cygdrive/c/Downloads/src/petsc-dev/bin/win32fe/win32fe cl -c 
-o conftest.o   conftest.c
sh: conftest.c

                 Pushing language C
                 Popping language C
sh: /cygdrive/c/Downloads/src/petsc-dev/bin/win32fe/win32fe cl  -o 
conftest.exe  -Wl,-rpath,/cygdrive/c/Downloads/src/petsc-dev    conftest.o
Executing: /cygdrive/c/Downloads/src/petsc-dev/bin/win32fe/win32fe cl 
-o conftest.exe  -Wl,-rpath,/cygdrive/c/Downloads/src/petsc-dev 
conftest.o
sh: cl : Command line error D2021 : invalid numeric argument 
'/Wl,-rpath,/cygdrive/c/Downloads/src/petsc-dev'

Possible ERROR while running linker:  output: cl : Command line error 
D2021 : invalid numeric argument 
'/Wl,-rpath,/cygdrive/c/Downloads/src/petsc-dev'
ret = 512
                     Pushing language C
                     Popping language C
  in /cygdrive/c/Downloads/src/petsc-dev/bin/win32fe/win32fe cl  -o 
conftest.exe  -Wl,-rpath,/cygdrive/c/Downloads/src/petsc-dev    conftest.o
Source:
#include "confdefs.h"
#include "conffix.h"

int main() {
;
   return 0;
}
         Rejecting linker flag 
-Wl,-rpath,/cygdrive/c/Downloads/src/petsc-dev due to nonzero status 
from link
         Valid C linker flag -Wl,-rpath,/cygdrive/c/Downloads/src/petsc-dev
       Rejected C linker flag -Wl,-rpath,
       Trying C linker flag -R
*******************************************************************************
         CONFIGURATION CRASH  (Please send configure.log to 
petsc-maint at mcs.anl.gov)
*******************************************************************************
[Errno 13] Permission denied: 'confdefs.h'  File "./configure", line 
250, in petsc_configure
     framework.configure(out = sys.stdout)
   File 
"/cygdrive/c/Downloads/src/petsc-dev/config/BuildSystem/config/framework.py", 
line 930, in configure
     child.configure()
   File 
"/cygdrive/c/Downloads/src/petsc-dev/config/BuildSystem/config/setCompilers.py", 
line 1390, in configure
     self.executeTest(self.checkSharedLinkerPaths)
   File 
"/cygdrive/c/Downloads/src/petsc-dev/config/BuildSystem/config/base.py", 
line 97, in executeTest
     ret = apply(test, args,kargs)
   File 
"/cygdrive/c/Downloads/src/petsc-dev/config/BuildSystem/config/setCompilers.py", 
line 1199, in checkSharedLinkerPaths
     if self.checkLinkerFlag(testFlag+os.path.abspath(os.getcwd())):
   File 
"/cygdrive/c/Downloads/src/petsc-dev/config/BuildSystem/config/setCompilers.py", 
line 1134, in checkLinkerFlag
     (output, status) = self.outputLink('', '')
   File 
"/cygdrive/c/Downloads/src/petsc-dev/config/BuildSystem/config/base.py", 
line 464, in outputLink
     (out, err, ret) = self.outputCompile(includes, body, cleanup = 0, 
codeBegin = codeBegin, codeEnd = codeEnd)
   File 
"/cygdrive/c/Downloads/src/petsc-dev/config/BuildSystem/config/base.py", 
line 419, in outputCompile
     if self.compilerDefines: 
self.framework.outputHeader(self.compilerDefines)
   File 
"/cygdrive/c/Downloads/src/petsc-dev/config/BuildSystem/config/framework.py", 
line 750, in outputHeader
     f = file(name, 'w')



More information about the petsc-dev mailing list