<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:t.scheller@samsung.com" title="Tilmann Scheller <t.scheller@samsung.com>"> <span class="fn">Tilmann Scheller</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Incorrect intptr_t type on aarch64 (cross compiling from x86_64)"
href="http://llvm.org/bugs/show_bug.cgi?id=18292">bug 18292</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>t.scheller@samsung.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>WORKSFORME
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Incorrect intptr_t type on aarch64 (cross compiling from x86_64)"
href="http://llvm.org/bugs/show_bug.cgi?id=18292#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Incorrect intptr_t type on aarch64 (cross compiling from x86_64)"
href="http://llvm.org/bugs/show_bug.cgi?id=18292">bug 18292</a>
from <span class="vcard"><a class="email" href="mailto:t.scheller@samsung.com" title="Tilmann Scheller <t.scheller@samsung.com>"> <span class="fn">Tilmann Scheller</span></a>
</span></b>
<pre>Hi Simon,
Clang still doesn't have proper support for cross compilation (e.g. see
<a class="bz_bug_link
bz_status_NEW "
title="NEW --- - The clang driver should support cross compilation"
href="show_bug.cgi?id=4127">http://llvm.org/bugs/show_bug.cgi?id=4127</a>).
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>