[lfs-support] Segfault error section 5.10

Larry Orcutt larry_orcutt at yahoo.com
Mon May 19 07:42:02 PDT 2014

Hello - I'm trying to build gcc second pass step 5.10 using current stable version 7.5 of the instructions.

I'm running centos 6.5 32 bit in a kvm virtual machine on my desktop.

What I see on the "make" step:


configure: summary of build options:

  Version:           GNU MP 5.1.3
  Host type:         none-pc-linux-gnu
  ABI:               standard
  Install prefix:    /tools
  Compiler:          i686-lfs-linux-gnu-gcc -std=gnu99
  Static libraries:  yes
  Shared libraries:  no

make[2]: Entering directory `/lfs/sources/gcc-build/gmp'
i686-lfs-linux-gnu-gcc `test -f
 'gen-fac.c' || echo '../../gcc-4.8.2/gmp/'`gen-fac.c -o gen-fac
./gen-fac 32 0 >fac_table.h || (rm -f fac_table.h; exit 1)
i686-lfs-linux-gnu-gcc `test -f 'gen-fib.c' || echo '../../gcc-4.8.2/gmp/'`gen-fib.c -o gen-fib
./gen-fib header 32 0 >fib_table.h || (rm -f fib_table.h; exit 1)
./gen-fib table 32 0 >mpn/fib_table.c || (rm -f mpn/fib_table.c; exit 1)
i686-lfs-linux-gnu-gcc `test -f 'gen-bases.c' || echo '../../gcc-4.8.2/gmp/'`gen-bases.c -o gen-bases -lm
./gen-bases header 32 0 >mp_bases.h || (rm -f mp_bases.h; exit 1)
/bin/sh: line 1: 16174 Segmentation fault      (core dumped) ./gen-bases header 32 0 > mp_bases.h
make[2]: *** [mp_bases.h] Error 1
make[2]: Leaving directory `/lfs/sources/gcc-build/gmp'
make[1]: *** [all-gmp] Error 2
make[1]: Leaving directory `/lfs/sources/gcc-build'
make: *** [all] Error 2

lfs:/lfs/sources/gcc-build$ uname -r

lfs:/lfs/sources/gcc-build$ cd gmp
lfs:/lfs/sources/gcc-build/gmp$ gdb --args ./gen-bases header 32 0
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /lfs/sources/gcc-build/gmp/gen-bases...done.
(gdb) run
Starting program:
 /lfs/sources/gcc-build/gmp/gen-bases header 32 0
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?

Program received signal SIGSEGV, Segmentation fault.
0x0000455a in ?? ()

Any help would be appreciated. Let me know if any more information would be useful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20140519/7aee195a/attachment.html>

More information about the lfs-support mailing list