LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Trouble Building glibc chapter 6 (https://www.linuxquestions.org/questions/linux-from-scratch-13/trouble-building-glibc-chapter-6-a-4175465984/)

mreff555 06-14-2013 05:34 AM

Trouble Building glibc chapter 6
 
I am attempting to build glibc in chapter6 book 7.3

Since it reportedly took >17SBU's I walked away, expecting it to take a while. After about 24 hours it was still working. BTW, This is a core i3 notebook with 4gb of ram. I used a j5 make flag.

It appears to be getting stuck in a loop repeating the same thing over and over again, however there doesn't appear to be any errors. I tried it again without make flags and it appears that the problem is still there and occurs within the first few minutes.

Since there is no errors I wasn't sure what I could post. Here are the last few lines before it loops. It appears to iterate about every second or so.
Code:

libc-build/pthread-errnos.h.d /sources/glibc-build/pthread-errnos.h'
sed -n 's/^.*@@@name@@@\([^@]*\)@@@value@@@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][
0-9Xxa-fA-F-]*\).*@@@end@@@.*$/#define \1 \2/p' \
        /sources/glibc-build/pthread-errnos.hT3 > /sources/glibc-build/pthre
ad-errnos.hT
rm -f /sources/glibc-build/pthread-errnos.hT3
sed -e 's@ /sources/glibc-build/@ $(common-objpfx)@g' -e 's@^/sources/glibc-
build/@$(common-objpfx)@g' -e 's@  *\.\.\/\([^  \]*\)@ $(..)\1@g' -e 's@^\.\
.\/\([^        \]*\)@$(..)\1@g' \
    /sources/glibc-build/pthread-errnos.h.dT > /sources/glibc-build/pthread-
errnos.h.dT2
rm -f /sources/glibc-build/pthread-errnos.h.dT
mv -f /sources/glibc-build/pthread-errnos.h.dT2 /sources/glibc-build/pthread
-errnos.h.d
mv -f /sources/glibc-build/pthread-errnos.hT /sources/glibc-build/pthread-er
rnos.h
make[4]: Leaving directory `/sources/glibc-2.17/nptl'


business_kid 06-14-2013 06:24 AM

I would rm -rf on the source and build dirs, and start afresh. After the configure, Run
Quote:

make > some_error_file 2>&1
Get on another terminal and view it with
Quote:

tail -fn25 some-error-file
When it has looped a few times, go back and hit Ctrl_C where it is making. Go over the error file and see what you can find.

mreff555 06-17-2013 01:14 PM

I gave it a shot but I don't see any error's. It just repeats. Here is the repeating portion of the code.

Code:

make[4]: Entering directory `/sources/glibc-2.17/nptl'
/tools/bin/install -c -m 644 ../include/limits.h /usr/include/limits.h
gawk -f ../scripts/gen-as-const.awk ../nptl/sysdeps/unix/sysv/linux/structsem.sym \
| gcc -S -o /sources/glibc-build/structsem.hT3 -std=gnu99 -fgnu89-inline  -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wstrict-prototypes        -I../include -I/sources/glibc-build/nptl -I/sources/glibc-build -I../sysdeps/unix/sysv/linux/x86_64/64/nptl -I../sysdeps/unix/sysv/linux/x86_64/64 -I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../nptl/sysdeps/unix/sysv/linux/x86 -I../sysdeps/unix/sysv/linux/x86 -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../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../nptl/sysdeps/x86_64/64 -I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch -I../sysdeps/x86_64/fpu -I../sysdeps/x86/fpu -I../sysdeps/x86_64/multiarch -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/x86 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I.  -D_LIBC_REENTRANT -include ../include/libc-symbols.h      -x c - \
        -MD -MP -MF /sources/glibc-build/structsem.h.dT -MT '/sources/glibc-build/structsem.h.d /sources/glibc-build/structsem.h'
sed -n 's/^.*@@@name@@@\([^@]*\)@@@value@@@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*$/#define \1 \2/p' \
        /sources/glibc-build/structsem.hT3 > /sources/glibc-build/structsem.hT
