我爱下载 发表于 2016-12-11 08:10:18

[求助]编译Orangepi-h2-linux内核时出现错误

我的系统是Debian 8.2 编译器为源码中自带的。
编译Orangepi-h2-linux的uboot顺利通过了,但是编译内核时却失败了提示的错误信息是
CC      arch/arm/mach-sunxi/power/brom/resume_head.o
arch/arm/mach-sunxi/power/brom/gen_check_code: 1: arch/arm/mach-sunxi/power/brom/gen_check_code: Syntax error: end of file unexpected (expecting ")")
/root/mywork/orangepi_h2_linux-master/OrangePi-Kernel/linux-3.4/arch/arm/mach-sunxi/power/brom/Makefile:26: recipe for target 'arch/arm/mach-sunxi/power/brom/resumes.code' failed
make: *** Error 2
/root/mywork/orangepi_h2_linux-master/OrangePi-Kernel/linux-3.4/arch/arm/mach-sunxi/power/Makefile:23: recipe for target 'arch/arm/mach-sunxi/power/brom/resumes.code' failed
make: *** Error 2
scripts/Makefile.build:443: recipe for target 'arch/arm/mach-sunxi/power' failed
make: *** Error 2
Makefile:945: recipe for target 'arch/arm/mach-sunxi' failed
make: *** Error 2

请大神帮我分析一下原因,谢谢

cazureopi 发表于 2016-12-11 11:00:44

是这个arch/arm/mach-sunxi/power/brom/gen_check_code编译不过去,
第一种办法建议你用64位的主机编译,但要安装32位的c库不然arm-linux-gnueabi-gcc会运行不了出现更多错误

cazureopi 发表于 2016-12-11 11:07:03

还有一种方法就是给内核源码打补丁,

我爱下载 发表于 2016-12-11 12:46:44

cazureopi 发表于 2016-12-11 11:07
还有一种方法就是给内核源码打补丁,

谢谢回复,测试一下

我爱下载 发表于 2016-12-11 12:49:59

cazureopi 发表于 2016-12-11 11:00
是这个arch/arm/mach-sunxi/power/brom/gen_check_code编译不过去,
第一种办法建议你用64位的主机编译,但 ...

谢谢回复,找台机器测试一下

我爱下载 发表于 2016-12-14 19:26:50

我重新安装了debian 64位的系统,安装32位的支持后,可以顺利编译通过,谢谢
页: [1]
查看完整版本: [求助]编译Orangepi-h2-linux内核时出现错误