I am trying to build LFS-7.8 on a Pentium 4
32-bit system. I am using LFS-7.6 as the
host or starting system. I get as far as
section 6.9.1, the installation of Glibc-2.22.
I have tried building it twice. The first
time I followed the instructions in the
stable LFS-7.8 book, and after the 'make'
command I eventually get the following error:

---------------------------------------------

gcc cp1258.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Werror -Wno-error=undef -Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wstrict-prototypes -fPIC -Wa,-mtune=i686 -I../include -I/sources/glibc-build/iconvdata -I/sources/glibc-build -I../sysdeps/unix/sysv/linux/i386/i686 -I../sysdeps/i386/i686/nptl -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/x86 -I../sysdeps/i386/nptl -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux -I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu/multiarch -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686/multiarch -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu -I../sysdeps/i386 -I../sysdeps/x86 -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 -I.. -I../libio -I. -D_LIBC_REENTRANT -include /sources/glibc-build/libc-modules.h -DMODULE_NAME=iconvdata -include ../include/libc-symbols.h -DPIC -DSHARED -o /sources/glibc-build/iconvdata/cp1258.os -MD -MP -MF /sources/glibc-build/iconvdata/cp1258.os.dt -MT /sources/glibc-build/iconvdata/cp1258.os
In file included from cp1258.c:499:0:
../iconv/loop.c: In function 'gconv_btowc':
../iconv/loop.c:493:1: internal compiler error: Segmentation fault
 gconv_btowc (struct __gconv_step *step, unsigned char c)
 ^

../iconv/loop.c:493:1: internal compiler error: Aborted
gcc: internal compiler error: Aborted (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
../o-iterator.mk:9: recipe for target '/sources/glibc-build/iconvdata/cp1258.os' failed
make[2]: *** [/sources/glibc-build/iconvdata/cp1258.os] Error 4
make[2]: Leaving directory '/sources/glibc-2.22/iconvdata'
Makefile:213: recipe for target 'iconvdata/others' failed
make[1]: *** [iconvdata/others] Error 2
make[1]: Leaving directory '/sources/glibc-2.22'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2

---------------------------------------------------

After this happened, I looked at the latest snapshot
(20160101) of the LFS book, and I noticed that the
following patch is applied, which was not mentioned
in the stable version of the book:

glibc-2.22-largefile-1.patch

After copying over the /sources and the /tools
directory I saved from chapter 5, I started
chapter 6 again. This time the 'make' command
in section 6.9.1 completed without any errors,
however when I ran 'make check' I got the
following error:

---------------------------------------------------
gcc tst-cancel14.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Werror -Wno-error=undef -Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wstrict-prototypes -Wa,-mtune=i686 -I../include -I/sources/glibc-build/nptl -I/sources/glibc-build -I../sysdeps/unix/sysv/linux/i386/i686 -I../sysdeps/i386/i686/nptl -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/x86 -I../sysdeps/i386/nptl -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux -I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu/multiarch -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686/multiarch -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu -I../sysdeps/i386 -I../sysdeps/x86 -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 -I.. -I../libio -I. -D_LIBC_REENTRANT -include /sources/glibc-build/libc-modules.h -DMODULE_NAME=nonlib -include ../include/libc-symbols.h -o /sources/glibc-build/nptl/tst-cancel14.o -MD -MP -MF /sources/glibc-build/nptl/tst-cancel14.o.dt -MT /sources/glibc-build/nptl/tst-cancel14.o
/tmp/ccAVifux.s: Assembler messages:
/tmp/ccAVifux.s: Internal error!
Assertion failure in subseg_set_rest at ../../binutils-2.25.1/gas/subsegs.c line 126.
Please report this bug.
../o-iterator.mk:9: recipe for target '/sources/glibc-build/nptl/tst-cancel14.o' failed
make[2]: *** [/sources/glibc-build/nptl/tst-cancel14.o] Error 1
make[2]: Leaving directory '/sources/glibc-2.22/nptl'
Makefile:213: recipe for target 'nptl/tests' failed
make[1]: *** [nptl/tests] Error 2
make[1]: Leaving directory '/sources/glibc-2.22'
Makefile:9: recipe for target 'check' failed
make: *** [check] Error 2
root:/sources/glibc-build#

------------------------------------------------

The only thing I can think to do now is to
start all over again at the beginning of chapter
5, and double check that I am following all the
directions correctly. But before I do that, I
wanted to post the above errors to see if by
chance anyone might have an idea what is going
wrong with the build.

By the way if I do build everything over again,
should I apply the glibc-2.22-largefile-1.patch
in section 6.9.1? It doesn't appear in the
stable book.

Richard
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to