error: C++ preprocessor "/lib/cpp" fails sanity check
I use gcc 3.4.4 (CodeSourcery ARM 2005q3-2) to install lighttpd, and following error:
checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for a BSD-compatible install... /usr/bin/install -c checking build system type... armv5tejl-unknown-linux-gnu checking host system type... armv5tejl-unknown-linux-gnu checking for a sed that does not truncate output... /bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... /lib/cpp configure: error: C preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. I searched google and saw many forums which this problem, but i can't check it. What can i do? I checked that g++ is installed. |
What does config.log report?
|
I had similar errors trying to install Fuse I believe, or ntfs-3g, in Mandrake 10.2 (I think), I did not have gcc-c++ installed, or make for that matter, possibly even kernel-source. Having many distros is starting to have an effect. But basically there is some building tools (essentials) not installed or the wrong version installed as you mention you are using gcc-34, possibly libgcc according to where things came to a halt.
Which distribution is this? |
Thanks, ernie and Junior Hacker.
config.log reports same error and so many other errors... and I use embedded kernel on ARM9, so no distribution. anyway, I resolved: I just skipped C Preprocessor sanity check with editing "configure" file. |
All times are GMT -5. The time now is 10:48 PM. |