poisoned "malloc"

Jul 18, 2008 0 Replies

Hi there,



I was trying to build a gcc cross toolchain for v850-elf. Following the advices on

formatting link
unfortunately, I failed compiling the gcc with the following error message:


----------------------- 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 definitions [...] c-p9871.c:2716: warning: traditional C rejects ISO C style function definitions c-p9871.c:2834: warning: implicit declaration of function `nonexistent' c-p9871.c:2834: warning: cast to pointer from integer of different size make[1]: *** [c-parse.o] Error 1 make[1]: 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

formatting link
However, the error persists. Can anyone help? What actually is a "poisoned" (x){c,m}alloc?



Best,



Stephan


Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required