<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't that good yet. There must be an easier way to do that.<br><br></div><div><div>"1. Implement this builtin in kernel </div><div>2. Alter the code in question so that compiler does not generate the call to builtin"<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"><<a href="mailto:dl9pf@gmx.de" target="_blank">dl9pf@gmx.de</a>></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 "Ugly test fix for eabi-arm.patch") , 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'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>
> > On Aug 24, 2015, at 6:14 AM, Fürst Stefan <<a href="mailto:dieb.stefan.96@gmail.com">dieb.stefan.96@gmail.com</a>><br>
> > wrote:<br>
> ><br>
> > drivers/built-in.o: In function `__video_do_ioctl':<br>
> > /home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/me<br>
> > dia/video/v4l2-ioctl.c:1604: undefined reference to `__aeabi_memclr4'<br>
> > make[1]: *** [.tmp_vmlinux1] Error 1<br>
> > make: *** [sub-make] Error 2<br>
><br>
> This means that compiler is finding a place where it can rely on builtins<br>
> function implemented in compiler runtime which is compiler-rt or libgcc<br>
> depending upon which runtime you use. if it was a user application, then<br>
> simply linking with compiler-rt would have been sufficient but in kernel it<br>
> does not require any C runtime and whatever is needed is implemented in<br>
> kernel itself. So kernel has a small helper library which implements some<br>
> of these builtins, you have two options,<br>
><br>
> 1. Implement this builtin in kernel<br>
> 2. Alter the code in question so that compiler does not generate the call to<br>
> builtin 3. Add -fno-builtin-<value> to compiler flags to disable compiler<br>
> from emitting it<br>
><br>
> Thanks<br>
> -Khem<br>
<br>
</div></div></blockquote></div><br></div>