On 23 Feb 2007, at 16:19, Robert T Wyatt wrote: > Hi, > > On my dual G5, I've gotten this error twice with gcc42 from the > 10.4-unstable tree. Happy to provide more info. Complete output is > available here: > http://reg066.reg.utexas.edu/~rgrtw-05/fink/ > gcc42-4.1.9999-20070221.txt > > > /sw/src/fink.build/gcc42-4.1.9999-20070221/darwin_objdir/./prev-gcc/ > xgcc > -B/sw/src/fink.build/gcc42-4.1.9999-20070221/darwin_objdir/./prev-gcc/ > -B/sw/lib/gcc4.2/powerpc-apple-darwin8/bin/ -c -g -O2 -mdynamic- > no-pic > -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros > -Wno-overlength-strings -Wold-style-definition > -Wmissing-format-attribute -Wc++-compat -DHAVE_CONFIG_H -I. -Icp > -I../../gcc-4.2-20070221/gcc -I../../gcc-4.2-20070221/gcc/cp > -I../../gcc-4.2-20070221/gcc/../include > -I../../gcc-4.2-20070221/gcc/../libcpp/include -I/sw/include > -I../../gcc-4.2-20070221/gcc/../libdecnumber -I../libdecnumber > -I/sw/include ../../gcc-4.2-20070221/gcc/cp/decl2.c -o cp/decl2.o > ../../gcc-4.2-20070221/gcc/cp/decl2.c: In function 'mark_used': > ../../gcc-4.2-20070221/gcc/cp/decl2.c:3558: error: 'd' undeclared > (first > use in this function) > ../../gcc-4.2-20070221/gcc/cp/decl2.c:3558: error: (Each undeclared > identifier is reported only once > ../../gcc-4.2-20070221/gcc/cp/decl2.c:3558: error: for each > function it > appears in.) > ../../gcc-4.2-20070221/gcc/cp/decl2.c:3558: error: 'cl' undeclared > (first use in this function) > ../../gcc-4.2-20070221/gcc/cp/decl2.c:3559: warning: implicit > declaration of function 'template_for_substitutioN' > ../../gcc-4.2-20070221/gcc/cp/decl2.c:3559: error: invalid type > argument > of '->' > ../../gcc-4.2-20070221/gcc/cp/decl2.c:3564:1: warning: null > character(s) > ignored > make[3]: *** [cp/decl2.o] Error 1 > make[2]: *** [all-stage3-gcc] Error 2 > make[1]: *** [stage3-bubble] Error 2
I'm puzzled.. I didn't have this on my dual G5... Further, the above 'stage3' shows that the exact same compilation went through successfully in stage 2 on your machine ... The code is full of macros there; also, the cap N in template_for_substitutioN suggest something went wrong during pre-processing. Maybe you could cd to /sw/src/fink.build/gcc42-4.1.9999-20070221/ darwin_objdir/gcc and re-issue the same command there, adding '-v -H -save-temps' at the end, to try seeing what went on (the relevant code is almost a the end of decl2.c, so finding the translated code should not be impossible .. -) JF Mertens ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Fink-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-users
