Bootstrap failure: ctype vs. -Werror
Chip Salzenberg
chip@valinux.com
Tue Jun 13 23:22:00 GMT 2000
For some reason, -Werror is now enabled in libstdc++-v3/src when
bootstrapping gcc. This results in a bootstrap failure when compiling
the wide ctype functions:
/u/build/gcc/egcs-old/gcc/g++ -B/u/build/gcc/egcs-old/gcc/ -B/usr/local/egcs/i686-pc-linux/bin/ -DHAVE_CONFIG_H -I. -I../../../SRC/libstdc++-v3/src -I.. -nostdinc++ -I../../../SRC/libstdc++-v3 -I../../../SRC/libstdc++-v3/libio -I../../../SRC/libstdc++-v3/config/cpu/i486 -I../../../SRC/libstdc++-v3/config/gnu-linux -I/usr/local/egcs/include -pipe -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -Werror -fdiagnostics-show-location=once -g -c -fPIC -DPIC ../../../SRC/libstdc++-v3/src/locale.cc -o .libs/locale.lo
cc1plus: warnings being treated as errors
In file included from ../../../SRC/libstdc++-v3/src/locale.cc:41:
../../../SRC/libstdc++-v3/bits/std_cwctype.h: In function `int std::_S_iswspace_helper (unsigned int)':
../../../SRC/libstdc++-v3/bits/std_cwctype.h:65: warning: comparison of unsigned expression >= 0 is
always true
../../../SRC/libstdc++-v3/bits/std_cwctype.h: In function `int std::_S_iswprint_helper (unsigned int)':
../../../SRC/libstdc++-v3/bits/std_cwctype.h:73: warning: comparison of unsigned expression >= 0 is
always true
../../../SRC/libstdc++-v3/bits/std_cwctype.h: In function `int std::_S_iswcntrl_helper (unsigned int)':
../../../SRC/libstdc++-v3/bits/std_cwctype.h:81: warning: comparison of unsigned expression >= 0 is
always true
../../../SRC/libstdc++-v3/bits/std_cwctype.h: In function `int std::_S_iswupper_helper (unsigned int)':
../../../SRC/libstdc++-v3/bits/std_cwctype.h:89: warning: comparison of unsigned expression >= 0 is
always true
../../../SRC/libstdc++-v3/bits/std_cwctype.h: In function `int std::_S_iswlower_helper (unsigned int)':
../../../SRC/libstdc++-v3/bits/std_cwctype.h:97: warning: comparison of unsigned expression >= 0 is
always true
../../../SRC/libstdc++-v3/bits/std_cwctype.h: In function `int std::_S_iswalpha_helper (unsigned int)':
../../../SRC/libstdc++-v3/bits/std_cwctype.h:105: warning: comparison of unsigned expression >= 0 is
always true
../../../SRC/libstdc++-v3/bits/std_cwctype.h: In function `int std::_S_iswdigit_helper (unsigned int)':
../../../SRC/libstdc++-v3/bits/std_cwctype.h:113: warning: comparison of unsigned expression >= 0 is
always true
../../../SRC/libstdc++-v3/bits/std_cwctype.h: In function `int std::_S_iswpunct_helper (unsigned int)':
../../../SRC/libstdc++-v3/bits/std_cwctype.h:121: warning: comparison of unsigned expression >= 0 is
always true
../../../SRC/libstdc++-v3/bits/std_cwctype.h: In function `int std::_S_iswxdigit_helper (unsigned
int)':
../../../SRC/libstdc++-v3/bits/std_cwctype.h:129: warning: comparison of unsigned expression >= 0 is
always true
../../../SRC/libstdc++-v3/bits/std_cwctype.h: In function `int std::_S_iswalnum_helper (unsigned int)':
../../../SRC/libstdc++-v3/bits/std_cwctype.h:137: warning: comparison of unsigned expression >= 0 is
always true
../../../SRC/libstdc++-v3/bits/std_cwctype.h: In function `int std::_S_iswgraph_helper (unsigned int)':
../../../SRC/libstdc++-v3/bits/std_cwctype.h:145: warning: comparison of unsigned expression >= 0 is
always true
make[4]: *** [locale.lo] Error 1
make[4]: Leaving directory `/u/build/gcc/egcs-old/i686-pc-linux/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/u/build/gcc/egcs-old/i686-pc-linux/libstdc++-v3'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/u/build/gcc/egcs-old/i686-pc-linux/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/u/build/gcc/egcs-old'
make: *** [bootstrap] Error 2
Compilation exited abnormally with code 2 at Tue Jun 13 22:12:48
--
Chip Salzenberg - a.k.a. - <chip@valinux.com>
"I wanted to play hopscotch with the impenetrable mystery of existence,
but he stepped in a wormhole and had to go in early." // MST3K
More information about the Libstdc++
mailing list