LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS - about 30 Autoconf files and how to do the patches (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-about-30-autoconf-files-and-how-to-do-the-patches-934440/)

druuna 03-15-2012 03:28 AM

Hi again,

Each chapter assumes you unpacked the package and are standing in the newly created directory. As explained here: 5.3 - Last Important box.

Sjors-rw 03-15-2012 03:48 AM

So, in chapter 5 it presumes you are in $LFS/mnt/lfs/sources?

If I understand you correctly.

druuna 03-15-2012 04:40 AM

Hi,

No, you need to be in $LFS/sources (which expands to /mnt/lfs/sources) to unpack the appropriate package.

jschiwal 03-15-2012 06:41 AM

Moved: This thread is more suitable in Linux From Scratch forum and has been moved accordingly to help your question get the exposure it deserves.

Sjors-rw 03-15-2012 09:54 AM

Alright, I'm in mnt/lfs/sources
but, when I use this code:

../binutils-2.22/configure \
--target=$LFS_TGT --prefix=/tools \
--disable-nls --disable-werror

It says, there's no directory.

and when I cd to
../binutils-2.22/configure it says the same.

Sjors-rw 03-15-2012 10:26 AM

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.

druuna 03-15-2012 11:14 AM

Quote:

Originally Posted by Sjors-rw (Post 4627490)
Alright, I'm in mnt/lfs/sources
but, when I use this code:

../binutils-2.22/configure \
--target=$LFS_TGT --prefix=/tools \
--disable-nls --disable-werror

It says, there's no directory.

and when I cd to
../binutils-2.22/configure it says the same.

See post #16

Quote:

Originally Posted by Sjors-rw (Post 4627505)
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.

See post #11.........

Sjors-rw 03-18-2012 08:00 AM

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?

spiky0011 03-18-2012 08:30 AM

Hi

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.

Which package are you on

druuna 03-18-2012 08:48 AM

Hi,
Quote:

Originally Posted by Sjors-rw (Post 4629723)
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!

Sjors-rw 03-18-2012 10:02 AM

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?

druuna 03-18-2012 10:09 AM

Hi,

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.

Sjors-rw 03-20-2012 01:38 PM

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?

Thanks again for helping,

spiky0011 03-20-2012 02:01 PM

Hi

Can you post the error you are getting plz

Sjors-rw 03-20-2012 02:03 PM

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?


All times are GMT -5. The time now is 01:05 PM.