[uClibc]gcc-3.2 with c++

Jeremy Jones jeremy at samnjack.com
Thu Sep 26 19:53:55 UTC 2002


Hey alls,

I've been trying to compile gcc-3.2 using uClibc-0.9.15 as my native c
libs.  I'm doing this on an i686 system currently running gcc-2.95.3
compiled against uClibc-0.9.15.  uClibc was compiled with these options:

$ make PREFIX=/ DOSHAREDMAIN=true DO_C99_MATH=true \
INCLUDE_RPC=true DOLFS=true KERNEL_SOURCE=/usr/src/linux \
HAS_SHADOW=true HAS_WCHAR=true HAS_LONG_LONG=false \
UNIX98PTY_ONLY=false INCLUDE_IPV6=true all install

The DOSHAREDMAIN flag is enabled by a patch found through the
linuxfromscratch.org hints page.  Here's how I'm trying to compile
gcc-3.2:

$ ../gcc-3.2/configure --prefix=/usr --enable-languages=c,objc,c++ \
	--enable-threads=posix --enable-shared --disable-nls
$ make BOOT_LDFLAGS=-static bootstrap

I can get through building gcc-3.2 with c and objc languages enabled
only.  With c++, I get the following error:

In file included from
../../../../gcc-3.2/libstdc++-v3/libsupc++/eh_alloc.cc:33:
/usr/ports/base/gcc/work/src/build/i686-pc-linux-gnu/libstdc++-v3/include/cstdlib:104: `mblen' not declared
/usr/ports/base/gcc/work/src/build/i686-pc-linux-gnu/libstdc++-v3/include/cstdlib:105: `mbstowcs' not declared
/usr/ports/base/gcc/work/src/build/i686-pc-linux-gnu/libstdc++-v3/include/cstdlib:106: `mbtowc' not declared
/usr/ports/base/gcc/work/src/build/i686-pc-linux-gnu/libstdc++-v3/include/cstdlib:115: `wcstombs' not declared
/usr/ports/base/gcc/work/src/build/i686-pc-linux-gnu/libstdc++-v3/include/cstdlib:116: `wctomb' not declared
make[2]: *** [eh_alloc.lo] Error 1
make[2]: Leaving directory
`/usr/ports/base/gcc/work/src/build/i686-pc-linux-gnu/libstdc++-v3/libsupc++'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/usr/ports/base/gcc/work/src/build/i686-pc-linux-gnu/libstdc++-v3'
make: *** [install-target-libstdc++-v3] Error 2

Searching google, I noticed there used to be a patch for the
gcc-3.1.1-uclibc toolchain that MAY have addressed these issues:
gcc-001_libstdc++-wcmb_diable.patch.  The file, however, is no longer
available.  

At any rate, anyone have an idea on what I need to change to make it
work?  I appreciate any pointers!

Thanks,
Jeremy






More information about the uClibc mailing list