This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Latest 64 bit test stuff on sourceware


On 15 February 2013 15:29, Corinna Vinschen wrote:
> Hi guys,
>
> I just uploaded all the latest 64 bit stuff to
> ftp://cygwin.com/pub/cygwin/64bit/
>
> The main change here is what has been discussed in
> http://cygwin.com/ml/cygwin-developers/2013-02/msg00029.html
>
> - The cygwin DLL is named cygwin1.dll rather than cyg64win1.dll.
> - The DLL library prefix is "cyg" rather than "cyg64".
> - The link library search path is /usr/lib, rather than /usr/lib64.
>
> Here's what you get:
>
> - binary-toolchain-x86_64-pc-linux-x-x86_64-pc-cygwin-20130215.tar.xz
>
>     A complete binary x86_64 Linux cross toolchain, latest patches.

Apparently this one can't find its Win32 libraries:

$ cat test.c
main(){}

$ x86_64-pc-cygwin-gcc test.c
/home/andy/opt/x86_64-pc-cygwin/bin/../lib/gcc/x86_64-pc-cygwin/4.8.0/../../../../x86_64-pc-cygwin/bin/ld:
cannot find -ladvapi32
/home/andy/opt/x86_64-pc-cygwin/bin/../lib/gcc/x86_64-pc-cygwin/4.8.0/../../../../x86_64-pc-cygwin/bin/ld:
cannot find -lshell32
/home/andy/opt/x86_64-pc-cygwin/bin/../lib/gcc/x86_64-pc-cygwin/4.8.0/../../../../x86_64-pc-cygwin/bin/ld:
cannot find -luser32
/home/andy/opt/x86_64-pc-cygwin/bin/../lib/gcc/x86_64-pc-cygwin/4.8.0/../../../../x86_64-pc-cygwin/bin/ld:
cannot find -lkernel32
collect2: error: ld returned 1 exit status

A somewhat related issue: in the mintty makefile, I tried to work
around the fact that there are two libuuids, one in the main library
directory and one in its w32api subdirectory, by adding -L`$(HOST)-gcc
-print-sysroot`/usr/lib/w32api to the link line, so as to pick up the
w32api one. (Incidentally that should also work around the issue
above.) Unfortunately that doesn't work with the Linux-hosted
cross-compiler because that returns nothing for -print-sysroot,
whereas Yaakov's Cygwin-32-to-64 cross-compiler does return the
appropriate directory.

Is there a better approach for dealing with that, other than requiring
the library directory to be passed into the makefile?

Andy


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]