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-11-2011, 03:20 AM   #16
janakiramulu
Member
 
Registered: Jan 2011
Location: mangalore
Distribution: ubuntu
Posts: 167

Original Poster
Rep: Reputation: 0

k thanku druuna
 
Old 04-11-2011, 04:41 AM   #17
janakiramulu
Member
 
Registered: Jan 2011
Location: mangalore
Distribution: ubuntu
Posts: 167

Original Poster
Rep: Reputation: 0
k thanks druuna
 
Old 04-11-2011, 04:53 AM   #18
janakiramulu
Member
 
Registered: Jan 2011
Location: mangalore
Distribution: ubuntu
Posts: 167

Original Poster
Rep: Reputation: 0
can u clarify with one example

lfs-6.7, see pageno-75,3rd paragraph

Chapter 6. Installing Basic System Software
6.1. Introduction

-We do not recommend using optimizations.
-If a package refuses to compile when using optimization, try to compile it without optimization and see if that fixes the problem. Even if the package does compile
when using optimization, there is the risk it may have been compiled incorrectly because of the complex interactions
between the code and build tools.

what is the diff 'compile the package with optimization/without optimization'
 
Old 04-11-2011, 05:01 AM   #19
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
While compiling a software, a compiler can try to optimize for either performance or size. If you use optimization, the compiler has some techniques to alter the code that it more fits the need (performance/size). This can lead to situations where the code doesn't work in the way the developer intended it to do. Either the software doesn't work at all in your system or, and this is the real danger, it works, but in some situations becomes unstable or delivers wrong results.
Therefore the book recommends to not use optimizations.
 
Old 04-11-2011, 05:47 AM   #20
janakiramulu
Member
 
Registered: Jan 2011
Location: mangalore
Distribution: ubuntu
Posts: 167

Original Poster
Rep: Reputation: 0
k thanks tobisgd
now its clear
but i was expecting any exmples,to what the diff(u can give any webpage/website to exmples)
 
Old 04-11-2011, 06:10 AM   #21
janakiramulu
Member
 
Registered: Jan 2011
Location: mangalore
Distribution: ubuntu
Posts: 167

Original Poster
Rep: Reputation: 0
hi druuna
1) i mounted it usb to /mnt/usbstick),
cd /mnt
tar jcf /mnt/usbstick/lfs.chapter5.tar.bz2 lfs
janu@usbstick# lfs-chapter5.tar.bz2

janu@usbstick#tar -jxf lfs-chapter.tar.bz2 ( i try to extract)
here the result
tar: lfs/tools/include/inttypes.h: Cannot open: No such file or directory
tar: lfs/tools/include/termio.h: Cannot open: No such file or directory
tar: lfs/tools/include/iconv.h: Cannot open: No such file or directory
tar: lfs/tools/include/pthread.h: Cannot open: No such file or directory
tar: lfs/tools/include/poll.h: Cannot open: No such file or directory
tar: lfs/tools/include/tic.h: Cannot open: No such file or directory
tar: lfs/tools/include/expect_tcl.h: Cannot open: No such file or directory
tar: lfs/tools/include/netrose: Cannot mkdir: No such file or directory
tar: lfs/tools/include/netrose/rose.h: Cannot open: No such file or directory
tar: lfs/tools/include/shadow.h: Cannot open: No such file or directory
tar: lfs/tools/include/memory.h: Cannot open: No such file or directory
tar: lfs/tools/include/fstab.h: Cannot open: No such file or directory
tar: lfs/tools/include/fcntl.h: Cannot open: No such file or directory
tar: lfs/tools/include/endian.h: Cannot open: No such file or directory
tar: lfs/tools/include/error.h: Cannot open: No such file or directory
tar: lfs/tools/include/aliases.h: Cannot open: No such file or directory
tar: lfs/tools/include/ifaddrs.h: Cannot open: No such file or directory
tar: lfs/tools/include/features.h: Cannot open: No such file or directory
tar: lfs/tools/include/libintl.h: Cannot open: No such file or directory
tar: lfs/tools/include/netrom: Cannot mkdir: No such file or directory
tar: lfs/tools/include/netrom/netrom.h: Cannot open: No such file or directory
tar: lfs/sources/gettext-0.18.1.1/gettext-tools/gnulib-lib/.libs: Directory renamed before its status could be extracted
tar: lfs/sources/gettext-0.18.1.1/gettext-tools/gnulib-lib: Directory renamed before its status could be extracted
tar: lfs/sources/gettext-0.18.1.1/gettext-tools/src/.libs: Directory renamed before its status could be extracted
tar: lfs/sources/gettext-0.18.1.1/gettext-tools/src: Directory renamed before its status could be extracted
tar: lfs/sources/gettext-0.18.1.1/gettext-tools: Directory renamed before its status could be extracted
tar: lfs/sources/gettext-0.18.1.1: Directory renamed before its status could be extracted
tar: lfs/sources: time stamp 2011-04-11 19:54:46 is 13244.265589325 s in the future
tar: lfs: time stamp 2011-04-11 16:15:42 is 100.265498107 s in the future
tar: Exiting with failure status due to previous errors

