Error C Preprocessor /lib/cpp Fails Sanity Check Gentoo
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top gcc: fail sanity check error, I suppose due to cxx USE flag missed up vote 0 down vote favorite 1 Recently I've done emerge -e world and then found that gcc was compiled without cxx flag. Now I can't compile any C++ package due to configure: error: C++ preprocessor "/lib/cpp" fails sanity check I'm thinking on copying files returned by equery f gcc|grep -v share from stage3. Will it help? Is there any simpler way? UPDATE 1 Here's my config.log UPDATE 2 Here's my make.conf Please, note there's cxx flag in USE. I've added it recently, but it does not help as I can't rebuild packages. UPDATE 3 I have tried to reinstall gcc-4.6.3 from binary package via emerge -avK gcc:4.6 It completed successfully but error didn't go. Also, I've noticed that: configure:11955: /lib/cpp conftest.cpp cpp: error: conftest.cpp: C++ compiler not installed on this system configure:11955: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "expat" | #define PACKAGE_TARNAME "expat" | #define PACKAGE_VERSION "2.1.0" | #define PACKAGE_STRING "expat 2.1.0" | #define PACKAGE_BUGREPORT "expat-bugs@libexpat.org" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | #ifdef __STDC__ | # include
Post #1 of 25 (3960 views) Permalink glibc - C preprocessor "/lib/cpp" fails sanity check I have a problem with my gentoo system I am trying to update, and I get a C preprocessor "/lib/cpp" fails sanity check error on a number of packages. After a bit of searching, the solution that I come across most often is to recompile glibc and gcc. Unfortunately, when I try to compile glibc, I get the same sanity check error. Catch 22. Can anyone help me get around this 'insanity'? Thanks Jeff justin at j-schmitz Dec21,2008,8:11AM Post #2 of 25 (3916 views) Permalink http://unix.stackexchange.com/questions/62527/gcc-fail-sanity-check-error-i-suppose-due-to-cxx-use-flag-missed Re: glibc - C preprocessor "/lib/cpp" fails sanity check [In reply to] Jeff Cranmer schrieb: > I have a problem with my gentoo system > > I am trying to update, and I get a C preprocessor "/lib/cpp" fails sanity > check error on a number of packages. > > After a bit of searching, the solution that I come across most often is to > recompile glibc and gcc. http://www.gossamer-threads.com/lists/gentoo/user/177993 Unfortunately, when I try to compile glibc, I get > the same sanity check error. Catch 22. > > Can anyone help me get around this 'insanity'? > > Thanks > > Jeff > > > Can you provide some more information please? Logs etc? Attachments: signature.asc (0.19 KB) jcranmer01 at earthlink Dec21,2008,8:52AM Post #3 of 25 (3984 views) Permalink Re: glibc - C preprocessor "/lib/cpp" fails sanity check [In reply to] On Sunday 21 December 2008 11:11:59 am Justin wrote: > Jeff Cranmer schrieb: > > I have a problem with my gentoo system > > > > I am trying to update, and I get a C preprocessor "/lib/cpp" fails sanity > > check error on a number of packages. > > > > After a bit of searching, the solution that I come across most often is > > to recompile glibc and gcc. Unfortunately, when I try to compile glibc, > > I get the same sanity check error. Catch 22. > > > > Can anyone help me get around this 'insanity'? > > > > Thanks > > > > Jeff > > Can you provide some more information please? Logs etc? Here is the end of the output. checking whether we are using the
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of http://stackoverflow.com/questions/34380937/how-to-fix-the-c-preprocessor-lib-cpp-fails-sanity-check-error-when-configu this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question https://groups.google.com/d/topic/linux.gentoo.user/XI13ubpJMys x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error c How to fix the C++ preprocessor “/lib/cpp” fails sanity check error when configure PHP 7.0.1 up vote 2 down vote favorite I installed gcc 5.3.0 from source code on mac os x 10.11, and i have set gcc 5.3.0 in the environment variable $PATH. But when I configure PHP 5.5.30, it shows configure: error: C++ preprocessor "/lib/cpp" fails sanity check How can i error c preprocessor fix this? How can i use c++/cpp from gcc 5.3.0 instead of the old version of gnu c++? php c++ share|improve this question edited Dec 21 '15 at 14:57 asked Dec 20 '15 at 12:19 Will 1458 1 What is the difference between "gcc 5.3.0" and "gnu c++"? Have you checked upstream bug tracking system? What is even your OS and compiler? Anyhow, extract the test so that you can post a minimal example here, what you have provided is just a summary from a configure script that effectively says "something didn't work". –Ulrich Eckhardt Dec 20 '15 at 16:00 @Will did you find the answer to this one? –samayo Feb 5 at 19:06 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privac
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen