error: C preprocessor "/lib/cpp" fails sanity check
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ii libglib1.2-dev 1.2.10-17 The GLib library of C routines (development)
ii libglib2.0-dev 2.12.4-2 Development files for the GLib library
ii libglibmm-2.4-dev 2.12.0-1 C++ wrapper for the GLib toolkit (developmen
lrwxrwxrwx 1 root root 7 2007-12-17 07:51 /usr/bin/cpp -> cpp-4.1
lrwxrwxrwx 1 root root 7 2007-12-09 18:25 /usr/bin/g++ -> g++-4.1
lrwxrwxrwx 1 root root 7 2007-12-17 08:03 /usr/bin/gcc -> gcc-4.1
What are you trying to compile? Link to source?
I can't open the pastebin config.log you posted, so grep for cc1 and post results.
Also grep for "command not found"
Do you get anything with "locate cc1"? Like: /usr/lib/gcc/i486-linux-gnu/4.2/cc1plus
If so you could symlink: ln -s /usr/lib/gcc/i486-linux-gnu/4.2/cc1plus /usr/bin/cc1plus
Same with /usr/lib/gcc/i486-linux-gnu/4.2/cc1 if you have it. Replace 4.2 with 4.1 as you use that.
EDIT: Well, reading more carefully your other thread, I see you're compiling glibc itself. Don't. Apt-get it instead. Might as well apt-get rar and unrar-nonfree as you are compiling winrar instead.
EDIT: Well, reading more carefully your other thread, I see you're compiling glibc itself. Don't. Apt-get it instead. Might as well apt-get rar and unrar-nonfree as you are compiling winrar instead.
But then how do I install my wacom drivers... it has the same error... so does other programs...
Also, apt-get wont come through for me this time.
Code:
0x1:/home/main# apt-get install unrar
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
unrar
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 92.2kB of archives.
After unpacking 229kB of additional disk space will be used.
Get:1 http://http.us.debian.org stable/non-free unrar 1:3.5.4-1 [92.2kB]
Fetched 92.2kB in 2s (44.6kB/s)
Selecting previously deselected package unrar.
(Reading database ... 77383 files and directories currently installed.)
Unpacking unrar (from .../unrar_1%3a3.5.4-1_i386.deb) ...
Setting up unrar (3.5.4-1) ...
0x1:/home/main# unrar
unrar: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.4' not found (required by unrar)
I need glibc-2.4 or higher, which leaves no real option but to do this. Besides, if I don't, then I can't install all my other stuff (like I said, wacom drivers, etc.)
Quote:
Do you get anything with "locate cc1"? Like: /usr/lib/gcc/i486-linux-gnu/4.2/cc1plus
If so you could symlink: ln -s /usr/lib/gcc/i486-linux-gnu/4.2/cc1plus /usr/bin/cc1plus
Same with /usr/lib/gcc/i486-linux-gnu/4.2/cc1 if you have it. Replace 4.2 with 4.1 as you use that.
I did the links for that, no help for both cc1 and cc1plus
Last edited by Virtuality; 01-05-2008 at 07:48 PM.
0x1:/home/main# apt-get install wacom-kernel-source
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
wacom-kernel-source
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0B/787kB of archives.
After unpacking 3785kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package wacom-kernel-source.
(Reading database ... 77388 files and directories currently installed.)
Unpacking wacom-kernel-source (from .../wacom-kernel-source_0.7.4.1-5_all.deb) ...
Setting up wacom-kernel-source (0.7.4.1-5) ...
head: cannot open `/usr/src/linux//include/linux/version.h' for reading: No such file or directory
/var/lib/dpkg/info/wacom-kernel-source.postinst: line 49: [: =: unary operator expected
Warning: kernel headers don't match running Linux version.
Building wacom modules for Linux (this may take a few minutes)...dpkg: error processing wacom-kernel-source (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
wacom-kernel-source
E: Sub-process /usr/bin/dpkg returned an error code (1)
0x1:/home/main# apt-get install unrar-nonfree
Reading package lists... Done
Building dependency tree... Done
Package unrar-nonfree is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package unrar-nonfree has no installation candidate
0x1:/home/main#
My bad. Looks like unrar-nonfree is now just unrar. Should work though. Have you possibly changed any debian binaries with self compiled?
According to your other thread you've installed kernel source and headers. Headers are only needed if you don't have full source. Where's the source at since wacom complained about: /usr/src/linux//include/linux/version.h
The extra / between linux and include looks weird btw. Do you have the file /usr/src/linux/include/linux/version.h and is that source the same as your running kernels?
0x1:/home/main# apt-get install sun-java5-jre
Reading package lists... Done
Building dependency tree... Done
sun-java5-jre is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up wacom-kernel-source (0.7.4.1-5) ...
head: cannot open `/usr/src/linux//include/linux/version.h' for reading: No such file or directory
/var/lib/dpkg/info/wacom-kernel-source.postinst: line 49: [: =: unary operator expected
Warning: kernel headers don't match running Linux version.
Building wacom modules for Linux (this may take a few minutes)...dpkg: error processing wacom-kernel-source (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
wacom-kernel-source
E: Sub-process /usr/bin/dpkg returned an error code (1)
The thing is I have headers installed and they are the correct version AFAIK. But I tried to re-install them anyway.
Code:
0x1:/home/main# apt-get install linux-headers-2.6.18-5-686
Reading package lists... Done
Building dependency tree... Done
linux-headers-2.6.18-5-686 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up wacom-kernel-source (0.7.4.1-5) ...
head: cannot open `/usr/src/linux//include/linux/version.h' for reading: No such file or directory
/var/lib/dpkg/info/wacom-kernel-source.postinst: line 49: [: =: unary operator expected
Warning: kernel headers don't match running Linux version.
Building wacom modules for Linux (this may take a few minutes)...dpkg: error processing wacom-kernel-source (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
wacom-kernel-source
E: Sub-process /usr/bin/dpkg returned an error code (1)
So then I downloaded it as source and tried to compile
Code:
0x1:/usr/src/linuxwacom-0.7.8-3# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... 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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gawk... (cached) mawk
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
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 symlinks done properly. I did cd /usr/src/linux//include/linux/ but there was no 'version.h' in there.
Please help.
And I just did cd /usr/src/linux/ and 'vim README' and saw this:
Quote:
Do NOT use the /usr/src/linux area! This area has a (usually
incomplete) set of kernel headers that are used by the library header
files. They should match the library, and not get messed up by
whatever the kernel-du-jour happens to be.
What I want to know is how I fix it. I did 'rm linux' from /usr/src/ then remade my symlinks but to no avail. Possibly it is not config'd properly; how do I do that?
'make config dep' gives this:
Code:
0x1:/usr/src/linux-source-2.6.18# make config dep
HOSTCC scripts/basic/fixdep
In file included from /usr/local/include/features.h:354,
from /usr/include/sys/types.h:27,
from scripts/basic/fixdep.c:105:
/usr/local/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[3]: *** [scripts/basic/fixdep] Error 1
make[2]: *** [scripts_basic] Error 2
make[1]: *** No rule to make target `.kernelvariables'. Stop.
HOSTCC scripts/basic/fixdep
In file included from /usr/local/include/features.h:354,
from /usr/include/sys/types.h:27,
from scripts/basic/fixdep.c:105:
/usr/local/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[3]: *** [scripts/basic/fixdep] Error 1
make[2]: *** [scripts_basic] Error 2
make[1]: Nothing to be done for `/usr/src/linux-source-2.6.18/scripts/Kbuild.include'.
HOSTCC scripts/basic/fixdep
In file included from /usr/local/include/features.h:354,
from /usr/include/sys/types.h:27,
from scripts/basic/fixdep.c:105:
/usr/local/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[3]: *** [scripts/basic/fixdep] Error 1
make[2]: *** [scripts_basic] Error 2
make[1]: Nothing to be done for `Makefile'.
HOSTCC scripts/basic/fixdep
In file included from /usr/local/include/features.h:354,
from /usr/include/sys/types.h:27,
from scripts/basic/fixdep.c:105:
/usr/local/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[2]: *** [scripts/basic/fixdep] Error 1
make[1]: *** [scripts_basic] Error 2
make: *** [config] Error 2
and 'make menuconfig'
Code:
HOSTCC scripts/basic/fixdep
In file included from /usr/local/include/features.h:354,
from /usr/include/sys/types.h:27,
from scripts/basic/fixdep.c:105:
/usr/local/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
I'm getting really sick of this, something needs to start working so I can install my stuff like it should have been weeks ago.
Last edited by Virtuality; 01-10-2008 at 06:50 AM.
If xserver-xorg-input-wacom with wacom-tools from apt works, dump the wacom source. Looks like your kernel isn't even supported by the wacom-kernel-source. Look in /usr/src/modules/wacom/src/ , the newest one supported is 2.6.16.
"dpkg -P wacom-kernel-source"
Did you do: ln -s /usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h
Still, it looks like you should just bite the bullet and dist-upgrade to testing since Etch is getting outdated and you'd get a newer glibc. Follow a howto for that though.
After removing the wacom source, see if kernel compilation works then.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.