........
rototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT opncls.lo -MD -MP -MF .deps/opncls.Tpo -c opncls.c -o opncls.o
In file included from opncls.c:26:0:
opncls.c: In function ‘bfd_fopen’:
bfd.h:529:65: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
^
opncls.c:257:5: note: in expansion of macro ‘bfd_set_cacheable’
bfd_set_cacheable (nbfd, TRUE);
^
cc1: all warnings being treated as errors
Makefile:1569: recipe for target 'opncls.lo' failed
make[4]: *** [opncls.lo] Error 1
make[4]: Leaving directory '/home/jrg/arm-linux-gdb-7.5/gdb-7.5/bfd'
Makefile:1611: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/jrg/arm-linux-gdb-7.5/gdb-7.5/bfd'
Makefile:1104: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/jrg/arm-linux-gdb-7.5/gdb-7.5/bfd'
Makefile:2510: recipe for target 'all-bfd' failed
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory '/home/jrg/arm-linux-gdb-7.5/gdb-7.5'
Makefile:844: recipe for target 'all' failed
make: *** [all] Error 2
root@ubuntu:/home/jrg/arm-linux-gdb-7.5#
我在ubuntu16.04中安装arm-linux-gdb,怎么总是报错。
gdb是用的gdb7.5的,安装的时候
./configure --target=arm-linux --prefix=/usr/local/arm-gdb -v
再make,
再make install
安装失败,error
上网找,有人说去掉makefile中Werror那个一行,但我在makefile中根本找不到Werror啊,这个问题有人遇到过吗,求帮助解决。不胜感激。