LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-30-2007, 03:00 AM   #1
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Rep: Reputation: 30
error: C preprocessor "/lib/cpp" fails sanity check


Code:
#./configure --prefix=/usr/local/
configure: error: you must configure in a separate build directory
0x1:/usr/src/glibc-2.7# /usr/src/glibc-2.7/configure --prefix=/usr/local/
configure: error: you must configure in a separate build directory
0x1:/usr/src/glibc-2.7# cd ..
0x1:/usr/src# /usr/src/glibc-2.7/configure --prefix=/usr/local/
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
configure: running configure fragment for add-on nptl
checking sysdep dirs... sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/i386 nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu nptl/sysdeps/i386/i686 sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu nptl/sysdeps/i386 sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gcc... gcc
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 ISO C89... unsupported
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 have my kernel headers, kernel source, cpp compiler, EVERYTHING installed, this does not make sense, nor is there a posted solution to it.

Debian Etch.
 
Old 12-30-2007, 06:22 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
What is in the config.log (just the bits which refer to cpp should suffice)?
 
Old 12-31-2007, 07:27 AM   #3
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
I did a search for 'cpp' through the config.log
Code:
## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_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_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_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=

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
AS=''
ASFLAGS_config=''
AUTOCONF=''
AWK=''
BASH_SHELL=''
BISON=''
BUILD_CC=''
CC=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
CXX_SYSINCLUDES=''
DEFINES=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
This is all there is that so much as mentions cpp.
 
Old 12-31-2007, 03:42 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
I don't know what you're trying to configure there, but it seems
to be swearing at you higher up already ...

Code:
#./configure --prefix=/usr/local/
configure: error: you must configure in a separate build directory
0x1:/usr/src/glibc-2.7# /usr/src/glibc-2.7/configure --prefix=/usr/local/
configure: error: you must configure in a separate build directory
Maybe you want to read the README and/or INSTALL first?



Cheers,
Tink
 
Old 12-31-2007, 06:31 PM   #5
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
Please look at my code properly : /

After running that command I did cd out and give it a prefix...

Code:
#./configure --prefix=/usr/local/
configure: error: you must configure in a separate build directory
0x1:/usr/src/glibc-2.7# /usr/src/glibc-2.7/configure --prefix=/usr/local/
configure: error: you must configure in a separate build directory
0x1:/usr/src/glibc-2.7# cd ..
0x1:/usr/src# /usr/src/glibc-2.7/configure --prefix=/usr/local/
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
configure: running configure fragment for add-on nptl


And it's glibc-2.7

Thanks for your help

Last edited by Virtuality; 12-31-2007 at 06:55 PM.
 
Old 01-01-2008, 10:21 PM   #6
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
This is a serious issue, I can not compile my WACOM drivers either. It happens everytime I reinstall debian and I have found no solution.

Every single person who uses debian should experience this;

How is it fixed? I should mention I have build-essential already installed also...

Last edited by Virtuality; 01-01-2008 at 10:36 PM.
 
Old 01-01-2008, 10:39 PM   #7
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,751
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
You will find this exact statement in the config.log
Quote:
configure: error: C preprocessor "/lib/cpp" fails sanity check
. It will be right before the failed step. Search your config.log again.
 
Old 01-02-2008, 02:28 AM   #8
syberguyy
LQ Newbie
 
Registered: Oct 2007
Posts: 7

Rep: Reputation: 0
Set the environment variable CPP=/lib/cpp

I helped for me...but not for this package ,its for globus
 
Old 01-02-2008, 04:45 AM   #9
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
what command do i use to do that?

Thanks
 
Old 01-02-2008, 07:14 PM   #10
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
I typed CPP=/lib/cpp/ and it solved nothing.

http://pastebin.com/f58de519a

proper config.log^

Thanks
 
Old 01-02-2008, 10:29 PM   #11
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,751
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
In your pastebin, look at lines 546-724. The configure script is testing cpp and tries several different tests, all of which fail for the same reason. This is the last test just before it spits your error message.
Code:
#configure:3875: /lib/cpp  conftest.c
#In file included from /usr/local/include/features.h:354,
#                 from /usr/local/include/limits.h:27,
#                 from conftest.c:10:
#/usr/local/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
#configure:3881: $? = 1
#configure: failed program was:
#| /* confdefs.h.  */
#| #define PACKAGE_NAME "GNU C Library"
#| #define PACKAGE_TARNAME "c-library"
#| #define PACKAGE_VERSION "(see version.h)"
#| #define PACKAGE_STRING "GNU C Library (see version.h)"
#| #define PACKAGE_BUGREPORT "glibc"
#| #define USE_REGPARMS 1
#| /* end confdefs.h.  */
#| #ifdef __STDC__
#| # include <limits.h>
#| #else
#| # include <assert.h>
#| #endif
#|                    Syntax error
#configure:3943: error: C preprocessor "/lib/cpp" fails sanity check
I'm not a Debian user, so I can't tell you the exact name of the package providing the missing file. I can tell you that glibc provides the stubs-32.h header file though.
 
