gnu-gcc: command not found error after installing glibc in chapter 5.7 of LFS 7.2
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.
gnu-gcc: command not found error after installing glibc in chapter 5.7 of LFS 7.2
I am installing LFS for first time, and this is what happened before I encountered my first error. I am inserting code in spoilers as it's very long.
When I ran make install after running configure script given and make, this is what it shows:
Code:
lfs@Iconoclast:/mnt/lfs/sources/glibc-build$ make install
LANGUAGE=C LC_ALL=C; export LANGUAGE LC_ALL; \
make -r PARALLELMFLAGS="" -C ../glibc-2.16.0 objdir=`pwd` install
make[1]: Entering directory `/mnt/lfs/sources/glibc-2.16.0'
{ echo '#include "posix/bits/posix1_lim.h"'; \
echo '#define _LIBC 1'; \
echo '#include "misc/sys/uio.h"'; } | \
gcc -E -dM -MD -MP -MF /mnt/lfs/sources/glibc-build/bits/stdio_lim.dT -MT '/mnt/lfs/sources/glibc-build/bits/stdio_lim.h /mnt/lfs/sources/glibc-build/bits/stdio_lim.d' \
-U_FORTIFY_SOURCE -Iinclude -I/mnt/lfs/sources/glibc-build -Isysdeps/unix/sysv/linux/x86_64/64/nptl -Isysdeps/unix/sysv/linux/x86_64/64 -Inptl/sysdeps/unix/sysv/linux/x86_64 -Inptl/sysdeps/unix/sysv/linux/x86 -Isysdeps/unix/sysv/linux/x86 -Isysdeps/unix/sysv/linux/x86_64 -Isysdeps/unix/sysv/linux/wordsize-64 -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/inet -Inptl/sysdeps/unix/sysv -Isysdeps/unix/sysv -Isysdeps/unix/x86_64 -Inptl/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Inptl/sysdeps/x86_64/64 -Isysdeps/x86_64/64 -Isysdeps/x86_64/fpu/multiarch -Isysdeps/x86_64/fpu -Isysdeps/x86/fpu -Isysdeps/x86_64/multiarch -Inptl/sysdeps/x86_64 -Isysdeps/x86_64 -Isysdeps/x86 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64/wordsize-64 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/wordsize-64 -Isysdeps/ieee754 -Isysdeps/generic -Inptl -Ilibio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed -isystem /tools/include -xc - -o /mnt/lfs/sources/glibc-build/bits/stdio_lim.hT
nptl/sysdeps/unix/sysv/linux/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
compilation terminated.
for dir in /mnt/lfs/sources/glibc-build sysdeps/unix/sysv/linux/x86_64/64/nptl sysdeps/unix/sysv/linux/x86_64/64 nptl/sysdeps/unix/sysv/linux/x86_64 nptl/sysdeps/unix/sysv/linux/x86 sysdeps/unix/sysv/linux/x86 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/wordsize-64 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/inet nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/x86_64 nptl/sysdeps/unix sysdeps/unix sysdeps/posix nptl/sysdeps/x86_64/64 sysdeps/x86_64/64 sysdeps/x86_64/fpu/multiarch sysdeps/x86_64/fpu sysdeps/x86/fpu sysdeps/x86_64/multiarch nptl/sysdeps/x86_64 sysdeps/x86_64 sysdeps/x86 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64/wordsize-64 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/wordsize-64 sysdeps/ieee754 sysdeps/generic nptl; do \
test -f $dir/syscalls.list && \
{ sysdirs='sysdeps/unix/sysv/linux/x86_64/64/nptl sysdeps/unix/sysv/linux/x86_64/64 nptl/sysdeps/unix/sysv/linux/x86_64 nptl/sysdeps/unix/sysv/linux/x86 sysdeps/unix/sysv/linux/x86 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/wordsize-64 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/inet nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/x86_64 nptl/sysdeps/unix sysdeps/unix sysdeps/posix nptl/sysdeps/x86_64/64 sysdeps/x86_64/64 sysdeps/x86_64/fpu/multiarch sysdeps/x86_64/fpu sysdeps/x86/fpu sysdeps/x86_64/multiarch nptl/sysdeps/x86_64 sysdeps/x86_64 sysdeps/x86 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64/wordsize-64 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/wordsize-64 sysdeps/ieee754 sysdeps/generic' \
asm_CPP='gcc -c -U_FORTIFY_SOURCE -Iinclude -I/mnt/lfs/sources/glibc-build -Isysdeps/unix/sysv/linux/x86_64/64/nptl -Isysdeps/unix/sysv/linux/x86_64/64 -Inptl/sysdeps/unix/sysv/linux/x86_64 -Inptl/sysdeps/unix/sysv/linux/x86 -Isysdeps/unix/sysv/linux/x86 -Isysdeps/unix/sysv/linux/x86_64 -Isysdeps/unix/sysv/linux/wordsize-64 -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/inet -Inptl/sysdeps/unix/sysv -Isysdeps/unix/sysv -Isysdeps/unix/x86_64 -Inptl/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Inptl/sysdeps/x86_64/64 -Isysdeps/x86_64/64 -Isysdeps/x86_64/fpu/multiarch -Isysdeps/x86_64/fpu -Isysdeps/x86/fpu -Isysdeps/x86_64/multiarch -Inptl/sysdeps/x86_64 -Isysdeps/x86_64 -Isysdeps/x86 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64/wordsize-64 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/wordsize-64 -Isysdeps/ieee754 -Isysdeps/generic -Inptl -Ilibio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed -isystem /tools/include -D_LIBC_REENTRANT -include include/libc-symbols.h -DASSEMBLER -g -Wa,--noexecstack -E -x assembler-with-cpp' \
/bin/sh sysdeps/unix/make-syscalls.sh $dir || exit 1; }; \
test $dir = sysdeps/unix && break; \
done > /mnt/lfs/sources/glibc-build/sysd-syscallsT
In file included from ./sysdeps/unix/sysdep.h:20:0,
from ./sysdeps/unix/x86_64/sysdep.h:18,
from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:20:0,
from ./sysdeps/unix/x86_64/sysdep.h:18,
from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:20:0,
from ./sysdeps/unix/x86_64/sysdep.h:18,
from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:20:0,
from ./sysdeps/unix/x86_64/sysdep.h:18,
from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:20:0,
from ./sysdeps/unix/x86_64/sysdep.h:18,
from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:20:0,
from ./sysdeps/unix/x86_64/sysdep.h:18,
from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:20:0,
from ./sysdeps/unix/x86_64/sysdep.h:18,
from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:20:0,
from ./sysdeps/unix/x86_64/sysdep.h:18,
from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:20:0,
from ./sysdeps/unix/x86_64/sysdep.h:18,
from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:20:0,
from ./sysdeps/unix/x86_64/sysdep.h:18,
from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:20:0,
from ./sysdeps/unix/x86_64/sysdep.h:18,
from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:20:0,
from ./sysdeps/unix/x86_64/sysdep.h:18,
from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:20:0,
from ./sysdeps/unix/x86_64/sysdep.h:18,
from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:20:0,
from ./sysdeps/unix/x86_64/sysdep.h:18,
from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:20:0,
from ./sysdeps/unix/x86_64/sysdep.h:18,
from sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
sysdeps/unix/make-syscalls.sh: no number for , no-error syscall (__syscall_clock_gettime )
make subdir=csu -C csu ..=../ subdir_lib
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.16.0/csu'
{ echo '#include "../posix/bits/posix1_lim.h"'; \
echo '#define _LIBC 1'; \
echo '#include "../misc/sys/uio.h"'; } | \
gcc -E -dM -MD -MP -MF /mnt/lfs/sources/glibc-build/bits/stdio_lim.dT -MT '/mnt/lfs/sources/glibc-build/bits/stdio_lim.h /mnt/lfs/sources/glibc-build/bits/stdio_lim.d' \
-U_FORTIFY_SOURCE -I../include -I/mnt/lfs/sources/glibc-build/csu -I/mnt/lfs/sources/glibc-build -I../sysdeps/unix/sysv/linux/x86_64/64/nptl -I../sysdeps/unix/sysv/linux/x86_64/64 -I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../nptl/sysdeps/unix/sysv/linux/x86 -I../sysdeps/unix/sysv/linux/x86 -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/wordsize-64 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../nptl/sysdeps/x86_64/64 -I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch -I../sysdeps/x86_64/fpu -I../sysdeps/x86/fpu -I../sysdeps/x86_64/multiarch -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/x86 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed -isystem /tools/include -xc - -o /mnt/lfs/sources/glibc-build/bits/stdio_lim.hT
../nptl/sysdeps/unix/sysv/linux/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
compilation terminated.
for dir in /mnt/lfs/sources/glibc-build ../sysdeps/unix/sysv/linux/x86_64/64/nptl ../sysdeps/unix/sysv/linux/x86_64/64 ../nptl/sysdeps/unix/sysv/linux/x86_64 ../nptl/sysdeps/unix/sysv/linux/x86 ../sysdeps/unix/sysv/linux/x86 ../sysdeps/unix/sysv/linux/x86_64 ../sysdeps/unix/sysv/linux/wordsize-64 ../nptl/sysdeps/unix/sysv/linux ../nptl/sysdeps/pthread ../sysdeps/pthread ../sysdeps/unix/sysv/linux ../sysdeps/gnu ../sysdeps/unix/inet ../nptl/sysdeps/unix/sysv ../sysdeps/unix/sysv ../sysdeps/unix/x86_64 ../nptl/sysdeps/unix ../sysdeps/unix ../sysdeps/posix ../nptl/sysdeps/x86_64/64 ../sysdeps/x86_64/64 ../sysdeps/x86_64/fpu/multiarch ../sysdeps/x86_64/fpu ../sysdeps/x86/fpu ../sysdeps/x86_64/multiarch ../nptl/sysdeps/x86_64 ../sysdeps/x86_64 ../sysdeps/x86 ../sysdeps/ieee754/ldbl-96 ../sysdeps/ieee754/dbl-64/wordsize-64 ../sysdeps/ieee754/dbl-64 ../sysdeps/ieee754/flt-32 ../sysdeps/wordsize-64 ../sysdeps/ieee754 ../sysdeps/generic ../nptl; do \
test -f $dir/syscalls.list && \
{ sysdirs='../sysdeps/unix/sysv/linux/x86_64/64/nptl ../sysdeps/unix/sysv/linux/x86_64/64 ../nptl/sysdeps/unix/sysv/linux/x86_64 ../nptl/sysdeps/unix/sysv/linux/x86 ../sysdeps/unix/sysv/linux/x86 ../sysdeps/unix/sysv/linux/x86_64 ../sysdeps/unix/sysv/linux/wordsize-64 ../nptl/sysdeps/unix/sysv/linux ../nptl/sysdeps/pthread ../sysdeps/pthread ../sysdeps/unix/sysv/linux ../sysdeps/gnu ../sysdeps/unix/inet ../nptl/sysdeps/unix/sysv ../sysdeps/unix/sysv ../sysdeps/unix/x86_64 ../nptl/sysdeps/unix ../sysdeps/unix ../sysdeps/posix ../nptl/sysdeps/x86_64/64 ../sysdeps/x86_64/64 ../sysdeps/x86_64/fpu/multiarch ../sysdeps/x86_64/fpu ../sysdeps/x86/fpu ../sysdeps/x86_64/multiarch ../nptl/sysdeps/x86_64 ../sysdeps/x86_64 ../sysdeps/x86 ../sysdeps/ieee754/ldbl-96 ../sysdeps/ieee754/dbl-64/wordsize-64 ../sysdeps/ieee754/dbl-64 ../sysdeps/ieee754/flt-32 ../sysdeps/wordsize-64 ../sysdeps/ieee754 ../sysdeps/generic' \
asm_CPP='gcc -c -U_FORTIFY_SOURCE -I../include -I/mnt/lfs/sources/glibc-build/csu -I/mnt/lfs/sources/glibc-build -I../sysdeps/unix/sysv/linux/x86_64/64/nptl -I../sysdeps/unix/sysv/linux/x86_64/64 -I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../nptl/sysdeps/unix/sysv/linux/x86 -I../sysdeps/unix/sysv/linux/x86 -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/wordsize-64 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../nptl/sysdeps/x86_64/64 -I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch -I../sysdeps/x86_64/fpu -I../sysdeps/x86/fpu -I../sysdeps/x86_64/multiarch -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/x86 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DASSEMBLER -I/mnt/lfs/sources/glibc-build/csu/. -g -Wa,--noexecstack -E -x assembler-with-cpp' \
/bin/sh ../sysdeps/unix/make-syscalls.sh $dir || exit 1; }; \
test $dir = ../sysdeps/unix && break; \
done > /mnt/lfs/sources/glibc-build/sysd-syscallsT
In file included from ../sysdeps/unix/sysdep.h:20:0,
from ../sysdeps/unix/x86_64/sysdep.h:18,
from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ../sysdeps/unix/sysdep.h:20:0,
from ../sysdeps/unix/x86_64/sysdep.h:18,
from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ../sysdeps/unix/sysdep.h:20:0,
from ../sysdeps/unix/x86_64/sysdep.h:18,
from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ../sysdeps/unix/sysdep.h:20:0,
from ../sysdeps/unix/x86_64/sysdep.h:18,
from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ../sysdeps/unix/sysdep.h:20:0,
from ../sysdeps/unix/x86_64/sysdep.h:18,
from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ../sysdeps/unix/sysdep.h:20:0,
from ../sysdeps/unix/x86_64/sysdep.h:18,
from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ../sysdeps/unix/sysdep.h:20:0,
from ../sysdeps/unix/x86_64/sysdep.h:18,
from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ../sysdeps/unix/sysdep.h:20:0,
from ../sysdeps/unix/x86_64/sysdep.h:18,
from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ../sysdeps/unix/sysdep.h:20:0,
from ../sysdeps/unix/x86_64/sysdep.h:18,
from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ../sysdeps/unix/sysdep.h:20:0,
from ../sysdeps/unix/x86_64/sysdep.h:18,
from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ../sysdeps/unix/sysdep.h:20:0,
from ../sysdeps/unix/x86_64/sysdep.h:18,
from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ../sysdeps/unix/sysdep.h:20:0,
from ../sysdeps/unix/x86_64/sysdep.h:18,
from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ../sysdeps/unix/sysdep.h:20:0,
from ../sysdeps/unix/x86_64/sysdep.h:18,
from ../sysdeps/unix/lfs@Iconoclast:/mnt/lfs/sources/glibc-build$ echo 'main(){}' > dummy.c
lfs@Iconoclast:/mnt/lfs/sources/glibc-build$ $LFS_TGT-gcc dummy.c
x86_64-lfs-linux-gnu-gcc: command not found
sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ../sysdeps/unix/sysdep.h:20:0,
from ../sysdeps/unix/x86_64/sysdep.h:18,
from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ../sysdeps/unix/sysdep.h:20:0,
from ../sysdeps/unix/x86_64/sysdep.h:18,
from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:22,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:24:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
../sysdeps/unix/make-syscalls.sh: no number for , no-error syscall (__syscall_clock_gettime )
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0'
make: *** [install] Error 2
and tried to run the confirmation script that was given:
Code:
lfs@Iconoclast:/mnt/lfs/sources/glibc-build$ echo 'main(){}' > dummy.c
lfs@Iconoclast:/mnt/lfs/sources/glibc-build$ $LFS_TGT-gcc dummy.c
x86_64-lfs-linux-gnu-gcc: command not found
Compilation stops saying it can't find some file, but I can't seem to make head or tail of what it means. I think something might have gone wrong when I made make or configure, but I will post them in next posts if needed as word limit is crossing for this single post. Thanks!
Extra Info: I am running Ubuntu 12.04 64-bit version. I have created lfs account like LFS book said. There are couple of things I would like to say from my side:
1. lfs account doesn't have sudo privileges. The first script that needs to be run in glibc directory seems to contain su command in it, and I doubt whether that worked. I might be wrong here. However, lfs account is the owner of $LFS directory and its subdirectories and all source files.
2. I installed until linux headers (the chapter just before glibc) yesterday, and today before continuing I had to mount $LFS partition and had to check those basic steps again. I also checked output of mount command and the lfs partition has only (rw) beside it. But, this is just for info.
Hey, I changed the symlink and checked output again. It was this:
Code:
lfs@Iconoclast:~$ bash version.check.sh
bash, version 4.2.24(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.22
bison (GNU Bison) 2.5
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
(Ubuntu EGLIBC 2.15-0ubuntu10) 2.15
grep (GNU grep) 2.10
gzip 1.4
Linux version 3.2.0-30-generic (buildd@batsu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #48-Ubuntu SMP Fri Aug 24 16:52:48 UTC 2012
m4 (GNU M4) 1.4.16
GNU Make 3.81
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.1.0alpha
gcc compilation OK
However, when I compile and try to install glibc, it doesn't seem to work again. Same error messages again.
Every other settings are same as I mentioned in the above post.
Do I have to start it all over again, right from the first package - now that I changed the shell??
Do you want me to paste output from make command (Strangely, I am sure that this step didn't take anything near 5.5 SBU time like it was mentioned. I think it just blurted out some output with lots of lines of code and errors in couple of seconds or so.).
I would start again, Were all the other dependecies all done before you started to build, was that the only 1 you had to correct. Maybe something went wrong with gcc, did you create the symlink at the botom of the page
Yes, all the other dependencies were gone before I started to build. I created simlink from /bin/sh to /bin/bash as superuser from a different account. Before this I didn't know that a different shell called dash and that it was default in Ubuntu now.
I am going to start if all from scratch again. I will post if the same problem comes again. Thanks for your help! I hope it crosses (at least) glibc this time...
Hello @spiky0011 I am getting the same error like him except that my glibc was compiled and installed succesfully. I get an error for the check command.
Yes I do copy paste the commands and I do know that sometimes copy paste changes the format of the commands. I don't know if I missed it or not. I am doing everything again from binutils. I have a question. Can you please verify my output for the given command ?
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-lfs-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for version 0.10 of ISL... no
checking for version 0.11 of ISL... no
checking for default BUILD_CONFIG...
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... no
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... objcopy
checking for objdump... objdump
checking for readelf... readelf
checking for x86_64-lfs-linux-gnu-cc... no
checking for x86_64-lfs-linux-gnu-gcc... no
checking for x86_64-lfs-linux-gnu-c++... no
checking for x86_64-lfs-linux-gnu-g++... no
checking for x86_64-lfs-linux-gnu-cxx... no
checking for x86_64-lfs-linux-gnu-gxx... no
checking for x86_64-lfs-linux-gnu-gcc... no
checking for x86_64-lfs-linux-gnu-gcj... no
checking for x86_64-lfs-linux-gnu-gfortran... no
checking for x86_64-lfs-linux-gnu-gccgo... no
checking for x86_64-lfs-linux-gnu-ar... x86_64-lfs-linux-gnu-ar
checking for x86_64-lfs-linux-gnu-as... x86_64-lfs-linux-gnu-as
checking for x86_64-lfs-linux-gnu-dlltool... no
checking for x86_64-lfs-linux-gnu-ld... x86_64-lfs-linux-gnu-ld
checking for x86_64-lfs-linux-gnu-lipo... no
checking for x86_64-lfs-linux-gnu-nm... x86_64-lfs-linux-gnu-nm
checking for x86_64-lfs-linux-gnu-objdump... x86_64-lfs-linux-gnu-objdump
checking for x86_64-lfs-linux-gnu-ranlib... x86_64-lfs-linux-gnu-ranlib
checking for x86_64-lfs-linux-gnu-readelf... x86_64-lfs-linux-gnu-readelf
checking for x86_64-lfs-linux-gnu-strip... x86_64-lfs-linux-gnu-strip
checking for x86_64-lfs-linux-gnu-windres... no
checking for x86_64-lfs-linux-gnu-windmc... no
checking where to find the target ar... just compiled
checking where to find the target as... just compiled
checking where to find the target cc... pre-installed
checking where to find the target c++... pre-installed
checking where to find the target c++ for libstdc++... pre-installed
checking where to find the target dlltool... just compiled
checking where to find the target gcc... pre-installed
checking where to find the target gcj... pre-installed
checking where to find the target gfortran... pre-installed
checking where to find the target gccgo... pre-installed
checking where to find the target ld... just compiled
checking where to find the target lipo... pre-installed
checking where to find the target nm... just compiled
checking where to find the target objdump... just compiled
checking where to find the target ranlib... just compiled
checking where to find the target readelf... just compiled
checking where to find the target strip... just compiled
checking where to find the target windres... just compiled
checking where to find the target windmc... just compiled
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
Do I have to worry about these no's ?
And I use "make -j4" instead of "make" and "make -j4 install" instead of "make install" because I have a quad core pc. Hope so I am doing it correct.
I did all the process from beginning and I passed the sanity check this time. It seems like I was copy pasting one of the glibc command which was garbled due to copy paste. I ended up writing the command on my own and it went smooth. Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.