OK. Now the configuration breaks with the ending:<br><br>*******************************************************************************<br>         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):<br>
-------------------------------------------------------------------------------<br>You must specify a path for MPI with --with-mpi-dir=&lt;directory&gt;<br>If you do not want MPI, then give --with-mpi=0<br>You might also consider using --download-mpi instead<br>
*******************************************************************************<br><br>I am posting the whole log to the other list.<br><br>Thanks,<br>Dominik<br><br><div class="gmail_quote">On Wed, Jul 21, 2010 at 11:26 PM, Satish Balay <span dir="ltr">&lt;<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Wed, 21 Jul 2010, Dominik Szczerba wrote:<br>
<br>
</div><div class="im">&gt; I assume you mean in addition --with-mpi=0, else I am expecting an error<br>
&gt; message.<br>
<br>
</div>I meant without --with-mpi=0 [or any other MPI option]. In this case<br>
configure searches in default paths [assuming MPICH2 was installed in<br>
standard location].<br>
<br>
Looks like it didn&#39;t work for you. So - can you send the corresponding<br>
configure.log to petsc-maint?<br>
<font color="#888888"><br>
Satish<br>
</font><div><div></div><div class="h5"><br>
&gt; Configure did not bring up any errors:<br>
&gt;<br>
&gt; Compilers:<br>
&gt;   C Compiler:<br>
&gt; /cygdrive/c/Users/Dominik/Programs/petsc-3.1-p3/bin/win32fe/win32fe cl  -MT<br>
&gt; -wd4996<br>
&gt; Linkers:<br>
&gt;   Static linker:   /usr/bin/ar cr<br>
&gt; BLAS/LAPACK:<br>
&gt; -L/cygdrive/c/Users/Dominik/Programs/petsc-3.1-p3/win64-msvc-release/lib<br>
&gt; -L/cygdrive/c/Users/Dominik/Programs/petsc-3.1-p3/win64-msvc-release/lib<br>
&gt; -lf2clapack -L/cygdrive/c/Users/Dominik/P<br>
&gt; rograms/petsc-3.1-p3/win64-msvc-release/lib<br>
&gt; -L/cygdrive/c/Users/Dominik/Programs/petsc-3.1-p3/win64-msvc-release/lib<br>
&gt; -lf2cblas<br>
&gt; PETSc:<br>
&gt;   PETSC_ARCH: win64-msvc-release<br>
&gt;   PETSC_DIR: /cygdrive/c/Users/Dominik/Programs/petsc-3.1-p3<br>
&gt;   Clanguage: C<br>
&gt;   Scalar type: real<br>
&gt;   Precision: double<br>
&gt;   Memory alignment: 16<br>
&gt;   shared libraries: disabled<br>
&gt;   dynamic libraries: disabled<br>
&gt; xxx=========================================================================xxx<br>
&gt;    Configure stage complete. Now build PETSc libraries with:<br>
&gt;    make PETSC_DIR=/cygdrive/c/Users/Dominik/Programs/petsc-3.1-p3<br>
&gt; PETSC_ARCH=win64-msvc-release all<br>
&gt; xxx=========================================================================xxx<br>
&gt;<br>
&gt; Building was also successful. Test run OK (with 1 MPI process)<br>
&gt;<br>
&gt; My LIB:<br>
&gt;<br>
&gt; C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;C:\Program<br>
&gt; Files (x86)\Microsoft Visual Studio 9.0\VC\LIB;C:\Program Files\Microsoft<br>
&gt; SDKs\Windows\v6.0A\lib;<br>
&gt;<br>
&gt; Many thanks for any hints how to get a usable MPICH2 installation,<br>
&gt; Dominik<br>
&gt;<br>
&gt; On Wed, Jul 21, 2010 at 6:09 PM, Satish Balay &lt;<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Try:<br>
&gt; &gt;<br>
&gt; &gt; ./config/configure.py PETSC_DIR=$PWD PETSC_ARCH=win64-msvc-release<br>
&gt; &gt; --download-c-blas-lapack=1 --with-x=0 --with-debugging=0 --with-cc=&#39;win32fe<br>
&gt; &gt; cl&#39; --with-fc=0<br>
&gt; &gt;<br>
&gt; &gt; If it fails - send us configure.log at <a href="mailto:petsc-maint@mcs.anl.gov">petsc-maint@mcs.anl.gov</a><br>
&gt; &gt;<br>
&gt; &gt; BTW: What do you have in your LIB env variable? [MS search this path for<br>
&gt; &gt; libraries by default]<br>
&gt; &gt;<br>
&gt; &gt; echo $LIB<br>
&gt; &gt;<br>
&gt; &gt; Satish<br>
&gt; &gt;<br>
&gt; &gt; On Wed, 21 Jul 2010, Dominik Szczerba wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; Coming back to the original problem: I tried to compile MPICH2 myself<br>
&gt; &gt; &gt; and failed because of wrong version of automake in Cygwin. I then<br>
&gt; &gt; &gt; installed the Windows binary available on the mpich2 webpage. I<br>
&gt; &gt; &gt; configure petsc with:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; $ ./config/configure.py PETSC_DIR=$PWD PETSC_ARCH=win64-msvc-release<br>
&gt; &gt; &gt; --download-c-blas-lapack=1 --with-mpi-dir=&#39;/cygdrive/c/Program<br>
&gt; &gt; &gt; Files/MPICH2&#39; --with-x=0 --with-debugging=0 --with-cc=&#39;win32fe cl&#39;<br>
&gt; &gt; &gt; --with-fc=0<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; to hear at the end (of a very long configuration process...):<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; sh: /cygdrive/c/Users/Dominik/Programs/petsc-3.1-p3/bin/win32fe/win32fe<br>
&gt; &gt; &gt; cl  -o conftest.exe    -MT -wd4996  conftest.o  /cygdrive/c/Program\<br>
&gt; &gt; &gt; Files/MPICH2/lib/amd64/msmpi.lib Ws2_32.lib<br>
&gt; &gt; &gt; Executing:<br>
&gt; &gt; /cygdrive/c/Users/Dominik/Programs/petsc-3.1-p3/bin/win32fe/win32fe<br>
&gt; &gt; &gt; cl  -o conftest.exe    -MT -wd4996  conftest.o  /cygdrive/c/Program\<br>
&gt; &gt; &gt; Files/MPICH2/lib/amd64/msmpi.lib Ws2_32.lib<br>
&gt; &gt; &gt; sh: Warning: win32fe: File Not Found: /cygdrive/c/Program<br>
&gt; &gt; &gt; Files/MPICH2/lib/amd64/msmpi.lib<br>
&gt; &gt; &gt; cl : Command line warning D9002 : ignoring unknown option<br>
&gt; &gt; &gt; &#39;/cygdrive/c/Program Files/MPICH2/lib/amd64/msmpi.lib&#39;<br>
&gt; &gt; &gt; conftest.obj : error LNK2019: unresolved external symbol _MPI_Init<br>
&gt; &gt; &gt; referenced in function _main<br>
&gt; &gt; &gt; C:\Users\Dominik\Programs\PETSC-~1.1-P\conftest.exe : fatal error<br>
&gt; &gt; &gt; LNK1120: 1 unresolved externals<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Any directions why would the configuration look for a nonexistent<br>
&gt; &gt; &gt; library? The contents of the installation folder are:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; $ ls -la /cygdrive/c/Program\ Files/MPICH2/lib/<br>
&gt; &gt; &gt; total 808<br>
&gt; &gt; &gt; drwx------+ 1 SYSTEM SYSTEM   4096 2010-07-21 15:54 .<br>
&gt; &gt; &gt; drwx------+ 1 SYSTEM SYSTEM   4096 2010-07-21 15:54 ..<br>
&gt; &gt; &gt; -rwx------+ 1 SYSTEM SYSTEM   4644 2010-02-22 17:13 TraceInput.lib<br>
&gt; &gt; &gt; -rwx------+ 1 SYSTEM SYSTEM 322820 2010-02-22 17:09 cxx.lib<br>
&gt; &gt; &gt; -rwx------+ 1 SYSTEM SYSTEM 131316 2010-02-22 17:11 fmpich2.lib<br>
&gt; &gt; &gt; -rwx------+ 1 SYSTEM SYSTEM 136382 2010-02-22 17:13 fmpich2g.lib<br>
&gt; &gt; &gt; -rwx------+ 1 SYSTEM SYSTEM   1936 2010-02-22 17:13 irlog2rlog.lib<br>
&gt; &gt; &gt; -rwx------+ 1 SYSTEM SYSTEM  10430 2010-02-22 16:30 mpe.lib<br>
&gt; &gt; &gt; -rwx------+ 1 SYSTEM SYSTEM 132128 2010-02-22 16:29 mpi.lib<br>
&gt; &gt; &gt; -rwx------+ 1 SYSTEM SYSTEM  61286 2010-02-22 16:30 rlog.lib<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Best regards,<br>
&gt; &gt; &gt; Dominik<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Tue, Jul 20, 2010 at 12:44 AM, Jed Brown &lt;<a href="mailto:jed@59a2.org">jed@59a2.org</a>&gt; wrote:<br>
&gt; &gt; &gt; &gt; On Tue, 20 Jul 2010 08:37:18 +1000, Matthew Knepley &lt;<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt; &gt;&gt; This would do you absolutely no good. Even Jed&#39;s thing needs all the<br>
&gt; &gt; &gt; &gt;&gt; information that the configure provides. CMake is exactly what it<br>
&gt; &gt; &gt; &gt;&gt; says, make. It does no configuration<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; This isn&#39;t true, CMake isn&#39;t a build system at all, it does<br>
&gt; &gt; &gt; &gt; configuration and produces build files for another tool (like make or<br>
&gt; &gt; an<br>
&gt; &gt; &gt; &gt; IDE).  I see no point in maintaining duplicate configuration systems,<br>
&gt; &gt; &gt; &gt; and CMake&#39;s scripting language is so attrocious that &quot;replacing&quot;<br>
&gt; &gt; &gt; &gt; BuildSystem with CMake script would be a disaster.  It&#39;s<br>
&gt; &gt; &gt; &gt; cross-compilation support is also a bit weak, and there are a pile of<br>
&gt; &gt; &gt; &gt; other things that it does poorly (mostly related to pathologically<br>
&gt; &gt; &gt; &gt; dysfunctional &quot;Find*.cmake&quot; modules).  That doesn&#39;t mean it isn&#39;t<br>
&gt; &gt; useful<br>
&gt; &gt; &gt; &gt; for producing build files.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Jed<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br>