LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 02-11-2006, 09:02 AM   #1
rikpotts
Member
 
Registered: Jan 2006
Location: Chester, UK
Distribution: back to BLFS 6.1
Posts: 68

Rep: Reputation: 15
glibc config problem


Hi,
Im on my third attempt at this and Ive just hit my first error.
Im up to 6.11 Glibc-2.3.4

When I enter
Code:
../glibc-2.3.4/configure --prefix=/usr \
    --disable-profile --enable-add-ons \
    --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc
I get the message..
Code:
checking for gcc... gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Ive looked in ths config.log and there is a line...

Code:
gcc: installation problem, cannot exec '/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/as': No such file or directory
Ive checked other posts regarding this and they seem to be missing sym links, Ive checked recent sym links and I get a message saying 'file exitsts'

Does anyone know where I might have gone wrong?

Many Thanks once again!
Rik

Sorry, maybe I should say Im using the LiveCD as a host and Im doing version 6.1.1

Last edited by rikpotts; 02-11-2006 at 09:08 AM.
 
Old 02-11-2006, 11:08 AM   #2
rikpotts
Member
 
Registered: Jan 2006
Location: Chester, UK
Distribution: back to BLFS 6.1
Posts: 68

Original Poster
Rep: Reputation: 15
It doesn't matter. Im starting again!
 
Old 02-24-2006, 04:04 AM   #3
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
I also get the same error, but it's not symlinks which causes errors.
I'm using GCC-3.3.4, Binutils-2.6.1.
Code:
root:/tools/bin# ./gcc -v
bash: ./gcc: No such file or directory
But when I do the same from host system (Slackware10.2 (2.6.15)) it shows output:
Code:
kornerr@kornerr:/mnt/lfs/tools/bin$ ./gcc -v
Reading specs from /mnt/lfs/tools/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.3.4/specs
Configured with: ../configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c : (reconfigured) ../configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
gcc version 3.3.4
What does it mean??? Why can't I access gcc from chroot?

Thanks.
 
Old 02-24-2006, 04:15 PM   #4
FinalFantasy
Member
 
Registered: Sep 2003
Location: UK
Distribution: CLFS-32bit-x86 / LFS-SVN-20060210
Posts: 49

Rep: Reputation: Disabled
When you are ran the command in your host system, what is your $PATH?

The gcc in your host system should not be altered in any circumstances. The adjusting is applied to the new gcc installed in /tools.


To locaet the the reason you cannot run gcc after chroot, execute this command in the host system:
ldd /tools/bin/gcc

Last edited by FinalFantasy; 02-24-2006 at 04:16 PM.
 
Old 02-25-2006, 08:35 AM   #5
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
Code:
kornerr@kornerr:~$ ldd /tools/bin/gcc
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7e88000)
        /lib/ld-linux.so.2 (0xb7fbb000)
So I guess the problem is that gcc referes to host's libs... hmmm... And what can I do now?
I can't compile gcc-3.4.3, because it's buggy, so I used gcc-3.3.4 and, of course, the patch to change /lib to /tools/lib for gcc-3.4.3 didn't change all such entries, because it wasn't made for 3.3.4, but for 3.4.3...
What shoud I do? Is it possible to make symlinks?

Thanks.
 
Old 02-25-2006, 10:36 AM   #6
FinalFantasy
Member
 
Registered: Sep 2003
Location: UK
Distribution: CLFS-32bit-x86 / LFS-SVN-20060210
Posts: 49

Rep: Reputation: Disabled
Was the patch applied without any failure? there was a pach for gcc-3.3.4, but it is out-of-date and should be found in lfs-musume.

You have to do the adjustment correctly. Symlinks is not an option.
Did you run the test after adusting the toolchain?
 
Old 02-25-2006, 10:58 AM   #7
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
Of course, there was a number of failers, because I applied gcc-3.4.3 patch to gcc-3.3.4.
What do you suggest me to do? Can I manually replace "/lib" to "/tools/lib" in gcc-3.3.4 sources somewhere without patch? And WHERE?

Thanks.
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
Problem on config glibc-2.3.4 satimis Linux From Scratch 2 02-03-2006 10:28 PM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 07:26 AM
glibc config errors kudos Linux - Software 2 10-06-2003 12:13 PM
possible samba config problem or network config issue? rruffin Linux - Networking 3 06-03-2003 04:04 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration