I'm trying to build binutils using instructions from the wiki on how to create a cross compiler http://wiki.osdev.org/GCC_Cross-Compiler.
Yesterday I downloaded source code from here http://www.gnu.org/software/binutils/
But I get his error:
Code: Select all
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.24.51/binutils -I. -I../../binutils-2.24.51/binutils -I../bfd -I../../binutils-2.24.51/binutils/../bfd -I../../binutils-2.24.51/binutils/../include -DLOCALEDIR="\"/home/porozco/cross-compiler/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT size.o -MD -MP -MF .deps/size.Tpo -c -o size.o ../../binutils-2.24.51/binutils/size.c
mv -f .deps/size.Tpo .deps/size.Po
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.24.51/binutils -I. -I../../binutils-2.24.51/binutils -I../bfd -I../../binutils-2.24.51/binutils/../bfd -I../../binutils-2.24.51/binutils/../include -DLOCALEDIR="\"/home/porozco/cross-compiler/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT bucomm.o -MD -MP -MF .deps/bucomm.Tpo -c -o bucomm.o ../../binutils-2.24.51/binutils/bucomm.c
../../binutils-2.24.51/binutils/bucomm.c:130:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘VPARAMS’
fatal VPARAMS ((const char *format, ...))
^
../../binutils-2.24.51/binutils/bucomm.c:141:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘VPARAMS’
non_fatal VPARAMS ((const char *format, ...))
^
I found this page with the exact same error http://permalink.gmane.org/gmane.comp.g ... tils/64686 but really don't know what to do to fix the problem.
Do I have to modify any file? (like bucomm.c, ansidecl.h or libiberty.h)
Thanks