LFS 6.3 Chapter 5.4.1 - problem with "make bootstrap"
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 *** 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?
Figured it out...
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:
and start chapter 5 with:
mkdir -v ../binutils-build
Really, there should be three more commands at the beginning of chapter 5:
tar -jxvf binutils-2.17.tar.bz2
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.
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
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 .
|All times are GMT -5. The time now is 11:53 AM.|