[petsc-users] Petsc-3.4.2 with MinGW-w64 on Windows 7

Mengda Wu wumengda at gmail.com
Tue Oct 1 16:49:29 CDT 2013


Hello all,

   I am trying to compile 64 bit version of petsc-3.4.2 using MinGW-w64
(latest version 4.8.1 installed with
http://sourceforge.net/projects/mingwbuilds/files/mingw-builds-install/mingw-builds-install.exe/download)
on Windows 7 64 bit. I have cygwin, python (under cygwin) installed.

  I run the "$ ./config/configure.py --with-cc='gcc' --with-fc='gfortran'
--with-cxx='g++'
--with-clanguage=cxx  --with-mpi=0 --with-debugging=0  --with-sowing=0
--with-c
2html=0". I got some errors in checkCCompiler. The log file is as follows:
============================================================
TEST checkCCompiler from
config.setCompilers(/cygdrive/c/Library/PETSc/download/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:525)
TESTING: checkCCompiler from
config.setCompilers(config/BuildSystem/config/setCompilers.py:525)
  Locate a functional C compiler
Checking for program /home/glxiong/bin/gcc...not found
Checking for program /usr/local/bin/gcc...not found
Checking for program /usr/bin/gcc...not found
Checking for program
/cygdrive/c/Library/MinGW/x64-4.8.1/mingw64/bin/gcc...found
          Defined make macro "CC" to "gcc"
          Pushing language C
                    All intermediate test results are stored in
/tmp/petsc-novY5r/config.setCompilers
sh: gcc -c -o /tmp/petsc-novY5r/config.setCompilers/conftest.o
-I/tmp/petsc-novY5r/config.setCompilers
/tmp/petsc-novY5r/config.setCompilers/conftest.c
Executing: gcc -c -o /tmp/petsc-novY5r/config.setCompilers/conftest.o
-I/tmp/petsc-novY5r/config.setCompilers
/tmp/petsc-novY5r/config.setCompilers/conftest.c
sh:
Possible ERROR while running compiler: ret = 256
error message = {gcc.exe: error:
/tmp/petsc-novY5r/config.setCompilers/conftest.c: No such file or directory

gcc.exe: fatal error: no input files

compilation terminated.
============================================================

I think the problem is the MinGW-w64 compiler does not recognize the cygwin
path like /tmp. Is there a workaround? I tried to use a native Windows
python, but the configure fails to find the "make" command then. I guess
MinGW may be not supported by PetSc yet.

However, I found someone has successfully compiled a MPI-version Petsc on
Windows 64 bit. Here is the link:
http://geuz.org/pipermail/gmsh/2012/007589.html.
How is that possible?


Thanks,
Mengda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131001/394b973f/attachment.html>


More information about the petsc-users mailing list