Error buliding binutils 2.24.51

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
posman
Posts: 19
Joined: Fri Sep 05, 2008 12:55 pm

Error buliding binutils 2.24.51

Post 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
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Error buliding binutils 2.24.51

Post by Combuster »

There's no .51 release. It looks like you got yourself a WIP version.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
posman
Posts: 19
Joined: Fri Sep 05, 2008 12:55 pm

Re: Error buliding binutils 2.24.51

Post 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
Post Reply