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. |
|
 |
03-12-2008, 02:39 PM
|
#1
|
|
LQ Newbie
Registered: Jan 2005
Location: Ottawa, Ontario
Distribution: Ubuntu Server 8.04.4 ... For today at least because it suits my purpose.
Posts: 4
Rep:
|
LFS 6.3 Chapter 5.4.1 - problem with "make bootstrap"
Hey Guys,
So I've been following the instructions in LFS 6.3 inside a VM using the ISO for the LFS LiveCD as my host environment.
So far so good up until Chapter 5.4.1 where you're building GCC.
In the book it says to "make bootstrap" but when I do that it give the error
make[1] *** No rule to make target 'bootstrap'. Stop.
...
make: *** [bootstrap] Error 2
If I just run "make" it runs fine, but the description in the book leads me to believe that it's *better* to make bootstrap. Is it okay to just keep going since it worked fine with just "make" or do I actually have to get "make bootstrap" to work somehow?
Jon
|
|
|
|
03-13-2008, 08:54 AM
|
#2
|
|
LQ Newbie
Registered: Jan 2005
Location: Ottawa, Ontario
Distribution: Ubuntu Server 8.04.4 ... For today at least because it suits my purpose.
Posts: 4
Original Poster
Rep:
|
Figured it out...
Hey Guys,
I figured it out.
I didn't quite get what they meant by "build outside source directory"... I thought they meant I had to build it from $LFS/(name of package) but couldn't manage to do that because of the permissions that the lfs user lacked... So I originally built it inside the $LFS/sources/gcc-4.1.2 folder that was created when I un-tar'd the package.
NOW I understand that you have
$LFS/sources - where the source tarballs are kept
$LFS/sources/package-name - where the tarball gets untar'd to
and
$LFS/sources/package-build - where you go when you actually issue the configure, make and make install commands
Once I figured that out, make bootstrap worked just fine.
I think that the main thing that messed me up was that in the book they walk you through almost everything, right down to the mkdir and cd commands, but they omitted the tar command for untaring the package, then changing into that folder. So I was sitting at $LFS/sources trying to run the first step in chapter 5.4.1 "mkdir -v ../gcc-build" and getting stuck on why it wouldn't work.
You end chapter 4 with:
source ~/.bash_profile
and start chapter 5 with:
mkdir -v ../binutils-build
Really, there should be three more commands at the beginning of chapter 5:
cd $LFS
tar -jxvf binutils-2.17.tar.bz2
cd binutils-2.17
THEN what's written there.
Same for subsequent sections, the tar and cd command should be included so that people who are following step-by-step don't get lost.
Jon
|
|
|
|
04-14-2008, 10:48 AM
|
#3
|
|
LQ Newbie
Registered: Mar 2007
Posts: 21
Rep:
|
Just found your posts and I think they are BANG ON!
I have been following step by step and got totally lost...
Got to "5.3.1. Installation of Binutils" and thought some pages had fallen out of my pdf - The instructions had been flawless up until then...
I know in the LFS 6.3 book it states:
**Important
Before issuing the build instructions for a package, the package should be unpacked as user lfs, and a cd into the created directory should be performed. The build instructions assume that the bash shell is in use.
But this was much earlier in the book, couldn't they have just showed what commands to type? - it doesn't say how to unpack the files or what 'switches' to use with "tar", I ended up using "bzcat binutils-2.17.tar.bz2|tar -xv" from some google search... GOD knows if everything was unpacked and where it ended up??
I'm still not sure EXACTLY which folder I should be in when I type:
mkdir -v ../binutils-build
I think it's /mnt/lfs/sources/binutils-2.17/ (for my install??)
I knew this was going to be fun,
Thanks for your advice vipernicus42
Last edited by drut; 04-14-2008 at 10:49 AM.
Reason: neatness
|
|
|
|
04-21-2008, 08:58 PM
|
#4
|
|
LQ Newbie
Registered: Apr 2008
Location: Toronto
Distribution: Ubuntu, Red Hat, LFS
Posts: 14
Rep:
|
Yeah,
They should probably use /full/path/names for commands.
However, the command ../binutils-2.18/configure ...(etc) implies that
binutils-2.18 is at the same level as binutils-build .
|
|
|
|
| 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 02:49 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
|
|