Glibc fails of error 127 too many symbolic links

Robert R. Russell rrbrussell at cox.net
Sat Nov 8 12:37:26 PST 2003


I am trying to build a new LFS 5.0 system, with only it on the hard 
drive, so I am using Knoppix 3.3 EN as the host distro.

This is the error message that I get from the second run of make after 
checking the /tools symlink, and it is identical to the first one.

lfs at 0[glibc-build]$ make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.2 objdir=`pwd` all
make[1]: Entering directory `/lfs/tools/src/glibc-2.3.2'
make  -C csu subdir_lib
make[2]: Entering directory `/lfs/tools/src/glibc-2.3.2/csu'
gcc -B/tools/bin/ ../sysdeps/unix/sysv/linux/init-first.c -c -std=gnu99 
-O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -march=pentium2 
-pipe      -I../include -I. -I/tools/src/glibc-build/csu -I.. -I../libio 
  -I/tools/src/glibc-build -I../sysdeps/i386/elf 
-I../linuxthreads/sysdeps/unix/sysv/linux/i386 
-I../linuxthreads/sysdeps/unix/sysv/linux 
-I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread 
-I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix 
-I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc-lib/i386-linux/3.2.3/include -isystem 
/tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h 
   -DHAVE_INITFINI -o /tools/src/glibc-build/csu/init-first.o
make[2]: execvp: gcc: Too many levels of symbolic links
make[2]: *** [/tools/src/glibc-build/csu/init-first.o] Error 127
make[2]: Leaving directory `/lfs/tools/src/glibc-2.3.2/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/lfs/tools/src/glibc-2.3.2'
make: *** [all] Error 2
lfs at 0[glibc-build]$

According to the results of a search in the LFS archives this sort of 
problem is caused by incorect symbolic links. I have checked the and 
made sure the /tools is a symbolics link to $LFS/tools and that 
$LFS/tools/src is not a symbolic link. The problem still occours if I 
run make from $LFS/tools/src/glibc-build.

Could this be a problem with knoppix since its /bin and /usr folder 
trees are symlinks to /KNOPPIX/bin and /KNOPPIX/usr. If it is I may have 
to use the LFS Boot CD.




More information about the lfs-support mailing list