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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-22-2008, 08:39 PM
|
#1
|
|
LQ Newbie
Registered: Jun 2006
Location: Wisconsin
Posts: 1
Rep:
|
Glibc 2.7 Build Error "ld: cannot find -lgcc"
Hello,
I'm taking my first stab at Linux from scratch and trying to ease into cross compiling by using the same platform (x86_64) for both my target and host. I have been able to configure the 2.6.25.6 kernel headers, build binutils 2.18, and get a "boot" version of the gcc c compiler. I'm now trying to build glibc 2.7 and getting the following error:
a - login/setutxent.os
a - login/getutxent.os
a - login/endutxent.os
a - login/getutxid.os
a - login/getutxline.os
a - login/pututxline.os
a - login/utmpxname.os
a - login/updwtmpx.os
a - login/getutmpx.os
a - login/getutmp.os
a - elf/dl-iteratephdr.os
a - elf/dl-addr.os
a - elf/dl-profstub.os
a - elf/dl-libc.os
a - elf/dl-sym.os
a - elf/dl-tsd.os
a - elf/dl-vdso.os
: /home/alex/mythtv-project/build-tools/build-glibc/libc_pic.a
x86_64-linux-gcc -nostdlib -nostartfiles -r -o /home/alex/mythtv-project/build-tools/build-glibc/elf/librtld.map.o '-Wl,-(' /home/alex/mythtv-project/build-tools/build-glibc/elf/dl-allobjs.os /home/alex/mythtv-project/build-tools/build-glibc/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/home/alex/mythtv-project/build-tools/build-glibc/elf/librtld.mapT
/home/alex/mythtv-project/tools/lib/gcc/x86_64-linux/4.3.0/../../../../x86_64-linux/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
make[2]: *** [/home/alex/mythtv-project/build-tools/build-glibc/elf/librtld.map] Error 1
make[2]: Leaving directory `/home/alex/mythtv-project/build-tools/glibc-2.7/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/home/alex/mythtv-project/build-tools/glibc-2.7'
make: *** [all] Error 2
-Thanks
Last edited by binzyw; 07-22-2008 at 08:43 PM.
Reason: changing notifications
|
|
|
|
07-22-2008, 10:16 PM
|
#2
|
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware, Cross Linux from Scratch, Gentoo
Posts: 2,663
Rep: 
|
If you're building on or for an x86_64 platform, I would recommend Cross Linux from Scratch (multilib) --> http://trac.cross-lfs.org/. The development version of the book is stable for x86_64 right now; other architectures aren't yet.
Since you're not following the instructions as written in the LFS book, it's difficult to say what your actual problem is. How have you deviated from the instructions other than what is obvious from what you have posted?
|
|
|
|
03-18-2009, 12:45 PM
|
#3
|
|
LQ Newbie
Registered: Mar 2009
Posts: 2
Rep:
|
Glibc 2.7 Build Error "ld: cannot find -lgcc
Hi,
Did you get solution for this problem? Kindly share the information
Regards
Ram
|
|
|
|
04-10-2009, 09:46 AM
|
#4
|
|
LQ Newbie
Registered: Apr 2009
Posts: 1
Rep:
|
hi,
Have you solved this problem? I got the same issue when I build glibc. Appreciate for any suggestions.
Thanks,
Daniel
|
|
|
|
12-24-2011, 01:33 PM
|
#5
|
|
LQ Newbie
Registered: Dec 2011
Posts: 20
Rep: 
|
Hi,
I am having the same problem with Glibc, only I am using i686, not x86_64.
-Aaron
|
|
|
|
12-24-2011, 01:47 PM
|
#6
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,718
|
@ubuntudude12:
This thread is 3.5 years old and LFS has changed a lot since back then.
Please start a new thread and give us your specific information:
- LFS version you are trying to build,
- the host you are using (is it compliant?),
- the chapter you have trouble building,
- the error shown (and at least 5 to 10 lines before the error),
- anything that you might think is relevant.
Hope this helps.
|
|
|
|
06-24-2012, 10:40 PM
|
#7
|
|
Member
Registered: Jun 2012
Location: India
Distribution: 2.6.x
Posts: 34
Rep: 
|
getting same error.
Quote:
Originally Posted by ubuntudude12
Hi,
I am having the same problem with Glibc, only I am using i686, not x86_64.
-Aaron
|
hi...
I am facing the same problem in different forms, Forms are:
1. -lgcc not found
2. -lgcc_s not found
3. -lc not found
4. linker is not configured to reach sysroot.
All the time I execute a file.. one of the following errors will occur.
.
.
Please, let me know if you have got the solution to this..
Thanks
Manoj
|
|
|
|
06-25-2012, 02:39 AM
|
#8
|
|
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,570
|
Hi as mentioned above, can you start a new thread and details of host and the ouput of version-check, Also more details on what you are following which book
|
|
|
|
06-25-2012, 02:51 AM
|
#9
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,718
|
Quote:
Originally Posted by manoj7410
Please, let me know if you have got the solution to this..
|
Yes, s/he did: http://www.linuxquestions.org/questi...-error-920382/
|
|
|
|
| Thread Tools |
Search this 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
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:24 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|