If you want to understand what you're running look at the output of
Code:
./configure --help |less
--with-build-sysroot is at first slightly ambiguous; But there's also --prefix, which sets install root. For something like glibc, which has to drop files in /lib(64) --prefix has to be your new system's root. That helps. Now we can
guess
--with-build-sysroot= root of tree from where you pick up the libs and includes neccessary for compilation
--prefix = --with-install-sysroot = install destination.
So in ch. 5, the build sysroot would be the base system, and in chapter 6 it would be the chapter 5 system. Do the provided details back that up?