rm -f /sources/glibc-build/structsem.hT3
sed -e 's@ /sources/glibc-build/@ $(common-objpfx)@g' -e 's@^/sources/glibc-build/@$(common-objpfx)@g' -e 's@  *\.\.\/\([^        \]*\)@ $(..)\1@g' -e 's@^\.\.\/\([^        \]*\)@$(..)\1@g' \
    /sources/glibc-build/structsem.h.dT > /sources/glibc-build/structsem.h.dT2
rm -f /sources/glibc-build/structsem.h.dT
mv -f /sources/glibc-build/structsem.h.dT2 /sources/glibc-build/structsem.h.d
mv -f /sources/glibc-build/structsem.hT /sources/glibc-build/structsem.h
gawk -f ../scripts/gen-as-const.awk ../nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym \
| gcc -S -o /sources/glibc-build/pthread-pi-defines.hT3 -std=gnu99 -fgnu89-inline  -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wstrict-prototypes        -I../include -I/sources/glibc-build/nptl -I/sources/glibc-build -I../sysdeps/unix/sysv/linux/x86_64/64/nptl -I../sysdeps/unix/sysv/linux/x86_64/64 -I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../nptl/sysdeps/unix/sysv/linux/x86 -I../sysdeps/unix/sysv/linux/x86 -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../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../nptl/sysdeps/x86_64/64 -I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch -I../sysdeps/x86_64/fpu -I../sysdeps/x86/fpu -I../sysdeps/x86_64/multiarch -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/x86 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I.  -D_LIBC_REENTRANT -include ../include/libc-symbols.h      -x c - \
        -MD -MP -MF /sources/glibc-build/pthread-pi-defines.h.dT -MT '/sources/glibc-build/pthread-pi-defines.h.d /sources/glibc-build/pthread-pi-defines.h'
sed -n 's/^.*@@@name@@@\([^@]*\)@@@value@@@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*$/#define \1 \2/p' \
        /sources/glibc-build/pthread-pi-defines.hT3 > /sources/glibc-build/pthread-pi-defines.hT
rm -f /sources/glibc-build/pthread-pi-defines.hT3
sed -e 's@ /sources/glibc-build/@ $(common-objpfx)@g' -e 's@^/sources/glibc-build/@$(common-objpfx)@g' -e 's@  *\.\.\/\([^        \]*\)@ $(..)\1@g' -e 's@^\.\.\/\([^        \]*\)@$(..)\1@g' \
    /sources/glibc-build/pthread-pi-defines.h.dT > /sources/glibc-build/pthread-pi-defines.h.dT2
rm -f /sources/glibc-build/pthread-pi-defines.h.dT
mv -f /sources/glibc-build/pthread-pi-defines.h.dT2 /sources/glibc-build/pthread-pi-defines.h.d
mv -f /sources/glibc-build/pthread-pi-defines.hT /sources/glibc-build/pthread-pi-defines.h
gawk -f ../scripts/gen-as-const.awk ../nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym \
| gcc -S -o /sources/glibc-build/lowlevelrobustlock.hT3 -std=gnu99 -fgnu89-inline  -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wstrict-prototypes        -I../include -I/sources/glibc-build/nptl -I/sources/glibc-build -I../sysdeps/unix/sysv/linux/x86_64/64/nptl -I../sysdeps/unix/sysv/linux/x86_64/64 -I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../nptl/sysdeps/unix/sysv/linux/x86 -I../sysdeps/unix/sysv/linux/x86 -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../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../nptl/sysdeps/x86_64/64 -I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch -I../sysdeps/x86_64/fpu -I../sysdeps/x86/fpu -I../sysdeps/x86_64/multiarch -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/x86 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I.  -D_LIBC_REENTRANT -include ../include/libc-symbols.h      -x c - \
        -MD -MP -MF /sources/glibc-build/lowlevelrobustlock.h.dT -MT '/sources/glibc-build/lowlevelrobustlock.h.d /sources/glibc-build/lowlevelrobustlock.h'
sed -n 's/^.*@@@name@@@\([^@]*\)@@@value@@@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*$/#define \1 \2/p' \
        /sources/glibc-build/lowlevelrobustlock.hT3 > /sources/glibc-build/lowlevelrobustlock.hT
