Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 04-09-2004, 07:19 AM   #1
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Rep: Reputation: 15
LFS 5.0 with kernel 2.6.5 gcc 3.3.2 and many other 'more up-to-date' packages


I'm new to this forum and, for a beginning, I want to make a question to all of you linux-experienced users and distro-makers with LFS.

after having tested several linux distros like RedHat, Mandrake, SuSE, Slackware, Gentoo and KNOPPIX (many of them on LiveCD), i decided to give LFS a try, but I have encountered a serious problem (at least for me):

I followed all the instructions on the book for building the initial packages like binutils 2.14 and gcc 3.3.2 (i wanted to include the new version rather than the 3.3.1, just thought it could be more 'efficient' or at least newest) in Pass 1 build, but just after building the stage 1 gcc, I have to unpack the kernel 2.4.22 headers (and I gone for the 2.6.5 because I wanted the IDE complete support for CD and CD-RW units instead of SCSI emulation, for example), but I encounter a severe problem at the time of making the platform-specific include/asm symlink.

that's what I do until the problem appears:

(first, of course, I unpack the linux-2.6.5.tar.bz2 file)

make mrproper (as suggested by the book for not to rely on the source tree being clean after untarring)
make include/linux/version.h

and when I enter the next command (that's make symlinks) it just says there's no target rule for symlinks... what have I done bad? the book doesn't give me any piece of advice on this, maybe the LFS book is intended to be used with only linux 2.4.22 kernel? or is there a way to workaround the problem?

I would like you to give me an answer to this because without it I'm afraid I'm completely stuck.

Thanks in advance,

P.D. BTW, my 'host' linux system at the time of trying this is the KNOPPIX 3.2 LiveCD (that's a Debian/GNU testing/unstable version), regardless of the inherently slower compiling speed due to several CD accesses during compilation or just normal system operation... everything has a cost, after all
Old 04-09-2004, 08:19 AM   #2
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
The symlinks problem is easy, just do it by hand, make a symbolic link to the asm folder for your architecture and call it asm. For me on a pentium that would be
cd include
ln -sf asm-i386 asm
The problem with using the 2.6 headers comes near the end of the book. You need to do serious things to get e2fsprogs and util-linux to build on the 2.6 headers. These packages deal with your hard disk. If they don't work perfectly you're putting your whole system at risk. Don't do it. Here be monsters!
Follow book 5 and you will build a stable system. You don't need to build a 2.4 kernel at the end. I build a 2.6. I install module-init-tools instead of modutils and I alter the bootscripts slightly to mount the sys filesystem

Last edited by Andrew Benton; 04-09-2004 at 08:29 AM.
Old 04-09-2004, 08:41 AM   #3
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Original Poster
Rep: Reputation: 15
thanks, Andrew, for the answer, i'll note down the line you've posted for me regarding the symlink creation, and i'll test it later this evening.

and with the util-linux and e2fsprogs 'problem', well... i'll continue for now with the book and if i encounter problems, well... i'll try to deal with it. anyway, i'm not willing to let GRUB be installed on the MBR, i've been booting all the distros i've tried with a floppy, so i don't assume the risk of having my windows partition go directly to limbo

to be honest, my intention on this 'project' is to test if the distro works fine, and if that the case, i'll try later to re-create all the distro but adding some features like support for xfce4 (hope I don't get annoying messages like having to update gtk+ or pango, like I had to do on some previous distros I had installed), but... everything will come at the right time, i don't want to go too fast with this

so, as said before, thanks



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
Note on LFS packages xushi Linux From Scratch 0 05-04-2005 03:55 AM
LFS all packages? blackzone Linux From Scratch 3 08-23-2004 12:25 AM
Debian Packages (apt-get) not up-to-date? rmdl Debian 12 02-23-2004 08:59 AM
LFS 3.2 book, but LFS packages 3.0 CragStar Linux From Scratch 2 04-07-2002 03:15 PM
Latest LFS packages ca9mbu Linux From Scratch 6 01-23-2002 02:26 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration