<div dir="ltr"><div><div><div><div>Hi Satish,<br><br></div>   Thanks a lot for your reply!<br><br></div>   Is there a way to use the mingw64 which is not shipped with cygwin? For example, use windows native paths when testing the compiler.<br>
<br></div>Thanks,<br></div>Mengda<br><div><div><div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 1, 2013 at 5:55 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Looks like this mingw install is not from cygwin - and does not work with cygwin paths.<br>
<br>
Suggest using mingw from cygwin - or install and use cygwin64 [which has non-mingw gcc-64]<br>
You might need the following patch<br>
<a href="https://bitbucket.org/petsc/petsc/commits/e4773d96ef73f1e0b315c5b0194cae499d71e207" target="_blank">https://bitbucket.org/petsc/petsc/commits/e4773d96ef73f1e0b315c5b0194cae499d71e207</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Satish<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Tue, 1 Oct 2013, Mengda Wu wrote:<br>
<br>
> Hello all,<br>
><br>
>    I am trying to compile 64 bit version of petsc-3.4.2 using MinGW-w64<br>
> (latest version 4.8.1 installed with<br>
> <a href="http://sourceforge.net/projects/mingwbuilds/files/mingw-builds-install/mingw-builds-install.exe/download" target="_blank">http://sourceforge.net/projects/mingwbuilds/files/mingw-builds-install/mingw-builds-install.exe/download</a>)<br>

> 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'<br>
> --with-cxx='g++'<br>
> --with-clanguage=cxx  --with-mpi=0 --with-debugging=0  --with-sowing=0<br>
> --with-c<br>
> 2html=0". I got some errors in checkCCompiler. The log file is as follows:<br>
> ============================================================<br>
> TEST checkCCompiler from<br>
> config.setCompilers(/cygdrive/c/Library/PETSc/download/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:525)<br>
> TESTING: checkCCompiler from<br>
> 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<br>
> /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<br>
> /tmp/petsc-novY5r/config.setCompilers<br>
> sh: gcc -c -o /tmp/petsc-novY5r/config.setCompilers/conftest.o<br>
> -I/tmp/petsc-novY5r/config.setCompilers<br>
> /tmp/petsc-novY5r/config.setCompilers/conftest.c<br>
> Executing: gcc -c -o /tmp/petsc-novY5r/config.setCompilers/conftest.o<br>
> -I/tmp/petsc-novY5r/config.setCompilers<br>
> /tmp/petsc-novY5r/config.setCompilers/conftest.c<br>
> sh:<br>
> Possible ERROR while running compiler: ret = 256<br>
> error message = {gcc.exe: error:<br>
> /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>
> I think the problem is the MinGW-w64 compiler does not recognize the cygwin<br>
> path like /tmp. Is there a workaround? I tried to use a native Windows<br>
> python, but the configure fails to find the "make" command then. I guess<br>
> MinGW may be not supported by PetSc yet.<br>
><br>
> However, I found someone has successfully compiled a MPI-version Petsc on<br>
> Windows 64 bit. Here is the link:<br>
> <a href="http://geuz.org/pipermail/gmsh/2012/007589.html" target="_blank">http://geuz.org/pipermail/gmsh/2012/007589.html</a>.<br>
> How is that possible?<br>
><br>
><br>
> Thanks,<br>
> Mengda<br>
><br>
<br>
</div></div></blockquote></div><br></div></div></div></div></div></div></div>