egcs needs a system.h?

H.J. Lu hjl@lucon.org
Fri Feb 13 10:58:00 GMT 1998


> 
> 
>   In message < m0y39gR-0004ecC@ocean.lucon.org >you write:
>   > Any binaries generated during the stage 0 and executed during the
>   > stage 0 are for the build machine. Some binaries may have
>   > 2 copies, one for the host machine and the other for the
>   > build machine. They have to be compiled twice. It is very tricky.
>   > It took me a while to get it working. Read gcc/build-make may
>   > help a little bit.
> Sorry, I don't get it either.
> 
> The gen* programs are for the build machine.
> 
> Everything else is built for the host environment.

I guess you haven't tried build != host. As far as I know, at least
rtl.c, print-rtl.c, rtlanal.c, obstack.c and alloca.c have
to be compiled twice, one for host and one for build if
build != host. They are used by both the gen* programs on
build and gcc on target. FYI, the gcc on target may or may
not be a cross-compiler.

It will be very helpful to understand the issues involved
if you can do it once just for fun. Try target != host != build.
It took me several weeks to get it working without doing it
by hand. Did I mention where to get libc/as/ld/nm/ar? That
is entirely another topic :-).


-- 
H.J. Lu (hjl@gnu.org)



More information about the Gcc mailing list