Welcome to the most active Linux Forum on the web.
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 03-12-2008, 03: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: Reputation: 0
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?

Old 03-13-2008, 09: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: Reputation: 0
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
$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.

Old 04-14-2008, 11:48 AM   #3
LQ Newbie
Registered: Mar 2007
Posts: 21

Rep: Reputation: 15
Thumbs up

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:

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 11:49 AM. Reason: neatness
Old 04-21-2008, 09:58 PM   #4
LQ Newbie
Registered: Apr 2008
Location: Toronto
Distribution: Ubuntu, Red Hat, LFS
Posts: 14

Rep: Reputation: 0

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
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
doubt with "make check" of gcc in chapter 6 lfs_rocks Linux From Scratch 1 02-13-2008 01:15 AM
glibc " make check " error in CHAPTER 6 lfs_rocks Linux From Scratch 5 02-12-2008 05:32 PM
problem running "make bootstrap" on GCC Zaneyard Linux From Scratch 1 01-28-2008 10:28 PM
Problems with "make check" while compiling Glibc in Chapter 6.11 Spuckdung Linux From Scratch 2 02-13-2005 06:12 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 04:31 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:08 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration