LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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


Reply
  Search this Thread
Old 06-01-2006, 04:21 AM   #1
Vampirite
Member
 
Registered: Apr 2005
Location: England
Distribution: Arch Linux
Posts: 223

Rep: Reputation: 30
Good distro to compile LFS on?


Hi,

I want to compile LFS. At first I tried the Live CD, but my DVDROM drive is slow, and I kept getting "Input/Output Error".

So I have copied the sources to my LFS partition, and I have the book.

But I need to know what distro to compile it on. I currently have Slackware 10.2, but it is slightly messed up, with incompatible things here and there, kernel headers not working properly, etc. In short it is not good to compile LFS on.

I have about 1-2GB free space for this distro, I am wondering what to use. I was thinking of Arch Linux, but that uses GCC 4.x, when LFS says use 3.x, then I thought of Zenwalk. I am looking for something that fits in 1-2GB of free space.

Thanks for the help,

Kourosh (Vampirite)
 
Old 06-01-2006, 04:29 AM   #2
slantoflight
Member
 
Registered: Aug 2005
Distribution: Smoothwall
Posts: 283
Blog Entries: 3

Rep: Reputation: 35
Any distro with GCC(the version LFS requires) should in theory work. Suse,Fedora,Ubuntu,Debian They can all be installed or configured to be installed to 1-2 gigs of space.
 
Old 06-01-2006, 11:58 AM   #3
hbinded
Member
 
Registered: May 2006
Distribution: Slackware & MyLFScratch
Posts: 37

Rep: Reputation: 15
I tried all those, somehow, someway, I encountered some test and make failures. The bese way to go is using the live cd. Since it meets all the requirements. Btw, you don't have to use it in text mode (although I did using lynx), you can configure your graphic card and use xfce. It's much better that way If you need any help, holla!

p.s. slackware works just as well if you installed all the software on the two install cd's.
 
Old 06-01-2006, 02:27 PM   #4
Vampirite
Member
 
Registered: Apr 2005
Location: England
Distribution: Arch Linux
Posts: 223

Original Poster
Rep: Reputation: 30
Believe me, the Live CD is slow. It took me about 5 or 10 minutes to bring up XFCE, then 2 or 3 to bring up a terminal.

I tried a custom Slackware install, which was just Slackware's base, applications, development tools, X, and xfce. I ran out of space on the last package, though I might try again.

I'm thinking Zenwalk, it is based on Slackware and the whole complete thing fits is 2GB (doesn't it?).
 
Old 06-01-2006, 07:03 PM   #5
hbinded
Member
 
Registered: May 2006
Distribution: Slackware & MyLFScratch
Posts: 37

Rep: Reputation: 15
aha! now that's a matter of taste and preference. I tried everything..........well about major distros and I always ended up having to restart my lfs *again*. So I settled for the live cd. Now that I'm through, I'm using slackware as my host for BLFS, just before I install a window manager and use myblfs system.
anyways, lots of luck. Especially with gcc<------- almost gave up because of it!!!
 
Old 06-02-2006, 11:36 AM   #6
Vampirite
Member
 
Registered: Apr 2005
Location: England
Distribution: Arch Linux
Posts: 223

Original Poster
Rep: Reputation: 30
Thanks, trying to install Zenwalk now, however after 4 attempts it keeps coming up with an error message about corrupt package. The CD passed MD5SUM, and I meet all requirements. It happened with Slackware before, but I just retried a few times and it worked.

I have no idea.

But I'll keep trying.
 
Old 06-03-2006, 01:30 PM   #7
Vampirite
Member
 
Registered: Apr 2005
Location: England
Distribution: Arch Linux
Posts: 223

Original Poster
Rep: Reputation: 30
Hi,

I managed to get Zenwalk working, just for the "corrupt packages" I reinstalled them.

I have compiled some things for LFS, I am now onto GCC Pass 2.

I have looked at the LFS Errata, but how should I patch the files?
Is it:
patch -Np1 -i [patch]

??

Thanks,

Vampirite
 
Old 06-03-2006, 06:20 PM   #8
hbinded
Member
 
Registered: May 2006
Distribution: Slackware & MyLFScratch
Posts: 37

Rep: Reputation: 15
yep. just like the other patches, but I did not patch according to the errata
 
Old 06-04-2006, 02:37 AM   #9
Vampirite
Member
 
Registered: Apr 2005
Location: England
Distribution: Arch Linux
Posts: 223

Original Poster
Rep: Reputation: 30
I want to use Vim 7 instead of 6.3, how should I compile this? The same as the book without the patches for 6.3?

I have compiled the whole temporary system, and have done everything up to the first package in Chapter 6. However, I exited the chroot environment by typing exit at the console, then I rebooted. Is this correct and does it work properly? Or does it pose problems?

