This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ALIGNOF broke binutils build
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: nathan at codesourcery dot com
- Cc: binutils at sourceware dot org
- Date: Mon, 18 Jun 2007 16:06:08 +0200
- Subject: ALIGNOF broke binutils build
I don't think --target=cris-axis-elf matters here, but that's
the only option to configure. I guess the flex and bison
versions matter a bit more. According to bison --version it's:
"bison (GNU Bison) 1.875d" and flex --version says: "flex
2.5.31". Or maybe a missing dependency in the makefile? Maybe
your tree is "blessed" by earlier builds; if so you should be
able to see it in a clean checkout.
...
make[4]: Entering directory `/n/asic_slask/hp/autobinutest/ld'
/bin/sh /h/hp/binutils/cvs_latest/src/ld/../ylwrap /h/hp/binutils/cvs_latest/src/ld/ldgram.y y.tab.c ldgram.c y.tab.h ldgram.h y.output ldgram.output -- bison -y -d
updating ldgram.h
gcc -O2 -m32 -DHAVE_CONFIG_H -I. -I/h/hp/binutils/cvs_latest/src/ld -I. -D_GNU_SOURCE -I. -I/h/hp/binutils/cvs_latest/src/ld -I../bfd -I/h/hp/binutils/cvs_latest/src/ld/../bfd -I/h/hp/binutils/cvs_latest/src/ld/../include -g -O2 -DLOCALEDIR="\"/usr/local/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c ldgram.c -Wno-error
flex /h/hp/binutils/cvs_latest/src/ld/ldlex.l
sed '/^#/ s|lex.yy\.c|ldlex.c|' lex.yy.c >ldlex.c
rm -f lex.yy.c
gcc -O2 -m32 -DHAVE_CONFIG_H -I. -I/h/hp/binutils/cvs_latest/src/ld -I. -D_GNU_SOURCE -I. -I/h/hp/binutils/cvs_latest/src/ld -I../bfd -I/h/hp/binutils/cvs_latest/src/ld/../bfd -I/h/hp/binutils/cvs_latest/src/ld/../include -g -O2 -DLOCALEDIR="\"/usr/local/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c ldlex.c -Wno-error
/h/hp/binutils/cvs_latest/src/ld/ldlex.l: In function `yylex':
/h/hp/binutils/cvs_latest/src/ld/ldlex.l:257: error: `ALIGNOF' undeclared (first use in this function)
/h/hp/binutils/cvs_latest/src/ld/ldlex.l:257: error: (Each undeclared identifier is reported only once
/h/hp/binutils/cvs_latest/src/ld/ldlex.l:257: error: for each function it appears in.)
brgds, H-P