libstdc++/8155: GCC-3.2 doesn't compile on Linux-2.4.19 with glibc-2.3 (with patch to gcc-3.2 applied!)

ernst.molitor@uni-bonn.de ernst.molitor@uni-bonn.de
Sun Oct 6 00:56:00 GMT 2002


>Number:         8155
>Category:       libstdc++
>Synopsis:       libstdc++ doesn't compile (GCC-3.2 with B. Haible's patch applied, glibc-2.3)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 06 00:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Dr. Ernst Molitor
>Release:        3.2
>Organization:
University of Bonn, Germany
>Environment:
System: Linux felicia 2.4.20-pre2-ac3 #1 SMP Mon Sep 23 16:28:15 CEST 2002 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.2/configure --prefix=/usr --enable-threads --enable-shared
>Description:
make bootstrap fails on compilation of libstdc++ with this error message:
/home/ernst/incoming/gcc-bin/gcc/xgcc -shared-libgcc -B/home/ernst/incoming/gcc-bin/gcc/ -nostdinc++ -L/home/ernst/incoming/gcc-bin/i686-pc-linux-gnu/libstdc++-v3/src -L/home/ernst/incoming/gcc-bin/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -nostdinc++ -I/home/ernst/incoming/gcc-bin/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/home/ernst/incoming/gcc-bin/i686-pc-linux-gnu/libstdc++-v3/include -I../../../../gcc-3.2/libstdc++-v3/libsupc++ -I../../../../gcc-3.2/libstdc++-v3/libmath -g -O2 -D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -c ../../../../gcc-3.2/libstdc++-v3/src/locale.cc  -fPIC -DPIC -o .libs/locale.o
In file included from ../../../../gcc-3.2/libstdc++-v3/src/locale.cc:406:
/home/ernst/incoming/gcc-bin/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h: In
   static member function `static const short unsigned int* 
   std::ctype<char>::classic_table()':
/home/ernst/incoming/gcc-bin/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:45: `
   __ctype_b' undeclared (first use this function)
/home/ernst/incoming/gcc-bin/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:45: (Each
   undeclared identifier is reported only once for each function it appears 
   in.)
In file included from ../../../../gcc-3.2/libstdc++-v3/src/locale.cc:406:
/home/ernst/incoming/gcc-bin/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h: In
   constructor `std::ctype<char>::ctype(const short unsigned int*, bool, 
   unsigned int)':
/home/ernst/incoming/gcc-bin/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:68: `
   __ctype_toupper' undeclared (first use this function)
/home/ernst/incoming/gcc-bin/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:68: `
   __ctype_tolower' undeclared (first use this function)
make[4]: *** [locale.lo] Error 1
make[4]: Leaving directory `/home/ernst/incoming/gcc-bin/i686-pc-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ernst/incoming/gcc-bin/i686-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/home/ernst/incoming/gcc-bin/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/home/ernst/incoming/gcc-bin'
make: *** [bootstrap] Error 2


>How-To-Repeat:
clear directory intended for compilation, configure as detailed above, make bootstrap.

>Fix:
On the gcc mailing list, a patch kindly written by B. Haible was said to fix the problem. I've applied the patch before trying to compile, with the resultd described above. Needless to say, withouth B. Haible's patch, libstdc++ fails to compile, too.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list