Package: clang
Version: 3.2-1~exp9ubuntu1

This patch seems to hardcode the host triple to be used for include paths:

http://anonscm.debian.org/viewvc/pkg-llvm/clang/trunk/debian/patches/21-searchPathHeaders.diff?view=markup <http://anonscm.debian.org/viewvc/pkg-llvm/clang/trunk/debian/patches/21-searchPathHeaders.diff?view=markup>

This causes the mixed triple noted here:

http://thread.gmane.org/gmane.comp.compilers.clang.devel/28960/focus=29455 <http://thread.gmane.org/gmane.comp.compilers.clang.devel/28960/focus=29455>

$ clang -v -target arm-linux-gnueabihf --sysroot /home/stephen/rpi/rasp-pi -c main.c ignoring nonexistent directory "/home/stephen/rpi/rasp-pi/usr/include/x86_64-linux-gnu" ignoring nonexistent directory "/home/stephen/rpi/rasp-pi/usr/include/x86_64-linux-gnu"

I notice

http://anonscm.debian.org/viewvc/pkg-llvm/clang/trunk/debian/patches/24-path-multiarch.diff?revision=512&view=markup <http://anonscm.debian.org/viewvc/pkg-llvm/clang/trunk/debian/patches/24-path-multiarch.diff?revision=512&view=markup>

is somewhat similar, but I don't know enough about the clang code or the patches to know the solution here.

https://bugs.launchpad.net/ubuntu/+source/clang/+bug/1181493



Reply via email to