<div dir="ltr"><div><div><div>Hello all,<br><br></div> I am trying to compile 64 bit version of petsc-3.4.2 using MinGW-w64 (latest version 4.8.1 installed with <a href="http://sourceforge.net/projects/mingwbuilds/files/mingw-builds-install/mingw-builds-install.exe/download">http://sourceforge.net/projects/mingwbuilds/files/mingw-builds-install/mingw-builds-install.exe/download</a>) on Windows 7 64 bit. I have cygwin, python (under cygwin) installed.<br>
<br> I run the "$ ./config/configure.py --with-cc='gcc' --with-fc='gfortran' --with-cxx='g++'<br>--with-clanguage=cxx --with-mpi=0 --with-debugging=0 --with-sowing=0 --with-c<br>2html=0". I got some errors in checkCCompiler. The log file is as follows:<br>
============================================================<br>TEST checkCCompiler from config.setCompilers(/cygdrive/c/Library/PETSc/download/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:525)<br>TESTING: checkCCompiler from config.setCompilers(config/BuildSystem/config/setCompilers.py:525)<br>
Locate a functional C compiler<br>Checking for program /home/glxiong/bin/gcc...not found<br>Checking for program /usr/local/bin/gcc...not found<br>Checking for program /usr/bin/gcc...not found<br>Checking for program /cygdrive/c/Library/MinGW/x64-4.8.1/mingw64/bin/gcc...found<br>
Defined make macro "CC" to "gcc"<br> Pushing language C<br> All intermediate test results are stored in /tmp/petsc-novY5r/config.setCompilers<br>sh: gcc -c -o /tmp/petsc-novY5r/config.setCompilers/conftest.o -I/tmp/petsc-novY5r/config.setCompilers /tmp/petsc-novY5r/config.setCompilers/conftest.c <br>
Executing: gcc -c -o /tmp/petsc-novY5r/config.setCompilers/conftest.o -I/tmp/petsc-novY5r/config.setCompilers /tmp/petsc-novY5r/config.setCompilers/conftest.c <br>sh: <br>Possible ERROR while running compiler: ret = 256<br>
error message = {gcc.exe: error: /tmp/petsc-novY5r/config.setCompilers/conftest.c: No such file or directory<br><br>gcc.exe: fatal error: no input files<br><br>compilation terminated.<br>============================================================<br>
<br></div>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.<br>
<br></div><div>However, I found someone has successfully compiled a MPI-version Petsc on Windows 64 bit. Here is the link: <a href="http://geuz.org/pipermail/gmsh/2012/007589.html">http://geuz.org/pipermail/gmsh/2012/007589.html</a>.<br>
</div><div>How is that possible?<br></div><div><br><br></div>Thanks,<br>Mengda<br><div><div><div><br></div></div></div></div>