[llvmlinux] Compilling Android kernel Problem: value '65536' out of range for constraint 'I'

xx8558363 at 163.com
Mon Mar 7 07:12:12 UTC 2016


Hello guys!
I try to compile android kernel on arm64. 
I am getting weird errors while cross compiling android kernel.
The problem is:
/arch/arm64/include/asm/spinlock.h:61:28: error: value '65536' out of range for constraint 'I' : "Q" (lock->owner), "I" (1 << TICKET_SHIFT)
My context:
firstly, I compiled nexus4 kernel successfully by using Automated build framework. Then I try to patch nexus5X(git branch: android-msm-bullhead-3.10-marshmallow-mr1) by using aarch64 patches.
secondly, I try to use two different cross toolchain: gcc-linaro-5.2-2015.11-1x64_64_aarch64-linux-gnu AND aarch64-linux-android-4.9.  All failed.
clang version: 3.9.0
Target: x86_64 ubuntu


Can somebody help me?
Thanks
yaojun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20160307/36d1f73e/attachment.html>


More information about the LLVMLinux mailing list