当前位置: 技术问答>linux和unix
各位大哥帮帮小弟吧,编译uClinux内核出错了
来源: 互联网 发布时间:2016-04-04
本文导语: 在配置好以后执行make命令就出现以下错误: [ljh@localhost uClinux-dist]$ make make ARCH=blackfin CROSS_COMPILE=bfin-uclinux- -C linux-2.6.x || exit 1 make[1]: Entering directory `/home/ljh/uClinux-dist/linux-2.6.x' CHK include/linux/version.h ...
在配置好以后执行make命令就出现以下错误:
[ljh@localhost uClinux-dist]$ make
make ARCH=blackfin CROSS_COMPILE=bfin-uclinux- -C linux-2.6.x || exit 1
make[1]: Entering directory `/home/ljh/uClinux-dist/linux-2.6.x'
CHK include/linux/version.h
CC arch/blackfin/kernel/asm-offsets.s
在包含自 include/linux/spinlock.h:54 的文件中,
从 include/linux/capability.h:45,
从 include/linux/sched.h:7,
从 arch/blackfin/kernel/asm-offsets.c33:
include/linux/kernel.h:10:20: 错误:stdarg.h:没有那个文件或目录
In file included from include/linux/spinlock.h:54,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from arch/blackfin/kernel/asm-offsets.c:33:
include/linux/kernel.h:104: 错误:expected declaration specifiers or ‘...’ before ‘va_list’
include/linux/kernel.h:108: 错误:expected declaration specifiers or ‘...’ before ‘va_list’
include/linux/kernel.h:112: 错误:expected declaration specifiers or ‘...’ before ‘va_list’
include/linux/kernel.h:117: 错误:expected declaration specifiers or ‘...’ before ‘va_list’
include/linux/kernel.h:131: 错误:expected declaration specifiers or ‘...’ before ‘va_list’
make[2]: *** [arch/blackfin/kernel/asm-offsets.s] Error 1
make[1]: *** [prepare0] Error 2
make[1]: Leaving directory `/home/ljh/uClinux-dist/linux-2.6.x'
make: *** [linux] Error 1
把uClinux-dist重装了好几次都这样
[ljh@localhost uClinux-dist]$ make
make ARCH=blackfin CROSS_COMPILE=bfin-uclinux- -C linux-2.6.x || exit 1
make[1]: Entering directory `/home/ljh/uClinux-dist/linux-2.6.x'
CHK include/linux/version.h
CC arch/blackfin/kernel/asm-offsets.s
在包含自 include/linux/spinlock.h:54 的文件中,
从 include/linux/capability.h:45,
从 include/linux/sched.h:7,
从 arch/blackfin/kernel/asm-offsets.c33:
include/linux/kernel.h:10:20: 错误:stdarg.h:没有那个文件或目录
In file included from include/linux/spinlock.h:54,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from arch/blackfin/kernel/asm-offsets.c:33:
include/linux/kernel.h:104: 错误:expected declaration specifiers or ‘...’ before ‘va_list’
include/linux/kernel.h:108: 错误:expected declaration specifiers or ‘...’ before ‘va_list’
include/linux/kernel.h:112: 错误:expected declaration specifiers or ‘...’ before ‘va_list’
include/linux/kernel.h:117: 错误:expected declaration specifiers or ‘...’ before ‘va_list’
include/linux/kernel.h:131: 错误:expected declaration specifiers or ‘...’ before ‘va_list’
make[2]: *** [arch/blackfin/kernel/asm-offsets.s] Error 1
make[1]: *** [prepare0] Error 2
make[1]: Leaving directory `/home/ljh/uClinux-dist/linux-2.6.x'
make: *** [linux] Error 1
把uClinux-dist重装了好几次都这样
|
要装blackfin-toolchain-uclibc-full-08r1-8.i386.rpm
|
up up