LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 09-14-2012, 12:01 PM   #1
Black Death
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 09-14-2012, 01:24 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Did you make sure that the host was compliant http://www.linuxfromscratch.org/lfs/.../hostreqs.html
post output
 
Old 09-15-2012, 05:57 AM   #3
Black Death
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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
 
Old 09-15-2012, 06:02 AM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Just correct /bin/sh -> /bin/dash should be /bin/sh -> /bin/bash
 
Old 09-15-2012, 07:25 AM   #5
Black Death
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.).
 
Old 09-15-2012, 08:08 AM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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
 
Old 09-15-2012, 08:53 AM   #7
Black Death
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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...
 
Old 09-15-2012, 09:04 AM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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/'`
 
Old 10-20-2014, 06:51 PM   #9
aashil16
LQ Newbie
 
Registered: Oct 2014
Posts: 22

Rep: Reputation: Disabled
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.

Quote:
$LFS_TGT-gcc dummy.c
Error:

Quote:
x86_64-lfs-linux-gnu-gcc: command not found
PS: I had an error in the previous sections which lead me to install some packages. Could this be the result of this error ?
Previous error thread: http://www.linuxquestions.org/questi....php?p=5256036
 
Old 10-20-2014, 06:55 PM   #10
aashil16
LQ Newbie
 
Registered: Oct 2014
Posts: 22

Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
I ment the symlink at bottom of gcc page
What link are you talking about here ? I don't see this command in section 5.5(GCC) of LFS version 7.6

Last edited by aashil16; 10-20-2014 at 06:57 PM.
 
Old 10-21-2014, 01:44 AM   #11
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

I would like to think something went wrong in Binutils
maye the link at the bottom Did you miss it,
Also are you copy and pasting the commands?

Code:
case $(uname -m) in
  x86_64) mkdir -v /tools/lib && ln -sv lib /tools/lib64 ;;
esac

Last edited by spiky0011; 10-21-2014 at 01:46 AM.
 
Old 10-21-2014, 11:36 PM   #12
aashil16
LQ Newbie
 
Registered: Oct 2014
Posts: 22

Rep: Reputation: Disabled
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 ?

Command:
Quote:
./binutils-2.24/configure \
--prefix=/tools \
--with-sysroot=$LFS \
--with-lib-path=/tools/lib \
--target=$LFS_TGT \
--disable-nls \
--disable-werror

Output:
Quote:
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.

Last edited by aashil16; 10-21-2014 at 11:40 PM.
 
Old 10-22-2014, 01:30 AM   #13
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
That is all good. Just 1 more thing DONT use j flags some packages dont like it.
 
2 members found this post helpful.
Old 10-22-2014, 10:47 AM   #14
aashil16
LQ Newbie
 
Registered: Oct 2014
Posts: 22

Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LFS 6.8 - check error 2 when installing glibc for chapter 6.9 robofighter Linux From Scratch 4 07-30-2011 03:25 PM
adjusting tool chain section 5.8 i686-lfs-linux-gnu-gcc: command not found rlaybourn Linux From Scratch 7 10-14-2010 08:23 AM
LFS 6, chapter 6.11; Glibc 'make check' error Zamochit Linux From Scratch 5 05-31-2005 12:54 PM
Error in Glibc Chapter-6 LFS ver-6..Help pls?? chakkaradeepcc Linux From Scratch 10 05-23-2005 12:33 PM
LFS 3.3 - chapter 6 - glibc error fend88 Linux From Scratch 5 04-28-2002 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration