<div dir="ltr"><div><div><div>Thank you guys for your answers,<br><br></div>Where can i find that fix for eabi-arm.patch ? <br></div>Here not <a href="http://lists.linuxfoundation.org/pipermail/llvmlinux/2015-August/thread.html#start">http://lists.linuxfoundation.org/pipermail/llvmlinux/2015-August/thread.html#start</a><br></div>Was it an internal discussion ? <br><div><div><br>-fno-builtin is already in the makefile but it does not seem to solve my errors.<br><br></div><div>As a hobby developer this seems to be to difficult for me because my coding skills aren&#39;t that good yet. There must be an easier way to do that.<br><br></div><div><div>&quot;1. Implement this builtin in kernel </div><div>2. Alter the code in question so that compiler does not generate the call to builtin&quot;<br><br></div><div>Kind regards,<br></div><div>Stefan<br></div><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-25 10:31 GMT+02:00 Jan-Simon Möller <span dir="ltr">&lt;<a href="mailto:dl9pf@gmx.de" target="_blank">dl9pf@gmx.de</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">See the archives (end of thread &quot;Ugly test fix for eabi-arm.patch&quot;) , we just<br>
in the last 2 weeks discussed the case that LLVM/clang is wrongly adding the<br>
references for these and not<br>
obeys the -nostdic / -freestanding  flags passed by the kernel&#39;s makefiles.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<br>
Dipl.-Ing.<br>
Jan-Simon Möller<br>
<br>
<a href="mailto:jansimon.moeller@gmx.de">jansimon.moeller@gmx.de</a><br>
</font></span><div class="HOEnZb"><div class="h5">On Monday 24 August 2015 23:58:35 Khem Raj wrote:<br>
&gt; &gt; On Aug 24, 2015, at 6:14 AM, Fürst Stefan &lt;<a href="mailto:dieb.stefan.96@gmail.com">dieb.stefan.96@gmail.com</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; drivers/built-in.o: In function `__video_do_ioctl&#39;:<br>
&gt; &gt; /home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/me<br>
&gt; &gt; dia/video/v4l2-ioctl.c:1604: undefined reference to `__aeabi_memclr4&#39;<br>
&gt; &gt; make[1]: *** [.tmp_vmlinux1] Error 1<br>
&gt; &gt; make: *** [sub-make] Error 2<br>
&gt;<br>
&gt; This means that compiler is finding a place where it can rely on builtins<br>
&gt; function implemented in compiler runtime which is compiler-rt or libgcc<br>
&gt; depending upon which runtime you use. if it was a user application, then<br>
&gt; simply linking with compiler-rt would have been sufficient but in kernel it<br>
&gt; does not require any C runtime and whatever is needed is implemented in<br>
&gt; kernel itself. So kernel has a small helper library which implements some<br>
&gt; of these builtins, you have two options,<br>
&gt;<br>
&gt; 1. Implement this builtin in kernel<br>
&gt; 2. Alter the code in question so that compiler does not generate the call to<br>
&gt; builtin 3. Add -fno-builtin-&lt;value&gt; to compiler flags to disable compiler<br>
&gt; from emitting it<br>
&gt;<br>
&gt; Thanks<br>
&gt; -Khem<br>
<br>
</div></div></blockquote></div><br></div>