|
本帖最后由 lyp40293 于 2014-3-26 10:18 编辑
参照此教程http://linux-sunxi.org/Linux_Kernel#Compilation及此篇教程来编译内核,执行make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules命令后出现如下编译错误,google大神也不明所以,特来请教
In file included from arch/arm/mach-sun7i/pm/mem_timing.h:21:0,
from arch/arm/mach-sun7i/pm/pm.h:18,
from arch/arm/mach-sun7i/pm/pm.c:37:
arch/arm/mach-sun7i/pm/pm_debug.h:1:8: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘/’ token
In file included from arch/arm/mach-sun7i/pm/pm.h:18:0,
from arch/arm/mach-sun7i/pm/pm.c:37:
arch/arm/mach-sun7i/pm/mem_timing.h:34:29: 警告: ‘enum counter_type_e’在形参表内部声明 [默认启用]
arch/arm/mach-sun7i/pm/mem_timing.h:34:29: 警告: 它的作用域仅限于此定义或声明,这可能并不是您想要的 [默认启用]
arch/arm/mach-sun7i/pm/mem_timing.h:35:28: 警告: ‘enum counter_type_e’在形参表内部声明 [默认启用]
CC kernel/exec_domain.o
make[2]: *** [arch/arm/mach-sun7i/pm/pm.o] 错误 1
make[1]: *** [arch/arm/mach-sun7i/pm] 错误 2
make: *** [arch/arm/mach-sun7i] 错误 2
不知有没有人遇到这个问题,是缺少什么库吗,请各位前辈赐教啊!
===================================================
已解决,还是要参照这篇帖子,直接把kernel源码git下来,之前是从branch上下载zip文件解压的,但仍不晓得为何解压出来的源码编译错误,留待查看,也请明白人告知一下。
|
|