installing binutils 2.15, make claims the cpp fails the sanity check
Ok
So I have a slackware distro. Older like rev 6. (Am unsure how to check the rev of the distro)
I want to upgrade binutils in prep for compiling the 2.6 kernel.
./config works fine.
make dies. the last step says /lib/cpp fails the sanity check. Says to check the config.log, but nothing useful is there.
Gcc is curently 3.1.1
Any help is appreciated.
contents of config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.57. Invocation command line was
$ ./configure --cache-file=./config.cache --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-gnu-as --with-gnu-ld --program-transform-name=s,y,y, --srcdir=.
## --------- ##
## Platform. ##
## --------- ##
hostname = sirius
uname -m = i686
uname -r = 2.2.17
uname -s = Linux
uname -v = #2 SMP Sat Jul 27 22:24:19 CDT 2002
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1186: loading cache ./config.cache
configure:1350: checking whether to enable maintainer-specific portions of Makefiles
configure:1360: result: no
configure:1375: checking for makeinfo
configure:1404: result: no
configure:1440: checking for perl
configure:1456: found /usr/bin/perl
configure:1466: result: perl
configure:1486: checking build system type
configure:1504: result: i686-pc-linux-gnu
configure:1512: checking host system type
configure:1526: result: i686-pc-linux-gnu
configure:1539: checking for i686-pc-linux-gnu-ar
configure:1565: result: ar
configure:1618: checking for i686-pc-linux-gnu-ranlib
configure:1644: result: ranlib
configure:1705: checking for i686-pc-linux-gnu-gcc
configure:1731: result: gcc
configure:2013: checking for C compiler version
configure:2016: gcc --version </dev/null >&5
gcc (GCC) 3.1.1
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2019: $? = 0
configure:2021: gcc -v </dev/null >&5
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1.1/specs
Configured with: /install/gcc-3.1.1/configure
Thread model: single
gcc version 3.1.1
configure:2024: $? = 0
configure:2026: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:2029: $? = 1
configure:2049: gcc -o conftest -g -O2 conftest.c >&5
configure:2052: $? = 0
configure:2087: checking for C compiler default output
configure:2090: gcc -g -O2 conftest.c >&5
configure:2093: $? = 0
configure:2139: result: a.out
configure:2144: checking whether the C compiler works
configure:2150: ./a.out
configure:2153: $? = 0
configure:2170: result: yes
configure:2177: checking whether we are cross compiling
configure:2179: result: no
configure:2182: checking for suffix of executables
configure:2184: gcc -o conftest -g -O2 conftest.c >&5
configure:2187: $? = 0
configure:2212: result:
configure:2219: checking for suffix of object files
configure:2241: gcc -c -g -O2 conftest.c >&5
configure:2244: $? = 0
configure:2266: result: o
configure:2270: checking whether we are using the GNU C compiler
configure:2295: gcc -c -g -O2 conftest.c >&5
configure:2298: $? = 0
configure:2301: test -s conftest.o
configure:2304: $? = 0
configure:2317: result: yes
configure:2323: checking whether gcc accepts -g
configure:2345: gcc -c -g conftest.c >&5
configure:2348: $? = 0
configure:2351: test -s conftest.o
configure:2354: $? = 0
configure:2365: result: yes
configure:2382: checking for gcc option to accept ANSI C
configure:2443: gcc -c -g -O2 conftest.c >&5
configure:2446: $? = 0
configure:2449: test -s conftest.o
configure:2452: $? = 0
configure:2470: result: none needed
configure:2488: gcc -c -g -O2 conftest.c >&5
conftest.c:2: parse error before "me"
configure:2491: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2605: checking how to run the C preprocessor
configure:2641: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1.1/include/limits.h:132,
from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1.1/include/syslimits.h:7,
from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1.1/include/limits.h:11,
from configure:2636:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:2647: $? = 1
configure: failed program was:
| #line 2627 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:2641: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1.1/include/limits.h:132,
from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1.1/include/syslimits.h:7,
from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1.1/include/limits.h:11,
from configure:2636:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:2647: $? = 1
configure: failed program was:
| #line 2627 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:2641: gcc -E -traditional-cpp conftest.c
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:2647: $? = 1
configure: failed program was:
| #line 2627 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:2641: gcc -E -traditional-cpp conftest.c
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:2647: $? = 1
configure: failed program was:
| #line 2627 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:2641: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-slackware-linux/2.95.2/include/limits.h:117,
from /usr/lib/gcc-lib/i386-slackware-linux/2.95.2/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-slackware-linux/2.95.2/include/limits.h:11,
from configure:2636:
/usr/include/bits/local_lim.h:36: linux/limits.h: No such file or directory
configure:2647: $? = 1
configure: failed program was:
| #line 2627 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:2641: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-slackware-linux/2.95.2/include/limits.h:117,
from /usr/lib/gcc-lib/i386-slackware-linux/2.95.2/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-slackware-linux/2.95.2/include/limits.h:11,
from configure:2636:
/usr/include/bits/local_lim.h:36: linux/limits.h: No such file or directory
configure:2647: $? = 1
configure: failed program was:
| #line 2627 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:2723: result: /lib/cpp
configure:2748: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-slackware-linux/2.95.2/include/limits.h:117,
from /usr/lib/gcc-lib/i386-slackware-linux/2.95.2/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-slackware-linux/2.95.2/include/limits.h:11,
from configure:2743:
/usr/include/bits/local_lim.h:36: linux/limits.h: No such file or directory
configure:2754: $? = 1
configure: failed program was:
| #line 2734 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:2748: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-slackware-linux/2.95.2/include/limits.h:117,
from /usr/lib/gcc-lib/i386-slackware-linux/2.95.2/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-slackware-linux/2.95.2/include/limits.h:11,
from configure:2743:
/usr/include/bits/local_lim.h:36: linux/limits.h: No such file or directory
configure:2754: $? = 1
configure: failed program was:
| #line 2734 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:2822: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2'
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=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=i686-pc-linux-gnu
ac_cv_exeext=
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_objext=o
ac_cv_prog_AR=ar
ac_cv_prog_CC=gcc
ac_cv_prog_CPP=/lib/cpp
ac_cv_prog_PERL=perl
ac_cv_prog_RANLIB=ranlib
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR='ar'
BUILD_INFO=''
CC='gcc'
CFLAGS='-g -O2'
CHECK=''
CPP='/lib/cpp'
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
HAVE_PERL=''
INSTALL_DATA=''
INSTALL_DEST=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAINT='#'
MAKEINFO='@echo makeinfo missing; true'
NOTMAINT=''
NO_MINUS_C_MINUS_O=''
OBJEXT='o'
OUTPUT_OPTION=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PERL='perl'
RANLIB='ranlib'
SHELL='/bin/sh'
ac_ct_AR=''
ac_ct_CC=''
ac_ct_RANLIB=''
ac_libiberty_warn_cflags=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libiberty_topdir='./..'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
pexecute=''
prefix='NONE'
program_transform_name='s,y,y,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias='i686-pc-linux-gnu'
target_header_dir=''
## ------------- ##
## Output files. ##
## ------------- ##
host_makefile_frag=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
configure: exit 1
result of uname
root@sirius:/install/binutils-2.15# uname -a
Linux sirius 2.2.17 #2 SMP Sat Jul 27 22:24:19 CDT 2002 i686 unknown
exact error message
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 how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make: *** [configure-libiberty] Error 1
Last edited by 2verb; 07-23-2004 at 11:48 PM.
|