cxa_demangle.c in gcc-3.3.1 pass2 ch5 chokes all of a sudden (lfs-5.0)

zoltan fmzoltan at mindspring.com
Sun Mar 14 16:12:16 PST 2004


Hello,

I've compiled chapter 5 numerous times, and never had any problems 
(maybe I was doing things wrong :-) ), but now, gcc-3.3.1 pass 2 in 
chapter 5 chokes with this:

...snip...
/data/sw/builds/i686-glibc-2.3.2/data/sw/builds/lfs-5.0-ch5/gcc-build/gcc/xgcc 
-B/data/sw/builds/i686-glibc-2.3.2/data/sw/builds/lfs-5.0-ch5/gcc
-build/gcc/ -B/tools/i686-pc-linux-gnu/bin/ 
-B/tools/i686-pc-linux-gnu/lib/ -isystem tools/i686-pc-linux-gnu/include 
-DHAVE_CONFIG_H -I. -I../../../../gcc-3.3.1/libstdc++-v3/libsupc++ -I.. 
-I../../../../gcc-3.3.1/libstdc++-v3/../gcc -I../.
./../../gcc-3.3.1/libstdc++-v3/../include -O2 -g -O2 -DIN_GLIBCPP_V3 
-Wno-error -c cxa_demangle.c  -fPIC -DPIC -o cxa_demangle.o
In file included from cxa_demangle.c:58:
../../../../gcc-3.3.1/gcc/dyn-string.h:29:52: macro "PROTO" requires 3 
arguments, but only 1 given
In file included from cxa_demangle.c:58:
../../../../gcc-3.3.1/gcc/dyn-string.h:29: error: parse error before "PROTO"
../../../../gcc-3.3.1/gcc/dyn-string.h:29: warning: data definition has 
no type or storage class
../../../../gcc-3.3.1/gcc/dyn-string.h:30:61: macro "PROTO" requires 3 
arguments, but only 1 given
../../../../gcc-3.3.1/gcc/dyn-string.h:30: error: parse error before "PROTO"
../../../../gcc-3.3.1/gcc/dyn-string.h:30: warning: data definition has 
no type or storage class
../../../../gcc-3.3.1/gcc/dyn-string.h:31:74: macro "PROTO" requires 3 
arguments, but only 1 given
../../../../gcc-3.3.1/gcc/dyn-string.h:31: error: parse error before "PROTO"
../../../../gcc-3.3.1/gcc/dyn-string.h:31: warning: data definition has 
no type or storage class
../../../../gcc-3.3.1/gcc/dyn-string.h:32:66: macro "PROTO" requires 3 
arguments, but only 1 given
../../../../gcc-3.3.1/gcc/dyn-string.h:32: error: parse error before "PROTO"
../../../../gcc-3.3.1/gcc/dyn-string.h:32: warning: data definition has 
no type or storage class
...<additional errors>...
make[3]: *** [cxa_demangle.lo] Error 1
make[3]: Leaving directory `/export/sw/builds/i686-glibc-2.3.2/data/sw/b
uilds/lfs-5.0-ch5/gcc-build/i686-pc-linux-gnu/libstdc++-v3/libsupc++'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/sw/builds/i686-glibc-2.3.2/data/sw/b
uilds/lfs-5.0-ch5/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/export/sw/builds/i686-glibc-2.3.2/data/sw/b
uilds/lfs-5.0-ch5/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2

Any idea why?  No amount of googling has yielded any results for me...
I'm thinking that previously I may have been using the host toolchain or 
include path or something, but now that I've made sure my PATH is 
PATH=/tools/bin:$PATH, maybe I missed something...

Thanks,
John

P.S.: BTW, I've followed the book verbatim.  Only other issue was to add 
--with-tclinclude=../tcl-8.4.4 to the expect-5.39.0 ./configure... line, 
but that seems to be a known item.  I've noticed no other inconsistent 
behavior up to this point.




More information about the lfs-support mailing list