I have the same problem,
BTW i've started to see it since i've installed ubuntu 8.10 on 7.10
whic i had previously there was no problem.
I suspect that this happens because -Werror compile flag
Thanks
Vadim
Ned Konz wrote:
I'm building for a mx27 board, and have had gdbserver
compiled OK before.
However, after a clean and a recompile, it's quit compiling.
What I'm getting is this (using the default gdb-6.6.spec)
gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd
-I../../bfd/../include -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Werror -g -O2 -c ../../bfd/archive64.c -o
archive64.o
rm -f elf32-target.h
sed -e s/NN/32/g < ../../bfd/elfxx-target.h > elf32-target.new
mv -f elf32-target.new elf32-target.h
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd
-I. -I. -I../../bfd -I../../bfd/../include -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o
elf32-arm.lo ../../bfd/elf32-arm.c
gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd
-I../../bfd/../include -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Werror -g -O2 -c ../../bfd/elf32-arm.c -o
elf32-arm.o
cc1: warnings being treated as errors
../../bfd/elf32-arm.c: In function 'find_thumb_glue':
../../bfd/elf32-arm.c:2452: error: ignoring return value of 'asprintf',
declared with attribute warn_unused_result
../../bfd/elf32-arm.c: In function 'find_arm_glue':
../../bfd/elf32-arm.c:2485: error: ignoring return value of 'asprintf',
declared with attribute warn_unused_result
make[4]: *** [elf32-arm.lo] Error 1
make[4]: Leaving directory
`/home/ned/src/ltib/rpm/BUILD/gdb-6.6/cross-gdb/bfd'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/ned/src/ltib/rpm/BUILD/gdb-6.6/cross-gdb/bfd'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/ned/src/ltib/rpm/BUILD/gdb-6.6/cross-gdb/bfd'
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory
`/home/ned/src/ltib/rpm/BUILD/gdb-6.6/cross-gdb'
make: *** [all] Error 2
error: Bad exit status from /home/ned/src/ltib/tmp/rpm-tmp.56610
(%build)
I've attached the log file.
_______________________________________________
LTIB home page: http://bitshrine.org
Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib
|