Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am really new to LFS; and have completed everything up to 5.8, but when I complete the sanity check on everything I had done up to that point; it fails to achieve the required result. Does anyone know what I did wrong?
Thanks for any help.
Code:
lfs@LFS-Development:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs
lfs@LFS-Development:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ $LFS_TGT-gcc -dumpspecs | sed \
> -e 's@/lib\(64\)\?/ld@/tools&@g' \
> -e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS
lfs@LFS-Development:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ echo "New specs file is: $SPECS"
New specs file is: /tools/lib/gcc/i686-lfs-linux-gnu/4.6.2/specs
lfs@LFS-Development:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ unset SPECS
lfs@LFS-Development:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ echo 'main(){}' > dummy.c
lfs@LFS-Development:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ $LFS_TGT-gcc -B/tools/lib dummy.c
/tools/lib/gcc/i686-lfs-linux-gnu/4.6.2/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
/tools/lib/gcc/i686-lfs-linux-gnu/4.6.2/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/tools/lib/gcc/i686-lfs-linux-gnu/4.6.2/../../../../i686-lfs-linux-gnu/bin/ld: cannot find -lc
/tools/lib/gcc/i686-lfs-linux-gnu/4.6.2/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
collect2: ld returned 1 exit status
lfs@LFS-Development:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ readelf -l a.out | grep ': /tools'
readelf: Error: 'a.out': No such file
lfs@LFS-Development:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ echo $LFS_TGT
i686-lfs-linux-gnu
So you had a error with glibc about msgfmt it dose say that this is harmless.
Can you post the output of the version-check hereto make sure ubuntu in compatible.
lfs@LFS-Development:/mnt/lfs/sources$ bash version-check.sh
bash, version 3.2.48(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.19.1
version-check.sh: line 8: bison: command not found
yacc not found
bzip2, Version 1.0.5, 10-Dec-2007.
Coreutils: 6.10
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.0
version-check.sh: line 17: gawk: command not found
/usr/bin/awk -> /usr/bin/mawk
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
(GNU libc) 2.9
GNU grep 2.5.3
gzip 1.3.12
Linux version 2.6.28-11-generic (buildd@palmer) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009
version-check.sh: line 27: m4: command not found
GNU Make 3.81
patch 2.6.1
Perl version='5.10.0';
GNU sed version 4.1.5
tar (GNU tar) 1.20
version-check.sh: line 33: makeinfo: command not found
Texinfo:
version-check.sh: line 34: xz: command not found
gcc compilation OK
bash, version 3.2.48(1)-release
/bin/sh -> /bin/dash << should be /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.19.1
version-check.sh: line 8: bison: command not found <<bison needs to be installed
yacc not found
bzip2, Version 1.0.5, 10-Dec-2007.
Coreutils: 6.10
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.0
version-check.sh: line 17: gawk: command not found <<gawk needs to be installed
/usr/bin/awk -> /usr/bin/mawk <<this should point to /usr/bin/gawk
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
(GNU libc) 2.9
GNU grep 2.5.3
gzip 1.3.12
Linux version 2.6.28-11-generic (buildd@palmer) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009
version-check.sh: line 27: m4: command not found <<this
GNU Make 3.81
patch 2.6.1
Perl version='5.10.0';
GNU sed version 4.1.5
tar (GNU tar) 1.20
version-check.sh: line 33: makeinfo: command not found <<this
Texinfo:
version-check.sh: line 34: xz: command not found << this
gcc compilation OK
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.