Cross compilation (fwd)
Tim Prince
tprince@computer.org
Sat Feb 24 08:17:00 GMT 2001
----- Original Message -----
From: "student" <csst9923@scylla.cs.uoi.gr>
To: <gcc@gcc.gnu.org>
Sent: Saturday, February 24, 2001 6:33 AM
Subject: Cross compilation (fwd)
>
>
> Hi.
> I am trying to build a cross compiler from i686-pc-linux-gnu
>
> to a sparc-sun-solaris.
> I tried to build it as the Cross compilation FAQ
> ( http://www.objsw.com/CrossGCC/ ) suggested but :
>
> When i copy unistd.h from /usr/src/linux/include/asm-sparc/ the
> compilation fails...
>
> The point is what include files must pass to the compilation proccess
?
> My system runs the 2.4.0 kernel so do i need to pass the headers from
the
> source of the kernel or from /usr/include , and the unistd.h must be
from
> the i386 architecture or from the sparc one ?
The answer to the last must be in that FAQ. You must copy all necessary
include files for the target implementation to your target build
directory before running configure. The gcc source has only the
includes which are supplemental to the ones from the target OS; if your
target is supported, make clean and configure should accomplish the
modifications automatically.
More information about the Gcc
mailing list