LFS - about 30 Autoconf files and how to do the patches
Linux From ScratchThis 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.
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.
Ok, found an tutorial for tarballs, so i've used this code: tar -vfx binutils ....
but now in my sources folder are all the files of binutils, like 50 files.
How can I undo/delete them all and what's the right way to do it.
Is there someone who can give support via MSN or something? It would be very nice.
and when I cd to
../binutils-2.22/configure it says the same.
See post #16
Quote:
Originally Posted by Sjors-rw
Ok, found an tutorial for tarballs, so i've used this code: tar -vfx binutils ....
but now in my sources folder are all the files of binutils, like 50 files.
How can I undo/delete them all and what's the right way to do it.
Now I've started again. In chapter 5 where do I have to be? with LFS user there's permission denied, en which directory do I have to stand? $LFS/sources?
You should be in /mnt/lfs/sources
Where you have the tarball then untar the tarball into sources dir then cd into the directory created from the untar.
In chapter 5 where do I have to be? with LFS user there's permission denied, en which directory do I have to stand? $LFS/sources?
About the permission denied: What's denied? cd-ing into a directory? Untarring a file? Details please.
In general: Did you re-check all the commands? Especially those in 4.3, the chown commands for example. Are the packages in $LFS/sources (at least) readable for user lfs?
About the directory you need to be standing in: Really?
When you finished chapter 4 you are user lfs and standing in your home directory (/home/lfs).
In chapter 5.3 this pops up:
Quote:
Important
To re-emphasize the build process:
Place all the sources and patches in a directory that will be accessible from the chroot environment such as /mnt/lfs/sources/. Do not put sources in /mnt/lfs/tools/.
Change to the sources directory.
For each package:
- Using the tar program, extract the package to be built. In Chapter 5, ensure you are the lfs user when extracting the package.
- Change to the directory created when the package was extracted.
- Follow the book's instructions for building the package.
- Change back to the sources directory.
- Delete the extracted source directory and any <package>-build directories that were created in the build process unless instructed otherwise.
This would put you in $LFS/sources
In 5.4 you have to build Binutils. Untar, from where you are standing ($LFS/sources), the binutils package and cd into it (steps one and two from the For each package: part.
Hope this helps.
@spiky0011: That should be /mnt/lfs/sources!
Last edited by druuna; 03-18-2012 at 09:24 AM.
Reason: Removed double text.
alright, 5.4 succeeded. Now I'm in chapter 5.5 but it says:
tar -jxf ../mpfr-3.1.0.tar.bz2
mv -v mpfr-3.1.0 mpfr
tar -Jxf ../gmp-5.0.4.tar.xz
mv -v gmp-5.0.4 gmp
tar -zxf ../mpc-0.9.tar.gz
mv -v mpc-0.9 mpc
and:
tar -jxf ../mpfr-3.1.0.tar.bz2
refers to one directory "up" but I'm in /sources and the file itself is in sources too. Do I have to just remove the ".." or do I have to be in an other directory?
I told you this three times already (Posts #16, #22 and #25).
Again:
Quote:
Change to the sources directory.
For each package:
- Using the tar program, extract the package to be built. In Chapter 5, ensure you are the lfs user when extracting the package.
- Change to the directory created when the package was extracted.
- Follow the book's instructions for building the package.
- Change back to the sources directory.
- Delete the extracted source directory and any <package>-build directories that were created in the build process unless instructed otherwise.
Started again, me getting better with linux, I'm now stuck at 5.7 for glibc compilation. I get the warning: warning you should not compile gnu libc without versioning
And underneath that error: You need a recent version of Binutils, 2.8 or higher, but for LFS we use 2.22. So how to solve this problem?
I've managed to continue, but now I don't know what to do. First off all from the beginning after install each pakage there are numerous errors, the whole time with [1] Error , that structure. I don't did anything with it and keep getting further, now a few pakages wont install, getting errors with config files etc.. What am I doing wrong? any ideas?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.