<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>today i have tried cross compiling an android kernel with clang. My device is a oneplus one. Also tried compiling a nexus5 kernel with the llvmlinux build machine and there i got similar errors.<br></div>The things i did were <br><div>git clone <a href="http://git.linuxfoundation.org/llvmlinux.git" target="_blank">http://git.linuxfoundation.org/llvmlinux.git</a></div><div>cd llvmlinux<br></div><div>cd targets<br></div><div>cd nexus5<br></div><div>make<br><br></div><div>And everything compiled fine and at the end these errors occured. So now i don&#39;t know what the problem could be ? Have i missed something ? Where can i specifiy a target ? (that could be the problem right ?) It seems to be quite easy building a native kernel - build x86 target on a x86 machine. But on android i have some problems.<br><br>Here is a small port of the error log:<br>/home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/of/of_spmi.c:396: undefined reference to `__aeabi_memclr8&#39;<br>drivers/built-in.o: In function `usb_bam_init&#39;:<br>/home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/platform/msm/usb_bam.c:2297: undefined reference to `__aeabi_memcpy8&#39;<br>drivers/built-in.o: In function `sps_connect&#39;:<br>/home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/platform/msm/sps/sps.c:1312: undefined reference to `__aeabi_memcpy4&#39;<br>drivers/built-in.o: In function `sps_get_config&#39;:<br>/home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/platform/msm/sps/sps.c:1795: undefined reference to `__aeabi_memcpy4&#39;<br>drivers/built-in.o: In function `sps_register_bam_device&#39;:<br>/home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/platform/msm/sps/sps.c:2108: undefined reference to `__aeabi_memcpy4&#39;<br>drivers/built-in.o: In function `sps_dma_init&#39;:<br>/home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/platform/msm/sps/sps_dma.c:446: undefined reference to `__aeabi_memcpy4&#39;<br>drivers/built-in.o: In function `msm_dsi_probe&#39;:<br>/home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/video/msm/mdss/dsi_host_v2.c:925: undefined reference to `__aeabi_memcpy8&#39;<br>drivers/built-in.o: In function `msm_hs_sps_init&#39;:<br>/home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/tty/serial/msm_serial_hs.c:2856: undefined reference to `__aeabi_memclr8&#39;<br><br></div><div>Full log here:</div><a href="http://pastebin.com/Ra9gXjzL">http://pastebin.com/Ra9gXjzL</a><br><br></div>How can i solve this ? <br><br></div>Kind regards<br></div>Stefan<br></div>