rm -f /sources/glibc-build/lowlevelrobustlock.hT3
sed -e 's@ /sources/glibc-build/@ $(common-objpfx)@g' -e 's@^/sources/glibc-build/@$(common-objpfx)@g' -e 's@  *\.\.\/\([^        \]*\)@ $(..)\1@g' -e 's@^\.\.\/\([^        \]*\)@$(..)\1@g' \
    /sources/glibc-build/lowlevelrobustlock.h.dT > /sources/glibc-build/lowlevelrobustlock.h.dT2
rm -f /sources/glibc-build/lowlevelrobustlock.h.dT
mv -f /sources/glibc-build/lowlevelrobustlock.h.dT2 /sources/glibc-build/lowlevelrobustlock.h.d
mv -f /sources/glibc-build/lowlevelrobustlock.hT /sources/glibc-build/lowlevelrobustlock.h
gawk -f ../scripts/gen-as-const.awk pthread-errnos.sym \
| gcc -S -o /sources/glibc-build/pthread-errnos.hT3 -std=gnu99 -fgnu89-inline  -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wstrict-prototypes        -I../include -I/sources/glibc-build/nptl -I/sources/glibc-build -I../sysdeps/unix/sysv/linux/x86_64/64/nptl -I../sysdeps/unix/sysv/linux/x86_64/64 -I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../nptl/sysdeps/unix/sysv/linux/x86 -I../sysdeps/unix/sysv/linux/x86 -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../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../nptl/sysdeps/x86_64/64 -I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch -I../sysdeps/x86_64/fpu -I../sysdeps/x86/fpu -I../sysdeps/x86_64/multiarch -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/x86 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I.  -D_LIBC_REENTRANT -include ../include/libc-symbols.h      -x c - \
        -MD -MP -MF /sources/glibc-build/pthread-errnos.h.dT -MT '/sources/glibc-build/pthread-errnos.h.d /sources/glibc-build/pthread-errnos.h'
sed -n 's/^.*@@@name@@@\([^@]*\)@@@value@@@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*$/#define \1 \2/p' \
        /sources/glibc-build/pthread-errnos.hT3 > /sources/glibc-build/pthread-errnos.hT
rm -f /sources/glibc-build/pthread-errnos.hT3
sed -e 's@ /sources/glibc-build/@ $(common-objpfx)@g' -e 's@^/sources/glibc-build/@$(common-objpfx)@g' -e 's@  *\.\.\/\([^        \]*\)@ $(..)\1@g' -e 's@^\.\.\/\([^        \]*\)@$(..)\1@g' \
    /sources/glibc-build/pthread-errnos.h.dT > /sources/glibc-build/pthread-errnos.h.dT2
