LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 09-25-2015, 05:53 AM   #1
Sarthak
LQ Newbie
 
Registered: Sep 2015
Posts: 25

Rep: Reputation: Disabled
Error in compiling glibc LFS7.1


Hello,
When I try to compile glibc I get the following error:

Code:
x86_64-lfs-linux-gnu-gcc   -nostdlib -nostartfiles -r -o /mnt/lfs/sources/glibc-build/elf/librtld.map.o '-Wl,-(' /mnt/lfs/sources/glibc-build/elf/dl-allobjs.os /mnt/lfs/sources/glibc-build/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/mnt/lfs/sources/glibc-build/elf/librtld.mapT
/mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/../../../../x86_64-lfs-linux-gnu/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
make[2]: *** [/mnt/lfs/sources/glibc-build/elf/librtld.map] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.21/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.21'
make: *** [install] Error 2

I followed the book step by step and I don't think I missed something. Someone have any clue from where the issue can come? Thank you
please help
Attached Files
File Type: log config.log (38.9 KB, 9 views)

Last edited by Sarthak; 09-25-2015 at 08:42 AM. Reason: uploaded my log file of this
 
Old 09-28-2015, 09:40 AM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600

Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread



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
[SOLVED] error while compiling glibc... smith283 Linux - Newbie 3 02-24-2013 01:24 AM
[SOLVED] seeking information regarding glibc for lfs7.1 install ankit0301 Linux From Scratch 3 04-08-2012 04:37 AM
Error compiling Glibc-2.12.1 in LFS 6.7 poisoning Linux From Scratch 1 05-22-2011 05:11 AM
error compiling Glibc-2.3.6 meital Linux From Scratch 8 03-01-2007 09:50 AM
[SOLVED] compiling glibc-2.4 error aihaike Slackware 3 03-24-2006 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:54 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