Black Death |
09-14-2012 12:01 PM |
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.
|