安装 avr-libc时出现的问题,请教

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
ldqmoon
帖子: 15
注册时间: 2009-09-06 20:35

安装 avr-libc时出现的问题,请教

#1

帖子 ldqmoon » 2009-09-13 20:18

我按照
http://www.nongnu.org/avr-libc/user-man ... r_binutils
中介绍的方法来安装 avr-libc
PATH已经设置好了 ,在安装 binutils-2.19.1的时候出现了如下问题
我使用 ../configure --prefix=$PREFIX --target=avr --disable-nls

编译时出现

代码: 全选

cc1: warnings being treated as errors
../../opcodes/avr-dis.c: In function 'avr_operand':
../../opcodes/avr-dis.c:112: error: format not a string literal and no format arguments
../../opcodes/avr-dis.c:152: error: format not a string literal and no format arguments
../../opcodes/avr-dis.c:161: error: format not a string literal and no format arguments
../../opcodes/avr-dis.c:172: error: format not a string literal and no format arguments
make[4]: *** [avr-dis.lo] Error 1
make[4]: Leaving directory `/home/ldqmoon/Desktop/binutils-2.19.1/obj-avr/opcodes'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ldqmoon/Desktop/binutils-2.19.1/obj-avr/opcodes'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ldqmoon/Desktop/binutils-2.19.1/obj-avr/opcodes'
make[1]: *** [all-opcodes] Error 2
make[1]: Leaving directory `/home/ldqmoon/Desktop/binutils-2.19.1/obj-avr'
make: *** [all] Error 2

请问,这是为什么啊?
头像
xiaokang
帖子: 331
注册时间: 2006-06-13 14:47
来自: 黄鹤楼

Re: 安装 avr-libc时出现的问题,请教

#2

帖子 xiaokang » 2009-09-13 21:07

编译错误啊...
ldqmoon
帖子: 15
注册时间: 2009-09-06 20:35

Re: 安装 avr-libc时出现的问题,请教

#3

帖子 ldqmoon » 2009-09-14 13:38

我也知道是编译错误, 但为什么会出现这个
一般来说发行版的程序应该是可以直接编译过的, 我又没改任何东西
回复