Compiling current CVS fails

Philipp Thomas pthomas@suse.de
Wed Jan 10 17:25:00 GMT 2001


Compiling libstdc++ v3 fails for me here:

/bin/sh ../libtool --tag disable-shared --tag CXX --mode=compile /abuild/pthomas/gcc/gcc/g++ -B/abuild/pthomas/gcc/gcc/ -nostdinc++  -L/abuild/pthomas/gcc/i686-suse-linux/libstdc++-v3/src -L/abuild/pthomas/gcc/i686-suse-linux/libstdc++-v3/src/.libs -B/usr/local/i686-suse-linux/bin/ -B/usr/local/i686-suse-linux/lib/ -isystem /usr/local/i686-suse-linux/include -I../../../../cvs/gcc/libstdc++-v3/../gcc -I../../../../cvs/gcc/libstdc++-v3/../include 	-I../../../../cvs/gcc/libstdc++-v3/include -I../../../../cvs/gcc/libstdc++-v3/include/std -I../../../../cvs/gcc/libstdc++-v3/include/c_std -I../include 	 -I../../../../cvs/gcc/libstdc++-v3/libsupc++ 	         -W -Wall -Wpointer-arith -Wcast-qual -Wcast-align -O2 -march=i686 -fschedule-insns2 -pipe -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates 	-prefer-pic 	-Wall -Wno-format -W -Wwrite-strings -Winline -Werror -fdiagnostics-show-location=once 	 	-ffunction-sections -fdata-sections  -g    -c ../../../../cvs/gcc/libstdc++-v3/libsupc++/new_op.cc
cc1plus: warnings being treated as errors
../../../../cvs/gcc/libstdc++-v3/libsupc++/exception_support.cc: In function 
   `void __check_null_eh_spec()':
../../../../cvs/gcc/libstdc++-v3/libsupc++/exception_support.cc:346: warning: `noreturn'
   function does return

And maybe I'm just dense, but I can't see where it picks up the 'noreturn'
and how to fix the warning. For now I'm just removing -Werror to get gcc to
compile but that can't be the right way.

Philipp

-- 
Philipp Thomas <pthomas@suse.de>
Development, SuSE GmbH, Schanzaecker Str. 10, D-90443 Nuremberg, Germany

Penguins shall save the dinosaurs
                          -- Handelsblatt about Linux on S/390


More information about the Gcc-bugs mailing list