LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Chapter 5 - Installing GCC... (https://www.linuxquestions.org/questions/linux-from-scratch-13/chapter-5-installing-gcc-39478/)

Grim Reaper 12-27-2002 12:11 AM

Chapter 5 - Installing GCC...
 
with the installation command we're meant to enter:

patch -Np1 -i ../gcc3.2.patch && patch -Np1 -i ../gcc3.2-nofixincludes-2.path && mkdir ../gcc-build && cd ../gcc-build && ../gcc-3.2/configure --prefix=/static

ill stop there...with this --prefix=/static, shouldn't this be --prefix=$lfs/static? otherwise gcc will try and install into the host distro's /static directory...wouldn't it?

just needing to know if i need to add $lfs or not, hopefully i can get a quick reply :)

MasterC 12-27-2002 12:39 AM

Quote:

--prefix=/static: This is NOT a typo. GCC hard codes some paths while compiling and so we need to pass /static as the prefix during ./configure. We pass the real install prefix during the make install command later.
;)

Read down the page a bit. That's straight off the Ch 5 GCC info/install page ;)

Cool

Grim Reaper 12-27-2002 12:46 AM

ROFL! thanks for that MasterC! :) From now on I'll read a little bit down the page..:D

MasterC 12-27-2002 12:47 AM

ha ha ha, ;) I've been there thinking that, otherwise I wouldn't have known :D

You're welcome, and have fun!

Cool

Grim Reaper 12-27-2002 06:07 AM

Hmmmm, I've run into another problem:

I'm in chapter 6, and copying the kernel headers...i issue the commands it says, and im in the root of the directory tree (/) in the chroot environment...

when i issue them i get the error:
make : *** No rule to make target 'mrproper'. Stop.

i get the feeling im meant to be in some source code directory, but the manual doesn't state where?

MasterC 12-27-2002 08:52 AM

The root of the kernel source is probably what it means. I'm not sure exactly where it's at so I can't take a peek to make sure. But yeah, it probably means the root of the kernel source, so:
/usr/src/sources/linux-2.4.20/
Is where you are meant to be.

That's my guess as this is sometimes referred to in some of the how-to's and is meant the kernel source's root

Cool

Grim Reaper 12-27-2002 06:43 PM

Thanks for that.

Bloody hell, I've been installing everything fine up until now!! :(

Another problem:
Chapter 6: Installing Man-Pages

It says to just issue make install...but how can you do this when there is no makefile?!!

I've tried ./configure but it tells me to use it with ./configure -ask...is that right?

if i do that then i get questions like Do you have the nroff source for man pages? [Yes]

idk!! So i just select yes.

troff command to use [troff -mandoc]: ACK!!! I don't know! i just hit enter

then it spits out at me straight after i hit enter:
./configure: /static/bin/awk: No such file or directory
./configure: /test: =:unary operator expected
./configure: /static/bin/awk: No such file or directory

Ok...i think i'll stop there, because that shouldn't be happening....
how am i _meant_ to compile Man files? :cry:

MasterC 12-27-2002 07:10 PM

Man files aren't compiled, they are simply text files copied over to a specific location.
So you change to the man-pages package:
make install

That's it. All make install does is copy the files to the directory necessary.

Cool

MasterC 12-27-2002 07:11 PM

btw, I'd unpack it again, just to make sure it's fresh and that you didn't mess anything up when you tried:
./configure

And other things.

Cool

Grim Reaper 12-27-2002 07:16 PM

But when i issue just: make install from the /usr/src/sources/man-1.5k directory it gives me this error:
make: *** No rule to make target 'install'. Stop.
:cry:

MasterC 12-28-2002 02:27 AM

Yeah, that's because you are in the wrong package ;)

It's man-pages-1.52

So:
/usr/src/sources/man-pages-1.52:
make install

;)

Unless of course you are here:
http://www.linuxfromscratch.org/view...ter06/man.html

Which of course would have the directions listed on that page ;)

Cool

Grim Reaper 12-28-2002 07:09 AM

ROFLMAO!

/me SLAPS SELF HARD!!!


Thank god your here to point out my stupid mistakes MasterC ::D

Thanks dude!

MasterC 12-28-2002 12:24 PM

Ha ha ha, :D you're welcome ;)

Grim Reaper 12-28-2002 04:01 PM

Lets see if this one can be worked out too :)

Chapter 6 - Installing Glibc

I've patched it fine, I've ran ./configure --with-these-options fine...but when i issue make i get these errors:

Code:

/sysdeps/unix/Subdirs > /usr/src/sources/glibc-build/sysd-dirs-tmp
/bin/sh: /static/bin/gawk: No such file or directory
make[1]: *** [/usr/src/sources/glibc-build/sysd/dirs] Error 127
make[1]: Leaving directory '/usrsrc/sources/glibc-2.2.5'
make: *** [all] Error 2


/static/bin/gawk? what is it? i don't remember installing anything called gawk...or even any stages to install something called gawk...


Edit: I remember now installing Gawk....I did a search and it turns out there is a file in /static/bin/gawk...idk what make is complaining about?!

MasterC 12-28-2002 05:10 PM

Ya got me! IDK either. Here's some tips though (glibc dorked me up too):

I think I went and installed GAWK at this point, it has no dependencies anyway.

Another, make sure you unpacked the linux-threads package in the glibc directory.

Also, see if you can poke around the mail-lists I think that's where I found my solution with my glibc problem(s).

Cool


All times are GMT -5. The time now is 01:41 PM.