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.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,151
Rep:
fix the errots from the version script, then start again, dont reuse the tools from chap 5 start completly from fresh, if your host is not complient you will not be able to build LFS
Last edited by Keith Hedger; 08-27-2016 at 12:08 PM.
Reason: wish i culd tpye
None of these errors but same problem: gawk too old or missing
Hello,
I have the same problem (gawk too old or missing) at the same step (Chapter 6.9). However, I don't have any of these errors in the version-check.sh script. Here is the output of it:
root@desktop-mkc5ii4:/home/para# bash version-check.sh
bash, version 4.4.18(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Debian) 2.30
bison (GNU Bison) 3.0.4
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.28
diff (GNU diffutils) 3.6
find (GNU findutils) 4.7.0-git
GNU Awk 4.1.4, API: 1.1 (GNU MPFR 4.0.1-rc1, GNU MP 6.1.2)
/usr/bin/awk -> /usr/bin/gawk
gcc (Debian 7.3.0-5) 7.3.0
g++ (Debian 7.3.0-5) 7.3.0
(Debian GLIBC 2.27-2) 2.27
grep (GNU grep) 3.1
gzip 1.6
Linux version 4.14.0-kali3-amd64 (devel@kali.org) (gcc version 7.3.0 (Debian 7.3.0-3)) #1 SMP Debian 4.14.17-1kali1 (2018-02-16)
m4 (GNU M4) 1.4.18
GNU Make 4.1
GNU patch 2.7.6
Perl version='5.26.1';
sed (GNU sed) 4.4
tar (GNU tar) 1.29
version-check.sh: line 47: makeinfo: command not found
xz (XZ Utils) 5.2.2
g++ compilation OK
Here is the output of the ../configure for glibc:
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include -isystem /usr/include
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include -isystem /usr/include accepts -g... yes
checking for readelf... readelf
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ can link programs... yes
checking for sysdeps preconfigure fragments... aarch64 alpha arm hppa i386 m68k microblaze mips nios2 powerpc riscv s390 sh sparc x86_64 checking whether gcc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/includ
e -isystem /usr/include compiles in -mx32 mode by default... no
checking for use of fpu sysdeps directories... yes
checking for -fstack-protector... yes
checking for -fstack-protector-strong... yes
checking for -fstack-protector-all... yes
checking for assembler and linker STT_GNU_IFUNC support... yes
checking for gcc attribute ifunc support... yes
checking if compiler warns about alias for function with incompatible types... yes
checking sysdep dirs... sysdeps/unix/sysv/linux/x86_64/64 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/x86 sysdeps/x86/nptl sysdeps/unix/sysv/linux/wordsize-64 sysdeps/x86_64/nptl sysdeps/unix/sysv/linu
x sysdeps/nptl sysdeps/pthread sysdeps/gnu sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/x86_64 sysdeps/unix sysdeps/posix sysdeps/x86_64/64 sysdeps/x86_64/fpu/multiarch sysdeps/x86_64/fpu sysdeps/x86/fpu sysd
eps/x86_64/multiarch sysdeps/x86_64 sysdeps/x86 sysdeps/ieee754/float128 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64/wordsize-64 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/wordsize-64 sysdeps/ieee75
4 sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether /tools/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/as is GNU as... yes
checking whether /tools/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld is GNU ld... yes
checking for /tools/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/as... /tools/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/as
checking version of /tools/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/as... 2.31.1, ok
checking for /tools/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld... /tools/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld
checking version of /tools/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld... 2.31.1, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 4.2.1, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.19.8.1, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 6.5, ok
checking for sed... sed
checking version of sed... 4.5, ok
checking for gawk... no
checking for bison... bison
checking version of bison... 3.0.5, ok
checking if gcc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include -isystem /usr/include is sufficient to build libc... yes
checking for nm... nm
checking for python3... no
checking for python... no
configure: error:
*** These critical programs are missing or too old: gawk
*** Check the INSTALL file for required versions.
You could try to skip to § 6.59 and install gawk before glibc. If that doesn't work than
back out of your chroot and install it to /tmp from § 5.23. Do not adjust the toolchain
in the next section or you'll end up with a nonviable temp tool chain.
- I tried to install Gawk before glibc. It doesn't work. Another error appears:
"./config.status: line 1172: awk: command not found.
I don't know how to install Makeinfo. Maybe I'm wrong, but there is no package with this name in the sources directory. Do you know how to install it ? And from the host or in the chroot environment ?
It's strange that gawk is complaining that you don't have
awk. I suggest backing out of the chroot and installing
both texinfo and gawk to your host. And, I don't mean /tmp.
After you used your package manager, rerun § 5.23. That
will give you gawk in /tmp. chroot and try glibc again.
Okay so texinfo is installed on the host, and the version-check.sh script is successful.
However Gawk is already installed and up to date.
- Installing gawk before glibc still doesn't work, awk is not detected.
- Also, in the /tmp/bin directory (when out of chroot) is already filled with awk and gawk. I also tried to install it as said in 5.23 with --prefix=/tmp.
Therefore my /tmp/bin is filled with :
awk gawk gawk-4.2.1
Obviously, installing glibc still doesn't work as well.
A few suggestions/theories on my part:
- If for the temporary system the installation of both glibc and gawk worked (in this precise order), then is it possible that there is a problem with the PATH, or with the way the OS is looking up programs ? However I don't believe this too much given both awk and gawk binaries are in /usr/bin/ and that this path is in the PATH given to the chroot command.
- The test for detecting gawk is buggy. (I tried to look it up a bit, but I'm not an advanced user of bash, and I could not really understand the few parts I found about testing gawk.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.