Review your favorite Linux distribution.
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 08-24-2008, 03:27 AM   #1
LQ Newbie
Registered: Mar 2007
Posts: 21

Rep: Reputation: 15
Post bootstrap error 2

i'm building LFS with little previous linux and no c or c++ experience. on compiling the gcc program, i got an error that reads as such and i'm wondering if someone can tell me what it means and how to fix it:

make[1]: Entering directory `/gcc-build/gcc-4.1.2/gcc'
make[1]: *** No rule to make target `bootstrap'. Stop.
make[1]: Leaving directory `/gcc-build/gcc-4.1.2/gcc'
make: *** [bootstrap] Error 2

Old 08-24-2008, 08:14 PM   #2
Senior Member
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
You are obviously trying to build GCC, but what commands were issued to configure and to start the build? Did you apply the LFS patches before attempting the build?
Old 08-25-2008, 09:31 PM   #3
LQ Newbie
Registered: Mar 2007
Posts: 21

Original Poster
Rep: Reputation: 15

no, I'm following the LFS book and it didn't state to apply any patches.

but I've a new problem now as I rebegan due to the error. new post. thankyou for your reply, because let me tell you, the post was up for a while!!

but i'll look into how to apply the patches, I'm learning as I go, I've some working knowledge of the Linux system, but none with programming, I assume its like editing sudoers file or something.

the commands issued for this, which returned the error 2 message were:
(pwd was /tmp/gcc-build

tar -xvjf gcc-4.1.2
cd /tmp/gcc-build/gcc-4.1.2

then i applied the LFS CC command to enable c language CC="gcc -B/usr/bin/" ../gcc-4.1.2/configure --prefix=/tools \
--with-local-prefix=/tools --disable-nls --enable-shared \

sudo make bootstrap

Last edited by iconicmoronic; 08-26-2008 at 02:00 AM.
Old 08-26-2008, 10:58 AM   #4
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,698

Rep: Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291
cd /tmp/gcc-build/gcc-4.1.2
You need 2 directories in tmp (and do not use /tmp !) !
The GCC documentation recommends building GCC
outside of the source directory in a dedicated
build directory:
1) /home/iconicmoronic/tmp/gcc-4.1.2
2) /home/iconicmoronic/tmp/gcc-build

../gcc-4.1.2/configure .. :
The 2 dots ../ means : look or go outside
this directory (will take you to tmp)

Example with ../../ => then you would be
in /home.

I think the LFS text is pretty clear about
the build directory, you might want to read
it over some more times.

Also remember not to reuse tmp/gcc-4.1.2
and the build dir for the next chapter
(see text, LFS) .. create new ones.

And please refer LFS version and chapter
if you have further questions.

Good Luck !

Last edited by knudfl; 08-26-2008 at 10:59 AM.


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
Build Error During Gentoo Bootstrap jrtayloriv Linux - Newbie 2 12-31-2004 11:40 AM
installing gentoo -- bootstrap error pumazi Linux - Distributions 1 11-10-2004 01:21 PM
GCC first build for LFS, bootstrap error Blibblob Linux From Scratch 8 01-07-2004 05:50 PM
EGCS 1.1.2 make bootstrap error natto34 Linux - Software 2 06-26-2003 06:04 AM
gcc 2.3 bootstrap error NGraphiX Linux From Scratch 1 05-15-2003 11:45 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:49 AM.

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