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

姚俊 yaojun8558363 at gmail.com
Mon Mar 7 07:18:27 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

Another quesion: May I subscribe to the mail list? I confirmed the request.

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


More information about the LLVMLinux mailing list