LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-20-2008, 03:13 AM   #1
drut
LQ Newbie
 
Registered: Mar 2007
Posts: 21

Rep: Reputation: 15
Is anyone else finding $LFS more 'challenging' than they thought it would be?


I knew it was going to be difficult as I'm no expert, but is anyone else getting a little frustrated?

As I am working through the book (6.3) I never really know if the stuff I am working on will be there next time I start the machine, or am I doing this wrong - are you meant to do the whole thing in one sitting?

One more thing - on page 38 (chapter 5.3.1) there are the commands:

mkdir -v ../binutils-build
cd ../binutils-build

[***Special NOTE here***]

CC="gcc -B/usr/bin/" ../binutils-2.17/configure \
--prefix=/tools --disable-nls --disable-werror

make
make install

make -C ld clean
make -C ld LIB_PATH=/tools/lib
cp -v ld/ld-new /tools/bin

Where I wrote 'Special NOTE' above there is mention of measuring the time it takes to build the package using the commsnd - time { ./configure ... && make && make install; }, but this comment is in-between the other commands - When do I type this?

It's getting a bit confusing

Thanks for any advice
 
Old 04-20-2008, 05:02 AM   #2
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 371

Rep: Reputation: 30
I guess the command is meant to be:
Code:
time { CC="gcc -B/usr/bin/" ../binutils-2.17/configure \
--prefix=/tools --disable-nls --disable-werror && make && make install; }
Quote:
Is anyone else finding $LFS more 'challenging' than they thought it would be?
Everyone using Gentoo
 
Old 04-20-2008, 05:12 AM   #3
enlibertad
LQ Newbie
 
Registered: Mar 2008
Posts: 6

Rep: Reputation: 0
book

You said you are using a book? Can you tell it's name? Thank you
 
Old 04-20-2008, 05:21 AM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
LFS book does contain instructions on resuming after reboot. The main idea is that files are persistent and environment variables are not, and little else is set up during the LFS build.
In my own time I found LFS challenging to do without typos, read the book, understood what should be going and downloaded ALFS. jhalfs and nalfs are both rather simple to use. Then I built a lot of packages manually, and then failed to upgrade the system.. After full rebuild I constructed a perverted package system using unionfs, and after some time switched to NixOS (source-based, and no notion of package conflict - even between glibc 2.5 and glibc 2.7).
But please, do not help proliferation of Gentoo init script system if you do not like it specifically - just because it is source-based...
 
Old 04-20-2008, 05:23 AM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
enlibertad, in this forum "the book" = "The Linux From Scratch Book as found on http://www.linuxfromscratch.org"
 
Old 04-20-2008, 05:30 AM   #6
marquardl
Member
 
Registered: Apr 2008
Posts: 100

Rep: Reputation: 15
LFS frustration

Yes, LFS building can become quite frustrating very easily, even if you follow everything as described.

I would suggest you write all building commands in a few cleanly separated shell scripts, so you can "start from scratch" again much faster for everything that worked well up to the point where the problems show their ugly face.

KDE Programs Naming Convention

Last edited by marquardl; 05-01-2008 at 04:03 AM.
 
Old 04-20-2008, 05:31 AM   #7
enlibertad
LQ Newbie
 
Registered: Mar 2008
Posts: 6

Rep: Reputation: 0
Thanks

Quote:
Originally Posted by raskin View Post
enlibertad, in this forum "the book" = "The Linux From Scratch Book as found on http://www.linuxfromscratch.org"
Thanks!!
 
Old 04-20-2008, 11:39 AM   #8
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 465

Rep: Reputation: 53
Quote:
Is anyone else finding $LFS more 'challenging' than they thought it would be?
Not at all! I actually found it way easier than I tought! I'm still amazed how simple it is! Just follow the instructions, if you get into trouble come here @LQ, check the svn version if something does not work, check the mailing lists and google, all is there. You can stop-and-resume the build anytime.
Another good ones (next on my list) are diy-linux.org and jaguarlinux.com.
Have fun!
 
Old 04-22-2008, 06:09 PM   #9
drut
LQ Newbie
 
Registered: Mar 2007
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks for all the replies - your time and effort is appreciated

