Hi
I am trying to build cross gcc for mips. I have followed following
steps:
1. Building binutils (binuitls - 2.17)
2. Building bootstrap gcc ( gcc- 3.0.1)
3. Building uClibc ( 0.9.27)
4. Building final gcc ( gcc-3.0.1)
Iam successful in building first three steps (upto building uClibc).
My bootstrap gcc configuration is :
# ../gcc-3.0.1/configure --target=$TARGET --prefix=$PREFIX
--without-headers --with-newlib --with-gnu-ld --with-gnu-as
--enable-languages=c --disable-threads --disable-shared --disable-nls
Building as:
# make all-gcc
Installing as:
# make install-gcc
Then I successfully built uClibc with bootstrap cross gcc.
final gcc configuration:
# LD=mips-linux-ld AS=mips-linux-as ../gcc-3.0.1/configure
--target=$TARGET --prefix=$PREFIX --enable-languages=c,c++
--with-headers=/root/Project-uClibc++/Genesis/tools/usr/mips-linux-uclibc/usr/include
--with-libs=/root/Project-uClibc++/Genesis/tools/usr/mips-linux-uclibc/usr/lib
--with-gnu-as --with-gnu-ld --enable-shared --disable-nls
I need c++ support to build the apps. library by uClibc++.
tried to build as : make LD=mips-linux-ld AS=mips-linux-as all
My uClibc library and header is located at
/root/Project-uClibc++/Genesis/tools/usr/mips-linux-uclibc/usr/lib and
/root/Project-uClibc++/Genesis/tools/usr/mips-linux-uclibc/usr/include.
Iam successful in building final gcc with C language only
(enable-language=c). It is failing of building libstdc++. I am getting
following error as below:
/bin/sh ../libtool --tag CXX --mode=compile
/root/Project-uClibc++/Genesis/build-tools/build-gcc/gcc/xgcc
-B/root/Project-uClibc++/Genesis/build-tools/build-gcc/gcc/ -nostdinc++
-L/root/Project-uClibc++/Genesis/build-tools/build-gcc/mips-linux/libstdc++-v3/src
-L/root/Project-uClibc++/Genesis/build-tools/build-gcc/mips-linux/libstdc++-v3/src/.libs
-B/root/Project-uClibc++/Genesis/tools/mips-linux/bin/
-B/root/Project-uClibc++/Genesis/tools/mips-linux/lib/ -isystem
/root/Project-uClibc++/Genesis/tools/mips-linux/include -nostdinc++
-I/root/Project-uClibc++/Genesis/build-tools/build-gcc/mips-linux/libstdc++-v3/include/mips-linux
-I/root/Project-uClibc++/Genesis/build-tools/build-gcc/mips-linux/libstdc++-v3/include
-I../../../../gcc-3.0.1/libstdc++-v3/libsupc++
-I../../../../gcc-3.0.1/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.0.1/libstdc++-v3/src/locale.cc
/root/Project-uClibc++/Genesis/build-tools/build-gcc/gcc/xgcc
-B/root/Project-uClibc++/Genesis/build-tools/build-gcc/gcc/ -nostdinc++
-L/root/Project-uClibc++/Genesis/build-tools/build-gcc/mips-linux/libstdc++-v3/src
-L/root/Project-uClibc++/Genesis/build-tools/build-gcc/mips-linux/libstdc++-v3/src/.libs
-B/root/Project-uClibc++/Genesis/tools/mips-linux/bin/
-B/root/Project-uClibc++/Genesis/tools/mips-linux/lib/ -isystem
/root/Project-uClibc++/Genesis/tools/mips-linux/include -nostdinc++
-I/root/Project-uClibc++/Genesis/build-tools/build-gcc/mips-linux/libstdc++-v3/include/mips-linux
-I/root/Project-uClibc++/Genesis/build-tools/build-gcc/mips-linux/libstdc++-v3/include
-I../../../../gcc-3.0.1/libstdc++-v3/libsupc++
-I../../../../gcc-3.0.1/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.0.1/libstdc++-v3/src/locale.cc -fPIC -DPIC -o
.libs/locale.o
In file included from ../../../../gcc-3.0.1/libstdc++-v3/src/locale.cc:557:
/root/Project-uClibc++/Genesis/build-tools/build-gcc/mips-linux/libstdc++-v3/include/mips-linux/bits/ctype_noninline.h:
In
constructor `std::ctype<char>::ctype(const short unsigned int*, bool,
unsigned int)':
/root/Project-uClibc++/Genesis/build-tools/build-gcc/mips-linux/libstdc++-v3/include/mips-linux/bits/ctype_noninline.h:46:
could
not convert `__ctype_toupper' to `const int* const&'
/root/Project-uClibc++/Genesis/build-tools/build-gcc/mips-linux/libstdc++-v3/include/mips-linux/bits/ctype_noninline.h:46:
could
not convert `__ctype_tolower' to `const int* const&'
make[3]: *** [locale.lo] Error 1
make[3]: Leaving directory
`/root/Project-uClibc++/Genesis/build-tools/build-gcc/mips-linux/libstdc++-v3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/root/Project-uClibc++/Genesis/build-tools/build-gcc/mips-linux/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory
`/root/Project-uClibc++/Genesis/build-tools/build-gcc/mips-linux/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2
let me know what may be reason, can I check with gcc-3.0.4.
Regards
Manjunatha Srinivasan N