glibc-2.8-20080929 build fails in Chapter 5

Dan Nicholson dbn.lists at
Wed Oct 15 12:59:19 PDT 2008

On Wed, Oct 15, 2008 at 11:58 AM, Robert Connolly
<robert at> wrote:
> --disable-libssp in GCC pass1 is best. Last time I looked at the test in
> gcc/configure, it checks "/usr/include/features.h" for the Glibc version. So
> you will probably need --disable-libssp in GCC pass2 too, because
> gcc/configure is going to check your host again, and you'll run into the same
> conflict in the chroot. --disable-libssp prevents libssp from being built,
> and removes -lssp from gcc specs, so -fstack-protector will only work if you
> have libssp built in to libc.

Alternatively, you can skip the check by setting the cache value:


This shows that it will set the glibc header dir to /usr/include and
search for features.h there unless you use --with-sysroot.


More information about the lfs-dev mailing list