This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
cpp fails sanity check
- From: Schuyler Lambert <angeluserrare at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 26 Mar 2005 01:21:09 -0500
- Subject: cpp fails sanity check
For the last two weeks or so I have been struggling with this problem
and have been to a few Linux forums but I still don't have any luck.
whenever I try to configure something, it throws this at me :
configure:3440: error: C preprocessor "/lib/cpp" fails sanity check
When I look through the config.log I keep seeing this :
| Syntax error
configure:3365: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:144,
from /usr/lib/gcc/i386-redhat-
linux/3.4.2/include/limits.h:122,
from /usr/lib/gcc/i386-redhat-
linux/3.4.2/include/syslimits.h:7,
from /usr/lib/gcc/i386-redhat-
linux/3.4.2/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or
directory
configure:3371: $? = 1
configure: failed program was:
| /* confdefs.h. */
Every program I have tried to compile gives me the same cpp sanity check
error. I'm running Fedora Core 3 and I have installed all of the
devlopment packages.
Any help would be great.