"Some headers could not be found" build failure(s)
clang 2.9
In some cases, the
-MM option will change the include directory list.
For example, the code
#include <libxml/parser.h>
will fail with clang but success with gcc.
$ gcc -MM foo.c
foo.o: foo.c
$ clang -MM foo.c
foo.c:1:10: fatal error: 'libxml/parser.h' file not found
#include <libxml/parser.h>
^
foo.o: foo.c
1 error generated.
Note all these problems are caused by
-MM.
Imake.tmpl:2243:10: fatal error: ' X11 .rules' file not found
has been reported on the
xorg bug tracker.