Thanks,

Vampirite

Last edited by Vampirite; 06-04-2006 at 09:11 AM.
 
Old 06-04-2006, 02:07 PM   #10
Vampirite
Member
 
Registered: Apr 2005
Location: England
Distribution: Arch Linux
Posts: 223

Original Poster
Rep: Reputation: 30
And how should I properly re-enter the chroot environment?
 
Old 06-06-2006, 11:21 PM   #11
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Vampirite
I currently have Slackware 10.2, but it is slightly messed up, with incompatible things here and there, kernel headers not working properly, etc. In short it is not good to compile LFS on.
i doing LFS 6.1.1 using slackware 10.2 as a host - it's worked-out great...

Quote:
I want to use Vim 7 instead of 6.3, how should I compile this? The same as the book without the patches for 6.3?
depends on what the patches do... by looking at the patch and reading the description you should be able to determine if it addresses a particular version issue, or if it's a general change which would have to be made regardless of the version... as for the configuration options at build time, read the developer's changelog and see if anything which would require different configuration options has happened...

Quote:
I have compiled the whole temporary system, and have done everything up to the first package in Chapter 6. However, I exited the chroot environment by typing exit at the console, then I rebooted. Is this correct and does it work properly? Or does it pose problems?
you should be fine as long as you mount the virtual filesystems and enter the chroot in the same way as before... from chapter 6.3:
Quote:
If you leave this environment for any reason (rebooting for example), remember to first mount the proc and devpts file systems (discussed in the previous section) and enter chroot again before continuing with the installations.

Last edited by win32sux; 06-06-2006 at 11:24 PM.
 
Old 06-07-2006, 11:52 PM   #12
spursrule
LQ Newbie
 
Registered: Feb 2006
Distribution: LFS
Posts: 26

Rep: Reputation: 15
I used Knoppix to build LFS-SVN from last month. I can never get GCC to finish the libstdc++ tests without exiting, but everything works very fast and very stable, and I have a ton of stuff running on LFS... ie,


- Xorg-6.9.0 (Xorg-7.0 is such a pain in the ass right now with so many packages hardcoding /usr/X11R6 into their makefiles)
- kde-3.5
- amaroK
- k3B
- kdevelop (I love it... great for multiple-file projects, although I miss ViM simple keystrokes... ViM >> Kate)
- firefox-1.5
- opera (bin, since no src provided)
- xmame, gxmame, foobilliard, frozen-bubble, fceu, zsnes
- GIMP
- blender
- kde-games, gnome-games. gnome-card-games, etc.
- mathematica-5 (bin)
- JDK (used the binary though... who wants to wait for that compile?)
- MPlayer
- xine
- totem
- sound-juicer
- abiword
- wine

When I compared the speed of LFS to my old OpenBSD installation, I was blown away.
 
Old 06-09-2006, 10:04 AM   #13
jbennet1
LQ Newbie
 
Registered: Jul 2005
Location: Surrey, UK
Posts: 14

Rep: Reputation: 0
Not fedora 4 (dunno abot others) - the compiler is wrong somehow
 
Old 06-11-2006, 06:44 AM   #14
Vampirite
Member
 
Registered: Apr 2005
Location: England
Distribution: Arch Linux
Posts: 223

Original Poster
Rep: Reputation: 30
I'm going to finish it off sometime next week, thanks.
 
Old 06-12-2006, 04:33 PM   #15
midiox
Member
 
Registered: Oct 2005
Location: Rezekne, Latvia
Distribution: LFS
Posts: 38

Rep: Reputation: 15
I used LFS Live CD iso image with VMWare Workstation (Free Downloadable version). Yes, it was slow, but I turned on march and sse optimizations flags (I know, not very good idea for a beginner) and compiling went 5 times faster (compared to my previous LFS build) after I have installed GCC in chapter 5.
Loading XFCE on VMWare with LFS Live CD iso takes about 5 minutes, starting terminal - hmm...5 seconds. And it is on my Celeron 700 PC. I like that I do not need to turn off PC and mess with chrooting - I just suspend virtual PC and resume it next time I have inspiration to go on with LFS.
 
  


Reply


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
debian sarge + lfs + blfs good idea? FireFox8173 Linux From Scratch 3 08-03-2006 08:16 AM
Compile binutils as lfs or root? El Basto Linux From Scratch 5 09-13-2004 01:37 PM
libtool-1.5.6 doesn't compile, LFS navyblue77 Linux - Software 0 08-09-2004 05:07 PM
LFS compile over SSH on cygwin slightcrazed Linux From Scratch 6 10-21-2003 02:51 AM
LFS Faq Good info! And have some more ? jbhoo Linux From Scratch 3 05-14-2002 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:59 AM.

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