<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Bernhard,</p>
<p>&nbsp;</p>
<p>Based on your work, I did a rebase ontop of 4.11-rc7 and&nbsp;compiled for ARMv7 (NXP i.MX 7 to be specific). I removed some x86/MIPS specific patches and had to&nbsp;add some arm specific changes. It compiles fine&nbsp;now,&nbsp;boot&nbsp;looks good but as soon as user space kicks in&nbsp;the kernel crashes with "Unable to handle kernel paging request" at fairly random places. The same source tree works fine with gcc.&nbsp;I&nbsp;need to further debug it, but in case you have ideas...</p>
<p>My current tree is here:</p>
<p><a href="http://git.agner.ch/gitweb/?p=linux.git;a=shortlog;h=refs/heads/armv7-master-clang">http://git.agner.ch/gitweb/?p=linux.git;a=shortlog;h=refs/heads/armv7-master-clang</a></p>
<p>&nbsp;</p>
<p>--</p>
<p>Stefan</p>
<p>&nbsp;</p>
<p>On 2017-02-23 11:59, Bernhard Rosenkr&auml;nzer wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">Hi,
<div>I've rebased all the clang patches to the mainline kernel. The new tree still lives in the</div>
<div><a href="https://android-git.linaro.org/kernel/hikey-clang.git">https://android-git.linaro.org/kernel/hikey-clang.git</a></div>
<div>repository, master-clang branch (but it's somewhat misnamed because this branch doesn't have the Hikey or Android patches -- the android-hikey-linaro-4.9-clang branch in the same repository does).</div>
<div>&nbsp;</div>
<div>It compiles for both aarch64 and x86_64 with fairly complete configs, but currently fails to boot on my notebook (hopefully different hardware will behave better ;) ).</div>
<div>&nbsp;</div>
<div>Patch count is down to 30, some of which are simple enough to go upstream.</div>
<div>&nbsp;</div>
<div>I've tested with clang 4.0-rc2, results with older versions may vary (I've intentionally dropped a couple of patches that were workarounds for bugs in old clang -- they likely wouldn't get accepted upstream anyway, given "fix the compiler" is actually the right advice there, and that advice has been followed already ;) ).</div>
<div>&nbsp;</div>
<div>ttyl</div>
<div>bero</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br /> LLVMLinux mailing list<br /> <a href="mailto:LLVMLinux@lists.linuxfoundation.org">LLVMLinux@lists.linuxfoundation.org</a><br /> <a href="https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux">https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux</a></div>
</blockquote>
<p>&nbsp;</p>
<div>&nbsp;</div>
</body></html>