Discussion:
Cygwin 64 bootstrap script
Corinna Vinschen
2013-02-13 18:47:02 UTC
Permalink
Hi guys,

for those who want to build cross and native toolchains from scratch, I
uploaded a script called "bootstrap.sh" to
ftp://cygwin.com/pub/cygwin/64bit/

This is basically the same script we use internally to build the
toolchains. After download you have to take a look at the start of the
script, since you have to do a bit of ground work to get the script
running. You have to create all the source directories in the first
place and then set the paths in the script header accordingly.

Btw.,today I found that mintty and strip both crash when using a Cygwin
DLL compiled with optimization. If you have fun to track down the
problem (which could be a gcc problem as well as a Cygwin problem), feel
free. I'd be glad to get some help here.

Anyway, if you just want to play with the self-built DLL, just enter the
$MY_BUILDDIR/newlib_winsup/x86_64-pc-cygwin/winsup/cygwin dir, rm *.o,
make CFLAGS=-g, and then use that DLL for playing.


Hope that helps,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
Yaakov (Cygwin/X)
2013-02-14 03:51:33 UTC
Permalink
Post by Corinna Vinschen
for those who want to build cross and native toolchains from scratch, I
uploaded a script called "bootstrap.sh" to
ftp://cygwin.com/pub/cygwin/64bit/
FYI, cygwin-to-cygwin64 cross-compiler packages with your latest patches
are being uploaded to Ports right now:

cygwin64
cygwin64-binutils
cygwin64-gcc-core
cygwin64-gcc-g++
cygwin64-libtool
cygwin64-w32api-headers
cygwin64-w32api-runtime
cygwin64-zlib


Yaakov
Corinna Vinschen
2013-02-14 10:14:30 UTC
Permalink
Post by Yaakov (Cygwin/X)
Post by Corinna Vinschen
for those who want to build cross and native toolchains from scratch, I
uploaded a script called "bootstrap.sh" to
ftp://cygwin.com/pub/cygwin/64bit/
FYI, cygwin-to-cygwin64 cross-compiler packages with your latest patches
cygwin64
cygwin64-binutils
cygwin64-gcc-core
cygwin64-gcc-g++
cygwin64-libtool
cygwin64-w32api-headers
cygwin64-w32api-runtime
cygwin64-zlib
Wow, cool. Thumbs up.


Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
Peter Rosin
2013-02-14 23:57:31 UTC
Permalink
Post by Yaakov (Cygwin/X)
Post by Corinna Vinschen
for those who want to build cross and native toolchains from scratch, I
uploaded a script called "bootstrap.sh" to
ftp://cygwin.com/pub/cygwin/64bit/
FYI, cygwin-to-cygwin64 cross-compiler packages with your latest patches
I tried your cross-compiler, and wonder if the below is expected?

Cheers,
Peter

$ uname -srvmo
CYGWIN_NT-6.1-WOW64 1.7.17(0.262/5/3) 2012-10-19 14:39 i686 Cygwin
$ cat t.c
int main(void) { return 0; }
$ x86_64-pc-cygwin-gcc -o t t.c
/usr/lib/gcc/x86_64-pc-cygwin/4.8.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -ladvapi32
/usr/lib/gcc/x86_64-pc-cygwin/4.8.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lshell32
/usr/lib/gcc/x86_64-pc-cygwin/4.8.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -luser32
/usr/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
$ x86_64-pc-cygwin-gcc -o t t.c -L/usr/x86_64-pc-cygwin/sys-root/usr/lib/w32api
$
Yaakov (Cygwin/X)
2013-02-15 02:20:19 UTC
Permalink
Post by Peter Rosin
I tried your cross-compiler, and wonder if the below is expected?
No, its not. I just uploaded the following updates:

cygwin64-binutils-20130213-1
cygwin64-20130214-1


Yaakov

Corinna Vinschen
2013-02-14 19:35:54 UTC
Permalink
Post by Corinna Vinschen
Hi guys,
for those who want to build cross and native toolchains from scratch, I
uploaded a script called "bootstrap.sh" to
ftp://cygwin.com/pub/cygwin/64bit/
This is basically the same script we use internally to build the
toolchains. After download you have to take a look at the start of the
script, since you have to do a bit of ground work to get the script
running. You have to create all the source directories in the first
place and then set the paths in the script header accordingly.
Btw.,today I found that mintty and strip both crash when using a Cygwin
DLL compiled with optimization. If you have fun to track down the
problem (which could be a gcc problem as well as a Cygwin problem), feel
free. I'd be glad to get some help here.
FYI, I just applied a patch to the Cygwin DLL to fix the problem, so
mintty and strip work with an optimized DLL now. Given the place and
the nature of the bug, I'm rather puzzled that my other executables
didn't seem to be affected.

For those of you not building their own Cygwin DLL, I'll upload a new
binary micro distro package soon.


Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
Loading...