[cfe-dev] linux build fix

Chris Lattner clattner at apple.com
Sat Dec 8 16:42:27 PST 2007


>> #include "..." search starts here:
>> #include <...> search starts here:
>>  /usr/local/include
>>  /usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/include
>>  /usr/include
>> End of search list.
>>
>> do you see /usr/include/linux?
>
> I have close to the same.  Looking around, I found that all three of  
> the
> headers that are missing are in the /usr/lib/gcc/... path.  I'm not
> entirely clear on what that means, but I've got a pretty strong
> suspicion.  I'm pretty sure clang isn't meant to depend on gcc, so are
> those headers that need to be supplied with clang?

Yep, clang currently depends on the GCC headers.

> If so, I'm assuming new ones have to be written from scratch due to  
> the
> license these files carry in GCC.  (GPL v2+, with exceptions for
> binaries compiled by GCC.)  Correct?

Yep, in the fullness of time, we will tackle that.  For now, we're  
just assuming everyone has GCC, and we're glomming onto the headers  
they already provide.

-Chris




More information about the cfe-dev mailing list