This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

./configure: error: "/lib/cpp" fails sanity check SOLVED


./configure: error: "/lib/cpp" fails sanity check 

This problem was solved by adding a symlink as shown below.

Thanks to Exeon at:
http://www.linuxquestions.org/questions/showthread.php?t=124961

He said:
>I know this shouldn't be right.
>gcc was already installed on my machine but I still got:
>C++ preprocessor "/lib/cpp" fails sanity check
>I looked at config.log and it said something like:
>cc1plus command not found

>i found cc1
>/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/cc1
>so I linked it in /usr/bin
>ln -s /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/cc1 cc1plus

>voila: all working

So, I added:
asus:/usr/bin# ln -s /usr/lib/gcc/i486-linux-gnu/4.0.3/cc1 cc1plus

Volla!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]