天嵌 ARM开发社区

 找回密码
 注册
查看: 2169|回复: 9

linux内核编译错误

[复制链接]
hmyancauc 发表于 2013-4-8 17:33:23 | 显示全部楼层 |阅读模式
使用TQ提供的Linux2.6.25.8与交叉编译器EABI-4.3.3_EmbedSky_20100610.tar.bz2进行linux内核编译总是出现以下错误:
CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/utsrelease.h
  CC      arch/arm/kernel/asm-offsets.s
In file included from include/linux/sched.h:52,
                 from arch/arm/kernel/asm-offsets.c:13:
include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory
In file included from include/linux/sched.h:52,
                 from arch/arm/kernel/asm-offsets.c:13:
include/linux/kernel.h:150: error: expected declaration specifiers or '...' before 'va_list'
include/linux/kernel.h:154: error: expected declaration specifiers or '...' before 'va_list'
include/linux/kernel.h:158: error: expected declaration specifiers or '...' before 'va_list'
include/linux/kernel.h:162: error: expected declaration specifiers or '...' before 'va_list'
include/linux/kernel.h:166: error: expected declaration specifiers or '...' before 'va_list'
include/linux/kernel.h:180: error: expected declaration specifiers or '...' before 'va_list'
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
 楼主| hmyancauc 发表于 2013-4-8 17:34:40 | 显示全部楼层
有谁知道什么问题,我这急用,谢谢大家帮助!
回复

使用道具 举报

Jangel 发表于 2013-4-8 17:46:54 | 显示全部楼层
4.3.3编译器版本过高,要求过严格。降低编译器版本
回复

使用道具 举报

 楼主| hmyancauc 发表于 2013-4-8 17:50:16 | 显示全部楼层
用哪个版本的比较合适?
回复

使用道具 举报

亚瑟王 发表于 2013-4-8 17:58:33 | 显示全部楼层
亲,你是怎么做的?
回复

使用道具 举报

 楼主| hmyancauc 发表于 2013-4-8 17:59:30 | 显示全部楼层
我就是按移植手册上步骤啊
回复

使用道具 举报

TQ-lkp 发表于 2013-4-8 18:41:16 | 显示全部楼层
拷贝配置单没有?
回复

使用道具 举报

 楼主| hmyancauc 发表于 2013-4-9 08:16:59 | 显示全部楼层
拷贝了,还是不行
回复

使用道具 举报

 楼主| hmyancauc 发表于 2013-4-9 09:58:47 | 显示全部楼层
低版本的交叉编译器在哪下载啊?!!!!!!!!!
回复

使用道具 举报

欧阳秋臣 发表于 2013-4-13 23:39:51 | 显示全部楼层
hmyancauc 发表于 2013-4-9 09:58
低版本的交叉编译器在哪下载啊?!!!!!!!!!

建议你编译2.6.30的内核吧 呵呵。。。4.3.3的编译器可以成功编译
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-6-24 06:51 , Processed in 2.036113 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表