[llvmlinux] Cross Compiling problems with android kernels

Fürst Stefan dieb.stefan.96 at gmail.com
Mon Jun 29 15:44:38 UTC 2015


Hello,

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.
The things i did were
git clone http://git.linuxfoundation.org/llvmlinux.git
cd llvmlinux
cd targets
cd nexus5
make

And everything compiled fine and at the end these errors occured. So now i
don'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.

Here is a small port of the error log:
/home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/of/of_spmi.c:396:
undefined reference to `__aeabi_memclr8'
drivers/built-in.o: In function `usb_bam_init':
/home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/platform/msm/usb_bam.c:2297:
undefined reference to `__aeabi_memcpy8'
drivers/built-in.o: In function `sps_connect':
/home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/platform/msm/sps/sps.c:1312:
undefined reference to `__aeabi_memcpy4'
drivers/built-in.o: In function `sps_get_config':
/home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/platform/msm/sps/sps.c:1795:
undefined reference to `__aeabi_memcpy4'
drivers/built-in.o: In function `sps_register_bam_device':
/home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/platform/msm/sps/sps.c:2108:
undefined reference to `__aeabi_memcpy4'
drivers/built-in.o: In function `sps_dma_init':
/home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/platform/msm/sps/sps_dma.c:446:
undefined reference to `__aeabi_memcpy4'
drivers/built-in.o: In function `msm_dsi_probe':
/home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/video/msm/mdss/dsi_host_v2.c:925:
undefined reference to `__aeabi_memcpy8'
drivers/built-in.o: In function `msm_hs_sps_init':
/home/stefan/llvmlinux/targets/nexus5/src/android_kernel_nexus5/drivers/tty/serial/msm_serial_hs.c:2856:
undefined reference to `__aeabi_memclr8'

Full log here:
http://pastebin.com/Ra9gXjzL

How can i solve this ?

Kind regards
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20150629/f6f26c83/attachment.html>


More information about the LLVMLinux mailing list