some thing wrong,what to do
------------------------------------------------
2)this q is not required now
(but i told u power will go off in the night),so instead of redoing all the again till ch5)

how can use this(lfs-chapter5.tar.bz2) in further,(if i start build tmw),from there i will move ch6 k
---------------------------------------------------------------
3)do i need to use lfs livecd till(which chapter) end of lfs(successful completion)
------------------------------------------------------------------------
4)k i removed sources dir,build dir (i do not remove the packages)
then i move to further
6.9.1. Installation of Glibc -pageno-86
root:/sources/glibc-build#grep Error glibc-check-log
make[2]:[/sources/glibc-build/posix/annexc.out]error 1 {ignored]

how to fix this error
shall i install as fresh only glibc-2.12.1 again?
thanks
 
Old 04-11-2011, 07:32 AM   #22
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

First of all:

- Please spell out your words. Not doing so makes understanding you even harder then it already is....

q -> question
pgno -> page number
k -> Ok
na -> ????
ch -> chapter
etc, etc, etc.

Using [code] [/code] or [quote] [/quote] would also help in making your posts more readable.

About your questions:

Quote:
Originally Posted by janakiramulu View Post
janu@usbstick#tar -jxf lfs-chapter.tar.bz2 ( i try to extract)
here the result
tar: lfs/tools/include/inttypes.h: Cannot open: No such file or directory
tar: lfs/tools/include/termio.h: Cannot open: No such file or directory
tar: lfs/tools/include/iconv.h: Cannot open: No such file or directory

some thing wrong,what to do
You created the backup as user root and try to restore it as user janu, I suspect this is what creates the error(s). I also notice that your are trying to untar in /mnt/usbstick, that is probably the wrong location (it should be un-tarred in /mnt).

Also: If you want to restore the backup you should remove the original content first. If you do not do so, unwanted files and directories might still be present after the restore.

If (!!!) you want to restore the backup, do the following as root user:
Code:
cd /mnt
rm -rf lfs
tar jxf /mnt/usbstick/lfs-chapter.tar.bz2
Only do this if you are 100% sure you want to start from the beginning of chapter 6 again!!

Quote:
2)this q is not required now
(but i told u power will go off in the night),so instead of redoing all the again till ch5)

how can use this(lfs-chapter5.tar.bz2) in further,(if i start build tmw),from there i will move ch6 k
The backup (the lfs-chapter5.tar.bz2 file) is only used when you want to redo all (!!) of chapter 6. It is _not_ used after a reboot/restart. If you restore the backup you have to start from the beginning of chapter 6 again.

Have a look at the Note at the bottom of 6.4. Entering the Chroot Environment, which explains what it is you want.

Quote:
3)do i need to use lfs livecd till(which chapter) end of lfs(successful completion)
Yes, you need to use it until you successfully build the LFS system. In other words: If you can boot into your newly build system (end of chapter 9.3), the liveCD isn't needed any more (although it could still be useful to fix possible error situations).

Quote:
6.9.1. Installation of Glibc -pageno-86
root:/sources/glibc-build#grep Error glibc-check-log
make[2]:[/sources/glibc-build/posix/annexc.out]error 1 {ignored]

how to fix this error
You did not read what is said in the glibc chapter (again!!) otherwise you would have known the answer to this question.
 
Old 04-12-2011, 12:11 AM   #23
janakiramulu
Member
 
Registered: Jan 2011
Location: mangalore
Distribution: ubuntu
Posts: 167

Original Poster
Rep: Reputation: 0
hi druuna
thanks a lot for reply
sorry for spelling,now i will mention very clear

according to ur 2 ans ,i can not use backup after reboot/restart right
i can use backup only if i want to do redo all of chapter 6

--------------------------------------------------------
error about glibc

yes you are right ,i didnt read the chapter 6,
here 6.9.1. Installation of Glibc -they mentioned this error ,Though it is a harmless message i can ignore
i will move to further thanku so much
 
Old 04-12-2011, 01:35 AM   #24
janakiramulu
Member
 
Registered: Jan 2011
Location: mangalore
Distribution: ubuntu
Posts: 167

Original Poster
Rep: Reputation: 0
how to install the locale for 'your own ()country, language and character set.'
i want install locales of country-india,language-(english/can we select different languages as options)

after this i will do next step 'make localedata/install-locales' pageno-87
 
Old 04-12-2011, 06:30 AM   #25
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
I am wondering why people, especially druuna, can be so calm with posts like yours.
At first, it was said to you more than one time that you have to read the book and do exactly what is written there. You don't.
Then you were asked to spell out your words to make your posts more readable for the people helping you. You don't.

Sorry I have to say that, but when I see your threads regarding LFS I doubt that in the end you will have learned anything from LFS. Some people think if they follow the book and copy/paste the commands they will be more knowledgeable at the end. In some cases this is so, because people are willing to learn, even if they not have fulfilled the prerequisites in the beginning (like you did).
But in your case you seem not even to be willing to follow the book. Furthermore you are wasting the time of the people on this forums with your threads about errors that wouldn't occur or could easily be solved if you actually would read the book.
What do you think you will achieve with this?
 
Old 04-12-2011, 01:47 PM   #26
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by TobiSGD View Post
I am wondering why people, especially druuna, can be so calm with posts like yours.
It is a Zen thing...
Quote:
Two monks were washing their bowls in the river when they noticed a scorpion that was drowning. One monk immediately scooped it up and set it upon the bank. In the process he was stung. He went back to washing his bowl and again the scorpion fell in. The monk saved the scorpion and was again stung. The other monk asked him, "Friend, why do you continue to save the scorpion when you know it's nature is to sting?"

"Because," the monk replied, "to save it is my nature."
 
Old 04-12-2011, 01:49 PM   #27
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,643
Blog Entries: 1

Rep: Reputation: 229Reputation: 229Reputation: 229
And You Do
 
Old 04-13-2011, 03:49 AM   #28
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by janakiramulu View Post
how to install the locale for 'your own ()country, language and character set.'
i want install locales of country-india,language-(english/can we select different languages as options)

after this i will do next step 'make localedata/install-locales' pageno-87
I don't think you should be concerned about your country specific locale right now. Skip the individual locales part and install all locales (the make localedata/install-locales command). Keeping it simple for now is the way to go.

In chapter 7 you'll be able to set your wanted locale.
 
Old 04-13-2011, 04:17 AM   #29
janakiramulu
Member
 
Registered: Jan 2011
Location: mangalore
Distribution: ubuntu
Posts: 167

Original Poster
Rep: Reputation: 0
hi druuna
thanks for reply
see pageno-189
when i enter this command
root:/sources/vim73#vim -c 'ptions'
result is in diff colors text and options as red colour like 1,2,3..25
i quit(<enter> for quit) from this
i moved to further is it k
 
Old 04-13-2011, 04:34 AM   #30
janakiramulu
Member
 
Registered: Jan 2011
Location: mangalore
Distribution: ubuntu
Posts: 167

Original Poster
Rep: Reputation: 0
hidruuna
according to lfs book pageno-191.6.62. Stripping Again
i logout from chroot
ie
root:/logout
output is
there are stopped jobs
next i re enter to chroot
ie
root:/#chroot $LFS /tools/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/tools/bin/bash --login
output is
chroot:cannot change root directory t /tools/bin/env:not a directory(there is no directory with name)
what to do
 
  


Reply

Tags
lfs, permission, user


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
[SOLVED] chown: changing ownership of `<file>': Operation not permitted schuurs Linux - General 14 06-26-2013 05:15 PM
5.32. Changing Ownership - Operation not permitted basheer Linux From Scratch 6 05-17-2012 04:57 AM
changing ownership of 'file name' : operation not permitted Virgil B Linux - Newbie 9 10-15-2010 05:16 PM
chmod: changing permissions of `public_html': Operation not permitted painterj Linux - Newbie 11 04-09-2010 09:40 PM
failed to preserve ownership operation not permitted yogks Linux - Software 1 11-27-2008 04:54 PM


All times are GMT -5. The time now is 11:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration