This is the mail archive of the gcc@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]

Re: Cross compilation (fwd)



----- 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.


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