About the gentoo comments - I have been using the LFS live-cd as my host (I thought it would make things run more smoothly - all the correct package versions etc), so I guess that's gentoo?

I'd probably find it much easier if I actually knew what I was doing...
Thanks again for the input.
 
Old 04-22-2008, 10:38 PM   #10
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Gentoo is the most widespread source-based distribution. It is not related to LFS.
 
Old 05-03-2008, 10:27 PM   #11
ddden
LQ Newbie
 
Registered: Apr 2008
Location: Toronto
Distribution: Ubuntu, Red Hat, LFS
Posts: 14

Rep: Reputation: 0
Quote:
Originally Posted by anupamsr View Post
I guess the command is meant to be:
Code:
time { CC="gcc -B/usr/bin/" ../binutils-2.17/configure \
--prefix=/tools --disable-nls --disable-werror && make && make install; }
Everyone using Gentoo
FYI,
The above code didn't work for me. I received some errors and so I ran:

CC="gcc -B/usr/bin/"
time { ../binutils-2.17/configure ... make ... make install; }

the two above lines separately and that did the trick.

I find that if one doesn't follow the book precisely your going to encounter difficulties that you can't recover from (unless you understand the relationship between the tools). LFS is the best way of learning the toolchain.

Have fun,
Dennis.
 
Old 05-04-2008, 07:20 PM   #12
drut
LQ Newbie
 
Registered: Mar 2007
Posts: 21

Original Poster
Rep: Reputation: 15


yes I did try the command and got an error but didn't know what else to try, so I couldn't do the 'timing' by the system - I did use my stopwatch for a few commands though, and I have just realized I've messed up at bit so will have do a new post I think.
 
Old 05-11-2008, 04:15 PM   #13
vadkutya
Member
 
Registered: Apr 2008
Distribution: slackware 10.2
Posts: 117

Rep: Reputation: 17
guys, i just compiled binutils today. ok, it's not explicitly clear if you are new to linux but at the beginning they mention the prerequisites. one is bacis understanding of unix/linux. sry, but you will run in a lot of problems like this if you lack it .

you only have to issue the command
Code:
time { ./configure ... && make && make install; }
when you are trying to estimate the time it will take to compile the package (read 4.5 About SBU).

if you are in source/ unzipp the binutil package. cd in it. then issue the commands of the book:
Code:
mkdir -v ../binutils-build
cd ../binutils-build
then do
Code:
CC="gcc -B/usr/bin/" ../binutils-2.17/configure --prefix=/tools --disable-nls --disable-werror
the '\' at the end of the line--see book--means that the shell (/bin/bash) should escape the newline character at the end of the line. normally, newline characters end a command but the command is quite long so if you copy paste--what the guys who wrote the book assume--than you'll need it.

then do the rest of the procedure...
good luck, vadkutya

Last edited by vadkutya; 05-11-2008 at 04:18 PM.
 
Old 07-01-2009, 04:36 AM   #14
me-$-on
Member
 
Registered: May 2007
Posts: 64

Rep: Reputation: 15
No.

Quote:
Is anyone else finding $LFS more 'challenging' than they thought it would be?
No. It is exactly that challenging, as I expected it to be.

It would not be fun and experience, if it would be less challenging, than one expected.

That reminds me of the good old times, where guis were a dream of programmers experimenting with psycadelics.

;-)
 
Old 07-06-2009, 02:28 PM   #15
Saptech
Member
 
Registered: Nov 2000
Location: Third Stone from the Sun
Distribution: Mageia 7, Devuan & Void Linux
Posts: 172

Rep: Reputation: 40
I keep getting stuck around Chapter 4 and give up too easily. I guess my patients is not what it used to be.
 
  


Reply



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
Want to make my own Distro, but finding LFS too hard! aff1993 Linux - Distributions 11 09-09-2006 01:23 AM
Need Help in these Challenging Project] netsoft2005 Linux - General 3 03-14-2006 12:46 AM
Please Help!! (Really Challenging Question) waiser General 0 12-17-2004 01:01 PM
Challenging question about iptables Neorio Linux - Networking 4 04-15-2004 03:02 AM

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

All times are GMT -5. The time now is 07:24 PM.

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