Jump to content

gcc error out of nowhere!!


Recommended Posts

I know this issue is covered in another post but the solution there was that gc++ was missing.

 

Simplest way is to show output:

 

checking build system type... i686-pc-linux-gnu

checking host system type... i686-pc-linux-gnu

checking target system type... i686-pc-linux-gnu

checking for a BSD-compatible install... /usr/bin/install -c

checking for -p flag to install... yes

checking whether build environment is sane... yes

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking for style of include used by make... GNU

checking for gcc... gcc

checking for C compiler default output... 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 dependency style of gcc... gcc3

checking how to run the C preprocessor... gcc -E

checking for g++... no

checking for c++... no

checking for gpp... no

checking for aCC... no

checking for CC... no

checking for cxx... no

checking for cc++... no

checking for cl... no

checking for FCC... no

checking for KCC... no

checking for RCC... no

checking for xlC_r... no

checking for xlC... no

checking whether we are using the GNU C++ compiler... no

checking whether g++ accepts -g... no

checking dependency style of g++... none

checking whether g++ supports -Wundef... no

checking whether g++ supports -Wno-long-long... no

checking whether g++ supports -Wnon-virtual-dtor... no

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 can attach the config.log if it would help but it is very long. Suffice to say that I am frustrated with this issue. Everything is installed and where it is supposed to be. I have recently upgraded to 10.1 CE so nothing serious can be wrong yet - I hope :)

 

Any suggestions as to what might have caused this to happen out of the blue?

 

I have tried to compile numerous programs and re-install the gcc and associated libraries to no avail.

 

Cheers,

Link to comment
Share on other sites

It looks like it checked for g++ and didn't find it.

 

I recently reinstalled 10.1 ce and noticed that g++ had not been installed by default like it is in 10.0. Try urpmi'ing it to make sure it's in the system. It solved the problem for me.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...