LinuxQuestions.org
Register a domain and help support LQ
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 08-24-2008, 04:27 AM   #1
iconicmoronic
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

cheers
 
Old 08-24-2008, 09:14 PM   #2
pinniped
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, 10:31 PM   #3
iconicmoronic
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 \
--enable-languages=c

sudo make bootstrap

Last edited by iconicmoronic; 08-26-2008 at 03:00 AM.
 
Old 08-26-2008, 11:58 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Quote:
cd /tmp/gcc-build/gcc-4.1.2
You need 2 directories in tmp (and do not use /tmp !) !
Quote:
The GCC documentation recommends building GCC
outside of the source directory in a dedicated
build directory:
from http://www.linuxfromscratch.org/lfs/...gcc-pass1.html
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 11:59 AM.
 
  


Reply


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


All times are GMT -5. The time now is 09:54 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration