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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-19-2004, 09:32 PM
|
#1
|
LQ Newbie
Registered: Jan 2004
Location: ~
Posts: 28
Rep:
|
very beginning
when creating the bash_profile and bashrc should you create them on the host machine or the lfs partition?
|
|
|
06-19-2004, 09:40 PM
|
#2
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
I imagine the lfs partition, ( you already have one on your host ), unless it says edit, then your editing the one you already have. You'd have to log out, and nack in for it to take effect though.
|
|
|
06-19-2004, 10:01 PM
|
#3
|
LQ Newbie
Registered: Jan 2004
Location: ~
Posts: 28
Original Poster
Rep:
|
is anyone 100% sure of this?
|
|
|
06-19-2004, 10:21 PM
|
#4
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Quote:
Originally posted by leonscape
I imagine the lfs partition, ( you already have one on your host ), unless it says edit, then your editing the one you already have. You'd have to log out, and nack in for it to take effect though.
|
Not entirely true.. you can invoke this command to make it take affect immediately:
source .bash_profile
source .bashrc
And I do believe when editing your .bash_profile or .bashrc files, its on your existing system while performing the LFS installation.. until you boot up into LFS for the first time, your not going to be using these files on its partition.
|
|
|
06-19-2004, 10:50 PM
|
#5
|
LQ Newbie
Registered: Jan 2004
Location: ~
Posts: 28
Original Poster
Rep:
|
ok just in case I just copied them into my LFS partition.
I also have another problem after downloading all the packages and patches to /mnt/source the book then tells me to extract them as the lfs user but all the files are set to 600 for permissions and a few are set to 644. the file ownership belongs to my original account which is the account i used to downlad the files. the group ownership belongs to users which is default.
I checked the umask on the partition and it's 0022
the sources folder permissions are drwxrwxrwt 2 lfs root
I dunno where I went wrong should i start all over again?
|
|
|
06-19-2004, 11:21 PM
|
#6
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
No need to start over, just chown the files and directories to be owned by your user lfs.
chown -R lfs <filename or directory>
man chown for more details.
|
|
|
06-19-2004, 11:33 PM
|
#7
|
LQ Newbie
Registered: Jan 2004
Location: ~
Posts: 28
Original Poster
Rep:
|
yea lol it took me a while to figure out why that happened. also had to chown the partition
|
|
|
06-21-2004, 07:19 PM
|
#8
|
LQ Newbie
Registered: Jan 2004
Location: ~
Posts: 28
Original Poster
Rep:
|
New problem, I made it to chapter 6 and after running 'make check' for glibc I get a few errors.
Code:
gcc -nostdlib -nostartfiles -o /sources/glibc-build/posix/wordexp-test -Wl,-dynamic-linker=/lib/ld-linux.so.2 -Wl,-z,combreloc /sources/glibc-build/csu/crt1.o /sources/glibc-build/csu/crti.o `gcc --print-file-name=crtbegin.o` /sources/glibc-build/posix/wordexp-test.o -Wl,-rpath-link=/sources/glibc-build:/sources/glibc-build/math:/sources/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/glibc-build/crypt:/sources/glibc-build/linuxthreads /sources/glibc-build/libc.so.6 /sources/glibc-build/libc_nonshared.a -lgcc -lgcc_eh `gcc --print-file-name=crtend.o` /sources/glibc-build/csu/crtn.o
/sources/glibc-build/posix/wordexp-test.o(.text+0xd1): In function `main':
/sources/glibc-2.3.3-lfs-5.1/posix/wordexp-test.c:249: the use of `tmpnam' is dangerous, better use `mkstemp'
GCONV_PATH=/sources/glibc-build/iconvdata LC_ALL=C /sources/glibc-build/elf/ld-linux.so.2 --library-path /sources/glibc-build:/sources/glibc-build/math:/sources/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/glibc-build/crypt:/sources/glibc-build/linuxthreads /sources/glibc-build/posix/wordexp-test > /sources/glibc-build/posix/wordexp-test.out
make[2]: *** [/sources/glibc-build/posix/wordexp-test.out] Error 1
make[2]: Leaving directory `/sources/glibc-2.3.3-lfs-5.1/posix'
make[1]: *** [posix/tests] Error 2
make[1]: Leaving directory `/sources/glibc-2.3.3-lfs-5.1'
make: *** [check] Error 2
should I continue or are these errors something serious?
Last edited by vegpl; 06-21-2004 at 07:21 PM.
|
|
|
06-25-2004, 03:21 PM
|
#9
|
Member
Registered: Mar 2004
Location: Valgu - is it mean for u something?
Distribution: SuSE 9.1 and LFS soon (I hope)
Posts: 30
Rep:
|
same problem here - same errors.
|
|
|
06-25-2004, 05:15 PM
|
#10
|
Member
Registered: Mar 2004
Location: Valgu - is it mean for u something?
Distribution: SuSE 9.1 and LFS soon (I hope)
Posts: 30
Rep:
|
no1 knows anything???
|
|
|
06-25-2004, 06:22 PM
|
#11
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Quote:
Originally posted by znif
no1 knows anything???
|
Stop bumping threads and or hijacking threads per se. LFS is not very newbie friendly, not everyone is familiar with it. And making statements that no one knows nothing is not going to get faster replies, only piss members off who do come here to help PEOPLE like you in their own free time. Be patient!
|
|
|
06-25-2004, 07:45 PM
|
#12
|
Member
Registered: Mar 2004
Location: Valgu - is it mean for u something?
Distribution: SuSE 9.1 and LFS soon (I hope)
Posts: 30
Rep:
|
Last post wasnt very helpful, trickykid. AND - as I can see lots of ppl got same problem... SO - here must be bug or what?
Last edited by znif; 06-25-2004 at 07:49 PM.
|
|
|
06-25-2004, 11:14 PM
|
#13
|
LQ Newbie
Registered: Jan 2004
Location: ~
Posts: 28
Original Poster
Rep:
|
did you run the make_devices script?
|
|
|
06-26-2004, 11:56 AM
|
#14
|
Member
Registered: Mar 2004
Location: Valgu - is it mean for u something?
Distribution: SuSE 9.1 and LFS soon (I hope)
Posts: 30
Rep:
|
Well... I dont know what was wrong exactly. I start it all from beginning and now got problems with installing perl. No any error was with gcc now.
|
|
|
All times are GMT -5. The time now is 12:53 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|