[haiku-development] Re: compilation error

On 2008-11-19 at 20:43:17 [+0100], Bruno Albuquerque <bga@xxxxxxxxxxxxx> 
wrote:
> Dustin Howett wrote:
[...]
> > 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).
> 
> Those are supposed to be native headers, not headers inside buildtools.
> Either they are not present in your system or are in a weird location.

That's wrong. It's compiling libgcc2.c for the target, so it must use the 
target's headers. Maybe I'm getting senile, but I thought I wrote as much 
when the problem was reported originally.

The build/scripts/build_cross_tools script copies Haiku's headers to the 
temporary directory <generated>/cross-tools-build/sysincludes. The GCC 
build system runs them through fixincludes and copies them to another 
location in the output directory tree. Looking at the compile line I'd say 
that would be the "-I./include", but you can verify this by having a look 
at the build output. So, assuming that the headers aren't there, all you 
have to do is check which of the two involved steps fails to copy the 
headers correctly and understand why.

CU, Ingo

Other related posts: