LinuxQuestions.org
Visit Jeremy's Blog.
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 04-14-2010, 05:15 AM   #1
_Linux_Learner
Member
 
Registered: Feb 2010
Distribution: Ubuntu
Posts: 87

Rep: Reputation: 15
Unhappy Doubts in LFS


Hi all,

Why do we compile binutils and gcc twice in LFS ???

Please help....

Regards
_Linux_Learner
 
Old 04-14-2010, 05:38 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

I do believe you mean "why are binutils and gcc compiled three times...." (twice in chapter 5 and once in chapter 6)

What is unclear about what is said about it in the LFS documentations (especially in chapter 1.1)?

Both are compiled twice in chapter 5 because the toolchain changed (chapter 5.8) and both need to be (re)compiled against this newly created toolchain.

Hope this helps.
 
Old 04-16-2010, 04:02 AM   #3
_Linux_Learner
Member
 
Registered: Feb 2010
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Hi all

Now I am over with the final compilation of gcc-4.4.1 in LFS-6.5 I want to know whether it is safe to go ahead or not.....

The result of running the following command...

Code:
../gcc-4.4.1/contrib/test_summary \ grep -A7 Summ
is...

Code:
		=== g++ Summary ===

# of expected passes		19835
# of expected failures		156
# of unsupported tests		99
/sources/gcc-build/gcc/testsuite/g++/../../g++  version 4.4.1 (GCC) 

		=== gcc tests ===
--
		=== gcc Summary ===

# of expected passes		57052
# of unexpected failures	3
# of expected failures		189
# of unsupported tests		437
/sources/gcc-build/gcc/xgcc  version 4.4.1 (GCC) 

--
		=== libgomp Summary ===

# of expected passes		1007
		=== libmudflap tests ===


Running target unix
FAIL: libmudflap.c++/pass41-frag.cxx execution test
--
		=== libmudflap Summary ===

# of expected passes		1890
# of unexpected failures	4
		=== libstdc++ tests ===


Running target unix
--
		=== libstdc++ Summary ===

# of expected passes		5869
# of unexpected successes	1
# of expected failures		79
# of unsupported tests		336

Compiler version: 4.4.1 (GCC)
Thanks in advance....

Regards
_Linux_Learner
 
Old 04-16-2010, 04:07 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Assuming that this id gcc from chapter 6: This looks OK at first glance. Did you check the build log link that is mentioned?

Hope this helps.
 
Old 04-16-2010, 09:07 AM   #5
_Linux_Learner
Member
 
Registered: Feb 2010
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Quote:
Assuming that this id gcc from chapter 6: This looks OK at first glance. Did you check the build log link that is mentioned?
Yes I checked that link but I couldn't understand anything there as it was such a confusing log.......

Can you confirm please....

Thanks in advance

Regards
_Linux_Learner
 
Old 04-16-2010, 12:30 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
Can you confirm please....
I already did that in post #4
 
Old 04-20-2010, 09:03 PM   #7
_Linux_Learner
Member
 
Registered: Feb 2010
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Hi all,

In chapter 6 of lfs-6.5 every time we have to mount file systems onto respective directories in /mnt/lfs.. So I created a shell script to cut off this overhead as follow...

Code:
#!/bin/sh

`sudo mount -t ext3 /dev/sda5 /mnt/lfs`
`sudo mount -v --bind /dev $LFS/dev`
`sudo mount -vt devpts devpts $LFS/dev/pts`
`sudo mount -vt tmpfs shm $LFS/dev/shm`
`sudo mount -vt proc proc $LFS/proc`
`sudo mount -vt sysfs sysfs $LFS/sys`

`sudo chroot "$LFS" /tools/bin/env -i \
    HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
    /tools/bin/bash --login +h`
This gives upon execution as foolow...

Code:
./lfs_com.sh: 4: /dev: Permission denied
./lfs_com.sh: 5: devpts: not found
./lfs_com.sh: 6: shm: not found
Can someone help me in solving this small problem.. please

Thanks in advance

Regards
_Linux_Learner
 
Old 04-21-2010, 02:23 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Why the use of sudo, you need to do this from a "real" root account?

Become root first and then type/parse these commands. If you want to use a script to do this, parse it instead of executing it. I.e:

file contains:

mount -t ext3 /dev/sda5 /mnt/lfs
mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts
mount -vt tmpfs shm $LFS/dev/shm
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys

