I found out what was causing my compiling troubles when using the LFS CD. Somehow I managed to put gcc and cc into /bin. This gcc is the static version and it looks for its library files in /static, which do not exist on the CD. I'll fix the iso image and burn a new one.