Dear all,<br><br>The problem was apparently that I was trying to configure Petsc under the 32 bit terminal with the 64 bit MPI system installation.<br><br>I managed to invoke the 64 bit terminal and configure and build Petsc as follows:<br>
<br>./config/configure.py PETSC_DIR=$PWD PETSC_ARCH=win64-msvc-release --download-c-blas-lapack=1 --with-x=0 --with-debugging=0 --with-cc=&#39;win32fe cl&#39; --with-fc=0<br><br>(with the official MPICH2 64bitinstallation):<br>
<br>MPI:<br>  Includes: -I/cygdrive/c/Program\ Files/MPICH2/include<br>  Library:  /cygdrive/c/Program\ Files/MPICH2/lib/fmpich2.lib /cygdrive/c/Program\ Files/MPICH2/lib/fmpich2g.lib /cygdrive/c/Program\ Files/MPICH2/lib/mpi.lib<br>
<br>However, I am getting errors when executing &quot;make test&quot;: (errors below)<br>Any ideas how to proceed? (I clicked some &#39;yes when Windows popped up a yes/no security window)<br><br>Regards,<br>Dominik<br><br>
<br>$ make PETSC_DIR=/cygdrive/c/Users/Dominik/Programs/petsc-3.1-p3 PETSC_ARCH=win64-msvc-release test<br>Running test examples to verify correct installation<br>Possible error running C/C++ src/snes/examples/tutorials/ex19 with 1 MPI process<br>
See <a href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html">http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html</a><br>Error while connecting to host, No connection could be made because the target machine actively refused it. (10061)<br>
Connect on sock (host=Tharsis, port=8676) failed, exhaused all end points<br>Unable to connect to &#39;Tharsis:8676&#39;,<br>sock error: Error = -1<br><br>Possible error running C/C++ src/snes/examples/tutorials/ex19 with 2 MPI processes<br>
See <a href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html">http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html</a><br>Error while connecting to host, No connection could be made because the target machine actively refused it. (10061)<br>
Connect on sock (host=Tharsis, port=8676) failed, exhaused all end points<br>Unable to connect to &#39;Tharsis:8676&#39;,<br>sock error: Error = -1<br><br>Completed test examples<br><br><br><div class="gmail_quote">On Thu, Jul 22, 2010 at 4:13 PM, Satish Balay <span dir="ltr">&lt;<a href="mailto:balay@mcs.anl.gov" target="_blank">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>On Thu, 22 Jul 2010, Dominik Szczerba wrote:<br>
<br>
&gt; Many thanks for your precious feedback.<br>
&gt; My MPICH install is 64 bit but it seems that for some reason 32 bit VC<br>
&gt; compiler is invoked (I have both 32 and 64 installed).<br>
<br>
</div>As mentioned - whichever compiler is first in the PATH is used<br>
cl<br>
<div><br>
&gt; I am clarifying with a local MSVC expert how to control this, will update<br>
&gt; you later today.<br>
<br>
</div>One way to control this - is to run the desired &#39;build env&#39; cmd - as<br>
mentioned in the installation instructions.<br>
<a href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/installation.html#Windows" target="_blank">http://www.mcs.anl.gov/petsc/petsc-as/documentation/installation.html#Windows</a><br>
<font color="#888888"><br>
Satish<br>
</font><div><div></div><div><br>
&gt; Dominik<br>
&gt;<br>
&gt; On Thu, Jul 22, 2010 at 3:45 PM, Satish Balay &lt;<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>&gt; wrote:<br>
&gt;<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;<br>
&gt; &gt; Looks like - if win32fe doesn&#39;t find the file - it doesn&#39;t try to<br>
&gt; &gt; convert the path. This is not the cause of his configure failure.<br>
&gt; &gt;<br>
&gt; &gt; The primary issue is: [which is much ahead in configure.log]<br>
&gt; &gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt; sh: /cygdrive/c/Users/Dominik/Programs/petsc-3.1-p3/bin/win32fe/win32fe cl<br>
&gt; &gt;  -o conftest.exe    -MT -wd4996  conftest.o  /cygdrive/c/Program\<br>
&gt; &gt; Files/MPICH2/lib/mpi.lib Ws2_32.lib<br>
&gt; &gt; Executing:<br>
&gt; &gt; /cygdrive/c/Users/Dominik/Programs/petsc-3.1-p3/bin/win32fe/win32fe cl  -o<br>
&gt; &gt; conftest.exe    -MT -wd4996  conftest.o  /cygdrive/c/Program\<br>
&gt; &gt; Files/MPICH2/lib/mpi.lib Ws2_32.lib<br>
&gt; &gt; sh: conftest.obj : error LNK2019: unresolved external symbol _MPI_Init<br>
&gt; &gt; referenced in function _main^M<br>
&gt; &gt; C:\Users\Dominik\Programs\PETSC-~1.1-P\conftest.exe : fatal error LNK1120:<br>
&gt; &gt; 1 unresolved externals^M<br>
&gt; &gt; &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;<br>
&gt; &gt;<br>
&gt; &gt; Here cl is finding the correct library - but not MPI_Init symbol in it.<br>
&gt; &gt; For whatever reason - libmpi.lib is not compatible.<br>
&gt; &gt;<br>
&gt; &gt; Satish<br>
&gt; &gt;<br>
&gt; &gt; On Thu, 22 Jul 2010, Farshid Mossaiby wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; I doubt &#39;cl&#39; can interpret Cygwin paths:<br>
&gt; &gt; &gt;<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;<br>
&gt; &gt; &gt; Shouldn&#39;t win32fe convert this path first?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Hope this helps.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; --- On Wed, 7/21/10, Dominik Szczerba &lt;<a href="mailto:dominik@itis.ethz.ch" target="_blank">dominik@itis.ethz.ch</a>&gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; From: Dominik Szczerba &lt;<a href="mailto:dominik@itis.ethz.ch" target="_blank">dominik@itis.ethz.ch</a>&gt;<br>
&gt; &gt; &gt; &gt; Subject: Re: [petsc-users] configure problems<br>
&gt; &gt; &gt; &gt; To: &quot;PETSc users list&quot; &lt;<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>&gt;<br>
&gt; &gt; &gt; &gt; Date: Wednesday, July 21, 2010, 7:01 PM<br>
&gt; &gt; &gt; &gt; Coming back to the original problem:<br>
&gt; &gt; &gt; &gt; I tried to compile MPICH2 myself<br>
&gt; &gt; &gt; &gt; and failed because of wrong version of automake in Cygwin.<br>
&gt; &gt; &gt; &gt; I then<br>
&gt; &gt; &gt; &gt; installed the Windows binary available on the mpich2<br>
&gt; &gt; &gt; &gt; webpage. I<br>
&gt; &gt; &gt; &gt; configure petsc with:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; $ ./config/configure.py PETSC_DIR=$PWD<br>
&gt; &gt; &gt; &gt; PETSC_ARCH=win64-msvc-release<br>
&gt; &gt; &gt; &gt; --download-c-blas-lapack=1<br>
&gt; &gt; &gt; &gt; --with-mpi-dir=&#39;/cygdrive/c/Program<br>
&gt; &gt; &gt; &gt; Files/MPICH2&#39; --with-x=0 --with-debugging=0<br>
&gt; &gt; &gt; &gt; --with-cc=&#39;win32fe cl&#39;<br>
&gt; &gt; &gt; &gt; --with-fc=0<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; to hear at the end (of a very long configuration<br>
&gt; &gt; &gt; &gt; process...):<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; sh:<br>
&gt; &gt; &gt; &gt; /cygdrive/c/Users/Dominik/Programs/petsc-3.1-p3/bin/win32fe/win32fe<br>
&gt; &gt; &gt; &gt; cl  -o conftest.exe    -MT -wd4996<br>
&gt; &gt; &gt; &gt; conftest.o  /cygdrive/c/Program\<br>
&gt; &gt; &gt; &gt; Files/MPICH2/lib/amd64/msmpi.lib Ws2_32.lib<br>
&gt; &gt; &gt; &gt; Executing:<br>
&gt; &gt; &gt; &gt; /cygdrive/c/Users/Dominik/Programs/petsc-3.1-p3/bin/win32fe/win32fe<br>
&gt; &gt; &gt; &gt; cl  -o conftest.exe    -MT -wd4996<br>
&gt; &gt; &gt; &gt; conftest.o  /cygdrive/c/Program\<br>
&gt; &gt; &gt; &gt; Files/MPICH2/lib/amd64/msmpi.lib Ws2_32.lib<br>
&gt; &gt; &gt; &gt; sh: Warning: win32fe: File Not Found: /cygdrive/c/Program<br>
&gt; &gt; &gt; &gt; Files/MPICH2/lib/amd64/msmpi.lib<br>
&gt; &gt; &gt; &gt; cl : Command line warning D9002 : ignoring unknown option<br>
&gt; &gt; &gt; &gt; &#39;/cygdrive/c/Program Files/MPICH2/lib/amd64/msmpi.lib&#39;<br>
&gt; &gt; &gt; &gt; conftest.obj : error LNK2019: unresolved external symbol<br>
&gt; &gt; &gt; &gt; _MPI_Init<br>
&gt; &gt; &gt; &gt; referenced in function _main<br>
&gt; &gt; &gt; &gt; C:\Users\Dominik\Programs\PETSC-~1.1-P\conftest.exe : fatal<br>
&gt; &gt; &gt; &gt; error<br>
&gt; &gt; &gt; &gt; LNK1120: 1 unresolved externals<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Any directions why would the configuration look for a<br>
&gt; &gt; &gt; &gt; nonexistent<br>
&gt; &gt; &gt; &gt; library? The contents of the installation folder are:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; $ ls -la /cygdrive/c/Program\ Files/MPICH2/lib/<br>
&gt; &gt; &gt; &gt; total 808<br>
&gt; &gt; &gt; &gt; drwx------+ 1 SYSTEM SYSTEM   4096<br>
&gt; &gt; &gt; &gt; 2010-07-21 15:54 .<br>
&gt; &gt; &gt; &gt; drwx------+ 1 SYSTEM SYSTEM   4096<br>
&gt; &gt; &gt; &gt; 2010-07-21 15:54 ..<br>
&gt; &gt; &gt; &gt; -rwx------+ 1 SYSTEM SYSTEM   4644<br>
&gt; &gt; &gt; &gt; 2010-02-22 17:13 TraceInput.lib<br>
&gt; &gt; &gt; &gt; -rwx------+ 1 SYSTEM SYSTEM 322820 2010-02-22 17:09<br>
&gt; &gt; &gt; &gt; cxx.lib<br>
&gt; &gt; &gt; &gt; -rwx------+ 1 SYSTEM SYSTEM 131316 2010-02-22 17:11<br>
&gt; &gt; &gt; &gt; fmpich2.lib<br>
&gt; &gt; &gt; &gt; -rwx------+ 1 SYSTEM SYSTEM 136382 2010-02-22 17:13<br>
&gt; &gt; &gt; &gt; fmpich2g.lib<br>
&gt; &gt; &gt; &gt; -rwx------+ 1 SYSTEM SYSTEM   1936<br>
&gt; &gt; &gt; &gt; 2010-02-22 17:13 irlog2rlog.lib<br>
&gt; &gt; &gt; &gt; -rwx------+ 1 SYSTEM SYSTEM  10430 2010-02-22 16:30<br>
&gt; &gt; &gt; &gt; mpe.lib<br>
&gt; &gt; &gt; &gt; -rwx------+ 1 SYSTEM SYSTEM 132128 2010-02-22 16:29<br>
&gt; &gt; &gt; &gt; mpi.lib<br>
&gt; &gt; &gt; &gt; -rwx------+ 1 SYSTEM SYSTEM  61286 2010-02-22 16:30<br>
&gt; &gt; &gt; &gt; rlog.lib<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Best regards,<br>
&gt; &gt; &gt; &gt; Dominik<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; On Tue, Jul 20, 2010 at 12:44 AM, Jed Brown &lt;<a href="mailto:jed@59a2.org" target="_blank">jed@59a2.org</a>&gt;<br>
&gt; &gt; &gt; &gt; wrote:<br>
&gt; &gt; &gt; &gt; &gt; On Tue, 20 Jul 2010 08:37:18 +1000, Matthew Knepley<br>
&gt; &gt; &gt; &gt; &lt;<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>&gt;<br>
&gt; &gt; &gt; &gt; wrote:<br>
&gt; &gt; &gt; &gt; &gt;&gt; This would do you absolutely no good. Even Jed&#39;s<br>
&gt; &gt; &gt; &gt; thing needs all the<br>
&gt; &gt; &gt; &gt; &gt;&gt; information that the configure provides. CMake is<br>
&gt; &gt; &gt; &gt; exactly what it<br>
&gt; &gt; &gt; &gt; &gt;&gt; says, make. It does no configuration<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; This isn&#39;t true, CMake isn&#39;t a build system at all, it<br>
&gt; &gt; &gt; &gt; does<br>
&gt; &gt; &gt; &gt; &gt; configuration and produces build files for another<br>
&gt; &gt; &gt; &gt; tool (like make or an<br>
&gt; &gt; &gt; &gt; &gt; IDE).  I see no point in maintaining duplicate<br>
&gt; &gt; &gt; &gt; configuration systems,<br>
&gt; &gt; &gt; &gt; &gt; and CMake&#39;s scripting language is so attrocious that<br>
&gt; &gt; &gt; &gt; &quot;replacing&quot;<br>
&gt; &gt; &gt; &gt; &gt; BuildSystem with CMake script would be a disaster.<br>
&gt; &gt; &gt; &gt;  It&#39;s<br>
&gt; &gt; &gt; &gt; &gt; cross-compilation support is also a bit weak, and<br>
&gt; &gt; &gt; &gt; there are a pile of<br>
&gt; &gt; &gt; &gt; &gt; other things that it does poorly (mostly related to<br>
&gt; &gt; &gt; &gt; pathologically<br>
&gt; &gt; &gt; &gt; &gt; dysfunctional &quot;Find*.cmake&quot; modules).  That doesn&#39;t<br>
&gt; &gt; &gt; &gt; mean it isn&#39;t useful<br>
&gt; &gt; &gt; &gt; &gt; for producing build files.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Jed<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br>