Old 01-03-2008, 01:43 AM   #12
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
I've searched google for over an hour trying to find glibc that I can install on debian, but I can't even get sources... It only seems to exist for redhat/fedora as an rpm. Nothing else.

Also:

Code:
0x1:/home/main# apt-get install glibc-devel
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package glibc-devel
0x1:/home/main# apt-cache search glibc
linux-kernel-headers - Linux Kernel Headers for development
manpages-fr-dev - French version of the development manual pages
abicheck - binary compatibility checking tool
glibc-doc - GNU C Library: Documentation
ja-trans - Japanese gettext message files
kmtrace - a KDE memory leak tracer
libc6 - GNU C Library: Shared libraries
libc6-pic - GNU C Library: PIC archive library
libdb1-compat - The Berkeley database routines [glibc 2.0/2.1 compatibility]
libg++2.8.1.3-glibc2.2 - The GNU C++ extension library - runtime version
libgetopt-java - GNU getopt - Java port
libggz-dev - GGZ Gaming Zone: common utilities library - development files
libggz2 - GGZ Gaming Zone: common utilities library
libnss-ldap - NSS module for using LDAP as a naming service
libnss-mdns - NSS module for Multicast DNS name resolution
libnss-pgsql1 - name service switch module using PostgreSQL
libstdc++2.10-glibc2.2 - The GNU stdc++ library
linuxinfo - Displays extended system information
manpages-dev - Manual pages about using GNU/Linux for development
manpages-pl-dev - Polish man pages for developers
perdition-dev - Development libraries and headers for perdition
perdition-ldap - Library to allow perdition to access LDAP based popmaps
perdition-mysql - Library to allow perdition to access MySQL based popmaps
perdition-odbc - Library to allow perdition to access ODBC based popmaps
perdition-postgresql - Library to allow perdition to access PostgreSQL based popmaps
python-utmp - python module for working with utmp
winbind - service to resolve user and group information from Windows NT servers
glibc-doc-reference - GNU C Library: Documentation
0x1:/home/main#
 
Old 01-03-2008, 01:48 AM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Try
apt-cache search libc6-dev



Cheers,
Tink
 
Old 01-03-2008, 01:48 AM   #14
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
Already installed.

Code:
main@0x1:~$ apt-cache search libc6-dev
libc6-dev - GNU C Library: Development Libraries and Header Files
libc6-dev-amd64 - GNU C Library: 64bit Development Libraries for AMD64
0x1:/home/main# apt-get install libc6-dev
Reading package lists... Done
Building dependency tree... Done
libc6-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0x1:/home/main#

Last edited by Virtuality; 01-03-2008 at 01:50 AM.
 
Old 01-03-2008, 06:25 AM   #15
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,751
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
Quote:
Originally Posted by Virtuality View Post
I've searched google for over an hour trying to find glibc that I can install on debian, but I can't even get sources...
Are you kidding!!! Google glibc and the first hit is the glibc homepage --> http://www.gnu.org/software/libc/ where you click on Availability to get to the link to the ftp server --> http://ftp.gnu.org/gnu/glibc/ where you can get the source for glibc.

Since you already have glibc installed, is the stubs-32.h file installed in /usr/include/gnu or somewhere else? Is it even installed at all?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error: C++ preprocessor "/lib/cpp" fails sanity check marek345 Linux - Software 4 11-06-2008 10:49 AM
configure: error: C preprocessor "/lib/cpp" fails sanity check vikiugu Linux - Newbie 1 12-22-2007 01:06 PM
error: C++ preprocessor "/lib/cpp" fails sanity check i.you Linux - Software 3 03-06-2007 03:24 AM
error: C preprocessor "/lib/cpp" fails sanity check ankit4u1 Linux - Software 2 04-02-2006 01:24 PM
error: C preprocessor "/lib/cpp" fails sanity check Master Fox Linux - Software 0 10-14-2004 04:39 PM


All times are GMT -5. The time now is 04:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration