This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: bootstrap for native mingw broken?


Ross Ridge <rridge@csclub.uwaterloo.ca> wrote:
> I just bootstrapped a native mingw build on 32-bit Windows XP
> successfully.  I use --prefix, but not --with-sysroot.  I could never
> get --with-sysroot to do anything useful with a native build, so you
> might try not using it.

NightStrike writes:
>By "native", we mean a build that *runs* natively.  It's still being
>built in a cross compiler, which requires a sysroot.

While you can argue that a truly native mingw32 build isn't possible
because you need to use a Cygwin or MSYS shell environment, when I
boostrapped GCC the compiler used throughout the process, in stage1 and
the following stages, was a native mingw32 hosted and targeted compiler.
I didn't build it with a cross compiler as you suggest.

More importantly, as far a configure is concerned, it was native a build:

	...
	checking build system type... i386-pc-mingw32
	checking host system type... i386-pc-mingw32
	checking target system type... i386-pc-mingw32
	...
	checking whether we are cross compiling... no
	...
	
This is probably why --with-sysroot never accomplished anything useful
for me.  Maybe --with-sysroot has changed since I last tried using it, or
maybe there's something about how Kai Tietz does his "native" builds that
makes it works for him.  All I know is something's not working for him.

				Ross Ridge


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