LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-09-2003, 03:18 AM   #1
nobu
Member
 
Registered: Jul 2002
Posts: 32

Rep: Reputation: 15
Question chap5 & chap6


Could anyone tell me why do I have to install same packages in both chapter 5 and chapter 6, such as gcc, findutils and binutils?
How are they different? I've done every thing without problem until installing gcc-3.2 in chapter 6. but now I am haviing a trouble with installing gcc.
I get "make: *** [bootstrap] Error 2". Is this because gcc has been already installed in chap 5? or just a bug?

I don't get the idea of doing this. for instance in chap 5 installing gcc-3.2, book says:
patch -Np1 -i ../gcc-3.2.patch
patch -Np1 -i ../gcc-3.2-nofixincludes-2.patch
mkdir ../gcc-build

in chap 6, installing gcc, book says:
patch -Np1 -i ../gcc-3.2.patch
mkdir ../gcc-build

didn't we just appy patch or make dir already in chap 5?
 
Old 01-09-2003, 03:33 AM   #2
Rito
LQ Newbie
 
Registered: Jan 2003
Location: UK
Posts: 17

Rep: Reputation: 0
In chapter 5, you are statically linking the installs, in chapter 6 you are not, in chapter 6 you are actually installing the software so that it can be used, because you need these tools (that you installed in chapt 5) to install the programs.
In chapter 6, once you have chrooted to /mnt/lfs, then you can no longer use the features of your original base (slackware, or whatever) because you are further down the dir tree. So in chapt 5 you are installing tools to enable you to install the programs properly. The patch, if i remember properly was to do with statically linking the install and fixing a bug with statically linking through install. This is not a staticlly linked install so does not need the patch.
Why you get the actual error, i do not know, but i am 98% sure it is not because of the original install
I am currently having other problems and unable to help any furthur as i have not reached that part of LFS yet, but i have read it.
Hope this clarifies a few things
Richard

have you deleted the original source, (the stuff you unpacked) because if you have not already deleted it, and then unpacked it, it will have the extra patch attached and will not work correctly i would not of thought. So delete the extracted files, re-unpack it, and then install

Last edited by Rito; 01-09-2003 at 03:37 AM.
 
Old 01-09-2003, 11:00 PM   #3
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
you should delete the source folders that you worked with in chapter 5 and start again with new ones in chapter 6, which is why you need to also apply the patch..... That's probably why gcc isn't compiling.
 
  


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
zsnes && logitech dual action gamepad && dpad woes John5788 Linux - Games 5 10-29-2008 09:56 PM
Japanese canna won't work : Warning: かな漢字変&am OrganicOrange84 Debian 3 06-30-2005 02:28 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
make check error glibc chap6 of lfs5.1.1 keyur Linux From Scratch 1 09-11-2004 07:50 PM
gcc pass1 in chap5 doesn't get very far! davemar Linux From Scratch 3 03-31-2004 03:51 PM

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

All times are GMT -5. The time now is 06:28 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