免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1347 | 回复: 0
打印 上一主题 下一主题

[请教] 用arm-linux-gcc 3.4.1编译2.4内核 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-03 11:46 |只看该作者 |倒序浏览
小弟想在S3c2410上重新编译一下内核(2.4.18-rmk7),原来的系统都是用arm-linux-gcc 2.95.2交叉编译的,现在想用arm-linux-gcc 3.4.1重新编译一下kernel。
make dep 时系统报错。修改Makefile,将short-load-bytes改成mailgnment-traps后,make dep 成功。
但接下来 make bzImage 时又会报错。报错信息如下:

/usr/local/arm/3.4.1/bin/arm-linux-gcc -D__KERNEL__ -I/root/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs-32 -march=armv4 -mtune=arm9tdmi  -msoft-float   -DKBUILD_BASENAME=blkpg  -DEXPORT_SYMTAB -c blkpg.c
blkpg.c: In function `blk_ioctl':
blkpg.c:250: error: asm-specifier for variable `__r1' conflicts with asm clobber list
blkpg.c:250: confused by earlier errors, bailing out
make[3]: *** [blkpg.o] Error 1
make[3]: Leaving directory `/root/linux/drivers/block'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/root/linux/drivers/block'
make[1]: *** [_subdir_block] Error 2
make[1]: Leaving directory `/root/linux/drivers'
make: *** [_dir_drivers] Error 2

小弟查了半天也不知应该怎么改,还望高手们帮忙!小弟在此谢过了

[ 本帖最后由 txb777 于 2006-7-3 11:48 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP