[...] make[2]: Leaving directory `/tmp/gcc-4.0.2/build' make[2]: Entering directory `/tmp/gcc-4.0.2/build/stage2-gcc' /tmp/gcc-4.0.2/build/prev-gcc/xgcc -B/tmp/gcc-4.0.2/build/prev-gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -c -O2 -g -fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Werror -DHAVE_CONFIG_H -I. -Ijava -I../../gcc -I../../gcc/java -I../../gcc/../include -I../../gcc/../libcpp/include ../../gcc/java/jcf-write.c -o java/jcf-write.o cc1: warnings being treated as errors ../../gcc/java/jcf-write.c: In function 'generate_bytecode_insns': ../../gcc/java/jcf-write.c:2236: warning: unused variable 'type' make[2]: *** [java/jcf-write.o] Error 1 make[2]: Leaving directory `/tmp/gcc-4.0.2/build/stage2-gcc' make[1]: *** [all-stage2-gcc] Error 2 make[1]: Leaving directory `/tmp/gcc-4.0.2/build' make: *** [stage2-bubble] Error 2
What options did you pass to configure? And yes this is a bug but it should not effect compiling with the default options.
../configure --enable-libada --enable-bootstrap --enable-shared --enable-threads --enable-tls --enable-nls --with-x --enable-java-awt=gtk,xlib --enable-gtk-cairo --enable-java-gc
--enable-bootstrap is not supported on 4.0.x or 4.1.x. Can you try without that flag? Anyways without that flag this is still an issue.
Subject: Bug 26204 Author: tromey Date: Sat Feb 11 00:41:08 2006 New Revision: 110866 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110866 Log: PR java/26204: * jcf-write.c (generate_bytecode_insns): Removed unused variable. Modified: branches/gcc-4_0-branch/gcc/java/ChangeLog branches/gcc-4_0-branch/gcc/java/jcf-write.c
Fix checked in.