Linux From ScratchThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
which version of the book are you using?
[ there shouldn't be any big difference in the adjusting the toolchain, but it always helps to include that since it makes a difference in most of the book.
You are editing the configuration file for gcc itself?
The way it's presented in the book is as a sed script.
Quote:
The next task is to amend the GCC specs file so that it points to the new dynamic linker. A simple sed script will accomplish this:
It is recommended that the above command be copy-and-pasted in order to ensure accuracy. Alternatively, the specs file can be edited by hand. This is done by replacing every occurrence of “/lib/ld-linux.so.2” with “/tools/lib/ld-linux.so.2”
Yeah, it worked. still compiling now as I write. btw, I have read some threads on using live distros as hosts, but none of them has been conclusive. Which distro is fully compatible with lfs "out of the box"? So far I've tried
*Fedora Core 5 - Some commands were reported as not existing e.g. mke2fs
*Knoppix 4.0 & 5.0 - incompatibility with gcc 3
*Ubuntu 5.10 - got this message below.
Code:
lfs@JUU00:/mnt/lfs/sources/binutils-2.15.94.0.2.2$ ../binutils-2.15.94.0.2.2/configure --prefix=/tools --disable-nls
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
So, which Live distro is good at this? I want to be able to surf the net while compiling (next time of course!)
P.s. All the Distros I used were not in anyway remastered.
pretty much any distro should work, really - including most of those you've tried... the mke2fs error you got in fedora just means you'd need to install mke2fs, or you copuld use another filesystem (i'm using reiserfs, BTW)... the error you got in ubuntu means you either don't have gcc installed or you need to create a cc link to gcc - it's probably that you're missing gcc, though...
either way, i can recommend slackware 10.2 as an LFS host as that's what i'm using and it's worked-out great so far...
either way, i can recommend slackware 10.2 as an LFS host as that's what i'm using and it's worked-out great so far...
I've tried Slackware 10.2, I'm currently compiling lfs on my laptop using the live cd and on my desktop using Slackware 10.2. Do you ever have complete freezes when using your PC with Slackware? I thought it was some sort of dma problem, enabled it, but still no avail. My PC just keeps freezing up, even when it's idle. Googled it and found it to be "KDE's QT Layer". How can I disable that? by using gnome??
I've tried Slackware 10.2, I'm currently compiling lfs on my laptop using the live cd and on my desktop using Slackware 10.2. Do you ever have complete freezes when using your PC with Slackware? I thought it was some sort of dma problem, enabled it, but still no avail. My PC just keeps freezing up, even when it's idle. Googled it and found it to be "KDE's QT Layer". How can I disable that? by using gnome??
no, i haven't experienced any freezes... BTW i don't use kde and stuff, i stick with XFCE...
if you're 100% sure your problem is caused by QT and there's no way to get around it, then yes, using a non-qt window manager or desktop environment and apps should do the trick...
I recommend the LFS Live CD, because it was OK for me, I have finished my LFS build and the LFS LiveCD was good enough to be the host while building. It has Web browser to read LFS online/offline and the best - it has all the necessary sources on it so I do not need to download them. I was building on WMVare, no problemns with LFS LiveCD, do not know if it may have any problems on a real PC.
Hey there, I finished my LFS on Friday, now I'm moving on to BLFS. Will make this a long term project, because I dont have so much time anymore.
p.s. when building LFS, try the live-CD, because it meets all the required standards, and you won't have any problems with gcc.
pss. when in LFS-Live CD, try start X to bring up xfce, and you will get a desktop, with a web-browser (it's home page is set to the LFS-book on the cd ) If this doesn't work, edit your xorg.conf accordingly, I tell you, it's much easier.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.