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. |
|
 |
11-28-2010, 08:33 AM
|
#1
|
|
LQ Newbie
Registered: May 2010
Location: Chicago
Distribution: UbuntuStudio 10.10, Arch
Posts: 10
Rep:
|
6.7 Chapter 6.9 - Glibc Install Error
I haven't posted here in awhile, but I've been trying to do an LFS build and I'm having a bit of trouble installing Glibc (3rd pass). During compile I get the exact output stated in this thread, but if I read it right those errors shouldn't pose a problem on installation. This is my install error:
Code:
CC="gcc" /usr/bin/perl scripts/test-installation.pl /usr/src/glibc-build/
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../x86_64-unknown-linux-gnu/bin/ld: : No such file: No such file or directory
collect2: ld returned 1 exit status
Execution of gcc failed!
I checked for improper symbolic links as was suggested further down the error message, but couldn't find any. I'm building on Ubuntu Studio 10.10 but at this point I don't think the host system has anything to do with the build. It's a 64 bit machine and I have redone this chapter a few times so I'm pretty sure it wasn't some typo or skipped step. I did see an 'ld-audit' patch in the patch download directory, but the description said it was a security fix so I don't think it's relevant either. A search in '/tools/lib/gcc/x86_64-unknown-linux-gnu/4.5.1' for 'x86_64-unknown-linux-gnu' returned no results. There is also a '/tools/lib/gcc/x86_64- lfs-linux-gnu/ directory, should this be the one the program is looking in?. Is something pointing to the wrong directory or should there be a file called 'ld' in that directory? I greatly appreciate any help. I want to get this first build out of the way so I can do a CLFS for a really old i686 machine that I want to bring back to life!
|
|
|
|
11-30-2010, 09:36 AM
|
#2
|
|
Member
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 484
Rep:
|
Quote:
Originally Posted by Axelman0
During compile I get the exact output stated in this thread, but if I read it right those errors shouldn't pose a problem on installation.
|
Although I didn't get any errors immediately after the base installation, I had to rebuild Glibc, and the entire system eventually, because of a regression introduced by a kernel patch I was using. I have since abandoned said patch and the new system works perfectly now. This is pertinent because I had used the patched kernel to build the kernel headers. I still use a heavily patched kernel; Con Kolivas' kernel patchset, TuxOnIce, the BFQ scheduler, the reiser4 patch, a patch for improved functionality with atop, and a couple of others. I also use the linux-libre kernel, instead of mainline. Also I now use a different kernel version from my previous build and have had to go to some measure to get things working properly. You might have gotten the same errors as I did, but even at the point you presently are, you aren't completely independent from your host system's idiosyncracies. You might be in a chroot jail, but having tried building LFS and failed more than 15-odd times on a variety of architectures, I have seen stranger things happen.
|
|
|
|
12-02-2010, 08:38 AM
|
#3
|
|
LQ Newbie
Registered: May 2010
Location: Chicago
Distribution: UbuntuStudio 10.10, Arch
Posts: 10
Original Poster
Rep:
|
I'll install a 'purer' distro and see what happens
|
|
|
|
12-16-2010, 02:26 AM
|
#4
|
|
LQ Newbie
Registered: May 2010
Location: Chicago
Distribution: UbuntuStudio 10.10, Arch
Posts: 10
Original Poster
Rep:
|
Well I installed arch a couple of weeks ago and I'm having a great time with it. I decided to forgo the regular LFS and jump straight into cross compiling, and it went relatively smoothly. There are a couple of relatively major typos in the stable LFS 6.7 book that don't do any harm, just require you to know a little about what you're doing. I'll post a bug report in a few days, one of the typos is an argument surrounded by a set of quotes, and the command will not work unless those quotes are replaced with parentheses and a preceding dollar sign. Jumping from the host system to the target system was somewhat a leap of faith. I ended up putting ConnocheatOS on the laptop and using that as a base system for the final stage of the build. Unfortunately I got stuck at, once again, the third pass of Glibc haha. It was a completely different problem though. I'm gonna give it a rest for now but I certainly learned alot from what I did accomplish.
Using a simpler OS did seem to eliminate the hassles of working from within Ubuntu.
|
|
|
|
| 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 09:35 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
|
|