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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 20, 2009 at 2:10 PM, Ian Lance Taylor <iant@xxxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux