This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Cross compilation (fwd)
- To: "student" <csst9923 at scylla dot cs dot uoi dot gr>, <gcc at gcc dot gnu dot org>
- Subject: Re: Cross compilation (fwd)
- From: "Tim Prince" <tprince at computer dot org>
- Date: Sat, 24 Feb 2001 08:20:28 -0800
- References: <Pine.GSO.3.96.1010224163210.27658A-100000@scylla>
----- 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.