LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Doubts in LFS (https://www.linuxquestions.org/questions/linux-from-scratch-13/doubts-in-lfs-801941/)

_Linux_Learner 04-14-2010 04:15 AM

Doubts in LFS
 
Hi all,

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

Please help....

Regards
_Linux_Learner

druuna 04-14-2010 04:38 AM

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.

_Linux_Learner 04-16-2010 03:02 AM

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

druuna 04-16-2010 03:07 AM

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.

_Linux_Learner 04-16-2010 08:07 AM

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

druuna 04-16-2010 11:30 AM

Hi,

Quote:

Can you confirm please....
I already did that in post #4 ;)

_Linux_Learner 04-20-2010 08:03 PM

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

druuna 04-21-2010 01:23 AM

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.

_Linux_Learner 04-21-2010 07:48 AM

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

druuna 04-21-2010 07:53 AM

Hi,

Like I said before: the use of sudo, you need to use a full blown root account.

_Linux_Learner 04-22-2010 03:52 AM

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

druuna 04-22-2010 04:15 AM

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.

_Linux_Learner 04-23-2010 07:04 AM

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

_Linux_Learner 05-02-2010 09:14 AM

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

druuna 05-02-2010 10:04 AM

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.


All times are GMT -5. The time now is 09:38 PM.