On Tue, Nov 8, 2011 at 10:10 PM, Dominik Szczerba <span dir="ltr">&lt;<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I tried to force using the - seemingly properly compiled - blas/lapack<br>
libs with:<br>
<br>
./config/configure.py PETSC_DIR=$PWD PETSC_ARCH=win64-msvc-release<br>
--with-x=0 --with-debugging=0 --with-cc=&#39;win32fe cl&#39;<br>
--with-cxx=&#39;win32fe cl&#39; --with-fc=0<br>
--with-mpi-dir=/cygdrive/c/mpich2-1.3.2p1-win-x86-64<br>
--with-hypre-dir=/cygdrive/c/pack/hypre-2.7.0b/src/hypre/<br>
--with-parmetis=1 --download-parmetis=1<br>
--with-blas-lib=/cygdrive/c/pack/petsc-3.2-p5/win64-msvc-release/lib/libf2cblas.lib<br>
--with-lapack-lib=/cygdrive/c/pack/petsc-3.2-p5/win64-msvc-release/lib/libf2clapack.lib<br>
<br>
I get the error:<br>
<br>
*******************************************************************************<br>
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for detail<br>
s):<br>
-------------------------------------------------------------------------------<br>
You set a value for --with-blas-lib=&lt;lib&gt; and --with-lapack-lib=&lt;lib&gt;, but [&#39;/cy<br>
gdrive/c/pack/petsc-3.2-p5/win64-msvc-release/lib/libf2cblas.lib&#39;] and [&#39;/cygdri<br>
ve/c/pack/petsc-3.2-p5/win64-msvc-release/lib/libf2clapack.lib&#39;] cannot be used<br>
*******************************************************************************<br>
<br>
Excerpt from configure.log:<br>
<br>
error LNK2019: unresolved external symbol dgetrs referenced in function main<br>
<br>
I will send complete log to petsc-maint again.<br></blockquote><div><br></div><div>Send that and &#39;nm /cygdrive/c/pack/petsc-3.2-p5/win64-msvc-release/lib/libf2clapack.lib | grep dgetrs&#39; </div><div><br></div><div>
If you look in configure.log, it shows you the stub source we use to check the link and the</div><div>compile line. You can easily test yourself.</div><div><br></div><div>    Matt</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Any more hints?<br>
<br>
Thanks,<br>
Dominik<br>
<br>
On Mon, Nov 7, 2011 at 3:57 PM, Dominik Szczerba &lt;<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>&gt; wrote:<br>
&gt; I am configuring with:<br>
&gt;<br>
&gt; ./config/configure.py PETSC_DIR=$PWD PETSC_ARCH=win64-msvc-release<br>
&gt; --with-x=0 --with-debugging=0 --with-cc=&#39;win32fe cl&#39;<br>
&gt; --with-cxx=&#39;win32fe cl&#39; --with-fc=0 --download-f2cblaslapack<br>
&gt; --with-mpi-dir=/cygdrive/c/mpich2-1.3.2p1-win-x86-64<br>
&gt; --with-hypre-dir=/cygdrive/c/pack/hypre-2.7.0b/src/hypre/<br>
&gt; --with-parmetis=1 --download-parmetis=1<br>
&gt;<br>
&gt; and getting an error:<br>
&gt;<br>
&gt; *******************************************************************************<br>
&gt;         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log<br>
&gt; for details):<br>
&gt; -------------------------------------------------------------------------------<br>
&gt; --download-f2cblaslapack libraries cannot be used<br>
&gt; *******************************************************************************<br>
&gt;  File &quot;./config/configure.py&quot;, line 283, in petsc_configure<br>
&gt;    framework.configure(out = sys.stdout)<br>
&gt;  File &quot;/cygdrive/c/pack/petsc-3.2-p5/config/BuildSystem/config/framework.py&quot;,<br>
&gt; line 925, in configure<br>
&gt;    child.configure()<br>
&gt;  File &quot;/cygdrive/c/pack/petsc-3.2-p5/config/BuildSystem/config/packages/BlasLapack.py&quot;,<br>
&gt; line 538, in configure<br>
&gt;    self.executeTest(self.configureLibrary)<br>
&gt;  File &quot;/cygdrive/c/pack/petsc-3.2-p5/config/BuildSystem/config/base.py&quot;,<br>
&gt; line 115, in executeTest<br>
&gt;    ret = apply(test, args,kargs)<br>
&gt;  File &quot;/cygdrive/c/pack/petsc-3.2-p5/config/BuildSystem/config/packages/BlasLapack.py&quot;,<br>
&gt; line 444, in configureLibrary<br>
&gt;    for (name, blasLibrary, lapackLibrary, self.useCompatibilityLibs)<br>
&gt; in self.generateGuesses():<br>
&gt;  File &quot;/cygdrive/c/pack/petsc-3.2-p5/config/BuildSystem/config/packages/BlasLapack.py&quot;,<br>
&gt; line 162, in generateGuesses<br>
&gt;    raise RuntimeError(&#39;--download-f2cblaslapack libraries cannot be used&#39;)<br>
&gt;<br>
&gt; I will send the full log to petsc-maint in a second. How do I go from here?<br>
&gt;<br>
&gt; Thanks for any hints,<br>
&gt; Dominik<br>
&gt;<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>