last snapshot does not compile

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Nov 27 09:30:00 GMT 2012


On Nov 27 08:45, Denis Excoffier wrote:
> On Mon, Nov 26, 2012 at 05:14:38PM +0059, Denis Excoffier wrote:
> >> Hello,
> >> 
> >> I tried the last (20121123) snapshot, it seems to work OK (although
> 
> This morning i tried the 20121126 snapshot with exactly the same
> results, except that the compilation of cygcheck.cc goes one step
> further.
> 
> First, about the cygcheck executable:
> 
> % /usr/bin/cygcheck
> /usr/bin/cygcheck.exe: error while loading shared libraries: zlib1.dll: cannot open shared object file: No such file or directory
> % /usr/bin/ldd /usr/bin/cygcheck.exe
>         ntdll.dll => /cygdrive/d/WINDOWS/system32/ntdll.dll (0x7c910000)
>         kernel32.dll => /cygdrive/d/WINDOWS/system32/kernel32.dll (0x7c800000)
>         libgcc_s_sjlj-1.dll => not found
>         ADVAPI32.dll => /cygdrive/d/WINDOWS/system32/ADVAPI32.dll (?)
>         msvcrt.dll => /cygdrive/d/WINDOWS/system32/msvcrt.dll (?)
>         PSAPI.DLL => /cygdrive/d/WINDOWS/system32/PSAPI.DLL (?)
>         USER32.dll => /cygdrive/d/WINDOWS/system32/USER32.dll (?)
>         zlib1.dll => not found
> %
> 
> About the cygcheck recompilation, i get the following messages:
> 
> /usr/lib/gcc/i686-w64-mingw32/4.5.3/../../../../i686-w64-mingw32/bin/ld: cannot find crt2.o: No such file or directory
> /usr/lib/gcc/i686-w64-mingw32/4.5.3/../../../../i686-w64-mingw32/bin/ld: cannot find -lmingw32
> /usr/lib/gcc/i686-w64-mingw32/4.5.3/../../../../i686-w64-mingw32/bin/ld: cannot find -lmoldname
> /usr/lib/gcc/i686-w64-mingw32/4.5.3/../../../../i686-w64-mingw32/bin/ld: cannot find -lmingwex
> /usr/lib/gcc/i686-w64-mingw32/4.5.3/../../../../i686-w64-mingw32/bin/ld: cannot find -lmingw32
> /usr/lib/gcc/i686-w64-mingw32/4.5.3/../../../../i686-w64-mingw32/bin/ld: cannot find -lmoldname
> /usr/lib/gcc/i686-w64-mingw32/4.5.3/../../../../i686-w64-mingw32/bin/ld: cannot find -lmingwex
> collect2: ld returned 1 exit status
> make[3]: *** [cygcheck.exe] Error 1
> 
> Is it worth trying to link with /usr/i686-pc-mingw32/lib/crt2.o or
> /usr/i686-pc-mingw32/sys-root/mingw/lib/crt2.o ?

In theory the cygcheck executable should have been linked against the
static libz.a, not against zlib1.dll.  This is what happens when I build
cygcheck on my Linux box.  I also just tried to build on Cygwin with the
same result.

If you set the environment variable CCWRAP_VERBOSE and then rebuild
cygcheck.o and cygcheck.exe, what's the entire output of `make'?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list