Configure Error C Preprocessor Lib Cpp
Contents |
./configure: error: "/lib/cpp" fails sanity
Checking How To Run The C++ Preprocessor... /lib/cpp
check SOLVED From: nospam at nospam dot net lib cpp fails sanity check ubuntu To: gcc-help at gcc dot gnu dot org Date: Sun, 22 Jan 2006 c++ preprocessor fails sanity check centos 13:32:16 -0800 Subject: ./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.
Checking How To Run The C Preprocessor... /lib/cpp
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: [DateIndex] [SubjectIndex] [AuthorIndex] [ThreadIndex] Message Nav: [DatePrev][DateNext] [ThreadPrev][ThreadNext]
fails sanity check General support questions including new installations Post Reply --with-readline=yes (default) and headers/libs are not available Print view Search Advanced search 3 posts • Page uuid support not found 1 of 1 idealnet Posts: 1 Joined: 2006/12/29 12:02:00 C preprocessor "/lib/cpp" fails sanity
C++ Preprocessor Fails Sanity Check Ubuntu
check Quote Postby idealnet » 2006/12/29 12:12:41 Hello, I'm trying to compile the latest apache version under CentOS 4.4 but after I' running https://gcc.gnu.org/ml/gcc-help/2006-01/msg00161.html ./configure I get:checking whether make sets $(MAKE)... yeschecking how to run the C preprocessor... /lib/cppconfigure: error: C preprocessor "/lib/cpp" fails sanity checkSee `config.log' for more details.configure failed for srclib/aprI have installed the gcc-c++ package.Can anybody help me?Below I attachd the config.log file!byeuli#--------------------------------------------------------------------------------This file contains any messages produced http://www.centos.org/forums/viewtopic.php?t=35015 by compilers whilerunning configure, to aid debugging if configure makes a mistake.It was created by configure, which wasgenerated by GNU Autoconf 2.59. Invocation command line was $ ./configure ## --------- #### Platform. #### --------- ##hostname = ray.idnetuname -m = i686uname -r = 2.6.9-42.0.3.ELsmpuname -s = Linuxuname -v = #1 SMP Fri Oct 6 06:21:39 CDT 2006/usr/bin/uname -p = unknown/bin/uname -X = unknown/bin/arch = i686/usr/bin/arch -k = unknown/usr/convex/getsysinfo = unknownhostinfo = unknown/bin/machine = unknown/usr/bin/oslevel = unknown/bin/universe = unknownPATH: /usr/kerberos/sbinPATH: /usr/kerberos/binPATH: /usr/local/sbinPATH: /usr/local/binPATH: /sbinPATH: /binPATH: /usr/sbinPATH: /usr/binPATH: /usr/X11R6/binPATH: /root/binPATH: /root/bin## ----------- #### Core tests. #### ----------- ##configure:1657: checking for chosen layoutconfigure:1659: result: Apacheconfigure:2455: checking for working mkdir -pconfigure:2471: result: yesconfigure:2488: checking build system typeconfigure:2506: result: i686-pc-linux-gnulibc1configure:2514: checking host system typeconfigure:2528: result: i686-pc-linux-gnulibc1configure:2536: checking target system typeconfigure:2550: result: i686-pc-linux-gnulibc1configure:2608: checking for APRconfigure:2690: result: reconfig## ---------------- #### Cache variables. #### ---------------- ##ac_cv_build=i686-pc-linux-gnulibc1ac_cv_build_alias=i686-pc-linux-gnulibc1ac_cv_env_CC_set=ac_cv_env_CC_value=ac_cv_env_CFLAGS_set=ac_cv_env_CFLAGS_value=ac_cv_env_CPPFLAGS_set=ac_cv_env_CPPFLAGS_value=ac_cv_env_CPP_set=ac_cv_env_CPP_value=ac_cv_env_LDFLAGS_set=ac_cv_env_LDFLAGS_value=ac_cv_env_build_alias_set=ac_cv_env_build_alias_value=ac_cv_env_host_alias_set=ac_cv_env_host_alias_value=ac_cv_env_target_alias_set=ac_cv_env_target_alias_value=ac_cv_hos
Support https://github.com/crosstool-ng/crosstool-ng/issues/327 Search GitHub This repository Watch 49 Star 323 Fork 145 crosstool-ng/crosstool-ng Code Issues 35 Pull requests 24 Projects 0 Pulse Graphs New issue [ERROR] configure: error: C preprocessor "/lib/cpp" fails sanity check #327 Closed M2shad0w opened this Issue Jan c++ preprocessor 30, 2016 · 11 comments Projects None yet Labels None yet Milestone No milestone Assignees bhundven 3 participants M2shad0w commented Jan 30, 2016 when i build crosstools-ng for esp8266, it raises this error, anyone help? [ALL ] checking for fails sanity check suffix of object files... o [ALL ] checking whether we are using the GNU C compiler... yes [ALL ] checking whether /Volumes/esp-open-sdk/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-core-pass-2/./gcc/xgcc -B/Volumes/esp-open-sdk/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-core-pass-2/./gcc/ -B/Volumes/esp-open-sdk/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/xtensa-lx106-elf/bin/ -B/Volumes/esp-open-sdk/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/xtensa-lx106-elf/lib/ -isystem /Volumes/esp-open-sdk/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/xtensa-lx106-elf/include -isystem /Volumes/esp-open-sdk/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/xtensa-lx106-elf/sys-include accepts -g... yes [ALL ] checking for /Volumes/esp-open-sdk/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-core-pass-2/./gcc/xgcc -B/Volumes/esp-open-sdk/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-core-pass-2/./gcc/ -B/Volumes/esp-open-sdk/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/xtensa-lx106-elf/bin/ -B/Volumes/esp-open-sdk/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/xtensa-lx106-elf/lib/ -isystem /Volumes/esp-open-sdk/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/xtensa-lx106-elf/include -isystem /Volumes/esp-open-sdk/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/xtensa-lx106-elf/sys-include option to accept ISO C89... unsupported [ALL ] checking how to run the C preprocessor... /lib/cpp [ERROR] configure: error: in `/Volumes/esp-open-sdk/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-core-pass-2/xtensa-lx106-elf/libgcc': [ERROR] configure: error: C preprocessor "/lib/cpp" fails sanity check [ALL ] See `config.log' for more details. [ERROR] make[3]: *** [configure-target-libgcc] Error 1 [ERROR] [ERROR] >> [ERROR] >> Build failed in step 'Installing pass-2 core C compiler' [ERROR] >> called in step '(top-level)' [ERROR] >> [ERROR] >> Error happened in: CT_DoExecLog[scripts/functi