I originally started with the native path, but I got an immediate complaint that I am better off using cygwin syntax....<br><br><div class="gmail_quote">On Thu, Jul 22, 2010 at 10:07 AM, Farshid Mossaiby <span dir="ltr">&lt;<a href="mailto:mossaiby@yahoo.com">mossaiby@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I doubt &#39;cl&#39; can interpret Cygwin paths:<br>
<div class="im"><br>
cl : Command line warning D9002 : ignoring unknown option<br>
&#39;/cygdrive/c/Program Files/MPICH2/lib/amd64/msmpi.lib&#39;<br>
<br>
</div>Shouldn&#39;t win32fe convert this path first?<br>
<br>
Hope this helps.<br>
<br>
--- On Wed, 7/21/10, Dominik Szczerba &lt;<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>&gt; wrote:<br>
<br>
&gt; From: Dominik Szczerba &lt;<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>&gt;<br>
&gt; Subject: Re: [petsc-users] configure problems<br>
&gt; To: &quot;PETSc users list&quot; &lt;<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>&gt;<br>
&gt; Date: Wednesday, July 21, 2010, 7:01 PM<br>
<div><div></div><div class="h5">&gt; Coming back to the original problem:<br>
&gt; I tried to compile MPICH2 myself<br>
&gt; and failed because of wrong version of automake in Cygwin.<br>
&gt; I then<br>
&gt; installed the Windows binary available on the mpich2<br>
&gt; webpage. I<br>
&gt; configure petsc with:<br>
&gt;<br>
&gt; $ ./config/configure.py PETSC_DIR=$PWD<br>
&gt; PETSC_ARCH=win64-msvc-release<br>
&gt; --download-c-blas-lapack=1<br>
&gt; --with-mpi-dir=&#39;/cygdrive/c/Program<br>
&gt; Files/MPICH2&#39; --with-x=0 --with-debugging=0<br>
&gt; --with-cc=&#39;win32fe cl&#39;<br>
&gt; --with-fc=0<br>
&gt;<br>
&gt; to hear at the end (of a very long configuration<br>
&gt; process...):<br>
&gt;<br>
&gt; sh:<br>
&gt; /cygdrive/c/Users/Dominik/Programs/petsc-3.1-p3/bin/win32fe/win32fe<br>
&gt; cl  -o conftest.exe    -MT -wd4996 <br>
&gt; conftest.o  /cygdrive/c/Program\<br>
&gt; Files/MPICH2/lib/amd64/msmpi.lib Ws2_32.lib<br>
&gt; Executing:<br>
&gt; /cygdrive/c/Users/Dominik/Programs/petsc-3.1-p3/bin/win32fe/win32fe<br>
&gt; cl  -o conftest.exe    -MT -wd4996 <br>
&gt; conftest.o  /cygdrive/c/Program\<br>
&gt; Files/MPICH2/lib/amd64/msmpi.lib Ws2_32.lib<br>
&gt; sh: Warning: win32fe: File Not Found: /cygdrive/c/Program<br>
&gt; Files/MPICH2/lib/amd64/msmpi.lib<br>
&gt; cl : Command line warning D9002 : ignoring unknown option<br>
&gt; &#39;/cygdrive/c/Program Files/MPICH2/lib/amd64/msmpi.lib&#39;<br>
&gt; conftest.obj : error LNK2019: unresolved external symbol<br>
&gt; _MPI_Init<br>
&gt; referenced in function _main<br>
&gt; C:\Users\Dominik\Programs\PETSC-~1.1-P\conftest.exe : fatal<br>
&gt; error<br>
&gt; LNK1120: 1 unresolved externals<br>
&gt;<br>
&gt; Any directions why would the configuration look for a<br>
&gt; nonexistent<br>
&gt; library? The contents of the installation folder are:<br>
&gt;<br>
&gt; $ ls -la /cygdrive/c/Program\ Files/MPICH2/lib/<br>
&gt; total 808<br>
&gt; drwx------+ 1 SYSTEM SYSTEM   4096<br>
&gt; 2010-07-21 15:54 .<br>
&gt; drwx------+ 1 SYSTEM SYSTEM   4096<br>
&gt; 2010-07-21 15:54 ..<br>
&gt; -rwx------+ 1 SYSTEM SYSTEM   4644<br>
&gt; 2010-02-22 17:13 TraceInput.lib<br>
&gt; -rwx------+ 1 SYSTEM SYSTEM 322820 2010-02-22 17:09<br>
&gt; cxx.lib<br>
&gt; -rwx------+ 1 SYSTEM SYSTEM 131316 2010-02-22 17:11<br>
&gt; fmpich2.lib<br>
&gt; -rwx------+ 1 SYSTEM SYSTEM 136382 2010-02-22 17:13<br>
&gt; fmpich2g.lib<br>
&gt; -rwx------+ 1 SYSTEM SYSTEM   1936<br>
&gt; 2010-02-22 17:13 irlog2rlog.lib<br>
&gt; -rwx------+ 1 SYSTEM SYSTEM  10430 2010-02-22 16:30<br>
&gt; mpe.lib<br>
&gt; -rwx------+ 1 SYSTEM SYSTEM 132128 2010-02-22 16:29<br>
&gt; mpi.lib<br>
&gt; -rwx------+ 1 SYSTEM SYSTEM  61286 2010-02-22 16:30<br>
&gt; rlog.lib<br>
&gt;<br>
&gt; Best regards,<br>
&gt; Dominik<br>
&gt;<br>
&gt; On Tue, Jul 20, 2010 at 12:44 AM, Jed Brown &lt;<a href="mailto:jed@59a2.org">jed@59a2.org</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt; On Tue, 20 Jul 2010 08:37:18 +1000, Matthew Knepley<br>
&gt; &lt;<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt;&gt; This would do you absolutely no good. Even Jed&#39;s<br>
&gt; thing needs all the<br>
&gt; &gt;&gt; information that the configure provides. CMake is<br>
&gt; exactly what it<br>
&gt; &gt;&gt; says, make. It does no configuration<br>
&gt; &gt;<br>
&gt; &gt; This isn&#39;t true, CMake isn&#39;t a build system at all, it<br>
&gt; does<br>
&gt; &gt; configuration and produces build files for another<br>
&gt; tool (like make or an<br>
&gt; &gt; IDE).  I see no point in maintaining duplicate<br>
&gt; configuration systems,<br>
&gt; &gt; and CMake&#39;s scripting language is so attrocious that<br>
&gt; &quot;replacing&quot;<br>
&gt; &gt; BuildSystem with CMake script would be a disaster.<br>
&gt;  It&#39;s<br>
&gt; &gt; cross-compilation support is also a bit weak, and<br>
&gt; there are a pile of<br>
&gt; &gt; other things that it does poorly (mostly related to<br>
&gt; pathologically<br>
&gt; &gt; dysfunctional &quot;Find*.cmake&quot; modules).  That doesn&#39;t<br>
&gt; mean it isn&#39;t useful<br>
&gt; &gt; for producing build files.<br>
&gt; &gt;<br>
&gt; &gt; Jed<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br>