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

Daniel Sanders Daniel.Sanders at imgtec.com
Mon Mar 7 14:37:22 UTC 2016


> 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)

Looking at the code in LLVM, it looks like the AArch64 integrated assembler is expecting 12-bit immediates for the 'I' constraint. If you create a bug report at http://llvm.org/bugs then someone there should be able to confirm whether LLVM or the source code is incorrect.

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

It's all automated so you should already be subscribed. It's been rather quiet here for the last couple months though.

From: llvmlinux-bounces at lists.linuxfoundation.org [mailto:llvmlinux-bounces at lists.linuxfoundation.org] On Behalf Of ??
Sent: 07 March 2016 07:18
To: llvmlinux at lists.linuxfoundation.org
Subject: [llvmlinux] Compilling Android kernel Problem: value '65536' out of range for constraint 'I'

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/c3c614d3/attachment.html>


More information about the LLVMLinux mailing list