WOW!! O_o
Basically, when you get something as not-working as that, than, IMHO, you can only do one thing - redo _everything_.
However, I would suggest that you use some known good host system - LFS live CD should work fine.
As for gperf, it is not needed at that point in the build process. At that point, you should be running in a chroot environment and should be dependent only on your toolchain. The LFS toolchain has the capacity to build the whole system, provided IT is built properly.
I have not delved into gcc or glibc makefiles, but, from previous building attempts, I know that those packages require gperf when rebuilding some of their files (they can sometimes require flex and bison as well). This is an ominous sign, I encountered it in cases when my toolchain was miscompiled.
This happened when I tried to build a toolchain whose glibc was several versions greater than the one on the host (toolchain: 2.5.1, host: 2.3.6), by using a similarly incompatible gcc (toolchain: 4.3.x, host: 4.0.3) and binutils (forgot the exact versions). Very bad!!
So, unless you are using a LFS-6.4 live CD, you should try with it as your host.
Or hand-comb your own host and work out all the quirks, dependencies and versions.
