LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   gnu-gcc: command not found error after installing glibc in chapter 5.7 of LFS 7.2 (http://www.linuxquestions.org/questions/linux-from-scratch-13/gnu-gcc-command-not-found-error-after-installing-glibc-in-chapter-5-7-of-lfs-7-2-a-4175427275/)

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.

spiky0011 09-14-2012 01:24 PM

Hi

Did you make sure that the host was compliant http://www.linuxfromscratch.org/lfs/.../hostreqs.html
post output

Black Death 09-15-2012 05:57 AM

Yeah, I guess I did it... I had to install a couple of them when I started it, but I guess the script ran fine after that. This is the output:

Code:

lfs@Iconoclast:~$ bash version.check.sh
bash, version 4.2.24(1)-release
/bin/sh -> /bin/dash
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


spiky0011 09-15-2012 06:02 AM

Hi

Just correct /bin/sh -> /bin/dash should be /bin/sh -> /bin/bash

Black Death 09-15-2012 07:25 AM

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.).

spiky0011 09-15-2012 08:08 AM

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

Black Death 09-15-2012 08:53 AM

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... ;)

spiky0011 09-15-2012 09:04 AM

I ment the symlink at bottom of gcc page
Quote:

ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'`


All times are GMT -5. The time now is 08:02 PM.