This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Re: How to deal with includes


Hi,Mark. This is a FAQ.

The choose-temp.c is a implement code of ANSI C lib.
To implement this function choose-temp.c should
include some header file. After right build of
cross complie, it will translate into machine
code of your target. Therefore, those include
files must be your target-specified, right?
How do you get those include files,
don't worry, get newlib first and extract
somewhere(ex:/h/newlib)
And re-configure your gcc build script.
(I suggest you delete your build
directory(/h/crossgcc/build-gnu/gcc/)
and re mkdir). Remember define your
include path, like this.
./configure --with-headers=/h/newlib/newlib/libc/include

somepeople got the same problem at build m68k-coff
http://sources.redhat.com/ml/crossgcc/2001-01/msg00092.html

BTW.
The homepage of newlib
http://sources.redhat.com/newlib/

----- Original Message -----
From: "Mark Palmerino" <mbp@csr-bos.com>
To: <crossgcc@sourceware.cygnus.com>
Sent: Tuesday, February 20, 2001 10:14 AM
Subject: How to deal with includes


> Hi all,
>
> I am attempting to make a cross-compiler and am sometimes running into the
> following kind of problem. During the compilation, I hit a file that is
> asking for included files that can't be found. Here is an example:
>
> /h/crossgcc/build-gnu/gcc/xgcc -B/h/crossgcc/build-gnu/gcc/ -bm68k-coff -c
> -g -O2 -I. -I.
> ./../../gnu-2.8.1/libiberty/../include
> ../../../gnu-2.8.1/libiberty/choose-temp.c
> ../../../gnu-2.8.1/libiberty/choose-temp.c:26: sys/types.h: No such file
or
> directory
> ../../../gnu-2.8.1/libiberty/choose-temp.c:27: sys/file.h: No such file or
> directory
> ../../../gnu-2.8.1/libiberty/choose-temp.c:36: stdio.h: No such file or
> directory
> xgcc: file path prefix `/usr/local/lib/gcc-lib/m68k-coff/2.8.1/' never
used
>
> The file 'choose-temp' is calling for some standard includes (e.g.,
> sys/types.h, sys/file.h and stdio.h).  Is there some way to handle the
> above? What are the issues I should take into account?
>
> Thanks.
>
>
>
>
> ------
> Want more information?  See the CrossGCC FAQ,
http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to
crossgcc-unsubscribe@sourceware.cygnus.com
>
>


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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