主题 : 编译2.6.13时出现问题,求助 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 3939
精华: 0
发帖: 63
金钱: 550 两
威望: 463 点
综合积分: 126 分
注册时间: 2009-02-17
最后登录: 2012-08-31
楼主  发表于: 2009-05-12 13:26

 编译2.6.13时出现问题,求助

make zImage是出现下面的问题,不知道怎么办,请高手指点
CC arch/arm/mm/ioremap.o
CC arch/arm/mm/mmap.o
CC arch/arm/mm/mm-armv.o
CC arch/arm/mm/proc-syms.o
CC arch/arm/mm/alignment.o
arch/arm/mm/alignment.c: In function 'proc_alignment_write':
arch/arm/mm/alignment.c:116: error: read-only variable '__r2' used as 'asm' output
arch/arm/mm/alignment.c:116: error: read-only variable '__r2' used as 'asm' output
arch/arm/mm/alignment.c:116: error: read-only variable '__r2' used as 'asm' output
arch/arm/mm/alignment.c:116: error: read-only variable '__r2' used as 'asm' output
make[1]: *** [arch/arm/mm/alignment.o] Error 1
make: *** [arch/arm/mm] Error 2
[root@localhost kernel-2.6.13]#



static int proc_alignment_write(struct file *file, const char __user *buffer,
unsigned long count, void *data)
{
char mode;

if (count > 0) { 
if (get_user(mode, buffer))   //arch/arm/mm/alignment.c:116
return -EFAULT;
if (mode >= '0' && mode <= '5')
ai_usermode = mode - '0';
}
return count;
}

*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-05-12 14:23
用光盘上的3.4.1的arm-linux-gcc编译
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
生命是如此脆弱,死亡是如此接近.
级别: 新手上路
UID: 5391
精华: 0
发帖: 24
金钱: 240 两
威望: 240 点
综合积分: 48 分
注册时间: 2009-04-21
最后登录: 2009-06-04
2楼  发表于: 2009-06-03 02:06
请问能否使用4.3.2的arm-linux-gcc来编译?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-06-03 09:13
引用第2楼sky_ysk于2009-06-03 02:06发表的  :
请问能否使用4.3.2的arm-linux-gcc来编译?

不想debug GCC的话最好不要
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 31026
精华: 0
发帖: 11
金钱: 55 两
威望: 11 点
综合积分: 22 分
注册时间: 2010-10-25
最后登录: 2011-08-31
4楼  发表于: 2011-04-28 14:56
你遇到的问题解决了吗??,我也想用4.3.2来编译2.6.13,出现了同样的问题,如果可以编译的话,麻烦你贴出来,先谢了
好好学习