Page 1 of 1

Error buliding binutils 2.24.51

Posted: Tue Jan 28, 2014 7:39 am
by posman
Hi

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'm using cygwin (gcc 4.8.2) on Windows 7

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

Re: Error buliding binutils 2.24.51

Posted: Tue Jan 28, 2014 8:13 am
by Combuster
There's no .51 release. It looks like you got yourself a WIP version.

Re: Error buliding binutils 2.24.51

Posted: Tue Jan 28, 2014 10:03 am
by posman
Jejeje, you're right #-o Don't know where I got that version.

Now that I downloaded version 2.24 it compiles without errors

Thanks