http://llvm.org/bugs/show_bug.cgi?id=18292
Tilmann Scheller <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |WORKSFORME --- Comment #1 from Tilmann Scheller <[email protected]> --- Hi Simon, Clang still doesn't have proper support for cross compilation (e.g. see http://llvm.org/bugs/show_bug.cgi?id=4127). In other words: only specifying the target triple is not enough, you need to supply the header path as well (otherwise it will just pick the default header paths, e.g. in your case the host headers) Usually the easies way is to specify --sysroot and -gcc-toolchain, this is what I use to cross-compile from x86-64 to AArch64: -target arm64-unknown-linux-gnu -gcc-toolchain /home/t/work/arm/gcc-linaro-aarch64-linux-gnu-4.8-2014.03_linux --sysroot /home/t/work/arm/gcc-linaro-aarch64-linux-gnu-4.8-2014.03_linux/aarch64-linux-gnu/libc The other option is to set the header search paths manually with -I and so on. Regards, Tilmann -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
