My object is to compile glibc-2.11 which is require to compile Android system.
I work on Sourceforge ssh environment without root access. That means I cant do an apt-get to install packages. Anything that I need has to be compiled.
I've successfully compiled binutils, ppl, cloog-ppl, mpc, mpfr, gmp against the gcc available on my host - gcc 4.1.1
Then compiled a gcc 4.6.2 with --disable-multilib. While trying to use the newly compiled gcc to compile glibc 2.11, I got this error
Code:
[dz glibc211bld]$ ../depend/glibc-2.11/configure --prefix=$pp
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for suffix of object files... configure: error: in `/home/users/d/dr/droidzone/glibc211bld':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
[dz glibc211bld]$
The relevant part of config.log. Full config.log is
here
Code:
COLLECT_LTO_WRAPPER=/home/users/d/dr/droidzone/glibc211/libexec/gcc/x86_64-unknown-linux-gnu/4.6.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --prefix=/home/users/d/dr/droidzone/glibc211 --with-mpc=/home/users/d/dr/droidzone/glibc211 --with-mpfr=/home/users/d/dr/droidzone/glibc211 --with-gmp=/home/users/d/dr/droidzone/glibc211 --with-ppl=/home/users/d/dr/droidzone/glibc211 --with-cloog=/home/users/d/dr/droidzone/glibc211 --disable-multilib
Thread model: posix
gcc version 4.6.2 (GCC)
configure:2436: $? = 0
configure:2443: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2447: $? = 1
configure:2451: checking for suffix of object files
configure:2477: gcc -c conftest.c >&5
/home/users/d/dr/droidzone/glibc211/libexec/gcc/x86_64-unknown-linux-gnu/4.6.2/cc1: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /home/users/d/dr/droidzone/pass1/lib/libgmpxx.so.4)
configure:2481: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2495: error: in `/home/users/d/dr/droidzone/depend/glibc-2.11':
configure:2498: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Can anyone point me to a solution?
Note that installing anything via apt-get is not an option for me