LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-27-2002, 12:11 AM   #1
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
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
 
Old 12-27-2002, 12:39 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 12-27-2002, 12:46 AM   #3
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
ROFL! thanks for that MasterC! From now on I'll read a little bit down the page..
 
Old 12-27-2002, 12:47 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
ha ha ha, I've been there thinking that, otherwise I wouldn't have known

You're welcome, and have fun!

Cool
 
Old 12-27-2002, 06:07 AM   #5
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
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?
 
Old 12-27-2002, 08:52 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 12-27-2002, 06:43 PM   #7
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
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?
 
Old 12-27-2002, 07:10 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 12-27-2002, 07:11 PM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 12-27-2002, 07:16 PM   #10
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
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.
 
Old 12-28-2002, 02:27 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 12-28-2002, 07:09 AM   #12
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
ROFLMAO!

/me SLAPS SELF HARD!!!


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

Thanks dude!
 
Old 12-28-2002, 12:24 PM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Ha ha ha, you're welcome
 
Old 12-28-2002, 04:01 PM   #14
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
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?!

Last edited by Grim Reaper; 12-28-2002 at 04:15 PM.
 
Old 12-28-2002, 05:10 PM   #15
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
  


Reply



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
gcc check error (in chapter 6) alinsoar Linux From Scratch 0 05-23-2005 04:58 AM
gcc chapter 6 time_dot_h problem vmlinuz101 Linux From Scratch 3 03-23-2005 03:44 PM
Chapter 5.13 GCC and C++ RobbieB Linux From Scratch 1 02-07-2005 07:29 PM
Building Gcc-core-3.3.1 Chapter 5 mullog Linux From Scratch 8 05-27-2004 12:49 PM
gcc check error (chapter 6 install) vexer Linux From Scratch 4 12-03-2003 09:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:33 AM.

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
Open Source Consulting | Domain Registration