LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   No rule to make bootstrap error - LFS LiveCD (http://www.linuxquestions.org/questions/linux-from-scratch-13/no-rule-to-make-bootstrap-error-lfs-livecd-611935/)

olcal 01-08-2008 03:56 AM

No rule to make bootstrap error - LFS LiveCD
 
Hi

I am facing a problem when I issue 'make bootstrap' command

Host system : LFS LiveCD x86-6.3-r2160
Book: Linux from Scratch 6.3
Chapter 5.4 GCC-4.1.2 Pass 1

Hard disk partitioned as follows
/dev/hda1 - 20GB Fat32 partition FreeDOS
/dev/hda2 - 19GB Ext3 partition Linux
/dev/hda3 - 1GB swap partition


First step goes fine without errors
CC="gcc -B/usr/bin/" ../gcc-4.1.2/configure --prefix=/tools \
--with-local-prefix=/tools --disable-nls --enable-shared \
--enable-languages=c

Next step I issue the command 'make bootstrap'

...some messages scroll past then at the ending I get

Bootstrapping compiler
make[1]:Entering directory '/mnt/lfs/gcc-build/gcc-4.1.2/gcc'
make[1]:***No rule to make target 'bootstrap'. Stop
make[1]:Leaving directory '/mnt/lfs/gcc-build/gcc-4.1.2/gcc'
make: ***[bootstrap] Error2
root:/mnt/lfs/gcc-build/gcc-4.1.2#

Can someone please explain what is causing the problem ?

Binutils-2.17 Pass 1 went well without errors.

I am new to Linux but have installed and used Fedora and
CentOS in the past.

Also how do I capture the scrolling output during compilation
to a file ?

Regards

Daws 01-08-2008 11:06 PM

The directories are wrong and the resulting permission issues may be causing your problem. Remove any gcc directories and start 5.4 again.

Extract gcc-4.1.2.tar.bz2 INSIDE the sources directory. You should now have the directory /mnt/lfs/sources/gcc-4.1.2

The book expects you to run "mkdir -v ../gcc-build" from inside /mnt/lfs/sources/gcc-4.1.2. So now you should now have the directory /mnt/lfs/sources/gcc-build. cd to that directory and try the configure/make commands again. You can check the current directory at any time by using "pwd".

olcal 01-09-2008 12:59 AM

You are correct, Daws. I re-read the instructions and then realized my error. After I made the correction the build went ok. I'm too used to Windoze point&click I suppose.

PhillipHuang 02-20-2008 09:01 PM

I encounter the same problem when compile GCC, and later fix it by using "lfs" account. I think LFS documents should better add a note there in order to make reader more clearly.

imhennessy 02-21-2008 10:48 AM

Does that mean that it's going to come back to bite me in the bum that I just ran it as make, with no bootstrap argument?

Once I compiled gcc without bootstrap everything seemed to proceed ok.
ivan

rm_dash_rf_star 03-24-2008 01:14 AM

Same prob
 
I had the same problem, thanks for your help DAWS! -DN

njoshi1985 08-06-2008 10:27 AM

thanks DAWS
 
same problem, thanks for your help DAWS!

Raynus 09-18-2008 08:51 PM

Quote:

Originally Posted by PhillipHuang (Post 3064452)
I encounter the same problem when compile GCC, and later fix it by using "lfs" account. I think LFS documents should better add a note there in order to make reader more clearly.

Agreed... That page screw-up my head for a couple of month, till see this topic

scoobysmith44 02-08-2012 02:31 PM

Uhh, well heck.
 
I'm having the same problem with gcc erroring out while trying to make bootstrap. I did avoid the two pitfalls mentioned. I was logged in as lfs, and untared gcc-4.1.2.tar.bz2 inside the $LFS/sources directory before making a the new $LFS/sources/gcc-build directory then issuing the commands from within gcc-build. I have tried several times, including scrapping and starting over. I also tried just issuing the "make" command, but no luck there either. I'm not sure how to post the output of the commands, but here is briefly that last lines I could see:

In file included from /usr/include/features.h:346,
from /usr/include/stdio.h:28,
from ../../gcc-4.1.2/gcc/tsystem.h:90,
from ../../gcc-4.1.2/gcc/crtstuff.c:68:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[4]: *** [32/crtbegin.o] Error 1
make[4]: Leaving directory '/mnt/lfs/sources/gcc-build/gcc'
make[3]: *** [extra32] Error 2
make[3]: Leaving directory '/mnt/lfs/sources/gcc-build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory '/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-build/gcc'
make: *** [bootstrap] Error 2

I know version 7.0 is out, but its not supported by the liveCD, and I mainly want to use this build as a training platform to learn more about how linux works. Any help would be great, thanks so much!

spiky0011 02-08-2012 03:15 PM

Hi

What files do you have in /usr/include/gnu.

You can build LFS 7 using the cd just get the packages listed in the book use the cd as host

druuna 02-09-2012 03:04 AM

Hi scoobysmith44,

Looking at this error:
Code:

/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
You seem to be missing the glibc development package (32 bits!!) on your host.

Hope this helps.

BTW: You posted in an old thread that isn't really related to your problem and it deals with an old LFS version compared to yours. Please post a new thread next time you encounter a problem.


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