<div dir="ltr">As a final note, here's my post-install script:<div><br></div><div>ARTIFACT=$prefix</div><div><br></div><div><div># Need to move the DLLs into the appropriate directories</div><div>install $PETSC_ARCH/cyg*.dll $ARTIFACT/bin</div>
<div>install $PETSC_ARCH/lib/cyg*.dll $ARTIFACT/bin</div></div><div><br></div><div>Then "make check" passes for me with Fortran disabled.</div><div><br></div><div>cygcheck.exe will check that all of the DLLs for a DLL or .exe are on the path for you and complain otherwise.</div>
<div><br></div><div>A</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 25, 2013 at 6:33 PM, Aron Ahmadia <span dir="ltr"><<a href="mailto:aron@ahmadia.net" target="_blank">aron@ahmadia.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Also, I think we're using different build configurations, I don't produce a libpetsc.dll (that looks suspiciously like a libpetsc.so file with the wrong name). You should have a:<div>
<br></div><div>
lib/libpetsc.dll.a</div><div><br></div><div>and</div><div><br></div><div>cygpetsc.dll</div><div><br></div><div>The first is the "import library" for the DLL, which contains the stubs for the actual symbols. </div>
<div><br></div><div>I'm on CYGWIN_NT-6.2 1.7.25(0.270/5/3) 2013-08-31 20:37 x86_64 Cygwin using gcc4.8.1-3 from cygwin.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>A</div></font></span></div><div class="HOEnZb">
<div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 25, 2013 at 6:27 PM, Aron Ahmadia <span dir="ltr"><<a href="mailto:aron@ahmadia.net" target="_blank">aron@ahmadia.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">What does cygcheck.exe have to say about it?<span><font color="#888888"><div><br></div><div>
A</div></font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 25, 2013 at 6:05 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On Wed, 25 Sep 2013, Satish Balay wrote:<br>
<br>
> On Wed, 25 Sep 2013, Aron Ahmadia wrote:<br>
><br>
> > The Fortran test failed, I'm not going to bother looking into it.<br>
> ><br>
> > CMake is happily dumping the output library, cygpetsc.dll, in<br>
> > $PETSC_DIR/$PETSC_ARCH<br>
> ><br>
> > According to the wizards at Microsoft/Cygwin, DLLs belong in bin/, so they<br>
> > end up on the PATH when somebody tries to do an import.<br>
><br>
> I guess one can do 'export PATH=$PATH:$PETSC_DIR/PETSC_ARCH/lib' to get the dll<br>
><br>
> But somehow It doesnt' work for me.<br>
><br>
> Also - I'm not sure this [dll] change should go into petsc-3.4. Since<br>
> --with-shared-libraries=1 is the configure default - now petsc-3.4<br>
> users will get a dll - that requies a PATH to be set [for it work]<br>
><br>
> Also - how is this supporsed to work? I set PATH - but still get errors..<br>
><br>
> balay@msnehalem2 ~/petsc.test/src/ksp/ksp/examples/tutorials<br>
> $ echo $PATH<br>
> /home/balay/petsc.test/arch-gnu-ini/lib:/bin:/usr/bin<br>
><br>
> balay@msnehalem2 ~/petsc.test/src/ksp/ksp/examples/tutorials<br>
> $ ls -l /home/balay/petsc.test/arch-gnu-ini/lib<br>
> total 145820<br>
> -rwxr-xr-x 1 balay None 149317546 Sep 25 16:38 libpetsc.dll<br>
> drwxr-xr-x+ 1 balay None 0 Sep 25 16:34 modules<br>
> drwxr-xr-x+ 1 balay None 0 Sep 25 16:34 pkgconfig<br>
><br>
> balay@msnehalem2 ~/petsc.test/src/ksp/ksp/examples/tutorials<br>
> $ ./ex2<br>
> /home/balay/petsc.test/src/ksp/ksp/examples/tutorials/ex2.exe: error while loading shared libraries: libpetsc.dll: cannot open shared object file: No such file or directory<br>
><br>
<br>
</div></div>ldd can find it though...<br>
<br>
balay@msnehalem2 ~/petsc.test/src/ksp/ksp/examples/tutorials<br>
$ ldd ex2.exe<br>
ntdll.dll => /cygdrive/c/Windows/SysWOW64/ntdll.dll (0x770b0000)<br>
kernel32.dll => /cygdrive/c/Windows/syswow64/kernel32.dll (0x74e00000)<br>
KERNELBASE.dll => /cygdrive/c/Windows/syswow64/KERNELBASE.dll (0x74c90000)<br>
cygwin1.dll => /usr/bin/cygwin1.dll (0x61000000)<br>
libpetsc.dll => /home/balay/petsc.test/arch-gnu-ini/lib/libpetsc.dll (0x6b1c0000)<br>
<span><font color="#888888"><br>
<br>
Satish<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>