Hi,<br><br>I am able to build petsc-3.1-p3 on Windows 7 64bit using native compiler (MSVC 2008) with:<br><br>./config/configure.py PETSC_DIR=$PWD PETSC_ARCH=win64-msvc-release --download-c-blas-lapack=1 --with-parmetis=1 --download-parmetis=1 --with-x=0 --with-debugging=0 --with-cc='win32fe cl' --with-fc=0<br>
<br>I also managed to build hypre-2.6.0b separately myself using the same compiler. Now the last problem is to build petsc with this external package (--download-hypre will fail). I add to the above configure line:<br><br>
--with-hypre-dir=/cygdrive/c/Users/Dominik/Programs/hypre-2.6.0b/src/hypre/<br><br>but the configuration fails with:<br><br>*******************************************************************************<br> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<br>
-------------------------------------------------------------------------------<br>C++ error! mpi.h could not be located at: ['/cygdrive/c/Program Files/MPICH2/include']<br>*******************************************************************************<br>
<br>This error is clearly wrong as:<br><br>$ ls -la '/cygdrive/c/Program Files/MPICH2/include'<br>total 309<br>drwx------+ 1 SYSTEM SYSTEM 4096 2010-07-21 15:54 .<br>drwx------+ 1 SYSTEM SYSTEM 4096 2010-07-21 15:54 ..<br>
-rwx------+ 1 SYSTEM SYSTEM 4776 2007-11-02 15:50 clog_commset.h<br>-rwx------+ 1 SYSTEM SYSTEM 696 2007-11-02 15:50 clog_const.h<br>-rwx------+ 1 SYSTEM SYSTEM 731 2010-02-22 16:22 clog_inttypes.h<br>-rwx------+ 1 SYSTEM SYSTEM 1272 2007-11-02 15:50 clog_uuid.h<br>
-rwx------+ 1 SYSTEM SYSTEM 437 2007-11-02 15:50 mpe.h<br>-rwx------+ 1 SYSTEM SYSTEM 11021 2008-01-28 13:59 mpe_log.h<br>-rwx------+ 1 SYSTEM SYSTEM 1833 2007-11-02 15:50 mpe_logf.h<br>-rwx------+ 1 SYSTEM SYSTEM 1159 2007-11-02 15:50 mpe_misc.h<br>
-rwx------+ 1 SYSTEM SYSTEM 55623 2010-02-22 16:22 mpi.h<br>-rwx------+ 1 SYSTEM SYSTEM 2439 2010-02-22 17:11 mpi.mod<br>-rwx------+ 1 SYSTEM SYSTEM 14731 2010-02-22 17:11 mpi_base.mod<br>-rwx------+ 1 SYSTEM SYSTEM 35003 2010-02-22 17:11 mpi_constants.mod<br>
-rwx------+ 1 SYSTEM SYSTEM 8417 2010-02-22 17:11 mpi_sizeofs.mod<br>-rwx------+ 1 SYSTEM SYSTEM 97301 2010-02-22 16:22 mpicxx.h<br>-rwx------+ 1 SYSTEM SYSTEM 18610 2010-02-22 16:22 mpif.h<br>-rwx------+ 1 SYSTEM SYSTEM 16765 2010-02-22 16:22 mpio.h<br>
<br>Inspecting the log file shows:<br><br>Executing: g++ -c -o conftest.o -Wall -Wwrite-strings -Wno-strict-aliasing -O -I/cygdrive/c/Program\ Files/MPICH2/include conftest.cc<br><br>I think the error is in the white space in "Program Files". I failed to convince hypre to use the default system installation of MPICH. I *had* to make a hardcopy in C: to avoid the white space.<br>
<br>I am sending the log to the maintainters, just in case, because I saw more errors there too.<br><br>Any help is greatly appreciated.<br><br>Regards,<br>Dominik<br>