This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix mingw32 bootstrap regression.
- From: 'Bob Rossi' <bob_rossi at cox dot net>
- To: Danny Smith <dannysmith at clear dot net dot nz>
- Cc: 'Carlos O'Donell' <carlos at codesourcery dot com>, gcc-patches at gcc dot gnu dot org, 'Mark Mitchell' <mark at codesourcery dot com>
- Date: Sat, 23 Dec 2006 09:48:09 -0500
- Subject: Re: [PATCH] Fix mingw32 bootstrap regression.
- References: <20061223002059.GD3022@cox.net> <000001c7262a$61a00f30$5c6d65da@anykey>
On Sat, Dec 23, 2006 at 01:36:24PM +1300, Danny Smith wrote:
>
> >
> > On Sat, Dec 23, 2006 at 11:50:57AM +1300, Danny Smith wrote:
> > >
> > > > On Fri, Dec 22, 2006 at 09:15:57PM +1300, Danny Smith wrote:
> > > > > This way:
> > > > > bash, sed, configure, make, expect, dejagnu, etc are
> > cygwin tools
> > > > > (cygwin1.dll-dependent).
> > > > > The build gcc, binutils are from mingw (msvcrt.dll-dependent).
> > > > > I've done it this way since well before msys.
> > > >
> > > > You run a native bootstrap using these tools?
> > >
> > > Yes.
> > >
> > >
> > > mingw binaries precede cygwin binaries in PATH (unless I
> > actually logon
> > > to cygwin).
> > > mount table contains:
> > > c:\cygwin\lib on /usr/lib type system (binm
> > > c:\cygwin\usr on /usr type system (binmode)
> > > c:\cygwin\bin on /bin type system (binmode)
> > > c:\cygwin\bin on /usr/bin type system (binm
> > > c:\cygwin on / type system (binmode)
> > > c:\mingw on /mingw type system (binmode)
> > > c:\developex on /developex type system (binmode
> > >
> > > mingw binaries live in /mingw/bin
> > > cygwin binaries live in /cygwin/bin
> > > development sources and builds are all rooted in /developex
> > >
> > > Thus native pathnames of all native components are same as cygwin
> > > pathname
> > >
> > > I have never needed to use msys. The cygwin tools have been more
> > > reliable.
> >
> > Hi Danny,
> > Can you post the script that you use, if available? Even just the
> > configure line would be nice.
> >
> This is run from /developex/gcc/svn/gcc-trunk/build dir. The sources are
> in
> /developex/gcc/svn/gcc-trunk/gcc.
>
>
> #!/bin/sh
> ../gcc/configure --with-gcc --enable-libgomp --host=i686-pc-mingw32dw2
> --build=i686-pc-mingw32dw2 --target=i686-pc-mingw32dw2 --with-arch=i486
> --with-tune=i686 --disable-werror --prefix=/mingw
> --with-local-prefix=/mingw --enable-threads --disable-nls
> --enable-languages=c,c++,objc,fortran --disable-win32-registry
> --disable-sjlj-exceptions --enable-libstdcxx-debug
> --enable-cxx-flags='-fno-function-sections -fno-data-sections'
> -enable-shared --enable-version-specific-runtime-libs
> make CXXFLAGS="-mthreads -O2" bootstrap 2>err.log 1>out.log
>
> The 'dw2' suffix in target-triplet is because I use a patched tree that
> allows Dwarf2 EH unwind.
> I install this into /mingw. There are lots of gcc versions in /mingw,
> each qualified with version.
Thanks very much Danny. I'm going to try this out today. One thing I
noticed is that you are doing -enable-shared, whereas every other mingw
build script that I've found does --disable-shared. Does mingw need to
have static libraries or is shared ok also?
Thanks,
Bob Rossi