Segmentation fault while making glibc in ch5

Mark Longmire mlongmire at comcast.net
Mon Mar 29 18:16:31 PST 2004


I've been trying to get LFS installed on a spare machine at home and I 
run into this segmentation error consistantly. I can install cleanly on 
a spare machine I have at work, but at home I'm getting the seg fault.

The home machine is a K6-550 and if more info is needed about mobo/ram I 
can post it.  The machine at work is a PII-350.

Is there anything special that needs to be done for the AMD cpu?

Here is a snip from the output:

  -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 
-I../sysdeps/generic/elf -I../sysdeps/generic  -nostdinc -isystem 
/tools/lib/gcc-lib/i586-pc-linux-gnu/3.3.1/include -isystem 
/tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h 
-DPIC -DSHARED     -DHAVE_INITFINI -DASSEMBLER  -I/src/glibc-build/csu/. 
-DGAS_SYNTAX  -o /src/glibc-build/csu/sysdep.os
echo 'csu/init-first.os csu/libc-start.os csu/sysdep.os csu/version.os 
csu/check_fds.os csu/dso_handle.os csu/errno.os csu/errno-loc.os 
csu/divdi3.os' > /src/glibc-build/csu/stamp.osT
mv -f /src/glibc-build/csu/stamp.osT /src/glibc-build/csu/stamp.os
make[2]: Leaving directory `/mnt/lfs/src/glibc-2.3.2/csu'
make  -C iconv subdir_lib
make[2]: Entering directory `/mnt/lfs/src/glibc-2.3.2/iconv'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/lfs/src/glibc-2.3.2/iconv'
make  -C iconvdata subdir_lib
make[2]: Entering directory `/mnt/lfs/src/glibc-2.3.2/iconvdata'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/lfs/src/glibc-2.3.2/iconvdata'
.
.
.
it continues to do this until it hits
.
.
.
make  -C math subdir_lib
make[2]: Entering directory `/mnt/lfs/src/glibc-2.3.2/math'
/usr/bin/perl gen-libm-test.pl -u ../sysdeps/i386/fpu/libm-test-ulps -o 
"/src/glibc-build/math/"
make[2]: *** [/src/glibc-build/math/libm-test.stmp] Segmentation fault
make[2]: Leaving directory `/mnt/lfs/src/glibc-2.3.2/math'
make[1]: *** [math/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/src/glibc-2.3.2'
make: *** [install] Error 2
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.2 objdir=`pwd` 
localedata/install-locales
make[1]: Entering directory `/mnt/lfs/src/glibc-2.3.2'
make  -C localedata install-locales
make[2]: Entering directory `/mnt/lfs/src/glibc-2.3.2/localedata'
.././scripts/mkinstalldirs /tools/lib/locale
mkdir /tools/lib/locale
af_ZA.ISO-8859-1.../bin/sh: line 1: /src/glibc-build/elf/ld.so: No such 
file or directory
  done
ar_AE.ISO-8859-6.../bin/sh: line 1: /src/glibc-build/elf/ld.so: No such 
file or directory
  done
ar_BH.ISO-8859-6.../bin/sh: line 1: /src/glibc-build/elf/ld.so: No such 
file or directory
  done


I have cut and paste the LFS commands into a bash script and after the 
above error I think it continuing into the 'make 
localedata/install-locales' command and produces this result:

make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.2 objdir=`pwd` 
localedata/install-locales
make[1]: Entering directory `/mnt/lfs/src/glibc-2.3.2'
make  -C localedata install-locales
make[2]: Entering directory `/mnt/lfs/src/glibc-2.3.2/localedata'
.././scripts/mkinstalldirs /tools/lib/locale
mkdir /tools/lib/locale
af_ZA.ISO-8859-1.../bin/sh: line 1: /src/glibc-build/elf/ld.so: No such 
file or directory
  done
ar_AE.ISO-8859-6.../bin/sh: line 1: /src/glibc-build/elf/ld.so: No such 
file or directory
  done
ar_BH.ISO-8859-6.../bin/sh: line 1: /src/glibc-build/elf/ld.so: No such 
file or directory
  done


...until it finally bombs out, ending with:

zh_TW.EUC-TW.../bin/sh: line 1: /src/glibc-build/elf/ld.so: No such file 
or directory
  done
make[2]: Leaving directory `/mnt/lfs/src/glibc-2.3.2/localedata'
make[1]: Leaving directory `/mnt/lfs/src/glibc-2.3.2'




Any help would be appreciated,

Mark Longmire





More information about the lfs-support mailing list