This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Building gcc: "decContext.c:38:43: error: string.h: No such file or directory"


On Mon, Apr 20, 2009 at 2:10 PM, Ian Lance Taylor <iant@google.com> wrote:
> The failure is occurring when the newly built gcc is being used to
> compile gcc's support library.
>
> Building a cross-compiler to a GNU/Linux system is tricky. ?I recommend
> looking at the scripts found via http://crosstool.org/ .

crosstool looks clunky to me.  I solved the problem by adding a few
more command-line parameters to the configure script:

../gcc-4.3.3/configure --target=powerpc-linux
--program-prefix=powerpc-linux- --enable-languages="c"
--without-headers --disable-shared  --with-newlib --disable-threads
--disable-nls

-- 
Timur Tabi
Linux kernel developer at Freescale


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