> Where is the context of the message you are responding to?
> 
> I may have had this problem but it would be nice to see what the other
> message you are replying to said.
> 
> I can't do anything about the problem I had now because I opted to
> start over from scratch for more learning. It would be nice to be
> aware of a potential problem before I get to the point where it might
> happen again if I did have the same problem the last time.
> 
> Thanks,
> Jack


Hi Jack -

The problem to which I was responding was one experienced when working through
LFS 7.2, section 6.9 (glibc). Trying to run the mandated tests via:

 make -k check 2>&1 | tee glibc-check-log
 grep Error glibc-check-log

was producing lots of errors like the below, for which the cause was not
immediately clear:

 make[2]: *** [/sources/glibc-build/nptl/tst-cancel24] Error 1
 make[2]: *** [/sources/glibc-build/nptl/tst-cancelx4] Error 1
 make[2]: *** [/sources/glibc-build/nptl/tst-cancelx5] Error 1 <etc>

Recapping the reason for this: if you follow the LFS 7.2 instructions, 
but when you get to section 6.9 (glibc) either:
 a) try to reuse the original glibc source you untarred for section 5.7, or 
 b) untar the source again but unnecessarily reapply the edit from 5.7.1 
    (sed -i 's/ -lgcc_s//' Makeconfig);
the tests for glibc will not have the -lgcc_s flag in their build lines.

This in turn makes the build for certain tests (e.g. nptl/tst-cancel24) fail,
ultimately causing the error above (it's actually a linker problem, but to
see that you have to look further up in the glibc-check-log file - the single
lines produced by the grep (as above) isn't particularly meaningful).

To assist anyone coming on this by google, to avoid this issue:
 a) you need to rebuild glibc using a fresh source untar for section 6.9,
    and of course a clean glibc-build directory;
 b) you should *not repeat the sed -i 's/ -lgcc_s//' Makeconfig command from
    section 5.7.1, when following through section 6.9; you have the necessary
    library at this point, symlinked in /usr/lib/, per the instructions in 6.6.

Hope that helps.

Gavin
 

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

Reply via email to