[LLVMbugs] [Bug 18292] Incorrect intptr_t type on aarch64 (cross compiling from x86_64)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 14 07:19:26 PDT 2014


Tilmann Scheller <t.scheller at samsung.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |t.scheller at samsung.com
         Resolution|---                         |WORKSFORME

--- Comment #1 from Tilmann Scheller <t.scheller at samsung.com> ---
Hi Simon,

Clang still doesn't have proper support for cross compilation (e.g. see

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

The other option is to set the header search paths manually with -I and so on.



You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140514/9095dd8e/attachment.html>

More information about the llvm-bugs mailing list