Hello
When building lfs you must be vary careful to follow the instruction in the book evan a single missed stepped will cause all kinds of bugs later on. What I had to do the first time I built lfs and ran into an error was go back over my bash history (which you can do by logging in to the user you were building lfs in and typing history on the command line, then comparing line by line what you did and what the book say to do. then rebuilding the package the error was in and all the other package after.
Good luck