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

Vinicius Tinti viniciustinti at gmail.com
Mon Mar 7 21:01:50 UTC 2016


On Mon, Mar 7, 2016 at 4:18 AM, 姚俊 <yaojun8558363 at gmail.com> wrote:
> 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.

Could you try with gcc-linaro-aarch64-linux-gnu-4.9-2014.08_linux?

Otherwise could you do as Tim said?

Thanks!

> 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
>
> _______________________________________________
> LLVMLinux mailing list
> LLVMLinux at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux



-- 
Simplicity is the ultimate sophistication


More information about the LLVMLinux mailing list