This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: Building libstdc++-v3 and -WError
- To: Theodore Papadopoulo <Theodore dot Papadopoulo at sophia dot inria dot fr>
- Subject: Re: Building libstdc++-v3 and -WError
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Wed, 6 Sep 2000 15:18:22 -0700 (PDT)
- cc: libstdc++ at sources dot redhat dot com, Jason Merrill <jason at redhat dot com>
> I appreciate the concern of having the library free of any warnings,
> but isn't -WError a little too hard...
Sorry, but I think -WError is a good idea.
It can easilty be disabled on a per-file basis with -DWERROR=
> Every time I tried to add --enable-libstdcxx-v3 lately when building gcc the
> compilation is aborted during libstdc++-v3. This time it's for some very
> ``stupid'' warning,
> that is even not of the responsibility of libstdc++-v3.
Hmm. Jason has also asked me about this. CVS gcc, as of today, on RH
6.2/intel and --enable-libstdcxx --enable-debug --enable-cshadow works
fine for me (meaning I get a build, and one test failure in 'make check')
Can you please be more specific?
Also, jason, your testcase does not error out on me, even with -Wall -Werror.
%make locale.o
/mnt/hd/soma/bld-x86-gcc-3/gcc/g++ -B/mnt/hd/soma/bld-x86-gcc-3/gcc/
-nostdinc++
-L/mnt/hd/soma/bld-x86-gcc-3/i686-pc-linux-gnu/libstd++-v3/src
-L/mnt/hd/soma/bld-x86-gcc-3/i686-pc-linux-gnu/libstd++-v3/src/.libs
-B/mnt/hd/soma/H-x86-gcc-3/i686-pc-linux-gnu/bin/
-B/mnt/hd/soma/H-x86-gcc-3/i686-pc-linux-gnu/lib/ -isystem
/mnt/hd/soma/H-x86-gcc-3/i686-pc-linux-gnu/include -DHAVE_CONFIG_H -I.
-I../../../../src.gcc/libstdc++-v3/src -I.. -D_GNU_SOURCE -nostdinc++
-I../../../../src.gcc/libstdc++-v3 -I../libio
-I../../../../src.gcc/libstdc++-v3/libio
-I../../../../src.gcc/libstdc++-v3/config/cpu/i486
-I../../../../src.gcc/libstdc++-v3/config/gnu-linux
-I/mnt/hd/soma/H-x86-gcc-3/include -g -O2
-fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-format
-W -Wwrite-strings -Winline -Werror -Wno-unknown-pragmas
-fdiagnostics-show-location=once -ffunction-sections
-fdata-sections -O0 -ggdb -c
../../../../src.gcc/libstdc++-v3/src/locale.cc