Parse it using:
. filename (that is a dot followed by a space)

Hope this helps.
 
1 members found this post helpful.
Old 04-21-2010, 08:48 AM   #9
_Linux_Learner
Member
 
Registered: Feb 2010
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Hi drunna,

Thanks for your so much help.... Thanks a lot..

Can you tell me why the earlier one didn't executed.... please..

Thnaks in advance

Regards
_Linux_Learner
 
Old 04-21-2010, 08:53 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Like I said before: the use of sudo, you need to use a full blown root account.
 
Old 04-22-2010, 04:52 AM   #11
_Linux_Learner
Member
 
Registered: Feb 2010
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Hi all,

I am installing Automake-1.11 as per chapter 6 of lfs-6.5 book. But after running make install, many of the executables does not get install...

The following executables are expected to be installed...

Code:
acinstall, aclocal, aclocal-1.11, automake, automake-1.11, compile, config.guess,
config.sub, depcomp, elisp-comp, install-sh, mdate-sh, missing, mkinstalldirs, py-
compile, symlink-tree, and ylwrap
But

Code:
acinstall,compile,config.guess, config.sub, depcomp, elisp-comp, install-sh, mdate-sh, missing, mkinstalldirs, py-
compile, symlink-tree, and ylwrap
are missing..

May be they are installed at places not known to me..

Please help
Thanks in advance...

Regards
_Linux_Learner
 
Old 04-22-2010, 05:15 AM   #12
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Where and how did you look for these programs?

They should reside in (from the top of my head): /usr/share/automake

You could use find to locate these programs. Example: find /usr -name "acinstall"

BTW: Did any of the steps give an error?

Hope this helps.
 
Old 04-23-2010, 08:04 AM   #13
_Linux_Learner
Member
 
Registered: Feb 2010
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Hi drunna,

Thanks for your help.. I didn't checked in the /usr/share directory and they were present here...

Thanks a lot

Regards
_Linux_Learner
 
Old 05-02-2010, 10:14 AM   #14
_Linux_Learner
Member
 
Registered: Feb 2010
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Hi all,

Now I am going through the bootscripts chapter that is chapter 7 in lfs-6.5... In the previous chapters everything is given in the book.. You have to just follow the instructions and go ahead.. Understand the commands , copy , paste and execute Thats all..

But I am not getting the approach of how to set up the bootscripts by making their config files.. Do I need to check out my system configurations and go ahead accordingly.. If yes than how to cope up all this..

Please help
Thanks in advance...

Regards
_Linux_Learner
 
Old 05-02-2010, 11:04 AM   #15
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Which parts are you having problems with?

Below a little breakdown of chapter 7

- 7.2 - Like before, just unpack source and install using make install,

- 7.3 - Informational, explains the bootscript process,

- 7.4 - Setclock. Only thing you need to know is the UTC setting (0 if bios shows localtime, can always be changed afterwards),

- 7.5 - Console/Locale settings. Settings depend on your location, the examples should get you going. If you do not set this up, nothing will break but you will loose some special character support (euro sign for example),

- 7.6 - Sysklogd. You can do this at a later point after reading the sysklogd man page. The defaults are probably ok for you,

- 7.7 - Inputrc. Just copy and paste. Fine-tuning, if at all needed, can be done at a later stage,

- 7.8 - Bash Shell Startup (Locale). See remark for 7.5,

- 7.9 - Device and Module Handling. Informational, do read!

- 7.10 - Creating Custom Symlinks to Devices. Do read, could be of interest but you probably don't need to do anything (could be done at a later stage if needed),

- 7.11 - Configuring the localnet. replace <lfs> with the name of your host,

- 7.12 - Customizing the /etc/hosts. Follow the correct steps, only 2 possibilities 1) you have a network card, 2) you don't,

- 7.13 - Configuring the network. You only need to do this if you have a network card. A lot of info is given and asked, most of it is explained in the text. This can also be done at a later stage.

Most steps are probably doable without to much problems. 7.13 might be the exception, if you face any problems there we tackle them when you get there

Hope this helps.
 
1 members found this post helpful.
  


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
LFS live-cd: /dev/mapper/lfs-cd ran out of space bucovaina78 Linux From Scratch 0 10-12-2009 12:00 PM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 09:13 PM
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 05:23 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 01:31 AM

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

All times are GMT -5. The time now is 11:37 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
Open Source Consulting | Domain Registration