rm -f /sources/glibc-build/pthread-errnos.h.dT
mv -f /sources/glibc-build/pthread-errnos.h.dT2 /sources/glibc-build/pthread-errnos.h.d
mv -f /sources/glibc-build/pthread-errnos.hT /sources/glibc-build/pthread-errnos.h
make[4]: Leaving directory `/sources/glibc-2.17/nptl'


druuna 06-17-2013 01:30 PM

Quote:

Originally Posted by mreff555 (Post 4971631)
I am attempting to build glibc in chapter6 book 7.3

Since it reportedly took >17SBU's I walked away, expecting it to take a while. After about 24 hours it was still working. BTW, This is a core i3 notebook with 4gb of ram. I used a j5 make flag.

Is this a dual core i3? If it is: -j5 is way to high. Use -j2.

Anyway: Maybe you should try building it without the -j flag and see what happens.

mreff555 06-17-2013 02:06 PM

Since the problem occurred I have not been using the j flag at all. Also, I confirmed that MAKEOPTS is not defined.

BTW, not to argue, but LFS as well as many other sources recommend (# of cores) +1.

---------- Post added 06-17-13 at 03:07 PM ----------

Since the problem occurred I have not been using the j flag at all. Also, I confirmed that MAKEOPTS is not defined.

BTW, not to argue, but LFS as well as many other sources recommend (# of cores) +1.

druuna 06-17-2013 02:45 PM

Quote:

Originally Posted by mreff555 (Post 4973639)
Since the problem occurred I have not been using the j flag at all. Also, I confirmed that MAKEOPTS is not defined.

That's the safe thing to do.

Quote:

BTW, not to argue, but LFS as well as many other sources recommend (# of cores) +1.
I'm not arguing, just asking. You _still_ have not mentioned how many cores your i3 CPU has..... We can only assume it has 4 cores.

mreff555 06-17-2013 02:55 PM

Yes, it has 4 cores. regardless I am only using one thread.
So I don't suppose you see anything in the posted output that looks wrong? Other than the fact that it repeats, I don't see the problem.

business_kid 06-17-2013 03:18 PM

It's looping in the build script, and they are not supposed to loop, ergo something is wrong.

Remove the -j option as has been suggested, A parallel build can cause errors, and at 17 sbus, you won't be there more than an hour. When you followed the instructions in post 2, did you grep the some_error_file for words like warning, error, found, and missing?

mreff555 06-17-2013 04:53 PM

Quote:

Originally Posted by business_kid (Post 4973673)
It's looping in the build script, and they are not supposed to loop, ergo something is wrong.

Remove the -j option as has been suggested, A parallel build can cause errors, and at 17 sbus, you won't be there more than an hour. When you followed the instructions in post 2, did you grep the some_error_file for words like warning, error, found, and missing?

The -j option has been removed since before the first post.

as for your the error, found, missing and warning.

found and missing return nothing.
error and warning but nothing that actually appears to be an error or a warning. For example, below is a few lines from the bottom of the results for greping the output file. There are a lot of files containing the words error and warning.


Code:

include ../include/libc-symbols.h  -DPIC -DSHARED  -DNOT_IN_libc=1 -DIS_IN_rtld=1 -DIN_LIB=rtld    -o /sources/glibc-build/elf/dl-error.os -MD -MP -MF /sources/glibc-build/elf/dl-error.os.dt -MT /sources/glibc-build/elf/dl-error.os
gcc  -nostdlib -nostartfiles -r -o /sources/glibc-build/elf/dl-allobjs.os /sources/glibc-build/elf/rtld.os /sources/glibc-build/elf/dl-load.os /sources/glibc-build/elf/dl-lookup.os /sources/glibc-build/elf/dl-object.os /sources/glibc-build/elf/dl-reloc.os /sources/glibc-build/elf/dl-deps.os /sources/glibc-build/elf/dl-hwcaps.os /sources/glibc-build/elf/dl-runtime.os /sources/glibc-build/elf/dl-error.os /sources/glibc-build/elf/dl-init.os /sources/glibc-build/elf/dl-fini.os /sources/glibc-build/elf/dl-debug.os /sources/glibc-build/elf/dl-misc.os /sources/glibc-build/elf/dl-version.os /sources/glibc-build/elf/dl-profile.os /sources/glibc-build/elf/dl-conflict.os /sources/glibc-build/elf/dl-tls.os /sources/glibc-build/elf/dl-origin.os /sources/glibc-build/elf/dl-scope.os /sources/glibc-build/elf/dl-execstack.os /sources/glibc-build/elf/dl-caller.os /sources/glibc-build/elf/dl-open.os /sources/glibc-build/elf/dl-close.os /sources/glibc-build/elf/dl-trampoline.os /sources/glibc-build/elf/dl-cache.os /sources/glibc-build/elf/dl-sysdep.os /sources/glibc-build/elf/dl-environ.os /sources/glibc-build/elf/dl-minimal.os /sources/glibc-build/elf/dl-brk.os /sources/glibc-build/elf/dl-sbrk.os /sources/glibc-build/elf/dl-getcwd.os /sources/glibc-build/elf/dl-openat64.os /sources/glibc-build/elf/dl-opendir.os /sources/glibc-build/elf/dl-fxstatat64.os /sources/glibc-build/elf/tlsdesc.os /sources/glibc-build/elf/dl-tlsdesc.os
a - stdio-common/perror.os
a - libio/ferror.os
a - libio/ferror_u.os
a - string/strerror.os
a - string/_strerror.os
a - string/xpg-strerror.os
a - string/strerror_l.os
a - posix/gai_strerror.os
a - misc/error.os
a - resolv/herror.os


druuna 06-18-2013 01:36 AM

Can you post the config.log file and the make command?

BTW: Just to make sure (business_kid already mentioned this); You did remove both the source and build directory before trying again?

Lennie 06-18-2013 09:50 AM

Grep for Error (capital E!) instead.

business_kid 06-18-2013 10:55 AM

Or also make -S > logfile 2>&1

Stops it on the first error. I'm fairly sure there is a mistake, and it's being repeated, which is the way things happen on LFS. Do check the md5sum, or sha1sum of the file

mreff555 06-18-2013 07:45 PM

Ok, tried it again. clean build directory. Freshly extracted source.
from the build directory.

config command.
Code:

../glibc-2.17/configure --prefix=/usr --disable-profile --enable-kernel=2.6.25 --libexecdir=/usr/lib/glibc

make command.
Code:

make -S > glibc-logfile 2>&1
After 2 hours it is still looping at the exact same point as indicated above.

The md5 and sha1 check out. (all of them do). I have also deleted the archive and downloaded a copy from gnu.org. Same problem.

druuna 06-19-2013 03:35 AM

I've already asked (post #10), but you might have overlooked it:

Can you post the config.log file and the (output of the) make command?

mreff555 06-20-2013 10:34 AM

I apologize, where would this config.log file be? It's not in the source directory. Also, I'm not sure how to post the entire make output as the error doesn't occur until the log file is over 6 MB.

druuna 06-21-2013 12:48 AM

Quote:

Originally Posted by mreff555 (Post 4975452)
I apologize, where would this config.log file be? It's not in the source directory.

It is created in the build directory or the glibc source directory.

Quote:

Also, I'm not sure how to post the entire make output as the error doesn't occur until the log file is over 6 MB.
Compress the file using zip/bzip/tar/.. and upload that.

mreff555 06-22-2013 12:15 PM

Alright I have the config log and make logs.

to clarify:
This was all run on a single thread.
Freshly extracted source directory and empty build directory
I used the exact syntax for the config that was specified in build 7.3
for the make command I used

Code:

make -S > /root/glibc-logfile 2>&1
The locations of the files are:

http://www.pages.drexel.edu/~dmf86/glibc-logfile.gz
http://www.pages.drexel.edu/~dmf86/config.log

line 8892 contains the first line of the loop. I stopped it after a few iterations.

business_kid 06-22-2013 02:05 PM

Grabbed the logfile, and my attention was caught by lines 8892, & 8893
Code:

make[4]: Leaving directory `/sources/glibc-2.17/nptl'
make[4]: Entering directory `/sources/glibc-2.17/nptl'

That is suspicious, as make should clear off and build something else. If you stop a make after it has done several directories, it is usually capable of running down through what it has done without recompiling and taking up where it left off. That points to possibly
1. A mistake in the makefile causing it to loop.
2. Maybe some weird issue with writing notes to itself.
3. Something else that my devious mind cannot conceive of.

mreff555 06-23-2013 06:58 AM

I guess I could try reverting to 2.16. At least that will help me zero in on the problem

mreff555 06-23-2013 08:28 AM

Well, I tried 2.16.0 and got the exact same looping error. It seems to me that this probably rules out a makefile error as I doubt the error would make it through two releases. I'm wondering if this could be some kind of problem with permissions.

druuna 06-23-2013 09:27 AM

I guess we can rule out glibc itself as the culprit, something must have gone wrong earlier in the build process.

Did you check and re-check if the first few chapters in chapter 6 were done correctly? I do hope for you its a problem in chapter 6, going back to trouble-shoot chapter 5 at this point would be very hard to do.....

mreff555 06-23-2013 09:43 AM

yeah... sadly if it is a problem from previous mistakes it's probably chapter five. I have re-ran through all the steps up to this point a dozen times. I'm seriously considering redoing the entire chapter five with all of the make checks.

druuna 06-23-2013 09:59 AM

Quote:

Originally Posted by mreff555 (Post 4977086)
I'm seriously considering redoing the entire chapter five

That might be a good idea.

Quote:

Originally Posted by mreff555
with all of the make checks.

Running the tests in chapter 5 can be problematic and some test cannot be run at all (details are in the specific build chapters).

mreff555 06-23-2013 12:06 PM

I'm just worried that I'm not going to see any difference. Oh well. I guess I have nothing else to try.

Has anyone successfully build book 7.3?

druuna 06-23-2013 12:47 PM

Quote:

Originally Posted by mreff555 (Post 4977136)
Has anyone successfully build book 7.3?

Multiple people have (me being one of those).

spiky0011 06-23-2013 04:00 PM

Me

+1

stoat 06-23-2013 08:53 PM

Quote:

Originally Posted by mreff555

I'm just worried that I'm not going to see any difference.

Understandable.

Quote:

Originally Posted by mreff555

Oh well. I guess I have nothing else to try.

You'll just be re-doing the tools. Mostly. In the context of a complete BLFS project, that's not so bad. Probably one evening of work. Some other ideas to consider might be using another host system. It's Debian now, right? Try your Slackware system. That was the last distro host I used. Another idea is to consider building a 32-bit system. Those ideas are mostly guesswork. Thinking out loud mostly, and not really based on much. Nor guaranteed.

Quote:

Originally Posted by mreff555

Has anyone successfully build book 7.3?

I had no problems with it.

business_kid 06-24-2013 03:29 AM

One other consideration: The build tools on your base system must be good enough, and up to date enough to build chapter 5. One suspect is always the kernel headers. In the time I was doing LFS, some uclibc based builds were failing with weird errors, and it was traced to an older kernel headers package than the kernel itself (headers 2-15, kernel 2.29 or some such). These kernel headers only affect what you build. They do change occasionally.

Right now, on Slackware-14.0, I have kernel headers-3.2.29, and kernel 3.8.8 - not a good mix. If I hit build difficulties, the headers would be the first thing I'd change. You can simply run
make headers check
make headers install
in the kernel top source to install new headers, or install the headers from the updates, or current.

Lennie 06-24-2013 10:34 AM

Quote:

Originally Posted by business_kid (Post 4977450)
You can simply run
make headers check
make headers install
in the kernel top source to install new headers, or install the headers from the updates, or current.

Don't update the kernel api headers.
http://www.linuxfromscratch.org/lfs/...08/kernel.html
Quote:

Warning

The headers in the system's include directory should always be the ones against which Glibc was compiled, that is, the sanitised headers from this Linux kernel tarball. Therefore, they should never be replaced by either the raw kernel headers or any other kernel sanitized headers.
The kernel api headers should be the same as was compiled in chapter 5. Once I tried to use newer version in chapter 6 (3.8.8 instead of 3.8.1) and I had strange problems, where things "mystically" didn't compile. Switching back to the same version of the kernel api headers as I used in chapter 5 solved the problem.

business_kid 06-24-2013 11:35 AM

Funny how things change. . . It was 10 years ago. Agreed, Lennie. I was somehow thinking if all else fails, replace the headers before starting on ch 5. But I didn't say that, or nearly. Any switch midway would be a disaster. Thanks for tidying up for me.

Lennie 06-24-2013 11:49 AM

I suddenly remember a strange problem I had some time ago. I wanted to build a second system on a different computer. I tried to use the same toolchain, and I had completely forgotten that i used '-march=native', which was corei7. (Actually I still don't remember if I really used that for the toolchain, but I couldn't find any other cause for the problem.) I think it was perl that again and again got stuck in an infinite loop of untaring some packages, until all RAM was used and I had to reboot. Somehow I managed to login to a different tty and run, I don't remember if it was 'ps' or something else, where I saw something like 'tar <some package>' again and again, filling the whole screen.

I don't know if I compiled everything before perl on that machine, or if I compiled it on the first machine. I create packages so I could have just installed them, and continued building from there. When I realized what I thought was the problem, I rebuild the new system on the first machine, and made sure to have the right optimization for the computer I was building for, 'core2'. And then there were no problem with perl.

Quote:

Originally Posted by business_kid (Post 4977630)
Funny how things change. . . It was 10 years ago. Agreed, Lennie. I was somehow thinking if all else fails, replace the headers before starting on ch 5. But I didn't say that, or nearly. Any switch midway would be a disaster. Thanks for tidying up for me.

Thanks for making me remember my mistakes, so I can share them and maybe help someone... ;)

business_kid 06-24-2013 03:15 PM

All LFSers and ex-LFSers have at least one experience of a build that went sadly wrong because of initial toolchain trouble causing issues much later on. If you get into the smaller packages in ch 6 without issue you're usually safe. GCC used to be the big stumbling block when I was doing it, and people using ambitious $CFLAGS settings. HLFS has/had a uclibc build that rarely completes.


All times are GMT -5. The time now is 10:38 PM.