gcc -DHAVE_CONFIG_H -I. -I/home/hypo/gumstix/gumstix-buildroot-1614/toolchain_build_arm_nofpu/gdb-6.4/opcodes -I. -D_GNU_SOURCE -I. -I/home/hypo/gumstix/gumstix-buildroot-1614/toolchain_build_arm_nofpu/gdb-6.4/opcodes -I../bfd -I/home/hypo/gumstix/gumstix-buildroot-1614/toolchain_build_arm_nofpu/gdb-6.4/opcodes/../include -I/home/hypo/gumstix/gumstix-buildroot-1614/toolchain_build_arm_nofpu/gdb-6.4/opcodes/../bfd -I/home/hypo/gumstix/gumstix-buildroot-1614/toolchain_build_arm_nofpu/gdb-6.4/opcodes/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c /home/hypo/gumstix/gumstix-buildroot-1614/toolchain_build_arm_nofpu/gdb-6.4/opcodes/arm-dis.c -o arm-dis.o
checking for canonicalize_file_name... cc1: warnings being treated as errors
/home/hypo/gumstix/gumstix-buildroot-1614/toolchain_build_arm_nofpu/gdb-6.4/opcodes/arm-dis.c: In function 'print_insn_thumb16':
/home/hypo/gumstix/gumstix-buildroot-1614/toolchain_build_arm_nofpu/gdb-6.4/opcodes/arm-dis.c:2155: error: format not a string literal and no format arguments
/home/hypo/gumstix/gumstix-buildroot-1614/toolchain_build_arm_nofpu/gdb-6.4/opcodes/arm-dis.c:2162: error: format not a string literal and no format arguments
make[5]: *** [arm-dis.lo] Error 1
I remembered having solved it before, so started searching and sure enough, found my question and answer on the Nabble site!
http://www.nabble.com/make-gdbclient-failure-tt21114770.html#a21114770
so, here's the fix:
FWIW, edited gumstix-buildroot-1614/toolchain_build_arm_nofpu/gdbclient-6.4/opcodes/Makefile
removed -Werror and it worked
diff Makefile Makefile.2008-12-21
179c179
< WARN_CFLAGS = -W -Wall -Wstrict-prototypes -Wmissing-prototypes
---
> WARN_CFLAGS = -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror
No comments:
Post a Comment