cross-building a native compiler (was: Re: Build for x86_64)

Dan Kegel
Tue Jun 29 01:22:00 GMT 2004

Greg Chandler wrote:
> I changed the scripts for x86_64 to use the gcc 3.3.4 20040623 snapshot,
> and it built fine and works on Slackware 10.0.  So I would assume it
> works on everything.  The current script points to a snapshot that is no
> longer available.
> I've built a 64bit kernel with the compiler to test it, and it boots, so I
> think it should be fine.

Good to hear.

> Do you know of any good howto's to build a native compiler from a cross
> compiler?  I've built the cross to build x86_64 elfs, but I would like to
> build a native.  I don't have the headers or libraries to build a native
> so I'm not sure where to look.

I've done it, but have yet to write a howto.
for what little I *have* written.
See also
for a tweak you have to make to the resulting final spec file
to coax the cross-built compiler into realizing it's native
and not cross.
- Dan

My technical stuff:
My politics: see for examples of why I'm for regime change

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list