||11-23-2011 12:49 PM
"C preprocessor... ...fails sanity check" in LFS 7.0 chapter 6.17
I'm trying to follow the directions as closely as I can to build GCC-4.6.1, but I keep getting this error. The host is Ubuntu in case you're wondering, but I'm not sure that actually makes a difference in this case. I've seen other threads were people have very similar problems on different distros, and the recommendation is always to install g++, which isn't mentioned in the book. Should I be installing it on the host? Or is something wrong?
checking for /sources/gcc-build/./gcc/xgcc -B/sources/gcc-build/./gcc/ -B/usr/x86_64-unknown-linux-gnu/bin/ -B/usr/x86_64-unknown-linux-gnu/lib/ -isystem /usr/x86_64-unknown-linux-gnu/include -isystem /usr/x86_64-unknown-linux-gnu/sys-include option to accept ISO C89... unsupported
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/sources/gcc-build/x86_64-unknown-linux-gnu/libgcc':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make: *** [configure-target-libgcc] Error 1
make: Leaving directory `/sources/gcc-build'
make: *** [all] Error 2
I'd include the config.log, but it's really big and I'm not sure how to attatch a file to the thread. If anyone needs to see it though, I'd be happy to upload it somewhere and give you guys a link.
UPDATE: I put the contents of config.log on pastebin for you guys. Here ya go: