[英]Exec format error when compiling android kernel
我正在嘗試為Xperia SP構建內核。
首先,我從這里git-closures內核源代碼:
https://github.com/Tomoms/android_kernel_sony_msm8x60
然后git克隆這個工具鏈:
https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7
然后我去了:
KERNEL_FOLDER /弓/ ARM / CONFIGS
並將msm8960_defconfig(因為我認為Xperia SP具有msm8960)復制到KERNEL_FOLDER的根目錄,並將其重命名為.config
然后我在KERNEL_FOLDER目錄中打開終端並輸入
make ARCH=arm CROSS_COMPILE=~/toolchains/arm-eabi-4.7/bin/arm-eabi-
並得到了
CHK include/linux/version.h CHK include/generated/utsrelease.h HOSTCC scripts/basic/fixdep make[1]: `include/generated/mach-types.h' is up to date. CC kernel/bounds.s /home/pc/toolchains/arm-eabi-4.7/bin/arm-eabi-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem /home/pc/toolchains/arm-eabi-4.7/bin/arm-eabi-gcc -print-file-name=include [Errno 8] Exec format error -I/home/pc/android/kernel/android_kernel_sony_msm8x60/arch/arm/include -Iarch/arm/include/generated -Iinclude -include /home/pc/android/kernel/android_kernel_sony_msm8x60/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Wno-format-security -fno-delete-null-pointer-checks -Os -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -g -mtune=cortex-a7 -mfpu=neon-vfpv4 -fgraphite -floop-parallelize-all -ftree-loop-linear -floop-interchange -floop-strip-mine -floop-block -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(bounds) -DKBUILD_MODNAME=KBUILD_STR(bounds) -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c [Errno 8] Exec format error make[1]: *** [kernel/bounds.s] Error 8 make: *** [prepare0] Error 2
人們過去在32位系統上構建該錯誤。 確保您在64位linux上構建。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.