Results 1 to 7 of 7
I am currently building the Glibc part of Linux From Scratch.
When I am making it, it gets stuck in an infinite loop producing the following output over and over. ...
- 11-04-2011 #1Just Joined!
- Join Date
- Nov 2011
- Posts
- 3
LFS Glibc gets stuck in infinite loop while compiling
I am currently building the Glibc part of Linux From Scratch.
When I am making it, it gets stuck in an infinite loop producing the following output over and over. I am not sure what is causing it. I have destroyed my glibc-build and glibc-2.14.1 directories and restarted the process twice, only to get stuck at the same spot every single time.
Here is the build process after untarballing the package and calling its directory:
The make step gets stuck in an infinite loop producing the following output (I know it is a lot, but am not sure which part is relevant):Code:patch -Np1 -i ../glibc-2.14.1-gcc_fix-1.patch patch -Np1 -i ../glibc-2.14.1-cpuid-1.patch mkdir -v ../glibc-build cd ../glibc-build case `uname -m` in i?86) echo "CLFAGS += -march=i486 -mtune=native" > configparms ;; esac ../glibc-2.14.1/configure --prefix=/tools \ --host=$LFS_TGT --build=$(../glibc-2.14.1/scripts/config.guess) \ --disable-profile --enable-add-ons \ --enable-kernel=2.6.25 --with-headers=/tools/include \ libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes make -j2 make install -j2
Code:make[2]: Warning: File `/tools/include/linux/limits.h' has modification time 24550 s in the future make[2]: Circular /mnt/lfs/sources/gcc-build/tcb-offsets.h <- /mnt/lfs/sources/gcc-build/tcb-offsets.h dependency dropped. make[2]: Circular /mnt/lfs/sources/gcc-build/tcb-offsets.h <- /mnt/lfs/sources/gcc-build/tcb-offsets.h dependency dropped. gawk -f ../scripts/gen-as-const.awk ../nptl/sysdeps/x86_64/tcb-offsets.sym \ | x86_64-lfs-linux-gnu-gcc -S -o /mnt/lfs/sources/gcc-build/tcb-offsets.hT3 -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -I../include -I/mnt/lfs/sources/gcc-build/csu -I/mnt/lfs/sources/gcc-build -I../sysdeps/x86_64/elf -I../nptl/sysdeps/unix/sysv/linux/x86_64 -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/common -I../sysdeps/unix/mman -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../sysdeps/x86_64/fpu -I../sysdeps/x86_64/multiarch -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.6.1/include -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.6.1/include-fixed -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -x c - \ -MD -MP -MF /mnt/lfs/sources/gcc-build/tcb-offsets.h.dT -MT '/mnt/lfs/sources/gcc-build/tcb-offsets.h.d /mnt/lfs/sources/gcc-build/tcb-offsets.h' sed -n 's/^.*(lots of at symbols and text it would not let me post) \1 \2/p' \ /mnt/lfs/sources/gcc-build/tcb-offsets.hT3 > /mnt/lfs/sources/gcc-build/tcb-offsets.hT rm -f /mnt/lfs/sources/gcc-build/tcb-offsets.hT3 sed (at symbols) \ /mnt/lfs/sources/gcc-build/tcb-offsets.h.dT > /mnt/lfs/sources/gcc-build/tcb-offsets.h.dT2 rm -f /mnt/lfs/sources/gcc-build/tcb-offsets.h.dT mv -f /mnt/lfs/sources/gcc-build/tcb-offsets.h.dT2 /mnt/lfs/sources/gcc-build/tcb-offsets.h.d mv -f /mnt/lfs/sources/gcc-build/tcb-offsets.hT /mnt/lfs/sources/gcc-build/tcb-offsets.h gawk -f ../scripts/gen-as-const.awk ../sysdeps/x86_64/tlsdesc.sym \ | x86_64-lfs-linux-gnu-gcc -S -o /mnt/lfs/sources/gcc-build/tlsdesc.hT3 -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -I../include -I/mnt/lfs/sources/gcc-build/csu -I/mnt/lfs/sources/gcc-build -I../sysdeps/x86_64/elf -I../nptl/sysdeps/unix/sysv/linux/x86_64 -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/common -I../sysdeps/unix/mman -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../sysdeps/x86_64/fpu -I../sysdeps/x86_64/multiarch -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.6.1/include -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.6.1/include-fixed -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -x c - \ -MD -MP -MF /mnt/lfs/sources/gcc-build/tlsdesc.h.dT -MT '/mnt/lfs/sources/gcc-build/tlsdesc.h.d /mnt/lfs/sources/gcc-build/tlsdesc.h' sed (at symbols) \1 \2/p' \ /mnt/lfs/sources/gcc-build/tlsdesc.hT3 > /mnt/lfs/sources/gcc-build/tlsdesc.hT rm -f /mnt/lfs/sources/gcc-build/tlsdesc.hT3 sed (at symbols) \ /mnt/lfs/sources/gcc-build/tlsdesc.h.dT > /mnt/lfs/sources/gcc-build/tlsdesc.h.dT2 rm -f /mnt/lfs/sources/gcc-build/tlsdesc.h.dT mv -f /mnt/lfs/sources/gcc-build/tlsdesc.h.dT2 /mnt/lfs/sources/gcc-build/tlsdesc.h.d mv -f /mnt/lfs/sources/gcc-build/tlsdesc.hT /mnt/lfs/sources/gcc-build/tlsdesc.h gawk -f ../scripts/gen-as-const.awk ../sysdeps/x86_64/link-defines.sym \ | x86_64-lfs-linux-gnu-gcc -S -o /mnt/lfs/sources/gcc-build/link-defines.hT3 -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -I../include -I/mnt/lfs/sources/gcc-build/csu -I/mnt/lfs/sources/gcc-build -I../sysdeps/x86_64/elf -I../nptl/sysdeps/unix/sysv/linux/x86_64 -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/common -I../sysdeps/unix/mman -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../sysdeps/x86_64/fpu -I../sysdeps/x86_64/multiarch -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.6.1/include -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.6.1/include-fixed -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -x c - \ -MD -MP -MF /mnt/lfs/sources/gcc-build/link-defines.h.dT -MT '/mnt/lfs/sources/gcc-build/link-defines.h.d /mnt/lfs/sources/gcc-build/link-defines.h' sed (at symbols) \1 \2/p' \ /mnt/lfs/sources/gcc-build/link-defines.hT3 > /mnt/lfs/sources/gcc-build/link-defines.hT rm -f /mnt/lfs/sources/gcc-build/link-defines.hT3 sed (at symbols) /mnt/lfs/sources/gcc-build/link-defines.h.dT > /mnt/lfs/sources/gcc-build/link-defines.h.dT2 rm -f /mnt/lfs/sources/gcc-build/link-defines.h.dT mv -f /mnt/lfs/sources/gcc-build/link-defines.h.dT2 /mnt/lfs/sources/gcc-build/link-defines.h.d mv -f /mnt/lfs/sources/gcc-build/link-defines.hT /mnt/lfs/sources/gcc-build/link-defines.h gawk -f ../scripts/gen-as-const.awk ../sysdeps/x86_64/multiarch/ifunc-defines.sym \ | x86_64-lfs-linux-gnu-gcc -S -o /mnt/lfs/sources/gcc-build/ifunc-defines.hT3 -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -I../include -I/mnt/lfs/sources/gcc-build/csu -I/mnt/lfs/sources/gcc-build -I../sysdeps/x86_64/elf -I../nptl/sysdeps/unix/sysv/linux/x86_64 -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/common -I../sysdeps/unix/mman -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../sysdeps/x86_64/fpu -I../sysdeps/x86_64/multiarch -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.6.1/include -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.6.1/include-fixed -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -x c - \ -MD -MP -MF /mnt/lfs/sources/gcc-build/ifunc-defines.h.dT -MT '/mnt/lfs/sources/gcc-build/ifunc-defines.h.d /mnt/lfs/sources/gcc-build/ifunc-defines.h' sed (at symbols) \1 \2/p' \ /mnt/lfs/sources/gcc-build/ifunc-defines.hT3 > /mnt/lfs/sources/gcc-build/ifunc-defines.hT rm -f /mnt/lfs/sources/gcc-build/ifunc-defines.hT3 sed (at symbols) \ /mnt/lfs/sources/gcc-build/ifunc-defines.h.dT > /mnt/lfs/sources/gcc-build/ifunc-defines.h.dT2 rm -f /mnt/lfs/sources/gcc-build/ifunc-defines.h.dT mv -f /mnt/lfs/sources/gcc-build/ifunc-defines.h.dT2 /mnt/lfs/sources/gcc-build/ifunc-defines.h.d mv -f /mnt/lfs/sources/gcc-build/ifunc-defines.hT /mnt/lfs/sources/gcc-build/ifunc-defines.h gawk -f ../scripts/gen-as-const.awk ../sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym \ | x86_64-lfs-linux-gnu-gcc -S -o /mnt/lfs/sources/gcc-build/ucontext_i.hT3 -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -I../include -I/mnt/lfs/sources/gcc-build/csu -I/mnt/lfs/sources/gcc-build -I../sysdeps/x86_64/elf -I../nptl/sysdeps/unix/sysv/linux/x86_64 -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/common -I../sysdeps/unix/mman -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../sysdeps/x86_64/fpu -I../sysdeps/x86_64/multiarch -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.6.1/include -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.6.1/include-fixed -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -x c - \ -MD -MP -MF /mnt/lfs/sources/gcc-build/ucontext_i.h.dT -MT '/mnt/lfs/sources/gcc-build/ucontext_i.h.d /mnt/lfs/sources/gcc-build/ucontext_i.h' sed (at symbols) \1 \2/p' \ /mnt/lfs/sources/gcc-build/ucontext_i.hT3 > /mnt/lfs/sources/gcc-build/ucontext_i.hT rm -f /mnt/lfs/sources/gcc-build/ucontext_i.hT3 sed (at symbols) \ /mnt/lfs/sources/gcc-build/ucontext_i.h.dT > /mnt/lfs/sources/gcc-build/ucontext_i.h.dT2 rm -f /mnt/lfs/sources/gcc-build/ucontext_i.h.dT mv -f /mnt/lfs/sources/gcc-build/ucontext_i.h.dT2 /mnt/lfs/sources/gcc-build/ucontext_i.h.d mv -f /mnt/lfs/sources/gcc-build/ucontext_i.hT /mnt/lfs/sources/gcc-build/ucontext_i.h make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.14.1/csu' make[2]: Entering directory `/mnt/lfs/sources/glibc-2.14.1/csu'
- 11-06-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,954
Which version of LFS are you using?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 11-06-2011 #3Just Joined!
- Join Date
- Nov 2011
- Posts
- 3
I am using 7.0 rc2. I realize that is the unstable version but feel as though this problem may be able to be solved anyways. If we can't fix it I'll switch back to the stable version.
- 11-06-2011 #4
- 11-06-2011 #5
You might want to try info here
- 11-07-2011 #6Just Joined!
- Join Date
- Nov 2011
- Posts
- 3
Well,
It appears as though the problem had to do with this line:
This warning was produced because I had recently changed my clock backwards because it was wrong.Code:make[2]: Warning: File `/tools/include/linux/limits.h' has modification time 24550 s in the future
I rebuilt it now (More than 24550s after my last attempt) and it worked seamlessly.
My problem is solved, thank you all for the help.
I don't how to mark the thread as solved, I cannot find a button to do so and am not sure if you guys do that here at linux forums
- 11-07-2011 #7Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,954
A moderator will have to do that. The last "upgrades" to the site disabled the ability of a poster to mark their threads as "solved".
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote

