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?


2009/1/23 Danny Smith <dansmister@gmail.com>:
> On Fri, Jan 23, 2009 at 9:25 AM, Ross Ridge <rridge@csclub.uwaterloo.ca> wrote:
>> Ross Ridge writes:
>>> 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.
>>
>> NightStrike writes:
>>>Right, --with-sysroot is mainly used for cross/canadian cross.  Try
>>>building a mingw cross compiler from linux.  Ie, configure
>>>--build=i686-pc-linux --host=i686-pc-mingw32 --target=i686-pc-mingw32
>>>--prefix=/tmp/root --with-sysroot=/tmp/root
>>
>> I assume you mean trying to build with a cross compiler, not building
>> a cross compiler.
>>
>>>That will 1) require a sysroot, and 2) won't work due totKai's
>>>referenced new bug.
>>
>> So you're saying that the bootstrap isn't broken, as Kai Tietz isn't
>> actually doing a native bootstrap, instead he's building a mingw hosted
>> and targeted compiler using a cross compiler on Linux?  As I understand
>> it, that's how Danny Smith does his builds, so why isn't he also required
>> to use sysroot, or if he is, why hasn't he encountered the bug?
>>
>> Have you encountered this bug?
>>
>>                                Ross Ridge
>>
>
> I have not seen bug with either
> --build=i686-pc-linux --host=i686-pc-mingw32 --target=i686-pc-mingw32
>
> or
> -build=i686-pc-mingw32 --host=i686-pc-mingw32 --target=i686-pc-mingw32
>
> The latter uses cygwin bash and tools and is a full bootstrap and regtest.
> It is what I use most often.
>
> I don't use --with-sysroot.
>
> Danny
>

I don't think that --with-sysroot is here the problem.
The implementation in pex-win32 for win32_spawn seems to be ok for
XP64, but for 64-bit native toolchain on Vista64 there seems to be a
problem. I'll try to investigate further what the problem really is.
On Vista64 the CreateProcess seems to fail.

Cheers,
Kai


-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


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