I was trying to build a gcc cross toolchain for v850-elf. Following
the advices on [url]http://ecos.sourceware.org/build-toolchain.html[/url],
unfortunately, I failed compiling the gcc with the following error
c-parse.y:312.11-65: warning: unused value: $2
c-parse.y:2225.11-2229.37: warning: unused value: $5
/usr/bin/gcc-3.3 -DIN_GCC -DCROSS_COMPILE -g -W -Wall -Wwrite-
strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -
pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I/tmp/stephan/src/
gcc-3.2.1/gcc -I/tmp/stephan/src/gcc-3.2.1/gcc/. -I/tmp/stephan/src/
gcc-3.2.1/gcc/config -I/tmp/stephan/src/gcc-3.2.1/gcc/../include \
-c /tmp/stephan/src/gcc-3.2.1/gcc/c-parse.c -o c-parse.o
c-p9871.c:380:2: warning: suggest not using #elif in traditional C
c-p9871.c:464:5: warning: suggest not using #elif in traditional C
c-p9871.c:497:43: attempt to use poisoned "malloc"
c-p9871.c: In function `yy_symbol_value_print':
c-p9871.c:2282: warning: traditional C rejects ISO C style function
c-p9871.c:2716: warning: traditional C rejects ISO C style function
c-p9871.c:2834: warning: implicit declaration of function
c-p9871.c:2834: warning: cast to pointer from integer of different
make: *** [c-parse.o] Error 1
make: Leaving directory `/tmp/stephan/build/gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/tmp/stephan/build/gcc'
I tried to solve the problem with the 'poisoned "malloc"' by applying
the YYMALLOC patches as, e.g., described at [url]http://gcc.gnu.org/ml/gcc/2004-09/msg00927.html[/url].
However, the error persists. Can anyone help? What actually is a