[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AC_PROG_CPP test fails
From: |
Akim Demaille |
Subject: |
AC_PROG_CPP test fails |
Date: |
15 Dec 2000 13:03:22 +0100 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
Hi Pavel,
I have the test 28 that fails since this week on my machine. I tend
to think that it is my machine that has a problem, here are the logs.
src/ace/tests % ./testsuite 28 -d -v nostromo Err 130
=========================================
Testing suite for autoconf, version 2.49c
=========================================
testing AC_PROG_CPP without warnings
28. ./compile.at:77...
./compile.at:95: autoconf --autoconf-dir .. -l $at_srcdir
./compile.at:95: autoheader --autoconf-dir .. -l $at_srcdir
./compile.at:95: top_srcdir=$top_srcdir ./configure
--- empty Fri Dec 15 13:00:04 2000
+++ stderr Fri Dec 15 13:00:08 2000
@@ -0,0 +1 @@
+configure: error: C preprocessor "./mycpp" fails sanity check
checking for gcc... gcc
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking whether we are using the GNU C compiler... yes
checking for object suffix... o
checking for executable suffix...
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... ./mycpp
Exit code was 1, expected 0
28. ./compile.at:77: FAILED near `compile.at:95'
=========================================
Testing suite for autoconf, version 2.49c
=========================================
src/ace/tests % cat config.log nostromo 13:00
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure 2.49c, executed with
> ./configure
## ---------- ##
## Platform. ##
## ---------- ##
hostname = nostromo
uname -m = i686
uname -r = 2.2.17
uname -s = Linux
uname -v = #1 Sat Sep 9 12:42:22 EST 2000
/usr/bin/uname -p =
/bin/uname -X =
/bin/arch = i686
/usr/bin/arch -k =
/usr/convex/getsysinfo =
hostinfo =
/bin/machine =
/usr/bin/oslevel =
/bin/universe =
PATH =
/home/lrde/prof/akim/src/ace/tests:/home/lrde/prof/akim/src/ace:/home/lrde/prof/akim/bin:/home/lrde/prof/akim/bin:/home/lrde/prof/akim/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/X11R6/bin:/usr/local/kde/bin
## ------------ ##
## Core tests. ##
## ------------ ##
configure:939: checking for gcc
configure:961: result: gcc
configure:1183: checking whether the C compiler works
configure:1198: gcc -o conftest conftest.c >&5
configure:1201: $? = 0
configure:1202: test -s conftest
configure:1205: $? = 0
configure:1209: ./conftest
configure:1212: $? = 0
configure:1226: result: yes
configure:1239: checking whether we are cross compiling
configure:1241: result: no
configure:1244: checking whether we are using the GNU C compiler
configure:1265: gcc -c conftest.c >&5
configure:1268: $? = 0
configure:1280: result: yes
configure:1283: checking for object suffix
configure:1301: gcc -c conftest.c >&5
configure:1304: $? = 0
configure:1323: result: o
configure:1327: checking for executable suffix
configure:1345: gcc -o conftest conftest.c >&5
configure:1348: $? = 0
configure:1349: test -s conftest
configure:1352: $? = 0
configure:1375: result:
configure:1382: checking whether gcc accepts -g
configure:1400: gcc -c -g conftest.c >&5
configure:1403: $? = 0
configure:1413: result: yes
configure:1431: checking how to run the C preprocessor
configure:1531: ./mycpp conftest.c >/dev/null 2>conftest.err
configure:1534: $? = 0
In file included from /usr/include/features.h:283,
from /usr/include/assert.h:35,
from configure:1527:
/usr/include/sys/cdefs.h:104: warning: garbage at end of `#ifdef' argument
configure: failed program was:
#line 1526 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax error
configure:1589: result: ./mycpp
configure:1592: error: C preprocessor "./mycpp" fails sanity check
configure: exit 1
Note that my /lib/cpp does issue a warning on assert.h.
src/ace/tests % /lib/cpp /usr/include/sys/cdefs.h >/dev/null nostromo 13:00
/usr/include/sys/cdefs.h:104: warning: garbage at end of `#ifdef' argument
The guilty line is:
/* Support for flexible arrays. */
#if __GNUC_PREREQ (2,97)
/* GCC 2.97 supports C99 flexible array members. */
# define __flexarr []
#else
# ifdef __GNUC__
# define __flexarr [0]
# else
----> # ifdef __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
# define __flexarr []
# else
/* Some other non-C99 compiler. Approximate with [1]. */
# define __flexarr [1]
# endif
# endif
#endif
I don't understand it.
src/ace/tests % /lib/cpp -v nostromo Err 1
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)
/usr/lib/gcc-lib/i386-linux/2.95.2/cpp -lang-c -v -D__ELF__ -Dunix -D__i386__
-Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux
-Asystem(posix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -
GNU CPP version 2.95.2 20000220 (Debian GNU/Linux) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/gcc-lib/i386-linux/2.95.2/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/lib/gcc-lib/i386-linux/2.95.2/../../../../include/g++-3
/usr/lib/gcc-lib/i386-linux/2.95.2/../../../../i386-linux/include
End of omitted list.
- AC_PROG_CPP test fails,
Akim Demaille <=