[haiku-development] Re: Can't build cross gcc 2.x

On 2008-10-30 at 05:00:09 [+0100], Dustin Howett <alaricx@xxxxxxxxx> wrote:
> I attempted to rebuild GCC2 because jam was complaining that
> HAIKU_RAW_GCC_VERSION was not set (which it actually was.)
> This is the error I encountered:
> 
> --------
> In file included from tconfig.h:5,
>                  from
> /home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/libgcc2.c:33:
> /home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/config/i386/xm-haiku.h:3
> 2:
> sys/wait.h: No such file or directory
> /home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/libgcc2.c:41:
> stdlib.h: No such file or directory
> /home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/libgcc2.c:42:
> unistd.h: No such file or directory
> make[1]: *** [libgcc2.a] Error 1
> make[1]: Leaving directory
> `/home/dustin/programming/c/haikubuild/haiku/generated/cross-tools-build/gcc
> /gcc'
> make: *** [cross] Error 2
> ERROR: Building gcc failed.
> --------
> 
> Any ideas? :) I can't find (for example) wait.h in the buildtools
> checkout at all, and I'm at the newest revision as of this writing
> (28373).

For building libgcc Haiku's headers are used (headers/posix, headers/os). 
They are copied by the build/scripts/build_cross_tools script to someplace 
where gcc will pick them up.

CU, Ingo

Other related posts: