Re: dynamically linked binutils and GCC in LFS 6.1
Kapier wrote: I have question... Why, in new version LFS, are We dynamically linking bintuitls and GCC in Chapter 5, Pass 1??? In LFS 6.0 it was statically linked. Thanx a lot From the Changelog... April 16, 2005 [matt]: Removed references to statically linking the pass 1 toolchain which should have gone as part of bug 1061 (Andrew Benton) March 13, 2005 [matt]: Dynamically link the pass1 toolchain to workaround bug 1061 and remove all related explanatory text Check out the details here - http://bugs.linuxfromscratch.org/show_bug.cgi?id=1061 -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Warning on running make check, second round
Stephen Liu wrote: Hi folks, After starting up the FC3 host PC, continued building LFS as follows; [EMAIL PROTECTED] ~]$ su - Password: [EMAIL PROTECTED] ~]# export LFS=/mnt/lfs [EMAIL PROTECTED] ~]# mkdir -p $LFS/{proc,sys} [EMAIL PROTECTED] ~]# mount -t proc proc $LFS/proc [EMAIL PROTECTED] ~]# mount -t sysfs sysfs $LFS/sys [EMAIL PROTECTED] ~]# mount -f -t ramfs ramfs $LFS/dev [EMAIL PROTECTED] ~]# mount -f -t tmpfs tmpfs $LFS/dev/shm [EMAIL PROTECTED] ~]# mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts All went through without complaint [EMAIL PROTECTED] ~]# chroot $LFS /tools/bin/env -i HOME=/root TERM=$TERM PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h root:/# 6.8. Populating /dev http://www.sg.linuxfromscratch.org/lfs/view/6.0/chapter06/devices.html root:/# mknod -m 600 /dev/console c 5 1 mknod: `/dev/console': File exists root:/# mknod -m 666 /dev/null c 1 3 mknod: `/dev/null': File exists root:/# mount -n -t ramfs none /dev root:/# /tools/sbin/udevstart root:/# ln -s /proc/self/fd /dev/fd root:/# ln -s /proc/self/fd/0 /dev/stdin root:/# ln -s /proc/self/fd/1 /dev/stdout root:/# ln -s /proc/self/fd/2 /dev/stderr root:/# ln -s /proc/kcore /dev/core root:/# mkdir /dev/ptsmkdir /dev/pts root:/# mkdir /dev/shm root:/# mount -t devpts -o gid=4,mode=620 none /dev/pts root:/# mount -t tmpfs none /dev/shm All went through without complaint. 6.11. Glibc-2.3.4-20040701 http://www.sg.linuxfromscratch.org/lfs/view/6.0/chapter06/glibc.html (Remark: before already untared on 12) 5.8. Glibc-2.3.4-20040701) root:/# cd sources/glibc-build/ root:/sources/glibc-build# mkdir ../glibc-build mkdir: cannot create directory `../glibc-build': File exists root:/sources/glibc-build# cd ../glibc-build root:/sources/glibc-build# ../glibc-2.3.4-20040701/configure --prefix=/usr --disable-profile --enable-add-ons=nptl --with-tls --with-__thread --enable-kernel=2.6.0 --without-cvs --libexecdir=/usr/lib/with-headers=/tools/glibc-kernheaderglibc root:/sources/glibc-build# make Went through without complaint root:/sources/glibc-build# make check . make[2]: *** [/sources/glibc-build/nptl/tst-cancel17.out] Error 1 make[2]: Leaving directory `/sources/glibc-2.3.4-20040701/nptl' make[1]: *** [nptl/tests] Error 2 make[1]: Leaving directory `/sources/glibc-2.3.4-20040701' make: *** [check] Error 2 Please advise whether I have to recompile it again. This is the second round I did. TIA B.R. satimis That's a typical failure. In fact, there is a patch included in the latest version of LFS that disables that test because it almost always fails. Just run make check again (no need to recompile everything) and see if there are are more errors. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Warning on running make check, second round
Stephen Liu wrote: Hi Chris, - snip - root:/sources/glibc-build# make check . make[2]: *** [/sources/glibc-build/nptl/tst-cancel17.out] Error 1 make[2]: Leaving directory `/sources/glibc-2.3.4-20040701/nptl' make[1]: *** [nptl/tests] Error 2 make[1]: Leaving directory `/sources/glibc-2.3.4-20040701' make: *** [check] Error 2 - snip - No, just re-run make check. - snip - Same error found as previous posting; make[2]: *** [/sources/glibc-build/nptl/tst-cancelx17.out] Error 1 make[2]: Leaving directory `/sources/glibc-2.3.4-20040701/nptl' make[1]: *** [nptl/tests] Error 2 make[1]: Leaving directory `/sources/glibc-2.3.4-20040701' make: *** [check] Error 2 B.R. Stephen Actually, it's a different error (look carefully - it's tst-cancelx17 - before it was tst-cancel17). That's the other known frequent-failing test, also fixed by the patch in the latest LFS. That error can also be ignored. Try make check again. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Warning on running make check, second round
Stephen Liu wrote: Hi Chris, - snip - Actually, it's a different error (look carefully - it's tst-cancelx17 - before it was tst-cancel17). That's the other known frequent-failing test, also fixed by the patch in the latest LFS. That error can also be ignored. Try make check again. Performed following steps From; http://www.sg.linuxfromscratch.org/patches/downloads/glibc/ download glibc-2.3.2-test_lfs-1.patch # cp /path/to/glibc-2.3.2-test_lfs-1.patch /mnt/lfs/sources/glibc-2.3.4-20040701 root:/sources/glibc-build# cd /sources/glibc-2.3.4-20040701 root:/sources/glibc-2.3.4-20040701# patch -Np1 -i glibc-2.3.5-fix_test-1.patch patching file nptl/tst-cancel17.c # cd ../glibc-build/ root:/sources/glibc-build# make check ... make[1]: *** [/sources/glibc-build/c++-types-check.out] Error 1 make[1]: Leaving directory `/sources/glibc-2.3.4-20040701' make: *** [check] Error 2 Warning still existed. B.R. Stephen No, don't apply the patch - that won't work because the glibc versions are slightly different. Again, I just mentioned it let you know that the errors you got are completely normal. You'll need to remove everything in glibc-build and glibc-2.3.4-20040701 directories and rebuild. When you run make check again, you can simply ignore those 2 errors I told you about. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: /tools/bin/env: /tools/bin/bash: No such file or directory
Stephen Liu wrote: Hi folks, LFS 6.1 FC3 Host Following problem was encountered on building LFS 6.1 [EMAIL PROTECTED] ~]# chroot $LFS /tools/bin/env -i HOME=/root TERM=$TERM PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h /tools/bin/env: /tools/bin/bash: No such file or directory [EMAIL PROTECTED] ~]# find / -name bash /root/bash /root/Desktop/Trash/bash-3.0/bash /mnt/lfs/sources/bash-3.0/bash /mnt/lfs/tools/bin/bash /bin/bash [EMAIL PROTECTED] ~]# find / -name env /usr/share/doc/db4-devel-4.2.52/ref/env /usr/bin/env /mnt/lfs/sources/coreutils-5.2.1/src/env /mnt/lfs/tools/bin/env /bin/env [EMAIL PROTECTED] ~]# ls -al /mnt/lfs/tools/bin/bash* -rwxr-xr-x 1 root root 1438193 Jul 23 10:18 /mnt/lfs/tools/bin/bash -r-xr-xr-x 1 root root6806 Jul 23 10:18 /mnt/lfs/tools/bin/bashbug [EMAIL PROTECTED] ~]# ls -al /mnt/lfs/tools/bin/env* -rwxr-xr-x 1 lfs lfs 12952 Jul 21 18:37 /mnt/lfs/tools/bin/env -rwxr-xr-x 1 lfs lfs 10032 Jul 21 18:37 /mnt/lfs/tools/bin/envsubst The files were there. Please advise how to fix it. TIA B.R. Stephen Liu Something probably went wrong with your adjustment of the toolchain. Log on as lfs user and run ldd /tools/bin/bash. It should point to /tools. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: /tools/bin/env: /tools/bin/bash: No such file or directory
Stephen Liu wrote: # ldd /tools/bin/bash linux-gate.so.1 = (0x00d2) libtermcap.so.2 = /lib/libtermcap.so.2 (0x00ac4000) libdl.so.2 = /lib/libdl.so.2 (0x009d3000) libc.so.6 = /lib/tls/libc.so.6 (0x00882000) /lib/ld-linux.so.2 (0x00868000) I assume you were logged on as the lfs user when you did this...? If so, that's not good - nothing in /tools should be pointing to anything in /lib. linux-gate.so.1 points to unknow file [EMAIL PROTECTED] ~]# readelf -l /bin/dmesg | grep interpreter [Requesting program interpreter: /lib/ld-linux.so.2] I have been trying to solve this problem without a solution including reinstalling Bash-3.0 several times. The complete printout of make install is as follows; Reinstalling bash won't do anything if your toolchain is broken. Also, there is another problem in that output - the installation for bash (and everything else in chapter 5) should be using /tools/bin/install, not /usr/bin/install. You need to start your LFS build over and make sure you follow the book. ( cd ./po/ ; make DESTDIR= installdirs ) make[1]: Entering directory `/mnt/lfs/sources/bash-3.0/po' /bin/sh /mnt/lfs/sources/bash-3.0/./support/mkinstalldirs /tools/share if test bash = gettext-tools; then \ /bin/sh /mnt/lfs/sources/bash-3.0/./support/mkinstalldirs /tools/share/gettext/po; \ else \ : ; \ fi make[1]: Leaving directory `/mnt/lfs/sources/bash-3.0/po' /usr/bin/install -c -m 0755 bash /tools/bin/bash /usr/bin/install -c -m 0555 bashbug /tools/bin/bashbug ( cd ./doc ; make \ man1dir=/tools/man/man1 man1ext=.1 \ man3dir=/tools/man/man3 man3ext=.3 \ infodir=/tools/info htmldir= DESTDIR= install ) make[1]: Entering directory `/mnt/lfs/sources/bash-3.0/doc' /bin/sh ../support/mkinstalldirs /tools/man/man1 /bin/sh ../support/mkinstalldirs /tools/info if test -n ; then \ /bin/sh ../support/mkinstalldirs ; \ fi /bin/sh ./infopost.sh ./bashref.info bash.info ; \ /usr/bin/install -c -m 644 ./bash.1 /tools/man/man1/bash.1 /usr/bin/install -c -m 644 ./bashbug.1 /tools/man/man1/bashbug.1 /usr/bin/install -c -m 644 ./bash.info /tools/info/bash.info if /bin/sh -c 'install-info --version' /dev/null 21; then \ install-info --dir-file=/tools/info/dir /tools/info/bash.info; \ else true; fi if test -n ; then \ /usr/bin/install -c -m 644 ./bash.html ; \ /usr/bin/install -c -m 644 ./bashref.html ; \ fi make[1]: Leaving directory `/mnt/lfs/sources/bash-3.0/doc' ( cd ./builtins ; make DESTDIR= install ) make[1]: Entering directory `/mnt/lfs/sources/bash-3.0/builtins' make[1]: Nothing to be done for `install'. make[1]: Leaving directory `/mnt/lfs/sources/bash-3.0/builtins' ( cd ./po/ ; make DESTDIR= install ) make[1]: Entering directory `/mnt/lfs/sources/bash-3.0/po' test -z [EMAIL PROTECTED] [EMAIL PROTECTED] || make [EMAIL PROTECTED] [EMAIL PROTECTED] make[2]: Entering directory `/mnt/lfs/sources/bash-3.0/po' make[2]: [EMAIL PROTECTED]' is up to date. make[2]: [EMAIL PROTECTED]' is up to date. make[2]: Leaving directory `/mnt/lfs/sources/bash-3.0/po' touch stamp-po /bin/sh /mnt/lfs/sources/bash-3.0/./support/mkinstalldirs /tools/share installing [EMAIL PROTECTED] as /tools/share/locale/[EMAIL PROTECTED]/LC_MESSAGES/bash.mo installing [EMAIL PROTECTED] as /tools/share/locale/[EMAIL PROTECTED]/LC_MESSAGES/bash.mo if test bash = gettext-tools; then \ /bin/sh /mnt/lfs/sources/bash-3.0/./support/mkinstalldirs /tools/share/gettext/po; \ for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed [EMAIL PROTECTED] [EMAIL PROTECTED] insert-header.sin Rules-quot Makevars.template; do \ /usr/bin/install -c -m 644 ./$file \ /tools/share/gettext/po/$file; \ done; \ for file in Makevars; do \ rm -f /tools/share/gettext/po/$file; \ done; \ else \ : ; \ fi make[1]: Leaving directory `/mnt/lfs/sources/bash-3.0/po' B.R. Stephen B.R. Stephen -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: /tools/bin/env: /tools/bin/bash: No such file or directory
Stephen Liu wrote: Hi Chris, # ldd /tools/bin/bash linux-gate.so.1 = (0x00d2) libtermcap.so.2 = /lib/libtermcap.so.2 (0x00ac4000) libdl.so.2 = /lib/libdl.so.2 (0x009d3000) libc.so.6 = /lib/tls/libc.so.6 (0x00882000) /lib/ld-linux.so.2 (0x00868000) I assume you were logged on as the lfs user when you did this...? If so, that's not good - nothing in /tools should be pointing to anything in /lib. Following steps were performed after starting the PC [EMAIL PROTECTED] ~]$ su - Password: [EMAIL PROTECTED] ~]# export LFS=/mnt/lfs [EMAIL PROTECTED] ~]# mount /dev/hda6 $LFS [EMAIL PROTECTED] ~]# mkdir -p $LFS [EMAIL PROTECTED] ~]# echo $LFS /mnt/lfs [EMAIL PROTECTED] ~]# mkdir -p $LFS/{proc,sys} [EMAIL PROTECTED] ~]# mount -t proc proc $LFS/proc [EMAIL PROTECTED] ~]# mount -t sysfs sysfs $LFS/sys [EMAIL PROTECTED] ~]# mount -f -t tmpfs tmpfs $LFS/dev [EMAIL PROTECTED] ~]# mount -f -t tmpfs tmpfs $LFS/dev/shm [EMAIL PROTECTED] ~]# mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts [EMAIL PROTECTED] ~]# chroot $LFS /tools/bin/env -i HOME=/root TERM=$TERM PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h /tools/bin/env: /tools/bin/bash: No such file or directory I did pass chroot on LFS 6.0 but failed on LFS 6.1. The same FC3 Host. B.R. Stephen Did you read the entire message I sent? When bash was installed it was using /usr/bin/install to copy the files when it should have been using /tools/bin/install. There's more wrong with your lfs installation than just bash...you need to start over from the beginning. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Redo Perl-5.8.6 - Permission denied
Stephen Liu wrote: Hi Andrew, Tks for your advice. /tools should be a symbolic link pointing at /mnt/lfs/tools [EMAIL PROTECTED] ~]# ls -al /tools lrwxrwxrwx 1 root root 15 Jun 28 17:06 /tools - //mnt/lfs/tools It is. Is this accurate? It says /tools is pointing to //mnt/lfs/tools. That should be /mnt/lfs/tools - there should only be one slash at the beginning. Also, if you have anything in /tools not owned by lfs, then don't just change permissions - it's much better just to remove it all and start over. The user lfs should own the folder /mnt/lfs/tools and so should, by definition, have write permission in /tools/lib [EMAIL PROTECTED] ~]# ls -al /mnt/lfs/tools/ total 100 drwxr-xr-x 13 lfs root 4096 Jul 22 15:36 . drwxr-xr-x 6 root root 4096 Jul 21 22:23 .. drwxr-xr-x 2 lfs lfs 4096 Jul 23 20:12 bin drwxr-xr-x 2 lfs lfs 4096 Jul 20 21:23 etc drwxr-xr-x 4 lfs lfs 4096 Jul 19 09:35 i686-pc-linux-gnu drwxr-xr-x 24 lfs lfs 4096 Jul 23 20:12 include drwxr-xr-x 2 root root 4096 Jul 23 10:18 info drwxr-xr-x 9 lfs lfs 4096 Jul 23 20:12 lib drwxr-xr-x 4 lfs lfs 4096 Jul 21 17:47 libexec drwxr-xr-x 3 root root 4096 Jul 22 15:36 man drwxr-xr-x 2 lfs lfs 4096 Jul 21 18:37 sbin drwxr-xr-x 15 lfs lfs 4096 Jul 21 18:17 share drwxr-xr-x 2 lfs lfs 4096 Jul 21 13:03 var Shall I manually change; drwxr-xr-x 13 lfs root 4096 Jul 22 15:36 . drwxr-xr-x 6 root root 4096 Jul 21 22:23 .. with # chmod -R 777 /mnt/lfs/tools TIA B.R. Stephen -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: can't enter chroot environment
Seth Payne wrote: Hello, After a couple of years of being away I find myself needing to build another LFS system. I am having trouble in chapter 6.3 when I try to enter the chroot environment. After I issue the command listed in the book, I get the following error: chroot: cannot run command `/tools/bin/env': No such file or directory I verified that /tools/bin/env does exist and when I execute it it gives the following output: LESSKEY=/etc/lesskey.bin MANPATH=/usr/local/man:/usr/share/man:/usr/X11R6/man:/opt/gnome/share/man INFODIR=/usr/local/info:/usr/share/info:/usr/info NNTPSERVER=news HOSTNAME=linux XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB GNOME2_PATH=/usr/local:/opt/gnome:/usr SHELL=/bin/bash TERM=vt100 HOST=linux HISTSIZE=1000 PROFILEREAD=true SSH_CLIENT=:::10.106.10.11 4105 22 GNOME_PATH=:/opt/gnome:/usr QTDIR=/usr/lib/qt3 SSH_TTY=/dev/pts/0 USER=spayne JRE_HOME=/usr/lib/jvm/jre GROFF_NO_SGR=yes LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32: XNLSPATH=/usr/X11R6/lib/X11/nls LFS=/lfs HOSTTYPE=i386 PAGER=less XDG_CONFIG_DIRS=/usr/local/etc/xdg/:/etc/xdg/:/etc/opt/gnome/xdg/ MINICOM=-c on PATH=/usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin MAIL=/var/mail/spayne GNOMEDIR=/opt/gnome CPU=i686 JAVA_BINDIR=/usr/lib/jvm/jre/bin PWD=/lfs/tools INPUTRC=/etc/inputrc JAVA_HOME=/usr/lib/jvm/jre LANG=en_US.UTF-8 PYTHONSTARTUP=/etc/pythonstart TEXINPUTS=:/home/spayne/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX HOME=/root SHLVL=2 OSTYPE=linux LESS_ADVANCED_PREPROCESSOR=no XCURSOR_THEME=crystalwhite LS_OPTIONS=-a -N --color=tty -T 0 WINDOWMANAGER=/usr/X11R6/bin/kde GTK_PATH=/usr/local/lib/gtk-2.0:/opt/gnome/lib/gtk-2.0:/usr/lib/gtk-2.0 LOGNAME=spayne MACHTYPE=i686-suse-linux LESS=-M -I [EMAIL PROTECTED],UTF-8,ISO-8859-15,CP1252 CVS_RSH=ssh SSH_CONNECTION=:::10.106.10.11 4105 :::10.106.10.14 22 ACLOCAL_FLAGS=-I /opt/gnome/share/aclocal XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/etc/opt/kde3/share/:/opt/kde3/share/:/opt/gnome/share/ LESSOPEN=lessopen.sh %s PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig INFOPATH=/usr/local/info:/usr/share/info:/usr/info:/opt/gnome/share/info LESSCLOSE=lessclose.sh %s %s G_BROKEN_FILENAMES=1 COLORTERM=1 JAVA_ROOT=/usr/lib/jvm/jre _=bin/env OLDPWD=/lfs I did some google searching last night and this morning and i'm guessing that I may have an issue with Bash or libraries. I have recompiled Bash but that did not seem to help. Anyone have any ideas? Seth It means that there's a library or file that /tools/bin/env needs that it can't find. Most likely, it was compiled with something pointing to /lib or /usr/lib. Run ldd /tools/bin/env - everything listed should point to /tools. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: can't enter chroot environment
Seth Payne wrote: Chris Staub wrote: It means that there's a library or file that /tools/bin/env needs that it can't find. Most likely, it was compiled with something pointing to /lib or /usr/lib. Run ldd /tools/bin/env - everything listed should point to /tools. I ran ldd /tools/bin/env as you suggested and got the following: linux-gate.so.1 = (0xe000) libc.so.6 = /lib/tls/libc.so.6 (0x4003b000) /lib/ld-linux.so.2 (0x4000) How and what should i recompile to have things point to /tools ? Thanks for your help! Seth Yup, it's pointing at /lib/ld-linux.so.2 which does not exist in the chroot environment. You probably missed a step adjusting the toolchain, maybe the specsfile change or the gcc specs patch. Try checking your command history against the adjusting the toolchain section of the book and see if you can find what you missed. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: can't enter chroot environment
Seth Payne wrote: Chris Staub wrote: Yup, it's pointing at /lib/ld-linux.so.2 which does not exist in the chroot environment. You probably missed a step adjusting the toolchain, maybe the specsfile change or the gcc specs patch. Try checking your command history against the adjusting the toolchain section of the book and see if you can find what you missed. Thanks for the help. I went and re-did adjusting the toolchain section. The output of the sanity check is: [Requesting program interpreter: /tools/lib/ld-linux.so.2] So am I in good shape? Do i need to recompile all the packages to ensure they are linked to the right libraries? Thanks! Seth OK, it looks good. Yes, you will have to recompile the rest of chap. 5 again to link everything against /tools. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: (Ch.6.12) crt1.o: No such file
David Ciecierski wrote: Hello, I am following LFS development flavour (2005.08.19) and ran across this error while performing the dummy.c sanity check after re-adjusting the toolchain. From what I know I followed the instructions exactly, except that I misspelled binutils-build to binutils-buils during pass 2 in Chapter 5. I investigated a little and: 1. /tools/lib/gcc/i686-pc-linux-gnu/3.4.4/specs - the dynamic linker is definitely /lib/ld-linux.so.2 2. /lib/ld-linux.so.2 correctly points to /lib/ld-2.3.5 3. gcc dummy.c --verbose shows the linker used is /lib/ld-linux.so.2 4. /usr/lib/crt1.o exists. 5. ld-2.3.5 *should* look for crt1.o in /lib and /usr/lib, right? 6. So why does the following line pop out? root:/sources# cc dummy.c /tools/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status Is the ld above a different program? Is it the one created in 6.12 with command make -C ld INSTALL=/tools/bin/install install? If so - why does it look for crt1.o where it should? Have been investigating that for the past hour with no success. Any help will be much appreciated... Thank you in advance! Best regards, David Ciecierski It doesn't necessarily mean that it can't find crt1.o, it could mean that it can't find something that crt1.o links to. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: gcc-4.0.1 pass1 build error chapter 5
zhiqiang yu wrote: gcc-g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -WALL -Wwrite-string -Wstrict-protypes -Wmissing-prototypes -Wold-style-definition -DHAVE_CONaFIG_H -I. -I. -I.../gcc-4.0.1/gcc -I../../gcc-4.0.1/gcc/. -I../.../gcc-4.0.1/gcc/ .../include -I ../../gcc-4.0.1/gcc/ ../libcpp/include -c insn-attrtab.c -o insn-attrtab.o cc1 out of memory allocating 63253600 bytes after a total of 20983808 bytes make[2]: ***[insn-attrtab.o] Error 1 make[2]: Leaving directory '/mnt/lfs/sources/gcc-build/gcc' make[1]: *** [stage1-build] Error 2 make[1]: Leaving directory '/mnt/lfs/sources/gcc-build/gcc' make: ***[bootstrap] Error 2 my computer is Duron 700 128m memory what's wrong? i have every passed the build of gcc-3.4.4 on this mechine. any suggestion? thanks! It doesn't really mean much if you managed to compile GCC 3.4.4 since GCC4 is larger and takes up more memory than 3.4.4. If it's running out of memory, the only solution is to free up more by finding programs to close. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Final step 9.3 then no reboot
Allen J. Newton wrote: Hello, I have tried to build LFS 6.1 three times with no success. All three attempts have failed at the same point, so I'm wondering what I'm missing? I am using the 6.1 book and have tried to build it on to the following 3 setups: A VMware 4.5 virtual machine running Fedora Core 3 A VMware 4.5 virtual machine booted from the LiveCD 6.1 An AMD XP2200+ booted from the LiveCD 6.1 I followed the instructions in the book to the letter (as far as I know -- I doubt I missed the same step 3 times). Everything looks good up until ch. 9.3 where I do the shutdown -r now. The system shuts down, reboots, grub comes up, the kernel loads and gets to the isapnp part. Then the system hangs. The only part of the build left to my discretion was building the kernel -- could I have messed this up? Does anyone have a .config for a minimal system which _will_ boot? Any other ideas of things I might try to get it to work? Hard to tell without more specifics. Can you give the exact reason why it won't finish booting, or the error message it gives? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
[Fwd: Re: ncurses cannot find libstdc++ in chapter 6.21]
---BeginMessage--- Ilja Honkonen wrote: I was building LFS 6.1 and in chapter 6.21 ncurses gave this error during make: cd ../obj_s; /tools/bin/g++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include -D_GNU_SOURCE -DNDEBUG -O2 -fPIC -c ../c++/demo.cc /tools/bin/g++ -o demo ../obj_s/demo.o -L../lib -lncurses++ -L../lib -lform -lmenu -lpanel -lncurses -Wl,-rpath,/sources/ncurses-5.4/lib -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include -D_GNU_SOURCE -DNDEBUG -O2 -fPIC /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lstdc++ collect2: ld returned 1 exit status make[1]: *** [demo] Error 1 make[1]: Leaving directory make[1]: Leaving directory `/sources/ncurses-5.4/c++\' make: *** [all] Error 2 I fixed the above error by adding this to chapter 6.6: ln -s /tools/lib/libstdc++.{so,.6} /usr/lib I have no idea if this is the correct fix, or if the problem was somewhere else. There was no libstdc++* in /mnt/lfs/ or its subdirectories when I got to 6.21. I don't think that's a problem with the fact that you stopped and restarted - if libstdc++ does not exist in /usr/lib then you forgot to install the c++ compiler in chap. 6. Does /usr/bin/gcc exist? No it did not, I noticed this when Groff wouldn't configure complaining that it couldn't compile c++ programs. There were no gcc or c++ or even cc in /usr/bin. Very strange, but everyting worked after I installed gcc. Should I compile ncurces again? Thanks Ilja No, recompiling ncurses won't help if gcc is missing from /usr. Try checking a couple more things for me... 1. Run the sanity check at the end of the Re-adjusting the toolchain section and let me know the results. 2. Does /lib/libc.so.6 exist? 3. Does /usr/bin/ar, as, and ld exist? ---End Message--- -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: ncurses cannot find libstdc++ in chapter 6.21
Ilja Honkonen wrote: Lainaus Chris Staub [EMAIL PROTECTED]: I don't think that's a problem with the fact that you stopped and restarted - if libstdc++ does not exist in /usr/lib then you forgot to install the c++ compiler in chap. 6. Does /usr/bin/gcc exist? No it did not, I noticed this when Groff wouldn't configure complaining that it couldn't compile c++ programs. There were no gcc or c++ or even cc in /usr/bin. Very strange, but everyting worked after I installed gcc. Should I compile ncurces again? No, recompiling ncurses won't help if gcc is missing from /usr. Try But it isn't anymore... What do you mean? You said earlier that there was no gcc or g++ in /usr/bin. Do you just reinstall it? /usr/bin. Very strange, but everyting worked after I installed gcc. checking a couple more things for me... 1. Run the sanity check at the end of the Re-adjusting the toolchain section and let me know the results. [Requesting program interpreter: /lib/ld-linux.so.2] 2. Does /lib/libc.so.6 exist? lrwxrwxrwx 1 root root 13 Aug 29 15:17 /lib/libc.so.6 - libc-2.3.4.so 3. Does /usr/bin/ar, as, and ld exist? -rwxr-xr-x 1 root root 227776 Aug 29 15:39 /usr/bin/ar -rwxr-xr-x 1 root root 931041 Aug 29 15:39 /usr/bin/as -rwxr-xr-x 1 root root 943144 Aug 29 15:39 /usr/bin/ld Ilja OK, then everything else earlier in the chapter is there. You probably just need to reinstall gcc (or did you already?), though you may also want to recompile everything else after that. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: ncurses cannot find libstdc++ in chapter 6.21
Ilja Honkonen wrote: Archaic wrote: On Sun, Sep 04, 2005 at 12:11:08PM +0300, Ilja Honkonen wrote: No it did not, I noticed this when Groff wouldn't configure complaining that it couldn't compile c++ programs. There were no gcc or c++ or even cc in /usr/bin. Very strange, but everyting worked after I installed gcc. Should I compile ncurces again? First, this is lfs-dev, not lfs-support. You need to followup on Sorry about that lfs-support. Second, by symlinking the c++ compiler from /tools into /usr you have corrupted the build process. You should go back and I only symlinked libstdc++.so (and .6), does that make any difference? reinstall gcc by the book and then rebuild every package that uses any c++ in it. Some use just a tiny bit, some use a lot. If you can determine absolutely which packages need c++, then should be able to get away with rebuilding just those packages. Otherwise, rebuild everything I installed gcc by the book just before Groff (6.27), so it should be enough to rebuild packages 6.15-6.26? from gcc on. Thanks Ilja You shouldn't have to symlink anything unless it tells you to in the book. If you do have to then you need to go back and figure out what's wrong before going any further. You should go back to the gcc installation in chap. 6, and redo that and everything after that. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: 'ldd' outputs not a dynamic executable after installing Glibc-2.3.5 32 Bit
Basel Al-Mustafa wrote: Hello, Linux From Scratch - Version 7.0-cross-lfs-20050902-x86_64-Multilib Host Distribution - Slackware 10.1 with kernel-2.6.13 Section - 5.9. Glibc-2.3.5 32 Bit Processor - AMD64 3000+ I have stricktly followed the instructions in the book but executing 'ldd' for the command below outputs not a dynamic executable. Commands: catchsegv, ldd, mtrace, tzselect and xtrace Does anyone know the reason for that? I have reached chapter 8 yesterday but it was late for me to discover that the toolchain was corupted, so I decided to check the executables after each section. Here are the outputs of executing 'ldd' for the executables generated after installing Glibc-2.3.5 32 Bit: This is because many of those programs are actually bash scripts rather than actual programs. Try cat ldd or cat tzselect. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: can't chroot to new system
Stephen Liu wrote: Hi ÕÅ ÓÂ˳, i am install the lfs 6.1 in debian 3.1 with kernel 2.6.8.11-i386 gcc 3.4.3 and make this erren [EMAIL PROTECTED]:/mnt/lfs# chroot $LFS /tools/bin/env -i \ HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \ /tools/bin/bash --login +h Please try this; [EMAIL PROTECTED]:/mnt/lfs# /usr/sbin/chroot/ $LFS /tools/bin/env -i \ HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \ /tools/bin/bash --login +h It works for me. Some commands need full path to exacute them. I still don't understand the reason. BR SL That has nothing to do with it. The error is with /tools/bin/env, not the chroot command. You've had the problem yourself, remember? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: 6.11.1 glibc patch problem
rick wrote: The tarball was unpacked in the source directory before I began. I had already tried to apply the patch from the source directory and received the following error message: root:/source# patch -Np1 -i ../glibc-2.3.4-fix_test-1.patch patch: Can't open patch file ../glibc-2.3.4-fix_test-1.patch : No such file or directory As the patch file glibc-2.3.4-fix_test-1.patch is in the source directory. I moved to the linuxthreads directory as the patch command shows includes the parent directory qualifier (../) before the glibc-2.3.4-fix_test-1.patch filename. If I run the patch command from the source directory with patch -Np1 -i glibc-2.3.4-fix_test-1.patch (deleting the ../) I get the same message I first reported. I've re-read Chapter 6 up to this point several times and I am still in the dark as to where I went wrong. After several false starts in Chaper 5 I finally understood enough, I think, to make it through without any errors so I dont believe the problem is there but I will certainly start over there if necessary. Any help appreciated. rick No, you apply the patch from within the glibc source dir. How exactly have you managed to apply patches in chap. 5? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Just started and already lost in 6.1/5.3.1
Albert wrote: I am just starting a 6.1 build on a GoboLinux 012 (kernel 2.6.11.9) box. I am in 5.3.1 Installation of Binutils. and make directory of binutils-build complains of bad permissions. Just what directory am I supposed to be in at this point for the mkdir to work? $LFS = /Mount/hda6.lfs (GoboLinux uses Mount rather than mnt) lfs:/Mount/hda6.lfs$ mkdir ../binutils-build mkdir: cannot create directory `../binutils-build': Permission denied Please read section 5.1 carefully - one thing that is mentioned there is that each package's build instructions assume that you have already unpacked the source tarball and entered the source directory. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: FC4 (gcc 4 and binutils)
Ian Brown wrote: Hello LFS List, Can LFS stabel (6.1) be build with FC4 ? FC4 comes with gcc version 4.0.1. The kernel is 2.6.12-1.1398_FC4. I am starting with the first package, according to the online bookl This is binutils , in chap 5 (5.3.1. Installation of Binutils) when running make I see: make[3]: Entering directory `/home/test/binutils-build/gas' [...] from ../../binutils-2.15.94.0.2.2/gas/app.c:30: ../../binutils-2.15.94.0.2.2/gas/config/tc-i386.h:443: error: array type has incomplete element type make[3]: *** [app.o] Error 1 make[3]: Leaving directory `/home/test/binutils-build/gas' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/test/binutils-build/gas' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/test/binutils-build/gas' make: *** [all-gas] Error 2 what is the meaning of this ? can't we build LFS on FC4 ? Regards, Ian The version of binutils used with the current stable LFS is incompatible with GCC4. However, you can build LFS 6.1 with it if you install GCC 3.4.x into /opt and use that to build the stable LFS binutils. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: compile binutils failed due to undeclared function
Howard Wang wrote: Hello, I was tring to build binutils-2.15.91.0, after everything has been set up, under /mnt/lfs/sources/binutils_build any idea how to fix this ? thanks for the help. /bin/sh ../../binutils-2.15.91.0.2/binutils/../ylwrap flex ../../binutils-2.15 .91.0.2/binutils/arlex.l lex.yy.c arlex.c -- gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.15.91.0.2/binutils -I. -D_GNU_SOURCE -I. -I../../binutils-2.15.91.0.2/binutils -I../bfd -I../../binutils-2.15.91.0.2/ binutils/../bfd -I../../binutils-2.15.91.0.2/binutils/../include -I../../binutil s-2.15.91.0.2/binutils/../intl -I../intl -DLOCALEDIR=\/tools/share/locale\ - Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmiss ing-prototypes -g -O2 -c arlex.c /mnt/lfs/sources/binutils_build/binutils/../../binutils-2.15.91.0.2/binutils/arl ex.l: In function `yylex': /mnt/lfs/sources/binutils_build/binutils/../../binutils-2.15.91.0.2/binutils/arl ex.l:44: error: `ADDLIB' undeclared (first use in this function) /mnt/lfs/sources/binutils_build/binutils/../../binutils-2.15.91.0.2/binutils/arl ex.l:44: error: (Each undeclared identifier is reported only once /mnt/lfs/sources/binutils_build/binutils/../../binutils-2.15.91.0.2/binutils/arl ex.l:44: error: for each function it appears in.) make[3]: *** [arlex.o] Error 1 make[3]: Leaving directory `/mnt/lfs/sources/binutils_build/binutils' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/mnt/lfs/sources/binutils_build/binutils' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/binutils_build/binutils' make: *** [all-binutils] Error 2 You're missing flex. You need to install flex and flex-devel packages on your host system. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: compile binutils failed due to undeclared function
Howard Wang wrote: thanks. Chris. after installed flex package, it still failed and gave me more or less the same messages: see following: *** [EMAIL PROTECTED]:/mnt/lfs/sources/binutils_build make LDFLAGS=-all-static make[3]: Entering directory `/mnt/lfs/sources/binutils_build/binutils/po' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/mnt/lfs/sources/binutils_build/binutils/po' make[3]: Entering directory `/mnt/lfs/sources/binutils_build/binutils' gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.15.91.0.2/binutils -I. -D_GNU_SOURCE -I. -I../../binutils-2.15.91.0.2/binutils -I../bfd -I../../binutils-2.15.91.0.2/binutils/../bfd -I../../binutils-2.15.91.0.2/binutils/../include -I../../binutils-2.15.91.0.2/binutils/../intl -I../intl -DLOCALEDIR=\/tools/share/locale\ -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c arlex.c /mnt/lfs/sources/binutils_build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l: In function `yylex': /mnt/lfs/sources/binutils_build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:44: error: `ADDLIB' undeclared (first use in this function) /mnt/lfs/sources/binutils_build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:44: error: (Each undeclared identifier is reported only once /mnt/lfs/sources/binutils_build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:44: error: for each function it appears in.) /mnt/lfs/sources/binutils_build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:45: error: `ADDMOD' undeclared (first use in this function) /mnt/lfs/sources/binutils_build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:46: error: `CLEAR' undeclared (first use in this function) make[3]: *** [arlex.o] Error 1 make[3]: Leaving directory `/mnt/lfs/sources/binutils_build/binutils' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/mnt/lfs/sources/binutils_build/binutils' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/binutils_build/binutils' make: *** [all-binutils] Error 2 ** thanks howard You will also need to install bison (and bison-devel, if your host has that). -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: compile binutils failed due to undeclared function
Howard Wang wrote: Hi Chris, I also installed bison, it still gave the same error message. I did a search, it seems that the ADDLIB is defined in binutils/arparse.y. arlex.l can not find it. or should I compile the bison first ? but the lfs 6.0 said that binutil is the first to be compiled. thanks make[3]: Entering directory `/mnt/lfs/sources/binutils_build/binutils' gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.15.91.0.2/binutils -I. -D_GNU_SOURCE -I. -I../../binutils-2.15.91.0.2/binutils -I../bfd -I../../binutils-2.15.91.0.2/binutils/../bfd -I../../binutils-2.15.91.0.2/binutils/../include -I../../binutils-2.15.91.0.2/binutils/../intl -I../intl -DLOCALEDIR=\/tools/share/locale\ -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c arlex.c /mnt/lfs/sources/binutils_build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l: In function `yylex': /mnt/lfs/sources/binutils_build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:44: error: `ADDLIB' undeclared (first use in this function) /mnt/lfs/sources/binutils_build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:44: error: (Each undeclared identifier is reported only once /mnt/lfs/sources/binutils_build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:44: error: for each function it appears in.) Did you also install flex-devel and bison-devel? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: module-init-tools-3.1 cannot find -lz
Krishna Ganugapati wrote: Figured it out. zlib's website lists zlib.1.2.3 not the zlib.1.2.2 as required by LFS6.1 - as a result one of the soft links is libz.so - libz.so.1.2.2 - but the built versions are libz.so.1.2.3 I now understand what FBBG means :-) Krishna I don't think that's the problem. I just built an LFS 6.1 system, and used zlib 1.2.3 (in fact the 6.1 errata recommends it) with no problems. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: module-init-tools-3.1 cannot find -lz
Ken Moffat wrote: On Tue, 20 Sep 2005, Chris Staub wrote: Krishna Ganugapati wrote: Figured it out. zlib's website lists zlib.1.2.3 not the zlib.1.2.2 as required by LFS6.1 - as a result one of the soft links is libz.so - libz.so.1.2.2 - but the built versions are libz.so.1.2.3 I now understand what FBBG means :-) Krishna I don't think that's the problem. I just built an LFS 6.1 system, and used zlib 1.2.3 (in fact the 6.1 errata recommends it) with no problems. Chris, if the symlink points to libz.so.1.2.2 but the system only contains libz.so.1.2.3 then at best anything linking against libz will link against the static library. Normally, we can expect the package to handle this sort of thing, but with libz we move the shared object ourselves. Quite why we do this, and indeed why we even bother to install the static library, is one of the things I've never got around to investigating ;) Ken I am not sure I understand what you're saying. If zlib 1.2.3 was installed, then the 1.2.2 library and symlink should never exist anyway. Hmmm, after looking at the book I see what you mean. The book's instructions still mention symlinking to /lib/libz.so.1.2.2, so the errata should probably mention that. Still, as I said, I did an lfs 6.1 installation using zlib 1.2.3 (and even forgot to change the symlink location to .so.1.2.3) but it still worked fine. Weird... -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: compile binutils failed due to undeclared function
Howard Wang wrote: Hi Chris, I downloaded flex-devel-2.5.4a-1.i386.rpm from the web, and tried to install it. hwang66:/home/hwang # rpm -i flex-devel-2.5.4a-1.i386.rpm error: Failed dependencies: linux-gate.so.1 is needed by flex-devel-2.5.4a-1 when I issue: hwang66:/home/hwang # ldd /bin/ls linux-gate.so.1 = (0xe000) librt.so.1 = /lib/tls/librt.so.1 (0x40032000) libacl.so.1 = /lib/libacl.so.1 (0x4003b000) libselinux.so.1 = /lib/libselinux.so.1 (0x40041000) libc.so.6 = /lib/tls/libc.so.6 (0x4005) libpthread.so.0 = /lib/tls/libpthread.so.0 (0x40169000) /lib/ld-linux.so.2 (0x4000) libattr.so.1 = /lib/libattr.so.1 (0x4017b000) the linux-gate.so.1 seems to be there. also for some reason, it looks like Suse does not include flex-devel in their distributions. have you ever compiled lfs using Suse ? thanks I think you mentioned you searched for flex but didn't find flex-devel. Did you try searching specifically for flex-devel? If that doesn't work, here's one more possibility - go into YaST software installation, select the sort option Package Groups, and go to the bottom of the list - zzz All. Look through the whole alphabetical list - right after flex should be flex-devel (not the same thing as installing source code for flex). I have successfully built lfs with SuSE, but that was with 9.1 and 9.2. I haven't used 9.3 so I don't know what might have changed. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: module-init-tools-3.1 cannot find -lz
Ken Moffat wrote: On Tue, 20 Sep 2005, Chris Staub wrote: I suspect you have linked against the static library (and that Krishna probably didn't build the static library). http://developer.momonga-linux.org/viewcvs/trunk/tools/find-zlib You probably want to use 2/dev/null when you run it, or tee stdout to a file, because stderr gets inundated with messages about uninitialized values in pattern matches (don't remember that from previously, maybe the latest perl is more demanding). The definitive text for upgraded packages is usually to be found in the development book. If you are indeed linked against the static library, I'd better change the errata. Ken Yeah, apparently module-init-tools does link against the static library (libz.so doesn't show up in ldd output on any of the module-init-tools programs, on either my gcc4 system (with correct zlib.so.1.2.3 symlink) or my 6.1 system (with the wrong 1.2.2 symlink)). When I ran ldd on several programs that *do* link to zlib's shared library (like libpng, freetype, and fontconfig) they use /lib/libz.so.1 anyway, so maybe it doesn't really matter... Of course the symlink should be correct, but I still don't think that's the cause of the problem being discussed in this thread. As you said, Krishna probably just didn't build the static library. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: compile binutils failed due to undeclared function
Howard Wang wrote: I followed your instructions, there is no flex-devel after flex, there is only flac-devel which is not the right one. here is the list: flac-devel flac-xmms flamethrower flash-player flex FlghtGeaaar film I have successfully built lfs with SuSE, but that was with 9.1 and 9.2. I haven't used 9.3 so I don't know what might have changed. thanks I just checked the package list at suse.com - 9.3 sucks! Try finding an rpm of flex-devel for 9.2 or 9.1. If that doesn't work, build flex and bison from source, using the instructions in LFS Chap. 6 - http://www.linuxfromscratch.org/lfs/view/stable/part3.html. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Binutils-2.15.94.0.2.2
[EMAIL PROTECTED] wrote: Hello I have some problem. I use LFS 6.0 liveCD. This is problem. mkdir ../binutils-build cd ../binutils-build ../binutils-2.15.94.0.2.2/configure --prefix=/tools --disable-nls make (Hang) -- problem Thanks Does it give any output before it hangs, or is that all it does? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: help me out!!!!!!!!
umar wrote: Hi,friends This is umar from cdac.iam not getting how to bundle the packages and make it to bootable CD can any body help me out Regards: MOHD.UMAR Project Engineer CDAC Sorry, can't really help without more information. Is there anything specific you are having problems with? Have you read this page - http://www.linuxfromscratch.org/livecd/documentation.html ? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Sanity check error
Bryan Burke wrote: System: i-386; Intel Pentium III; Dell Inspiron 2500 laptop LFS version: 6.1 Topic: Chapter 5; Adjusting the Toolchain; sanity check Host system: Berry Linux LiveCD 0.62 (LFS LiveCD does not boot on my system) The following is the issue that presents itself when I attempt to perform the sanity check in chapter 5 under Adjusting the Toolchain before moving on to the tcl installation: lfs:/mnt/lfs/sources$ echo 'main(){}' dummy.c lfs:/mnt/lfs/sources$ cc dummy.c /tools/lib/libc.so.6: undefined reference to [EMAIL PROTECTED]' collect2: ld returned 1 exit status lfs:/mnt/lfs/sources$ readelf -l a.out | grep ': /tools' readelf: Error: 'a.out': No such file Trying with gcc instead of cc yields the same error message. I have performed all actions prescribed by the LFS book up to this point, and I have also attempted to correct the issue using the ways prescribed directly below the sanity check commands in the book. I have, however, had trouble with two commands in Binutils Pass 1. The commands /make -C ld clean/ and /make -C ld LIB_PATH=/tools/lib/ always either yield the messages /ld: no such file or directory/ or /nothing to be done in ld/. So, instead, I issued the command /make ld LIB_PATH=/tools/lib/, which seemed to have worked, but I am uncertain. I do not know if this is the cause of the sanity check problem, but I find that it is difficult to connect these two process failures. But I could be wrong, of course. Any help would be greatly appreciated, as I am no longer able to configure or make any packages. Thank you. If a command in the book does not work and you don't know why, please don't try anything different. If make -C ld LIB_PATH=/tools/lib didn't work then something went wrong earlier. Were you still in the binutils-build directory when you issued the make ld -C command? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: GCC make bootstrap fail
[EMAIL PROTECTED] wrote: Quoting Chris Staub [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Quoting Chris Staub [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: I use 20 GB. - filesystem 15 GB. - and swap 5 GB. Never mind, it looks like it ran out of space on your host system partition. You'll have to clear stuff out of that before continuing. I use lfslivecd 6.0. what is stuff. Then you might not have enough memory...the livecd loads its / filesystem into RAM. How much memory do you have? I have DDR 512 and cpu duron 1200. thanks. Are you unpacking sources onto your lfs partition? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: GCC make bootstrap fail
[EMAIL PROTECTED] wrote: Quoting Chris Staub [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: I have DDR 512 and cpu duron 1200. thanks. Are you unpacking sources onto your lfs partition? This is my step of gcc. 1. mkdir ../gcc-build 2. cp /sources/gcc-3.4.3.tar.bz2 /gcc-build 3. cd /gcc-build 4. ./configure --prefix=/tools \ --libexecdir=/tools/lib --with-local-prefix=/tools \ --disable-nls --enable-shared --enable-languages=c 5. make bootstrap 6. and has error. thanks. What directory are you starting in when you run these commands? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: hint on using the livecd 6.1 to make a lfs system (troubles)
Kendrick wrote: http://www.linuxfromscratch.org/hints/downloads/files/install-lfs-from-livecd.txt I have seen several people atempt to use this hint and are having some problems with it. somthing goes wrong with the setenv.sh. I am wondering if somthing needs to be ammended to this hint or if it needs to be shelved.. I would appriciate a thought on it.. Kendrick I can think of a few problems with the hint already. The main one is that it suggests that creating the lfs user is not needed. I disagree - I think the limited user can be useful even when you can't screw up the whole system. For example, it would keep you from accidently installing a package into /usr instead of /tools. I know that the hint says that this stuff doesn't matter because it won't permanently mess up the root filesystem (the worst that could happen is you have to reboot) but that kind of mistake could cause you to have to start the whole thing over - much better to prevent it to begin with. Also, the idea of setting up a script to recreate lfs user settings isn't needed either - just keep copies of .bash_profile and .bashrc somewhere on the partition where you're building ($LFS/tempenv directory or something like that). -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: hint on using the livecd 6.1 to make a lfs system (troubles)
Ian Armstrong wrote: I had a look at the 'install-lfs-from-livecd.txt', and it looks quite useful. I haven't tried it yet, but I am in the middle of building version 6.1, and I will try it tomorrow. I would suggest that it be kept. Ian. Check out my first reply to this topic - it can be kept, but some things need to be changed. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: chap 6.14 GCC build, failed
Howard Wang wrote: Hi All, while building gcc pass 2, it failed for the following: /usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory I checked both LFS /usr/include/ and /tools/include dir, the entire dir asm-generic is missing. do we need this dir ? can I copy the entire dir from my suse 9.3 host ? thanks howard /bin/sh ../../gcc-3.4.3/gcc/mkconfig.sh tconfig.h /sources/gcc-build/gcc/xgcc -B/sources/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -O2 -DIN_GCC-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc-3.4.3/gcc -I../../gcc-3.4.3/gcc/. -I../../gcc-3.4.3/gcc/../include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer \ -c ../../gcc-3.4.3/gcc/crtstuff.c -DCRT_BEGIN \ -o crtbegin.o In file included from /usr/include/linux/errno.h:4, from /usr/include/bits/errno.h:25, from /usr/include/errno.h:36, from ../../gcc-3.4.3/gcc/tsystem.h:85, from ../../gcc-3.4.3/gcc/crtstuff.c:62: /usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory make[1]: *** [crtbegin.o] Error 1 make[1]: Leaving directory `/sources/gcc-build/gcc' make: *** [all-gcc] Error 2 root:/sources/gcc-build# gcc pass 2 shouldn't even be looking in /usr/include. My /tools dir doesn't have an asm-generic directory either, so it's not needed. Check to see that you did the toolchain adjustment correctly, and check that you installed linux-libc-headers correctly. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: bash: /tools/bin/su: No such file or directory
Scott Loewen wrote: I am working on LFS 6.1 and have completed it through section 6.8. I am using the LFS LiveCD. I am also working through the more control and package management stuff. When I tried to switch to the linux-libc-headers user to install it, I received the following error: bash: /tools/bin/su: No such file or directory I have also tried it manually: root:/# su linux-libc-headers bash: /tools/bin/su: No such file or directory The file exists: root:/# ls -l /tools/bin/su -rwxrwxrwx 1 root root 20800 Oct 29 22:14 /tools/bin/su I cannot get su to work in the chroot environment. It works fine through a different console. So the file exists, su is found because /tools/bin is in $PATH, but it won't execute. I have tried searching in Google on this but I'm not familiar enough with the problem to be able to narrow down the search results. I figure I must have done (not done) something that would cause this, but I have no idea where to start. I have rebooted the system and redone chapter 6 up through 6.8, but there was no change. Any help would be much appreciated. Thanks, Scott You probably have su linked to host libraries. Try running ldd /tools/bin/su and paste the result here. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: bash: /tools/bin/su: No such file or directory
Scott Loewen wrote: Chris Staub wrote: You probably have su linked to host libraries. Try running ldd /tools/bin/su and paste the result here. Your comment tripped a memory. The more control and pkg mgmt calls for copying su from the coreutils directory to /tools/bin. I didn't know to do this until I had deleted the coreutils build directory, so I just copied su from /bin/su in the non-chroot environment. After I saw your comment I rebuilt coreutils and copied the new su to /tools/bin. Everything worked fine after I copied /tools/lib to /lib. Below are the results of ldd on the new su: Results from ldd /tools/bin/su: linux-gate.so.1 = (0xe000) libcrypt.so.1 = /lib/libcrypt.so.1 (0xb7fbb00) libc.so.6 = /lib/libc.so.6 (0xb7ed1000) /lib/ld-linux.so.2 (0xb7fee000) Is it just me or should there be a /tools in front of these paths? I included --prefix=/tools when I ran configure. Scott You shouldn't be copying anything (except of course what the book says to...ie su to /tools/bin). Yes, su should have /tools in those paths. I was about to ask if you recompiled coreutils as the lfs user, but then I remembered that you're in the chroot. If you've followed the book's instructions, you wouldn't be able to install anything else into /tools as the lfs user because you've changed ownership of that directory to root. How exactly did you recompile coreutils? From within the chroot, as root outside the chroot, or some other way? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: p54 'make -C ld clean' - no ld directory
Micheal E Cooper wrote: As an addition and in good faith, the only FAQ entry that looks like my problem is: ld: cannot find -lc You get a message early in chapter 5 (LFS-4.1) or at the first pass of gcc (LFS CVS) which ends like this: -static -o gengenrtl \ gengenrtl.o ../libiberty/libiberty.a ld: cannot find -lc collect2: ld returned 1 exit status Your host system is probably Mandrake 9 or higher. By default, its base system does not have a static C library (/usr/lib/libc.a) which is required for the static compilation of packages. You need to install the glibc-static-devel RPM, which is on the third CD. You can verify the succesfull installation by verifying that /usr/lib/libc.a exists. If you're using LFS 4.1, check that everything in $LFS/static/bin is built static by using file $LFS/static/bin/*. If a package is not statically linked, reinstall it with the instructions from chapter 5. However, it is not the same error message, and I am getting errors when I try to install binutils itself. Also, I am using FC4, not Mandrake. Do FC4 and Mandrake have the same problem? No, the Mandrake problem is a completely unrelated issue with a much older version of lfs (and I believe that entry should be removed from the FAQ). If I end up violated etiquette, please tell me and I will change my behavior. Now onto my problem: After I went through the bin-utils configure - make - make install sequence, I tried to execute the commands on page 54: make -C ld clean But an error tells me that there is no such directory as ld. The only thing that I can think would have caused a problem is that, the first time I tried to compile and install bin-utils, I did it using the time function, with the syntax on LFS page 53. It gave me a time to use for my SBU, but nothing was written to /tools. When I then did the commands separately, in the order they are written in the book, some things were installed in /tools. However, I still get the no ld directory error when I try to do 'make -C ld clean'. Using the time function won't change anything, assuming you typed everything correctly. Since I did everything in exactly the order in the book as user lfs, I was still in my binutils-build directory, when I did the 'make -C ld clean.' Thinking that maybe I was in the wrong place, I checked /tools to see if there was an ld dir, but there wasn't. Since the book never tells you to leave the binutils-build dir (until, of course, you've completely finished the installation) the ld dir is supposed to be in binutils-build. I have followed the book directions exactly, not customizing anything. I am using LFS 6.1, the stable version. My host system is FC4 default install. I am using packages copied from the latest LFS Live CD, and I confirmed that they are the same versions as the ones in the LFS book I am using, so I don't think packages are the problem. The only thing that might be relevant is the fact that the copied-over files belong to mcooper, not user lfs. Since the perm are 644, I did not think that was part of the problem. As far as permissions/ownership for the package tarballs, the only thing that matters is that they are readable by the lfs user (and since you managed to successfully unpack the binutils tarball you obviously can read it, so permissions are not an issue in this case). Also, I looked at the errata on the LFS site and checked the FAQs, but I did not see anything that looked like it might be relevant. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page Did you pay attention to the make output and make sure there were no errors? This kind of problem is likely due to missing some important package (last time I saw someone with this error it was due to missing bison and flex on the host system) so that it won't compile any of the binutils programs. Please paste the contents of config.log. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: p54 'make -C ld clean' - no ld directory
Ken Moffat wrote: On Fri, 4 Nov 2005, Andrew Benton wrote: Micheal E Cooper wrote: I have followed the book directions exactly, not customizing anything. I am using LFS 6.1, the stable version. My host system is FC4 default LFS-6.1 won't build on Fedora Core 4. Try a different host or try building the development version of LFS Andy Ah, yes. Micheal could also try the testing book (destined to become 6.1.1), which certainly builds on a (LFS-svn) host running gcc-4. Ken It does compile fine with regular GCC4, but from what I've heard (never used FC4 myself) the GCC4 in FC4 is really modified and just won't work, even with the GCC4 patch. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: chroot error
Marcus wrote: !!! The text was translated of google, sorry (German)!!! Good day, I have a problem to arrive into chroot the environment: chroot: cannot run command '/tools/bin/env': no such file or directory/ / I use the LFS Live CD 6.1 and had so far no me admitted errors. where is my problem? This problem is listed in the FAQ. It means you missed a step somewhere, or typoed something. Please log on as the lfs user and paste the results of ldd /tools/bin/env. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Errors building gcc 3.4.3
Francesco Piccirillo wrote: Thank you for your answer... Ok, I understand, I must follow the book natively. However I HAVE TO build a kernel with the stack protector option set on, that is a must. So, when do you suggest me to apply the right patches on the right packages during the entire process? Should I apply propolice patches in Pass1 or in Pass2 ? Thank you, Francesco if your doing make bootstrap I assume your doing gcc pass 1. If so - why have you applied the linkonce patch the no_fixedincludes patch the specs-2 patch ? I assume the ssp-3 patch is the stack protection patch, but the others should not have been applied. Pass1 you don't apply any patches, as the book says. Only apply patches where the book tells you to. If your not aware/confident of this procedure then you shouldn't really be playing with additional patches such as the stack protection patches, are you don't appear to be able to follow the book nativly, let alone customised. Matt -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page If you have to then you're not following the book (regardless, you don't need *any* patches in pass 1). Why do you need to ask where you apply the patches? If you're applying patches not mentioned in the book, you should know where they should go. If you need ssp, have you looked at HLFS? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Errors building gcc 3.4.3
Jeremy Huntwork wrote: Chris Staub wrote: If you have to then you're not following the book (regardless, you don't need *any* patches in pass 1). Why do you need to ask where you apply the patches? If you're applying patches not mentioned in the book, you should know where they should go. If you need ssp, have you looked at HLFS? Chris, please try to do some trimming in your replies. There's no need to include *everything* in the last two messages of the thread. We've all read it, we don't need to read it/download it again. Thanks. -- JH Oops, sorry...haven't been doing that much lately. Will try harder. :) -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS 6.1 LiveCD, Chapter 8.3
Micheal E Cooper wrote: This is my first time doing LFS, and I am just following the plain vanilla default, no-modifications route. In 8.3, the book suggests: Because of the complications with Hotplug, Udev, and modules, we strongly recommend starting with a completely non-modular kernel configuration, especially if this is the first time using Udev. I would like to follow that advice, so in 8.2, I included the line: usbfs/proc/bus/usb usbfs devgid=14,devmode=0660 0 0 in /etc/fstab, and the USB support is already set to be included in the default settings of the menu-driven kernel config. Are the defaults in the `make menuconfig` stage (the kernel configuration menu) OK or do I have to modify something to make this a completely non-modular kernel configuration? For example, Loadable module support is listed as built-in. Is leaving it that way okay? Modules generally work fine automatically, at least for the ones included with the kernel. You can go ahead and keep module support enabled. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS-6.1.1 released
Alan Lord wrote: Alan Lord wrote: Hi, I have just built (last night) a JHALFS build from SVN 271105. Is there any [much] difference between that version and 6.1.1? Thanks Alan Please ignore my previous post - I'm just plain stupid at 08:30am. Of course they are different - GCC4 v GCC 3 just for starters. Sorry for the noise. Al Nope. Have you looked at the book and read the Changelog? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: FC4 as a host [Was: Re: file format not recognized from ld right from the start????]
Stephen Liu wrote: Hi Hari, Why don't you just use the LiveCD? Oh, yes. I have LFS-LiveCD 6.1-3 here. I can't remember exactly whether it is necessary to intall it on the HD. OR just run it on the PC to install LFS on the empty HD, preformatted. I suppose I saw this posting before, installing LFS direct from LiveCD. I'll make a search later. Tks BR SL No, the LiveCD cannot be installed to the hard drive - that's the point of the LiveCD. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: FC4 as a host [Was: Re: file format not recognized from ld right from the start????]
Richard Westfield wrote: No, the LiveCD cannot be installed to the hard drive - that's the point of the LiveCD. That's not true. I've got the LiveCD installed on a partition, and have been using that for my builds. LFS 6.1 is the only distro I've found, in my very quick research, that met all of the host requirements to build LFS 6.1. Most every other one uses GCC 4, or is missing a ton of packages, or is configured too weird, or comes with a kernel that was compiled with GCC 2.95 It just wasn't worth the trouble. I just used the instructions here: Well, it's not *designed* to be installed on the hard drive. :p http://www.linuxquestions.org/questions/showthread.php?s=threadid=369365 LFS 6.1 built just fine for me that way. In fact, it was the only way I was able to get LFS 6.1 to build at all. Speaking of kernels compiled with 2.95, an entry should be made in the FAQ about that one. Glibc will fail so many tests with such a kernel, at least in Chapter 5. Yes, the tests aren't essential in Chapter 5, but if I can't it to compile there and pass the tests (like it's done on every other previous version), then I don't trust it. As it stands, I have to live with it because I just can't get it to pass every test in Ch5. But, it would have saved a lot of searching and heartache. I only found out about that after it failed one particular test, and I went to the 10th page in my Google search... rw Why does it need to be in the FAQ? The book itself says that you need a kernel =2.6.2 compiled with gcc = 3.0. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: minimum requirements
Mezlo wrote: Is there a list of the minimum requirements for a host system to successfully compile the packages from LFS? More specifically, what packages (and minimum versions) need to be installed on the existing host? The reason I'm asking is I'm attempting to do an LFS compile on my Playstation 2, which is running binutils-2.9EE-3a, gcc-2.95.2-3a, and kernel-2.2.1_ps2-7. As you can see, most packages have not been maintained since 2002 or so. In chapter 5, I successfully get through the make stage of binutils, but when I run make -C ld LIB_PATH=/tools/lib it dies with the error as: unrecognized option `-mwarn-short-loop'. Any info or recommendation will be greatly appreciated. If you think I'm nuts for even attempting this, I agree with you. ;) Mezlo There is a bug right now for adding that to the book - http://bugs.linuxfromscratch.org/show_bug.cgi?id=1598. Here is the list of requirements we have so far: bash binutils = 2.13 bzip2 coreutils diffutils findutils = 4.1.20 gawk = 3.0 gcc = 3.0 glibc gzip make = 3.79.1 patch perl sed = 4.0 tar -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Removing GCC and other stuff from install
Wim Godden wrote: Is there no easy way to remove all those things, so you keep only the bare system ? Check the LFS hints. There should be 1 or 2 on stripping your system down. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Booting LFS-6.1.1: Grub Error 17
Michael Weller wrote: Hello everybody, When I finished my LFS installation I chose not to install grub but instead re-configure my existing grub installation. So I added entries for my lfs system to the existing /boot/grub/menu.lst on my host system. My question is: Might that be related to getting grub's Filesystem type unknown, partition type 0xf; Error 17: cannot mount selected partition error while trying to boot? I'm absolutly sure that the partition where I installed lfs on is ext2 and that I entered the correct hd-number and partition number in /boot/grub/menu.lst. Furthermore the pc where I'm doing this only has one harddisc, no scsi, nothing that should make things more complicated. I searched google, but couldn't find anything that helped. Any pointers? Yours, Michael Hard to troubleshoot unless we know your exact configuration. Can you paste the contents of /boot/grub and paste your menu.lst file? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Booting LFS-6.1.1: Grub Error 17
Michael Weller wrote: Hello, Chris Staub wrote: Hard to troubleshoot unless we know your exact configuration. Can you paste the contents of /boot/grub and paste your menu.lst file? $ls /boot/grub device.map fat_stage1_5 menu.lst minix_stage1_5 stage1 xfs_stage1_5 e2fs_stage1_5 jfs_stage1_5 menu.lst~ reiserfs_stage1_5 stage2 $cat /boot/grub/menu.lst title gutschilinux 0.01 root(hd0,1) kernel /boot/lfskernel-2.6.11.12 root=/dev/hda4 - Please note: This is *not* a grub I installed with my LFS installation, but the old grub from my host system which I modified to include my LFS installation. I chose *not* to re-install grub like the book says. Btw, my host system is a Ubuntu 5.10. Looks like you have the necessary files in /boot/grub, but there seems to be a discrepency in your menu.lst for your lfs boot section. Is your LFS system on hda2 or hda4? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: instalation dependences
Aeliton Germano wrote: hi, I have a doubt: in the pages of lfs book(chap. 6) it shows 'Instalation depends on:'. does it means that i have to put all dependencies in my lfs system or i just have to put then in the toolchain? ex: glibc instalation depends on: bash, binutils, coreutils, diffutils, gawk, gcc, gettext, grep, make, perl, sed and texifo. should i have all this packages installed in my lfs system? if not how know which pakcages should be installed in the system? thanks, -- Aeliton Germano da Silva Ciência da Computação - Universidade Estadual do Ceará LFS User 16323 You just follow the book. The Depends on: simply shows what each package needs, but all you need to do is follow the book and those dependencies will be fulfilled. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Error in Entering the Chroot Environment
Chandan M. C. wrote: Hai , I did the command U told ... I got this output libc.so.6 = /lib/tls/libc.so.6 (0x006b2000) /lib/ld-linux.so.2 (0x00695000) What I shoud do now Regards Chandan On Wed, Dec 7, 2005, Chris Staub [EMAIL PROTECTED] said: Do su - lfs then run ldd /tools/bin/env. What is the output? Looks like you missed something in the toolchain-adjustment step - everything is supposed to be linked to /tools, not /lib. You'll need to start the whole build over. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: /etc/fstab
Ross wrote: Hello, I hope this question doesn't turn out to be a stupid as my last one but here goes anyway. I hav got to page 103 of the LFS book(6.1) and am mounting the virtual kernel files on the new filesystem with mount -t devpts -o gid=4,mode=620 none /dev/pts I get a warning can't open /etc/fstab: No such file or directory now I don't remember making fstab in a previous section, and wasn't expecting this warning. Is it an expected warning or have I done something wrong? -Ross- This is mentioned in the book, right below the mount commands. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: cc not found on compiling binutils
Chandan M. C. wrote: Hai , On Compiling binutils for LFS ... Iam getting following error .. cc not found ... Binutils cannot be compiled . Wht should I do ... to proceed Regards Chandan What part of the book are you at? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: error while making bin-utils
Amu wrote: Hi all, I got the error while running make command in on binutils. ./binutils-2.15.94.0.2.2/binutils/bucomm.c:425: warning: the use of `mktemp' is dangerous, better use `mkstemp' ar.o(.text+0x24): In function `mri_emul': ../binutils-2.15.94.0.2.2/binutils/ar.c:148: undefined reference to `yyparse' collect2: ld returned 1 exit status make[3]: *** [ar] Error 1 make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils' make: *** [all-binutils] Error 2 You're missing bison. You'll need to install bison and bison-devel packages. Regards: MOHD OMAR [EMAIL PROTECTED] -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: undefined reference to `yyparse'
Chandan M. C. wrote: Hai , I installed bison ,flex,m4 and getetxt ... Even though I ma gettign same error Try also installing the bison-devel package. On Wed, Dec 14, 2005, Justin R. Knierim [EMAIL PROTECTED] said: Try searching the archives first. This exact question was asked and answered today. http://archives.linuxfromscratch.org/mail-archives/lfs-support/2005-December/029360.html Justin -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: invalid group `root'
Stephen Liu wrote: Hi folks, lfs-6.1.1 host - lfs liveCD 6.1.1.2 chroot environment Following error popup on installing sysklogd-1.4.1 root:/sources/sysklogd-1.4.1# make install /usr/bin/install -o root -g root -m 644 sysklogd.8 /usr/share/man/man8/sysklogd.8 /usr/bin/install: invalid group `root' make: *** [install_man] Error 1 /etc/group exists with all colons on place; root:x:0: bin:x:1: sys:x:2: kmem:x:3: tty:x:4: tape:x:5: daemon:x:6: floppy:x:7: disk:x:8: lp:x:9: dialout:x:10: audio:x:11: video:x:12: utmp:x:13: usb:x:14: cdrom:x:15: End # cd $LFS # ls -l etc/ | grep group -rw-r--r-- 1 root 0170 2005-12-28 21:18 group -rw--- 1 root 0 6 2005-12-28 20:43 group_lock Remark: A file etc/group.lock was found with following line on it; 26708^@ Re-named it as group_lock but the problem did not go. Pls advise. TIA B.R. SL I've never seen this problem. All I can suggest (until someone else has a better idea) is to go through your command history and check what commands you actually entered and compare them with what's in the book. Perhaps there was a problem with the shadow installation. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS System not booting
James Henry wrote: I am running LFS SVN-20060506 my sytem configuration listed bellow, when booting /dev/hda2 kernel panicks stating that cannot mount rootfs, set root= value, which i have. am i correct about system still having a problem booting after a certain block on the hd. should i restructure my setup to include a small boot partition to use to boot multiple linux flavors from? Thanks -- James P. Henry That might not be the issue - usually this problem is caused by not compiling the root filesystem into the kernel. Is ext2 support compiled into the kernel, not as a module? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Building glibc in section 5.6
Clemens HAUPT wrote: Am Monday 09 January 2006 23:43 schrieben Sie: This would work. You could also download the LFS live cd. http://www.linuxfromscratch.org/livecd/ I did it. But what for? For making a bootable CD I need a host using Kernel 2.6 at least. With a machine with older Kernel the liveCD and all the packages is not of any use. I am not sure you understand the idea of the livecd. All you need is to download the iso image, and have the ability to burn it onto a CD. The current kernel version is irrelevent as long as you can burn CDs. The point is that the livecd provides everything you need to build LFS, including the kernel. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS 6.1- Chapter 6 doubt
boovarahan boovarahan wrote: Hi ! I am a linux newbie and tried to construct my first LFS system using LFS 6.1 CD. I got through successfully upto chater 5. In chapter 6 , I chrooted and before installing the softwares, I committed a blunder of deleting the $LFS/sources directory completely. Now I don't know how to proceed. Please advice me if I have to build it again from step 1. If not, please let me know how to proceed further. Thanks Boovarahan S You can just exit chroot and copy the sources there, or switch to another console and copy the files from there. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: (b)lfs and wireless
Matt Darcy wrote: Jeremy Monnet wrote: Hi all, First of all sorry for posting on 2 lists, but I'm not quite sure which one is the best for this question. I would have thought lfs, but I read a thread on blfs these days, so I'm just not quite sure anymore. (furthermore, this would maybe be even better on the dev list ...) I haven't seen (hope I didn't miss it) any related topics for wireless, such as compilation of wireless-tools, and scripts for the wireless to be setup at startup. Not a big issue at all (I have it running on lfs 6.0 with kernel 2.6.14 for an IPW2200), but I wonder if this is plan to add this in a next book, or if there is a reason for not supporting it at all ? Because of course having something working doesn't mean at all for me that I did the right thing at the right place ... Thanks, Jeremy Truthfull, Take into account the other cards, the other specific versions required to get the cards working, ndis etc etc and it would just be unmaintainable. Truth being told in my opinion anyone who is using LFS should be able to read up on the basics of installing wirless connectivity, and there are bunch of people on the lists/irc who have done it who will help out, but as it stands I don't think its realistic or fair to expect LFS/BLFS to cover wirless connectivity. Matt. I don't think he was asking to support various wireless networking hardware or how to setup the drivers - just instructions on how to use wireless_tools. If so, then I think it shouldn't be too much to add a single page to the networking section describing how to install wireless_tools, use encryption, etc... -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Book Chap 5.7 Adjusting the Toolchail II
Randy McMurchy wrote: Clemens Haupt wrote these words on 01/17/06 07:27 CST: I think you have experience enough so I'll allways keep your advice in mind! :-) Or, you could actually just read the book, and do everything on your own. You expect someone to actually read the book and figure it out themselves?! What are you thinking -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Fwd: ch 6 chroot na
daniel wrote: allo supprt team, and net friend clement, good day, i'd reached ch 6 aftet executing the chroot command string in that page, got result that chroot was not able to run the command /toos/bin/env. The chroot command string was run as root. please advise. thanks daniel lee You probably mean that it said /tools/bin/env: No such file or directory. This is mentioned in the FAQ. Either /tools/bin/env doesn't exist or it is linked wrong. Does /tools/bin/env exist? If so, what is the output of ldd /tools/bin/env? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: ch6 chroot
mrdaniel wrote: hi chris, as for your tips ldd/tools/bin/env, i had also run that, but its still no such file or directory. I did issue the command as follows :- # env enter it worked but only in chroot. FYI I'd spent 10 days trying out the LFS, and had learnt quite a fair bit more about the file structures. I had repeated more than 10 times repeating over many types of errors and finally at the 11th round, the LFS has reached thus far. But at the same time would llike to back track to the end of ch5.7, after running the dummy.c test. there was NO message output after the last line:- readelf -l a.out : ': /tools' . You shouldn't have gone any further after that. The book specifically says that if you have *anything* other than the output it says (or none at all) then there is a problem with your toolchain. You will need to start the whole build over. Please note that all the way from start till 5.7, all configure, make, make-install presented NO errors. what is your advise on that please. Will that readelf NO output has some relationship with ch6 chroot ? thanks. ciao daniel -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: ch6 chroot
Michiel Faber wrote: Chris Staub schreef: mrdaniel wrote: You don't need to mkdir /tools/include/asm. Just do as the book says. If the instructions didn't work then you missed something. I dont agree, i had to make the directory asm first too... It depends on your host version of mkdir. I also had the problem with the copy command for the headers. My host is ubuntu. michiel No you don't have to create any directories first. Can you paste EXACTLY what commands you typed (that supposedly didn't work)? Look at the lfs user's command history and paste it here. However, ubuntu is known to have issues with building lfs (has nothing to do with the installation of libc-headers though). -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: This was not all all classified as Spam ;)
mrdaniel wrote: hi clemens, excuse me for the typo entry, my apology. thanks for directing me to use linux mail instead and get into the support list. currently i have reply from a chris and i hope that we can get towards the goal asap. I hope to clearify the one line in tch5.5 whether it should be as printed in the book or got to add a /* to the line :- cp -Rv include/asm-i386/tools/include/asm and also that a mkdir /include/asm is to be carried out before that. have you got the experience in that ? ciao. daniel You don't need to add a /* to the end of the command either. The book's instructions ARE correct. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: round 11
mrdaniel wrote: hi everybody, this is my round 11 and took almost 6 solid hours. This time again no issue along the way, but at the end of 5.7, no message output at the dummy test. so far i follow exactly the book except at 5.7 the Adjusting of Toolchain, the script file did not prepend that /tools in the line in the specs and i used vi to do it manually. Its only ONE addition done as I can see. thanks. That means you mistyped it. You need to try it again, and make sure you double-check your typing. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: round 11
mrdaniel wrote: hi everybody, this is my round 11 and took almost 6 solid hours. This time again no issue along the way, but at the end of 5.7, no message output at the dummy test. so far i follow exactly the book except at 5.7 the Adjusting of Toolchain, the script file did not prepend that /tools in the line in the specs and i used vi to do it manually. Its only ONE addition done as I can see. thanks. You also need to check the time on your computer. You're several hours ahead. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: round 11
mrdaniel wrote: oh oh, i saw now that the pc clock is 01:14 but the date is 01/22/06 but may i ask has that got something to do with the dummy test ? and if i reset the date/time now will it be ok or i have to start all over. ciao No, it doesn't have anything to do iwth the sanity check, but it does screw up the order of messages in my email program. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: book version 6.1 , error happens in chapter 6.11 when i Re:Re: book version 6.1 , error happens in chapter 6.11 when i were compiling the glibc (Hari)
yu Qiang wrote: i have find something maybe the reason for that error i had read some papers and they said that the binuntils-2.15 can not be compiled correctly with fedora 4,so i try binutils-2.16.90.0.1.tar.bz2 as they mentioned,maybe it is He cause the error! today , i use the livecd to compile the binutils -2.15 ,and others ,i back to fedora 4 ,and continue the work ,and now , i pass the chapter 6.11 . go on with my work now ^_^ binutils-2.16.90.0.1 is not recommended. It is a development version - do not use it unless you really know what you're doing. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Book on LiveCD
Paul G Rogers wrote: It's not in the sources directory! It does me no good being in the booted system, I'm using my LFS-4.1 as host--it's much faster running from a HD than a CD. If you prefer to do it this way, then you can boot the CD, mount your HD and copy the book to somewhere on your HD. :) Yes, I suppose so. Why so much resistance to putting a copy of the book outside in the sources directory? Isn't it trivial to do? It would certainly help users, if that's important. I still run my 486 everyday and it can't boot a CD, but it CAN copy files out. Paul Rogers ([EMAIL PROTECTED]) http://www.xprt.net/~pgrogers/ http://www.geocities.com/paulgrogers/ Rogers' Second Law: Everything you do communicates. (I do not personally endorse any additions after this line. TANSTAAFL :-) You can always just download a tarball of the book from the LFS download site and add that to your sources dir. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: ln
Clemens Haupt wrote: On Sunday 22 January 2006 12:30, you wrote: man bash Danke! When the lfs partition is mounted, all ln -s are here again Where is that stored? Kind regards Clemens I don't know what you mean. Where is what stored? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: 6.11 - glibc config error
mrdaniel wrote: i'd already came to this stage untaring the glibc once again as follows: I have no name!://sources# tar -xvf glibc-2.3.4.tat.bz2 cd into the new glibc source directory and did the 3 patches, mkdir ../glibc-build. cd ../glibc-build then in ...glibc-build# ../configure with options according to the book on pg 87 But after a short run... saw this message :- checking for suffix of object files ... configure:error:connot compute suffix of files: cannot compile. can someone assist please. thanks. Looks like your gcc is broken - exit chroot and run ldd /tools/bin/gcc as the lfs user, and paste the output here. Also, your bash prompt shouldn't say I have no name! at this point - you missed something earlier in Chap. 6. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: 6.11 - glibc config error
mrdaniel wrote: hi chris, found the command to exit chroot and in lfs did ldd /tools/bin/gcc the result is :- linux-gate.so.1 = (0xe000) libc.so.6 =- /lib/llibc.co.6 (0xb7efd000) /lib/ld-llinux.so.2 (0xb7fee000) thanks. --- mrdaniel [EMAIL PROTECTED] wrote: hi chris, wow, you are sharp, looking back at my log book i could have missed that line on pg 81 :- exec /tools/bin/bash --login +h but how do i get out of chroot, there is no command when i used su and others like less as well. yuu ask me to paste the output here and what do you meant. if paste in the email then not possible because my PC under this LFS project is a barebone and has no floppy drive. ciao --- Chris Staub [EMAIL PROTECTED] wrote: mrdaniel wrote: i'd already came to this stage untaring the glibc once again as follows: I have no name!://sources# tar -xvf glibc-2.3.4.tat.bz2 cd into the new glibc source directory and did the 3 patches, mkdir ../glibc-build. cd ../glibc-build then in ...glibc-build# ../configure with options according to the book on pg 87 But after a short run... saw this message :- checking for suffix of object files ... configure:error:connot compute suffix of files: cannot compile. can someone assist please. thanks. Looks like your gcc is broken - exit chroot and run ldd /tools/bin/gcc as the lfs user, and paste the output here. Also, your bash prompt shouldn't say I have no name! at this point - you missed something earlier in Chap. 6. There's the problem. Your gcc is linked against the host's libraries. You likely missed a step in the toolchain adjustment, or the gcc specs patch. You need to start the whole build over. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: 6.11 - glibc config error
Randy McMurchy wrote: Chris Staub wrote these words on 01/22/06 22:44 CST: [snip many, many lines] There's the problem. Your gcc is linked against the host's libraries. You likely missed a step in the toolchain adjustment, or the gcc specs patch. You need to start the whole build over. Chris, could you attempt to trim the original message just a bit? (actually quite a bit) Quoting 50 lines to reply with one little paragraph is borderline bad etiquette (no, it is bad, but I'm trying to be nice). I know - it was because mrdaniel had top-posted (without trimming the previous message himself) and I just didn't think to check the message before sending it. I sent a message him about this (although it was only sent to him, not the list, since he has a habit of adding himself to the CC: list for these messages). -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: 6.11 - glibc config error
mrdaniel wrote: hi chris, to start all over i will, but may i be advised at which point to apply the ldd and what to expect. That should be helpful to all as well i suppose. thanks. You simply make sure you follow all of the book's instructions, especially the toolchain sanity checks. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: 6.11 - glibc config error
mrdaniel wrote: chris, but it passed the sanity check. the message was diaplayed after the readelf ... command as: [requesting program interpreter: /tools/lib/ld-linux.so.2] thus it seemed that all was well up to that point. your advise please. thanks It doesn't matter...gcc itself is still linked against the host - it is possible you didn't apply the specs patch. It *may* work if you simply recompile GCC pass 2 and go from there. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: 6.11 - glibc config error
mrdaniel wrote: may i enquire is that typo error,because ref back to the book the lib line was make -C ld LIB_PATH=/tools/lib ciao Please stop adding yourself to the CC lists on messages you send - this frequently causes replies that we send to be sent just to you and not the list, which causes issues for anyone else trying to help because they can't see everything that you tried or what other people have told you. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS-Book, Chapter 6 reentering for 6.9
Clemens Haupt wrote: To whom it may concern! There might be a lot of scripts if one have to leave the building process after he once came up as the chrooted root sucessfully. So I have minimized the number of issues to necessarily have to be made for an environment to go on building and compiling. I would be glad if it could be tested by anyone other, thank you. You can just use the scripts suggested in the livecd hint (but ignore everything else in that hint...). Not a problem, just a curiosity: Chapter 6.1: The remainder of this book is to be performed while logged in as user root and no longer as user lfs. Also, double check that $LFS is set. And as I'm told, in $LFS/sources there only should be buinutils from before. And in chapter 6.3 one should chroot. But im chapter 6.9 one needs the headers cp -R include/asm-i386 /usr/include/asm How? Which? From where? It tells you right in the book - the linux-libc-headers - the same package you unpacked in chapter 5. I really don't see why this is difficult to understand. On the LiveCD there arn't any and which is unaccessible and to where? Neither asm nor asm-i386 has been built before. But much more funny cp -R include/linux /usr/include chown -R root:root /usr/include/{asm,linux} It tells you in the book right before this that you are to chrooted. Again, what is difficult to understand about this? You just follow the instructions in the book. Who should do it? The root of the LiveCD or the chrooted one? Where to get the sources from? The sources should be in the exact same place they've always been - in $LFS/source...unless of course you removed them. So one should have ignored the hints and not deleted linux-libcheaders- -2.6.11.2/ in $LFS/sources because there is the so called asm-i386 and inspite of cp -R include/linux /usr/include made linux inside. then as changed root cd /sources/linux-libc-headers-2.6.11.2 and copy. But not cp -R include/asm-i386 /usr/include/asm! Better cp -R include/asm-i386/* /usr/include/asm if it's the best choice and cp -R include/linux/* /usr/include/linux Now I just plain don't know what you're talking about. The book IS clear and it is simple to understand - you unpack the tarball, enter that directory, and follow the instructions - exactly as you did in Chapter 5, as stated in section 5.1. You seem to be in need of going over the book's suggested Linux prerequisites before trying LFS again. Sometimes the Book is perfectly clear, but not here. Who did write this chapter? Kind regards Clemens -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: ptys
mrdaniel wrote: allo support, in ch6.13 afer running expect -c spawn ls got :- the system has no more ptys. ... so how do create more ptys before i can continue. thanks Check the LFS FAQs, and please start reading the book more before coming here and asking a bunch of questions that are answered in the book. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: spawnig too fast
Subhash Chandra wrote: @mr.danial I have an advise for you even if the rest of them decide I'm crazy! As you seem to be hell bent over LFS, get the livecd and use jhalfs or nalfs. You don't need much config there and default works fine. Once you get the system up and running, go for blfs and you'll get some package compiling and building experiance. After that you can always go back to building lfs. I'm not going to mince words...this is the worst advice you can possibly offer an LFS newbie. ALFS is for experienced LFS builders who know what they're doing. If you are not able to build an LFS system yourself then you won't be able to do anything with the system that ALFS builds. Anyone who thinks that ALFS is a substitute for building a system yourself should just be using a precompiled Linux distro (which has been suggested to mrdaniel numerous times). Use that FIRST, then, after you get experience knowing how to use Linux, retry building LFS. As an interesting aside, there are two stanford grads. Please do support them and their little project. You see, their names are Larry Page Sergey Brin, and the project is called google. This IS a good suggestion. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: PTY test
Richard Melville wrote: Hi This is my third attempt at building LFS 6.1 as I have not had enough time to complete before. Each time I have reached the PTY test after the installation of *dejagnu*, and issued the command *expect -c spawn ls* the shell just echoes *spawn ls*. Why is this? Thanks in advance Richard That's exactly what it's supposed to do. As mentioned in the book, what you *don't* want is for it to say that you are out of pty's. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: binutils config error
Ungvari Gabor wrote: Hi, So, I have installed libgmp3 and then libmpfr and config for binutils was clean. Then binutils has been succesfully built. Then came the second package: gcc. Its config was ok but 'make bootstrap' has failed... Here is the error message: -8 creating reloadable object files... creating a temporary reloadable object file: .libs/libgcj.la-2.o /tools/i686-pc-linux-gnu/bin/ld -r -o .libs/libgcj.la-1.o .libs/prims.o .libs/jni.o .l ibs/exception.o .libs/resolve.o .libs/defineclass.o .libs/inter..her e was lots of object file name..java/awt/peer/.libs/MenuComponentPeer.o java /awt/peer/.libs/MenuItemPeer.o make[3]: *** [libgcj.la] Error 137 make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libjava' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libjava' make[1]: *** [all-target-libjava] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build' make: *** [bootstrap] Error 2 -8 So, do you have any guess for this 'Error 137'? Anyway, thanks for the help so far! Gabor Why did you install gmp? It wasn't needed. Also, you shouldn't even be trying to build java. Please double-check what you typed and paste your configure command for gcc here. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: binutils config error
Ungvari Gabor wrote: Chris Staub [EMAIL PROTECTED] írta: You are right Chris. I missed one letter from configure command:) I corrected it. Anyway I put it here since I still face some problem. So, config command: /mnt/lfs/sources/gcc-build$ ../gcc-3.4.3/configure --prefix=/tools --libexecdir=/tools/lib/ --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c Then I attempted make bootstrap. And it has failed with following error: --- 8 - xgcc: Internal error: Killed (program cc1) Please submit a full bug report. See URL:http://gcc.gnu.org/bugs.html for instructions. make[2]: *** [insn-attrtab.o] Error 1 make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc' make[1]: *** [stage2_build] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc' make: *** [bootstrap] Error 2 --- 8 - With google search I find a similar error message here: http://pastebin.linuxfromscratch.org/?show=1160 but I can't find solution yet. Have you seen this error and know what can I do with it? Gabor Did you remove the gcc source and build dirs before trying again? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lfs ppc support
On Friday 17 February 2006 11:19, info (Giardina_Software) wrote: Hello all, does anyone here has complete the lfs/clfs book for ppc filesystem?? Suggestion or help is appeciated as to start.. Thanks at all.. Marco If you read the CLFS book, you'll see that there is in fact a ppc book. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: When booting LFS-file system error.
On Monday 20 February 2006 14:25, kshama shepal wrote: Hi, This is a 2nd letter of mine on this list. The solutions I got for my previous problem were really helpful. Rerunning Udevstart did solve the problem. Thanks for the help. Now, I m stuck in another error. When booting of my LFS 6.0 starts, it shows following error- Mounting root file system in read only mode ..[OK] Fsck.ext2 : File system has unsupported features (/dev/hda3) E2fsck : get a newer version of e2fsck ! File system errors were encountered that couldnt be fixed automatically.This system cannot continue to boot and will therefore be halted until those errors fixed manually by system administrator. ..[FAILED] When you press enter this system will be halted. Press Enter to continue hda3 is my LFS partition. I dont understand why it mounts root fs in read-only mode. I have created menu.lst such that I can boot my host Sounds like you created the LFS partition with a host e2fsprogs that uses custom features. Check in section 2.3 of the book for more information about this. Try booting with the host system and running debugfs -R feature /dev/[lfspartition] to check. If it does report custom features, then all you can do is restart the build from the beginning, recreating the partition with the stock e2fsprogs. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: When booting LFS-file system error.
On Monday 20 February 2006 15:42, thorsten wrote: Sounds like you created the LFS partition with a host e2fsprogs that uses custom features. Check in section 2.3 of the book for more information about this. Try booting with the host system and running debugfs -R feature /dev/[lfspartition] to check. If it does report custom features, then all you can do is restart the build from the beginning, recreating the partition with the stock e2fsprogs. Chris, just for my curiosity: wouldn't it be possible to boot into the host distro and tar the whole LFS partition up. Then recreate the LFS partition with e.g. the LFS-live-CD and restoring the tared-up LFS system on this new partition? regards, Thorsten Hmm, I forgot about that...yeah, you can do that instead. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS Sed
JK hcc wrote: Hello, I am a newbie and trying to install LFS on a PII 400MHz. The first problem i encounter is that, when i type the line below i get an error. lfs:/tools/lib$ SPECFILE=`gcc --print-file specs` sed 's@ /lib/ld-linux.so.2@ /tools/lib/[EMAIL PROTECTED]' \ $SPECFILE tempspecfile mv -f tempspecfile $SPECFILE unset SPECFILE sed: unreconized option '--print-file' I hope you can help me Thanks You probably used the wrong quote marks. You need ` not ' -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: GRUB problem
Ellis Wilson wrote: Hey all, Finally finished my shiny new linux system, ran great, then went and wanted to install Win2Kpro on the third partition on my harddisk (1st is LFS, 2nd swap, 3rd Win2k). I put windows on and miraculously it treats my system like its the only OS on it. No big deal I think and put in the lfs disk I downloaded from the site and go back in, mount my system (which looks fine/untoutched), chroot in, and go into grub. Planning to simply follow the chapter 8 instructions on making grub install itself back into the MBR I type in root(hd0,0) and it replys: Error 21: Selected disk does not exist So I just type in root to find out what does exist and it replys: (fd0): Filesystem type unknown, partition type 0x0 I have no clue what to do and even when I try to root(fd0) it gives me the same (first) reply. Thanks all trying not to lose a weeks worth of learning linux and building my own system. Ellis You don't need to chroot to install grub. Just run grub directory from the livecd. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Libpng Errors
Alberto Hernando wrote: El Jueves, 2 de Marzo de 2006 11:00, Lord Igtenio escribió: I even went so far as to add /usr/include to the PATH and PKG_CONFIG variables, thinking that'd help locate it, but it didn't do any good. Any other ideas on what could be going on? Hi. Some days ago, I had a similar problem. My packages couldn't find libpng, but it was installed. It seemed that pkg-config wasn't working well. I did a link between /usr/lib/pkgconfig and /us/lib/pkg-config. I know that you can define variables for that, but recently the name changed. I'm not sure, but perhaps some packages have one of those names hardcoded and it fails. You can't lose anything if you try, but for me it solved all my problems of this kind. Alberto This is not the problem. If this is necessary then your system is broken. I would check to see where packages are linking. What is the output of ldd /usr/bin/gcc? -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: error while installing glibc in chap 6 plz help
himanshu pahuja wrote: hello everyone i m installing glibc in chap6 (lfs ver 6.1.1 using live cd ) but i am getting an error msg when i try to configuer using ../glibc-2.3.4/configure.. command ../glibc-2.3.4/configure: line 250:sed :command not found .. .. configure error :cannot find instal-shor instal.sh in scripts .. .. i have checked the scripts directory also instal-sh exists plz tell me what is the problem himanshu pahuja c-dac noida The error message tells you the problem - it can't find the sed program. You forgot to install sed in chapter 5. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: error while installing glibc in chap 6 plz help
himanshu pahuja wrote: hey chris thanx for rplying but i have installed sed in chap5 and have verified it after installing sed also i m getting this msg what to do plz help himanhsupahuja c-dac noida If it says sed: command not found then either you don't have it or the system can't find it. From within chroot, what is the output of ls /tools/bin/sed and echo $PATH? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problem building Texinfo after NCurses, ncurses don't work.
Diogo Franco wrote: When building Texinfo for LFS 6.1.1, I get the following error message right after the program makedoc, but the libncurses.so.5 library was installed right before it and it is on ldconfig search path. LDD can't find the library with the makeinfo program, but can find it for the ncurses demo programs. The error lines are marked in red. [EMAIL PROTECTED]:/lfs/texinfo-4.8$ make make all-recursive make[1]: Entering directory `/media/hda4/texinfo-4.8' Making all in intl make[2]: Entering directory `/media/hda4/texinfo-4.8/intl' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/media/hda4/texinfo-4.8/intl' Making all in m4 make[2]: Entering directory `/media/hda4/texinfo-4.8/m4' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/media/hda4/texinfo-4.8/m4' Making all in lib make[2]: Entering directory `/media/hda4/texinfo-4.8/lib' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/media/hda4/texinfo-4.8/lib' Making all in info make[2]: Entering directory `/media/hda4/texinfo-4.8/info' rm -f doc.c key.c funs.h ..//info/makedoc ./session.c ./echo-area.c ./infodoc.c ./m-x.c ./indices.c ./nodemenu.c ./footnotes.c ./variables.c ..//info/makedoc: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory make[2]: *** [funs.h] Error 127 make[2]: Leaving directory `/media/hda4/texinfo-4.8/info' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/media/hda4/texinfo-4.8' make: *** [all] Error 2 [EMAIL PROTECTED]:/lfs/texinfo-4.8$ ldd info/makedoc linux-gate.so.1 = (0xe000) libncurses.so.5 = not found libc.so.6 = /lfs/tools/lib/libc.so.6 (0xb7e0a000) /tools/lib/ld-linux.so.2 (0xb7f26000) [EMAIL PROTECTED]:/lfs//texinfo-4.8$ sudo ldconfig -p | grep ncurses libncursesw.so.5 (libc6) = /lib/libncursesw.so.5 libncurses.so.5 (libc6) = /tools/lib/libncurses.so.5 libncurses.so.5 (libc6) = /usr/lib/libncurses.so.5 libncurses.so.5 (libc6) = /lib/libncurses.so.5 libncurses.so (libc6) = /tools/lib/libncurses.so libncurses.so (libc6) = /usr/lib/libncurses.so [EMAIL PROTECTED]:/lfs/texinfo-4.8$ ldd ../ncurses-5.5/test/ncurses linux-gate.so.1 = (0xe000) libform.so.5 = /lfs/ncurses-5.5/lib/libform.so.5 (0xb7eef000) libmenu.so.5 = /lfs/ncurses-5.5/lib/libmenu.so.5 (0xb7ee8000) libpanel.so.5 = /lfs/ncurses-5.5/lib/libpanel.so.5 (0xb7ee4000) libncurses.so.5 = /lfs/ncurses-5.5/lib/libncurses.so.5 (0xb7ea2000) libc.so.6 = /lfs/tools/lib/libc.so.6 (0xb7d87000) /tools/lib/ld-linux.so.2 (0xb7efc000) The clear program also doesn't work, same error message as makedoc. 1. You need to be using /tools, not lfs/tools. 2. You installed ncurses into /lfs/ncurses, not /tools. You must start the entire build over, and start following the book. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: help
himanshu pahuja wrote: hi everyone i am facing another problem while installing perl-5.8.7( i am using ver 6.1.1 and live cd) after make the last cmd on page 72 says to cp -Rv lib/* /toools/lib/perl5/5.8.7 it say sit cant create file /toools/lib/perl5/5.8.7 permission denied plz help what to do thanx in advance himanshu pahuja Is $LFS/tools owned by the lfs user? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problem building Texinfo after NCurses, ncurses don't work.
Chris Staub wrote: Diogo Franco wrote: When building Texinfo for LFS 6.1.1, I get the following error message right after the program makedoc, but the libncurses.so.5 library was installed right before it and it is on ldconfig search path. LDD can't find the library with the makeinfo program, but can find it for the ncurses demo programs. The error lines are marked in red. [EMAIL PROTECTED]:/lfs/texinfo-4.8$ make make all-recursive make[1]: Entering directory `/media/hda4/texinfo-4.8' Making all in intl make[2]: Entering directory `/media/hda4/texinfo-4.8/intl' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/media/hda4/texinfo-4.8/intl' Making all in m4 make[2]: Entering directory `/media/hda4/texinfo-4.8/m4' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/media/hda4/texinfo-4.8/m4' Making all in lib make[2]: Entering directory `/media/hda4/texinfo-4.8/lib' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/media/hda4/texinfo-4.8/lib' Making all in info make[2]: Entering directory `/media/hda4/texinfo-4.8/info' rm -f doc.c key.c funs.h ..//info/makedoc ./session.c ./echo-area.c ./infodoc.c ./m-x.c ./indices.c ./nodemenu.c ./footnotes.c ./variables.c ..//info/makedoc: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory make[2]: *** [funs.h] Error 127 make[2]: Leaving directory `/media/hda4/texinfo-4.8/info' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/media/hda4/texinfo-4.8' make: *** [all] Error 2 [EMAIL PROTECTED]:/lfs/texinfo-4.8$ ldd info/makedoc linux-gate.so.1 = (0xe000) libncurses.so.5 = not found libc.so.6 = /lfs/tools/lib/libc.so.6 (0xb7e0a000) /tools/lib/ld-linux.so.2 (0xb7f26000) [EMAIL PROTECTED]:/lfs//texinfo-4.8$ sudo ldconfig -p | grep ncurses libncursesw.so.5 (libc6) = /lib/libncursesw.so.5 libncurses.so.5 (libc6) = /tools/lib/libncurses.so.5 libncurses.so.5 (libc6) = /usr/lib/libncurses.so.5 libncurses.so.5 (libc6) = /lib/libncurses.so.5 libncurses.so (libc6) = /tools/lib/libncurses.so libncurses.so (libc6) = /usr/lib/libncurses.so [EMAIL PROTECTED]:/lfs/texinfo-4.8$ ldd ../ncurses-5.5/test/ncurses linux-gate.so.1 = (0xe000) libform.so.5 = /lfs/ncurses-5.5/lib/libform.so.5 (0xb7eef000) libmenu.so.5 = /lfs/ncurses-5.5/lib/libmenu.so.5 (0xb7ee8000) libpanel.so.5 = /lfs/ncurses-5.5/lib/libpanel.so.5 (0xb7ee4000) libncurses.so.5 = /lfs/ncurses-5.5/lib/libncurses.so.5 (0xb7ea2000) libc.so.6 = /lfs/tools/lib/libc.so.6 (0xb7d87000) /tools/lib/ld-linux.so.2 (0xb7efc000) Also, why are you using so many different directories? I see /lfs/ncurses, /lfs/texinfo, /media/hda4, /tools...all should be using is $LFS/sources to build from, and /tools (linked to $LFS/tools) to install to. When you are using all these different dirs it makes it very difficult to help you. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: stty: command not found
Tom wrote: I had a problem with coreutils so I reinstalled it now I get stty: command not found after rebooting? Please help Does /bin/stty exist? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problem with mount, umount or more...
laurent wrote: Justin R. Knierim wrote: laurent waro wrote: line whith mount, it says to me that /tools/bin/mount does not exist. You can try rebuilding util-linux, but likely: http://www.linuxfromscratch.org/lfs/faq.html#any-no-such-file Justin Thanks Justin. I followed the instructions provided by http://www.linuxfromscratch.org/lfs/faq.html#any-no-such-file but it still don't work. Note that i tested the other packages installed in chapter 5 before utils-linux and everything is good. The problem occurs only with utils-linux. Perhaps it's because I installed all the packages in chapter 5 in bash scripts. Perhaps must I change my distribution in order to success in installation of LFS... Actually, i use Ubuntu 5.10. Anybody can help? The host distro is fine. You probably forgot the sed command in chap. 5 util-linux instructions. Using scripts is not a problem - what is a problem is when you don't put all the correct commands in the scripts, and that must be what you did. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page