LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-07-2012, 09:49 AM   #1
droidzone
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
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

Last edited by droidzone; 02-07-2012 at 10:08 AM.
 
Old 02-07-2012, 04:26 PM   #2
dllobach
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???
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:24 PM.

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