[cfe-dev] 97666 breaks clang

Gonsolo gonsolo at gmail.com
Wed Mar 3 16:35:41 PST 2010


Revision 97666 adds /usr/include/linux to the search path of c headers.

This breaks clang with the following file:

#include <pthread.h>

int main()
{
}

with the error:

clang++ -Wall -Wextra -g -pthread -o bla bla.cc
In file included from bla.cc:1:
In file included from /usr/include/pthread.h:29:
In file included from /usr/include/linux/signal.h:4:
/usr/include/asm/signal.h:135:2: error: unknown type name 'size_t'
         size_t ss_size;

as /usr/include/linux/signal.h is found before /usr/include/signal.h.

g



More information about the cfe-dev mailing list