LFS - about 30 Autoconf files and how to do the patches
Hey,
First of all, I'm Sjors Snoeren, a 16 year old webdeveloper, I got my own company called Rockweb, see http://www.rockweb.nl, I'm from holland as you may see on my web URL. I'm a big Mac OSX and Linux fan, I know Strange combination. I'm wanting to create my own OS so, I'm using LFS, but struggling yet, I've installed the WGET-list, but when I cd to the $LFS I see much .tar.gz files like it have to, but I see also about 30 Autconf.tar.gz.1 and tar.gz.2 and so on, is it meant so or did I do sth wrong? Also the patches, need they be to installed manually? Or is there a program or a patch-list like the wget-list? Thnx for reading, and I hope someone can help me out! |
Hi/Hoi Sjors-rw,
Welcome to LQ! Quote:
The command given in the book to get the files (wget -i wget-list -P $LFS/sources) also works as it supposed to. You did follow the instructions in the book? Quote:
BTW: Links provided assume latest stable LFS (7.1 at this moment). Hope this helps. EDIT: Just asked a moderator to move this to the LFS sub-forum. |
Welcome to LQ.
Quote:
run Code:
diff Autoconf.tar.gz.1 Autoconf.tar.gz.2 Code:
ls -lh Autoconf.* Quote:
|
What I did I copied the url with the wget's to the command instead of wget-list.
for the patches, I don't have to do anything right now? If I understand you correctly. |
Hi,
Quote:
Quote:
|
|
Hi,
Well, if you do not follow the book (why not?? problem would be solved....) and don't tell us which commands you actually used we cannot help you. What does this mean: Quote:
|
I followed the book, it says:
Code:
wget -i wget-list -P $LFS/sources Code:
wget -i http://www.linuxfromscratch.org/bblalalala/wget-list.html -P $LFS/sources |
Hi,
Quote:
Download and store the wget-list file. From the location you stored the wget-list file issue the wget -i wget-list -P $LFS/sources command. Hope this helps. |
How can I remove multiple files easy? Can I get in filemanager to do so? With Terminal it takes a alot of time...
|
Hi,
Quote:
Assuming you want to remove all (!!) the files in $LFS/sources (as root user): Code:
$ cd $LFS/sources Hope this helps. |
But that's why I wanted to build one, to learn.
|
So, struggled upon another problem, In chapter 4 you have to Export $LFS to /mnt/lfs, I did that but the pakages are still on $LFS... Is that a problem?
|
Hi,
The packages you downloaded should reside in $LFS/sources, not $LFS (as mentioned in chapter 3). During chapter 4 and 5 the base you are building from is stored in the LFS variable (for most people this variable will contain /mnt/lfs). The export command doesn't have anything to do with that. The export part of the command makes sure that this variable (LFS) is also present in the sub-shells that are used during the build. Hope this helps. |
Thanks, I've managed to do it correcly, now I'm inn chapter 5.
Now I'm seeing: This kinda commands: mkdir -v ../binutils-build cd ../binutils-build but which directory the book is using to fill that in because ../ means two directorys back in HTML/CSS I think here is the same? So do I have to be in $LFS/sources or what? |
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. |
So, in chapter 5 it presumes you are in $LFS/mnt/lfs/sources?
If I understand you correctly. |
Hi,
No, you need to be in $LFS/sources (which expands to /mnt/lfs/sources) to unpack the appropriate package. |
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.
|
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. |
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. |
Quote:
Quote:
|
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?
|
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 |
Hi,
Quote:
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:
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! |
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? |
Hi,
I told you this three times already (Posts #16, #22 and #25). Again: Quote:
|
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, |
Hi
Can you post the error you are getting plz |
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?
|
It,s no good if you get errors to proceed.
There is a reason for the errors is that something has gone wrong, with either the package you are on or previous 1's |
I know but I dit follewed the book, so I thought it had to be so.
|
I've been looking to another guide, with more detailed instructions, are there any? Or is there someone around here, who wants to give me support via msn or something that would be great. I think this guide has to do much more with details about which path you are right now etc.
|
As far as i,m awhere the book is the only tutorial for building, It dose work as many ppl have built systems from it
|
I have done LFS several times. Once you build the toolchain error free, i.e. glibc, gcc and kernel headers) in Ch.5, you can do ch. 5 & ch 6 toolchain. Once you build that toolchain error free you can do the rest. That's a condition for putting up the stable book.
You're probably here after fruitless mails on lq itself. YOUR machine/distro doesn't measure up if you can't get that far. If you want to moan, go ahead. If you want people to cast an eye over your problems, you have to show us. No make -k; when a build fails, hit up arrow & return and catch the first error. That's all we need to see. |
Your right, I've found a nice guy who wants to give me some support via MSN, when we both haven't an idea to come further I'm going back to here. Thanks for the support so far.
|
Look, I'm getting this kind of erros:
make[3]: Leaving directory `/mnt/react/binutils-build/bfd/po' make[3]: Entering directory `/mnt/react/binutils-build/bfd/po' make[3]: Nothing to be done for `info'. make[3]: Leaving directory `/mnt/react/binutils-build/bfd/po' make[3]: Entering directory `/mnt/react/binutils-build/bfd' make[3]: Nothing to be done for `info-am'. make[3]: Leaving directory `/mnt/react/binutils-build/bfd' make[2]: *** [info-recursive] Error 1 make[2]: Leaving directory `/mnt/react/binutils-build/bfd' make[1]: *** [all-bfd] Error 2 make[1]: Leaving directory `/mnt/react/binutils-build' make: *** [all] Error 2 Note the Make *** [all] ERROR 2, is this a problem? |
Hi,
You need to include the actual error (as explained here: 1.5 Help (1.5.3)). And: Yes, that is a problem. But without the error we cannot point you to any possible solution. EDIT: Also include the exact command(s) you used in this chapter to get to this point. |
@Sjors-rw:
As a general yardstick, most threads are sorted in under 7 posts. This is 32 posts - most of your LQ history. There's no point unless you give exact errors. When a compile fails, 1. Hit up arrow & return 2. Post the _first_ error. You posted the last ones. 3. If you can't see the first error run 'make > file 2>&1' and check the file with less. |
so you mean this one:
make[3]: *** [bfd.info] Error 1 make[2]: *** [info-recursive] Error 1 make[1]: *** [all-bfd] Error 2 make: *** [all] Error 2 The commands I used are exactly the same as from the book: mkdir -v ../binutils-build cd ../binutils-build ../binutils-2.22/configure --target=$LFS_TGT \ --prefix=/tools \ --disable-nls \ --disable-werror |
Did you actually read 1.5.3?
It also includes a link to a page you should definitely read! |
WARNING: `makeinfo' is missing on your system. You should only need it if
you modified a `.texi' or `.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy `make' (AIX, DU, IRIX). You might want to install the `Texinfo' package or the `GNU make' package. Grab either from any GNU archive site. make[3]: *** [bfd.info] Error 1 make[3]: Leaving directory `/mnt/react/binutils-build/bfd/doc' Making info in po make[3]: Entering directory `/mnt/react/binutils-build/bfd/po' ( if test 'x../../../binutils-2.22/bfd/po' != 'x.'; then \ posrcprefix='../../../binutils-2.22/bfd/'; \ else \ posrcprefix="../"; \ fi; \ rm -f SRC-POTFILES-t SRC-POTFILES \ && (sed -e '/^#/d' \ -e '/^[ ]*$/d' \ -e "s@.*@ $posrcprefix& \\\\@" < ../../../binutils-2.22/bfd/po/SRC-POTFILES.in \ | sed -e '$s/\\$//') > SRC-POTFILES-t \ && chmod a-w SRC-POTFILES-t \ && mv SRC-POTFILES-t SRC-POTFILES ) ( rm -f BLD-POTFILES-t BLD-POTFILES \ && (sed -e '/^#/d' \ -e '/^[ ]*$/d' \ -e "s@.*@ ../& \\\\@" < ../../../binutils-2.22/bfd/po/BLD-POTFILES.in \ | sed -e '$s/\\$//') > BLD-POTFILES-t \ && chmod a-w BLD-POTFILES-t \ && mv BLD-POTFILES-t BLD-POTFILES ) cd .. \ && CONFIG_FILES=po/Makefile.in:po/Make-in \ CONFIG_HEADERS= /bin/bash ./config.status config.status: creating po/Makefile.in config.status: executing depfiles commands config.status: executing libtool commands config.status: executing default-1 commands config.status: executing bfd_stdint.h commands config.status: executing default commands make[3]: Leaving directory `/mnt/react/binutils-build/bfd/po' make[3]: Entering directory `/mnt/react/binutils-build/bfd/po' make[3]: Nothing to be done for `info'. make[3]: Leaving directory `/mnt/react/binutils-build/bfd/po' make[3]: Entering directory `/mnt/react/binutils-build/bfd' make[3]: Nothing to be done for `info-am'. make[3]: Leaving directory `/mnt/react/binutils-build/bfd' make[2]: *** [info-recursive] Error 1 make[2]: Leaving directory `/mnt/react/binutils-build/bfd' make[1]: *** [all-bfd] Error 2 make[1]: Leaving directory `/mnt/react/binutils-build' make: *** [all] Error 2 So this code? Can I assume I'm missing makeinfo and that's the problem? |
Wow found my problem myself, the problem was makeinfo. Thanks for the tip of 1.5.3 with that info I fount the problem! :)
|
I am now at: 5.5 and stuck on the latest command, getting this error:
No command '-gcc' found, did you mean: Command 'cgcc' from package 'sparse' (multiverse) Command 'gcc' from package 'gcc' (main) Command 'gcc' from package 'pentium-builder' (universe) -gcc: command not found `./libgcc.a' -> `libgcc.a' with this command: ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'` |
Hi
I know you have been getting problems, Did you make sure your host system was compliant, as texinfo is 1 of the dependencies, and what host are you using. |
So, I did what you said, checked my host system req's. First check 2 unvalid. Installed them and checked again, everything is fine.
Entered: this command again ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'` same errors looked at the code and edited it with removing - before gcc, because -gcc was not found, so I got: ln -vs libgcc.a `$LFS_TGT gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'` changed: $LFS_TGT-gcc to $LFS_TGT gcc and no errors but did the command executed the right way now? |
Quote:
You need to check if LFS_TGT is set (it should be, it is part of .bashrc for user lfs, this part LFS_TGT=$(uname -m)-lfs-linux-gnu). LFS_TGT should contain something like this (bold part could be different on your box, use uname -m to find out): i686-lfs-linux-gnu When using this command: Code:
ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'` Hope this helps |
Thanks, it works!
Now getting another problem, which is a problem with ubuntu itself, i guess Googling on the errors results in that quote. error: -MT /mnt/react/sources/glibc-build/misc/syslog.o In file included from ../sysdeps/unix/sysv/linux/syslog.c:10: ../misc/syslog.c: In function ‘__vsyslog_chk’: ../misc/syslog.c:123: sorry, unimplemented: inlining failed in call to ‘syslog’: function body not available ../misc/syslog.c:155: sorry, unimplemented: called from here make[2]: *** [/mnt/react/sources/glibc-build/misc/syslog.o] Error 1 make[2]: Leaving directory `/mnt/react/sources/glibc-2.14.1/misc' make[1]: *** [misc/subdir_lib] Error 2 make[1]: Leaving directory `/mnt/react/sources/glibc-2.14.1' make: *** [all] Error 2 any suggestions? |
Have a look here (at the bottom): Re: syslog.c error
It seems your host still doesn't meet the system requirements. |
Installed everything (via software center) now getting this error:
after (MAKE) In file included from ../sysdeps/unix/sysv/linux/syslog.c:10: ../misc/syslog.c: In function ‘__vsyslog_chk’: ../misc/syslog.c:123: sorry, unimplemented: inlining failed in call to ‘syslog’: function body not available ../misc/syslog.c:155: sorry, unimplemented: called from here make[2]: *** [/mnt/react/sources/glibc-build/misc/syslog.o] Error 1 make[2]: Leaving directory `/mnt/react/sources/glibc-2.14.1/misc' make[1]: *** [misc/subdir_lib] Error 2 make[1]: Leaving directory `/mnt/react/sources/glibc-2.14.1' make: *** [all] Error 2 |
All times are GMT -5. The time now is 05:24 PM. |