[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error make distcheck
From: |
Akim Demaille |
Subject: |
Re: Error make distcheck |
Date: |
10 Aug 2001 11:19:59 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Academic Rigor) |
| Hi,
| This patch fix, the make distcheck errors with tests. In fact
| during a `distcheck' automake creates a `=build' dir, which contains the
| config.h file. So this file is not at the top source directoy.
|
| Index: ChangeLog
| ===================================================================
| RCS file: /cvsroot/bison/bison/ChangeLog,v
| retrieving revision 1.156
| diff -u -r1.156 ChangeLog
| --- ChangeLog 2001/08/09 09:59:08 1.156
| +++ ChangeLog 2001/08/09 11:14:56
| @@ -1,3 +1,7 @@
| +2001-08-09 Pascal Bart <address@hidden>
| +
| + * tests/atconfig.in (CPPFLAGS): Fix.
| +
| 2001-08-08 Marc Autret <address@hidden>
|
| * doc/bison.texinfo: Change @samp{$<@dots{}>} to
| Index: tests/atconfig.in
| ===================================================================
| RCS file: /cvsroot/bison/bison/tests/atconfig.in,v
| retrieving revision 1.5
| diff -u -r1.5 atconfig.in
| --- tests/atconfig.in 2001/08/07 13:03:20 1.5
| +++ tests/atconfig.in 2001/08/09 11:14:56
| @@ -85,7 +85,7 @@
| # We need a C compiler.
| CC='@CC@'
| CFLAGS='@CFLAGS@'
| -CPPFLAGS='address@hidden@ @CPPFLAGS@'
| +CPPFLAGS='address@hidden@ -I.. @CPPFLAGS@'
Actually, please remove @toip_srcdir@: it has nothing to do there.
I didn't understand why I could not see the problem. Adding -H to the
compilation command gave:
../../tests/calc.at:343: bison calc.y -o calc.c
../../tests/calc.at:343: gcc -g -O2 -I../.. calc.c -o calc -H
--- empty Fri Aug 10 11:16:46 2001
+++ stderr Fri Aug 10 11:16:47 2001
@@ -0,0 +1,43 @@
+/usr/include/config.h
+/usr/include/stdio.h
+ /usr/include/features.h
+ /usr/include/sys/cdefs.h
+ /usr/include/gnu/stubs.h
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h
+ /usr/include/bits/types.h
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h
+ /usr/include/bits/pthreadtypes.h
[CUT]
Aaaaaaaaarg! What the heck is that??? /usr/include/config.h!!!
What an excellent mean to be abused :(
bison-1.28c/=build/tests % head /usr/include/config.h nostromo 11:18
/* magick/config.h. Generated automatically by configure. */
/* magick/config.h.in. Generated automatically from configure.in by
autoheader. */
This is a very serious bug in the Debian system. Thanks for
insisting.
Please, replace top_srcdir with .. (or better yet, use top_builddir),
and apply.