Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-07-2012, 09:49 AM   #1
LQ Newbie
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
Error Building glibc

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
[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
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/ version `GLIBCXX_3.4.11' not found (required by /home/users/d/dr/droidzone/pass1/lib/
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

Last edited by droidzone; 02-07-2012 at 10:08 AM.
Old 02-07-2012, 04:26 PM   #2
LQ Newbie
Registered: Jan 2012
Posts: 22

Rep: Reputation: Disabled
An interesting observation: there is no "-V" option for gcc (the V being capitalized.) There is however a lower case "-v" option. If I go to a terminal and enter "gcc -V" I get the same "unrecognized option" and "fatal error" messages you got. But if I enter it with a lower case "-v" all is fine and it returns valid info. It seems like a long-shot but maybe???


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building (B)LFS with alternate toolchain Alexvader Linux From Scratch 2 03-17-2010 05:02 PM
Toolchain skeeters Programming 3 12-11-2009 02:33 PM
uClinux ARM-ELF Toolchain Building Procedure vinchipsathya Linux - Newbie 1 11-02-2009 06:28 PM
Problem building the PSP Toolchain under Ubuntu (gcc problem) L-28C Linux - Software 2 09-23-2008 02:38 AM
Building cross-compiling toolchain radhapriya Linux - Software 1 06-25-2004 12:01 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration