Hi,

I recently ran into a bug where Clang (svn) could not find some system
header files (specifically <bits/*.h>). I am running Ubuntu 12.10 with
some 13.04 (libstdc++ amongst others) packages to support Clang-3.2.

The root cause seems to be Ubuntu/Debian moving around the header
files for multiarch support. E.g. on my system, <bits/predefs.h> is
located in /usr/include/x86_64-linux-gnu/bits/predefs.h, which isn't
searched by Clang.

Attached is a patch which fixes the problems on my system. A unittest
(with the directory structure attached seperately) illustrates the
problem and shows that it is fixed by the changes in the patch.

If there are any comments on the patch, or if this should be fixed in
some different way, I will be happy to update it.

Cheers.
- Sanne

Attachment: ubuntu_13.04_multiarch_tree.tar.gz
Description: GNU Zip compressed data

Attachment: linux-header-search.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to