In message <[EMAIL PROTECTED]>, Akim Demaille writes:
>
> Hi Erez,
>
> I have fixed several mistakes in the test suite, so there should be
> less failures now.
>
> There are some I really don't understand, and I need your help (I
> can't reproduce them). But I would suggest that you pull out a fresh
> Autoconf.
>
> Ooops, btw people, we have to tell you we are moving Autoconf from
> sourceware to subversions.gnu.org. More soon. For the time being,
>
> cvs -d :pserver:[EMAIL PROTECTED]:/cvs login
> [Hit enter]
> cvs -d :pserver:[EMAIL PROTECTED]:/cvs checkout autoconf
>
>
> | ====================================
> | ./debug-4.sh: Testing AC_CHECK_DECLS
> | ====================================
> | ../../../autoconf/tests/semantics.m4:21: testing...
> | ../../../autoconf/tests/semantics.m4:21: testing...
> | ../../../autoconf/tests/semantics.m4:21: testing...
> | creating cache ./config.cache
> | checking whether yes is declared... no
> | checking whether no is declared... no
> | updating cache ./config.cache
> | creating ./config.status
> | creating config.h
> | ../../../autoconf/tests/semantics.m4:21: testing...
> | ../../../autoconf/tests/semantics.m4:21: testing...
> | --- - Tue Feb 15 13:00:08 2000
> | +++ stdout Tue Feb 15 13:00:08 2000
> | @@ -1,2 +1,2 @@
> | #define HAVE_DECL_NO 0
> | -#define HAVE_DECL_YES 1
> | +#define HAVE_DECL_YES 0
>
> Can you run ./debug-4.sh and send me configure, config.log, and
> config.status. Make sure to rm config.log and config.status before.
I think I know what's wrong. You're using 'cc' instead of $CC somewhere. I
have gcc installed on my machine, and no license for Solaris's /usr/ucb/cc
compiler. So running cc fails.
Here's the config.log for debug-4:
------------------------------------------------------------------------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:603: checking whether yes is declared
configure:623: cc -c conftest.c 1>&5
/usr/ucb/cc: language optional software package not installed
configure: failed program was:
#line 608 "configure"
#include "confdefs.h"
int yes = 1;
int
main ()
{
#ifndef yes
char *p = (char *) yes;
#endif
;
return 0;
}
configure:647: checking whether no is declared
configure:667: cc -c conftest.c 1>&5
/usr/ucb/cc: language optional software package not installed
configure: failed program was:
#line 652 "configure"
#include "confdefs.h"
int yes = 1;
int
main ()
{
#ifndef no
char *p = (char *) no;
#endif
;
return 0;
}
------------------------------------------------------------------------------
> | ================================
> | ./debug-32.sh: Testing AC_EXEEXT
> | ================================
> | ../../../autoconf/tests/macros.m4:45: testing...
> | ../../../autoconf/tests/macros.m4:45: testing...
> | ../../../autoconf/tests/macros.m4:45: testing...
> | configure: error: installation or configuration problem: compiler cannot create
>executables.
>
> Could you run ./debug-32.sh, rm config.log and config.status, then run
> ./configure and send me config.log?
Looks like another 'cc' problem as above:
------------------------------------------------------------------------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:603: checking for Cygwin environment
configure:622: cc -c conftest.c 1>&5
/usr/ucb/cc: language optional software package not installed
configure: failed program was:
#line 608 "configure"
#include "confdefs.h"
int
main ()
{
#ifndef __CYGWIN__
# define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
;
return 0;
}
configure:637: checking for mingw32 environment
configure:653: cc -c conftest.c 1>&5
/usr/ucb/cc: language optional software package not installed
configure: failed program was:
#line 642 "configure"
#include "confdefs.h"
int
main ()
{
return __MINGW32__;
;
return 0;
}
configure:668: checking for EMX OS/2 environment
configure:684: cc -c conftest.c 1>&5
/usr/ucb/cc: language optional software package not installed
configure: failed program was:
#line 673 "configure"
#include "confdefs.h"
int
main ()
{
return __EMX__;
;
return 0;
}
configure:699: checking for executable suffix
configure:709: cc -o conftest conftest.c 1>&5
/usr/ucb/cc: language optional software package not installed
------------------------------------------------------------------------------
> | ===================================
> | ./debug-63.sh: Testing AC_PATH_TOOL
> | ===================================
> | ../../../autoconf/tests/macros.m4:82: testing...
> | ../../../autoconf/tests/macros.m4:82: testing...
> | ../../../autoconf/tests/macros.m4:82: testing...
> | configure: error: cannot find install-sh or install.sh in . ./.. ./../..
>
> Huh? Hm, this macro is not beautiful, and should be reworked. Still,
> could you do as for 32?
Test 63 isn't failing any longer. These tests fail when srcdir==builddir:
debug-4.sh
debug-5.sh
debug-6.sh
debug-7.sh
debug-8.sh
debug-9.sh
debug-32.sh
debug-61.sh
A few more tests appear to fail when srcdir!=builddir:
debug-4.sh
debug-5.sh
debug-6.sh
debug-7.sh
debug-8.sh
debug-9.sh
debug-32.sh
debug-61.sh
debug-77.sh
debug-96.sh
Some of the new failed tests can't find install-sh. It should look in
$srcdir as well.
> Thanks!
>
> Akim
BTW Akim, depcomp is missing from the autoconf distribution, and the build
process fails unless it's there. Can you do one of these:
- include depcomp in the distribution
- make sure you run automake --missing
- create a "bootstrap" script ala libtool
Below is the output from make test when srcdir!=builddir:
Erez.
##############################################################################
Making check in .
make[1]: Entering directory
`/n/shekel/proj/bank/amd/working/utils/CYGNUS/MODIFIED/BUILD/AC.sparc-sun-solaris2.7'
make[1]: Nothing to be done for `check-am'.
make[1]: Leaving directory
`/n/shekel/proj/bank/amd/working/utils/CYGNUS/MODIFIED/BUILD/AC.sparc-sun-solaris2.7'
Making check in m4
make[1]: Entering directory
`/n/shekel/proj/bank/amd/working/utils/CYGNUS/MODIFIED/BUILD/AC.sparc-sun-solaris2.7/m4'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory
`/n/shekel/proj/bank/amd/working/utils/CYGNUS/MODIFIED/BUILD/AC.sparc-sun-solaris2.7/m4'
Making check in man
make[1]: Entering directory
`/n/shekel/proj/bank/amd/working/utils/CYGNUS/MODIFIED/BUILD/AC.sparc-sun-solaris2.7/man'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory
`/n/shekel/proj/bank/amd/working/utils/CYGNUS/MODIFIED/BUILD/AC.sparc-sun-solaris2.7/man'
Making check in doc
make[1]: Entering directory
`/n/shekel/proj/bank/amd/working/utils/CYGNUS/MODIFIED/BUILD/AC.sparc-sun-solaris2.7/doc'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory
`/n/shekel/proj/bank/amd/working/utils/CYGNUS/MODIFIED/BUILD/AC.sparc-sun-solaris2.7/doc'
Making check in tests
make[1]: Entering directory
`/n/shekel/proj/bank/amd/working/utils/CYGNUS/MODIFIED/BUILD/AC.sparc-sun-solaris2.7/tests'
make check-local
make[2]: Entering directory
`/n/shekel/proj/bank/amd/working/utils/CYGNUS/MODIFIED/BUILD/AC.sparc-sun-solaris2.7/tests'
/bin/sh testsuite
=========================================
Testing suite for autoconf, version 2.14a
=========================================
Some tests might be ignored if you don't have the software which the
macros are supposed to test (e.g., a Fortran compiler).
Torturing config.status.
## ---------------------------------------------------------------- ##
## This section of tests is trying to make Autoconf produce failing ##
## `configure' scripts, which must not happen. If these tests ever ##
## fail, it is extremely important that you report the failure to ##
## [EMAIL PROTECTED] ##
## ---------------------------------------------------------------- ##
1. ../../../autoconf/tests/torture.m4:54 ok
2. ../../../autoconf/tests/torture.m4:112 ok
3. ../../../autoconf/tests/torture.m4:147 ok
Semantics.
4. ../../../autoconf/tests/semantics.m4:21 --- - Sun Feb 20 15:29:27 2000
+++ stdout Sun Feb 20 15:29:27 2000
@@ -1,2 +1,2 @@
#define HAVE_DECL_NO 0
-#define HAVE_DECL_YES 1
+#define HAVE_DECL_YES 0
FAILED near `semantics.m4:21'
5. ../../../autoconf/tests/semantics.m4:33 --- - Sun Feb 20 15:29:33 2000
+++ stdout Sun Feb 20 15:29:33 2000
@@ -1,2 +1,2 @@
/* #undef HAVE_AUTOCONF_TIXE */
-#define HAVE_EXIT 1
+/* #undef HAVE_EXIT */
FAILED near `semantics.m4:33'
6. ../../../autoconf/tests/semantics.m4:46 --- - Sun Feb 20 15:29:41 2000
+++ stdout Sun Feb 20 15:29:41 2000
@@ -1,2 +1,2 @@
-/* #undef HAVE_AUTOCONF_IO_H */
+#define HAVE_AUTOCONF_IO_H 1
#define HAVE_STDIO_H 1
FAILED near `semantics.m4:46'
7. ../../../autoconf/tests/semantics.m4:60 --- - Sun Feb 20 15:29:49 2000
+++ stdout Sun Feb 20 15:29:49 2000
@@ -1,2 +1,2 @@
/* #undef HAVE_STRUCT_YES_NO */
-#define HAVE_STRUCT_YES_YES 1
+/* #undef HAVE_STRUCT_YES_YES */
FAILED near `semantics.m4:60'
8. ../../../autoconf/tests/semantics.m4:82 --- - Sun Feb 20 15:29:56 2000
+++ stdout Sun Feb 20 15:29:56 2000
@@ -1,2 +1,2 @@
-#define SIZEOF_CHAR 1
-#define SIZEOF_CHARCHAR 2
+#define SIZEOF_CHAR 0
+#define SIZEOF_CHARCHAR 0
FAILED near `semantics.m4:82'
9. ../../../autoconf/tests/semantics.m4:99 --- - Sun Feb 20 15:30:04 2000
+++ stdout Sun Feb 20 15:30:04 2000
@@ -1,3 +1,3 @@
-#define HAVE_INT 1
+/* #undef HAVE_INT */
/* #undef HAVE_STRUCT_NO */
-#define HAVE_STRUCT_YES 1
+/* #undef HAVE_STRUCT_YES */
FAILED near `semantics.m4:99'
10. ../../../autoconf/tests/semantics.m4:106 ok
11. ../../../autoconf/tests/semantics.m4:154 ok
Syntax of macros and completeness of header templates.
12. ../../../autoconf/tests/macros.m4:1 ok
13. ../../../autoconf/tests/macros.m4:2 ok
14. ../../../autoconf/tests/macros.m4:3 ok
15. ../../../autoconf/tests/macros.m4:5 ok
16. ../../../autoconf/tests/macros.m4:14 ok
17. ../../../autoconf/tests/macros.m4:15 ok
18. ../../../autoconf/tests/macros.m4:18 ok
19. ../../../autoconf/tests/macros.m4:32 ok
20. ../../../autoconf/tests/macros.m4:33 ok
21. ../../../autoconf/tests/macros.m4:34 ok
22. ../../../autoconf/tests/macros.m4:35 ok
23. ../../../autoconf/tests/macros.m4:36 ok
24. ../../../autoconf/tests/macros.m4:37 ok
25. ../../../autoconf/tests/macros.m4:38 ok
26. ../../../autoconf/tests/macros.m4:39 ok
27. ../../../autoconf/tests/macros.m4:40 ok
28. ../../../autoconf/tests/macros.m4:41 ok
29. ../../../autoconf/tests/macros.m4:42 ok
30. ../../../autoconf/tests/macros.m4:43 ok
31. ../../../autoconf/tests/macros.m4:44 ok
32. ../../../autoconf/tests/macros.m4:45 FAILED near `macros.m4:45'
33. ../../../autoconf/tests/macros.m4:46 ok
34. ../../../autoconf/tests/macros.m4:47 ok
35. ../../../autoconf/tests/macros.m4:48 ok
36. ../../../autoconf/tests/macros.m4:49 ok
37. ../../../autoconf/tests/macros.m4:50 ok
38. ../../../autoconf/tests/macros.m4:51 ok
39. ../../../autoconf/tests/macros.m4:52 ok
40. ../../../autoconf/tests/macros.m4:53 ok
41. ../../../autoconf/tests/macros.m4:54 ok
42. ../../../autoconf/tests/macros.m4:55 ok
43. ../../../autoconf/tests/macros.m4:56 ok
44. ../../../autoconf/tests/macros.m4:57 ok
45. ../../../autoconf/tests/macros.m4:58 ok
46. ../../../autoconf/tests/macros.m4:59 ok
47. ../../../autoconf/tests/macros.m4:60 ok
48. ../../../autoconf/tests/macros.m4:61 ok
49. ../../../autoconf/tests/macros.m4:62 ok
50. ../../../autoconf/tests/macros.m4:63 ok
51. ../../../autoconf/tests/macros.m4:64 ok
52. ../../../autoconf/tests/macros.m4:65 ok
53. ../../../autoconf/tests/macros.m4:66 ok
54. ../../../autoconf/tests/macros.m4:67 ok
55. ../../../autoconf/tests/macros.m4:68 ok
56. ../../../autoconf/tests/macros.m4:72 ok
57. ../../../autoconf/tests/macros.m4:73 ok
58. ../../../autoconf/tests/macros.m4:74 ok
59. ../../../autoconf/tests/macros.m4:75 ok
60. ../../../autoconf/tests/macros.m4:78 ok
61. ../../../autoconf/tests/macros.m4:79 FAILED near `macros.m4:79'
62. ../../../autoconf/tests/macros.m4:83 ok
63. ../../../autoconf/tests/macros.m4:84 ok
64. ../../../autoconf/tests/macros.m4:85 ok
65. ../../../autoconf/tests/macros.m4:86 ok
66. ../../../autoconf/tests/macros.m4:87 ok
67. ../../../autoconf/tests/macros.m4:88 ok
68. ../../../autoconf/tests/macros.m4:89 ok
69. ../../../autoconf/tests/macros.m4:90 ok
70. ../../../autoconf/tests/macros.m4:91 ok
71. ../../../autoconf/tests/macros.m4:94 ok
72. ../../../autoconf/tests/macros.m4:97 ok
73. ../../../autoconf/tests/macros.m4:98 ok
74. ../../../autoconf/tests/macros.m4:99 ok
75. ../../../autoconf/tests/macros.m4:102 ok
76. ../../../autoconf/tests/macros.m4:103 ok
77. ../../../autoconf/tests/macros.m4:104 FAILED near `macros.m4:104'
78. ../../../autoconf/tests/macros.m4:105 ok
79. ../../../autoconf/tests/macros.m4:106 ok
80. ../../../autoconf/tests/macros.m4:107 ok
81. ../../../autoconf/tests/macros.m4:108 ok
82. ../../../autoconf/tests/macros.m4:110 ok
83. ../../../autoconf/tests/macros.m4:111 ok
84. ../../../autoconf/tests/macros.m4:113 ok
85. ../../../autoconf/tests/macros.m4:114 ok
86. ../../../autoconf/tests/macros.m4:115 ok
87. ../../../autoconf/tests/macros.m4:116 ok
88. ../../../autoconf/tests/macros.m4:117 ok
89. ../../../autoconf/tests/macros.m4:118 ok
90. ../../../autoconf/tests/macros.m4:119 ok
91. ../../../autoconf/tests/macros.m4:129 ok
92. ../../../autoconf/tests/macros.m4:130 ok
93. ../../../autoconf/tests/macros.m4:131 ok
94. ../../../autoconf/tests/macros.m4:132 ok
95. ../../../autoconf/tests/macros.m4:133 ok
96. ../../../autoconf/tests/macros.m4:134 FAILED near `macros.m4:134'
Autoheader, autoupdate...
97. ../../../autoconf/tests/tools.m4:34 ok
98. ../../../autoconf/tests/tools.m4:74 ok
99. ../../../autoconf/tests/tools.m4:111 ok
Base layer.
100. ../../../autoconf/tests/base.m4:12 ok
Writing `debug-NN.sh' scripts, NN = 4 5 6 7 8 9 32 61 77 96, done
=================================================
ERROR: Suite unsuccessful, 10 of 100 tests failed
=================================================
When reporting failed tests to maintainers, do not merely list test
numbers, as the numbering changes between releases and pretests.
Be careful to give at least all the information you got about them.
You may investigate any problem if you feel able to do so, in which
case the generated debugging scripts provide good starting points.
Go on and modify them at will. `./debug-NN --help' gives usage
information. Now, failed tests will be executed again, verbosely.
====================================
./debug-4.sh: Testing AC_CHECK_DECLS
====================================
../../../autoconf/tests/semantics.m4:21: testing...
../../../autoconf/tests/semantics.m4:21: testing...
../../../autoconf/tests/semantics.m4:21: testing...
creating cache ./config.cache
checking whether yes is declared... no
checking whether no is declared... no
updating cache ./config.cache
creating ./config.status
creating config.h
../../../autoconf/tests/semantics.m4:21: testing...
../../../autoconf/tests/semantics.m4:21: testing...
--- - Sun Feb 20 15:41:14 2000
+++ stdout Sun Feb 20 15:41:14 2000
@@ -1,2 +1,2 @@
#define HAVE_DECL_NO 0
-#define HAVE_DECL_YES 1
+#define HAVE_DECL_YES 0
====================================
./debug-5.sh: Testing AC_CHECK_FUNCS
====================================
../../../autoconf/tests/semantics.m4:33: testing...
../../../autoconf/tests/semantics.m4:33: testing...
../../../autoconf/tests/semantics.m4:33: testing...
creating cache ./config.cache
checking for exit... no
checking for autoconf_tixe... no
updating cache ./config.cache
creating ./config.status
creating config.h
../../../autoconf/tests/semantics.m4:33: testing...
../../../autoconf/tests/semantics.m4:33: testing...
--- - Sun Feb 20 15:41:20 2000
+++ stdout Sun Feb 20 15:41:20 2000
@@ -1,2 +1,2 @@
/* #undef HAVE_AUTOCONF_TIXE */
-#define HAVE_EXIT 1
+/* #undef HAVE_EXIT */
======================================
./debug-6.sh: Testing AC_CHECK_HEADERS
======================================
../../../autoconf/tests/semantics.m4:46: testing...
../../../autoconf/tests/semantics.m4:46: testing...
../../../autoconf/tests/semantics.m4:46: testing...
creating cache ./config.cache
checking how to run the C preprocessor... cc -E
checking for stdio.h... yes
checking for autoconf_io.h... yes
updating cache ./config.cache
creating ./config.status
creating config.h
../../../autoconf/tests/semantics.m4:46: testing...
../../../autoconf/tests/semantics.m4:46: testing...
--- - Sun Feb 20 15:41:28 2000
+++ stdout Sun Feb 20 15:41:28 2000
@@ -1,2 +1,2 @@
-/* #undef HAVE_AUTOCONF_IO_H */
+#define HAVE_AUTOCONF_IO_H 1
#define HAVE_STDIO_H 1
======================================
./debug-7.sh: Testing AC_CHECK_MEMBERS
======================================
../../../autoconf/tests/semantics.m4:60: testing...
../../../autoconf/tests/semantics.m4:60: testing...
../../../autoconf/tests/semantics.m4:60: testing...
creating cache ./config.cache
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... no
checking for struct yes.yes... no
checking for struct yes.no... no
updating cache ./config.cache
creating ./config.status
creating config.h
../../../autoconf/tests/semantics.m4:60: testing...
../../../autoconf/tests/semantics.m4:60: testing...
--- - Sun Feb 20 15:41:35 2000
+++ stdout Sun Feb 20 15:41:35 2000
@@ -1,2 +1,2 @@
/* #undef HAVE_STRUCT_YES_NO */
-#define HAVE_STRUCT_YES_YES 1
+/* #undef HAVE_STRUCT_YES_YES */
=====================================
./debug-8.sh: Testing AC_CHECK_SIZEOF
=====================================
../../../autoconf/tests/semantics.m4:82: testing...
configure.in:5: warning: AC_TRY_RUN called without default to allow cross compiling
configure.in:12: warning: AC_TRY_RUN called without default to allow cross compiling
../../../autoconf/tests/semantics.m4:82: testing...
configure.in:5: warning: AC_TRY_RUN called without default to allow cross compiling
configure.in:12: warning: AC_TRY_RUN called without default to allow cross compiling
../../../autoconf/tests/semantics.m4:82: testing...
creating cache ./config.cache
checking size of char... 0
checking size of charchar... 0
updating cache ./config.cache
creating ./config.status
creating config.h
../../../autoconf/tests/semantics.m4:82: testing...
../../../autoconf/tests/semantics.m4:82: testing...
--- - Sun Feb 20 15:41:42 2000
+++ stdout Sun Feb 20 15:41:42 2000
@@ -1,2 +1,2 @@
-#define SIZEOF_CHAR 1
-#define SIZEOF_CHARCHAR 2
+#define SIZEOF_CHAR 0
+#define SIZEOF_CHARCHAR 0
====================================
./debug-9.sh: Testing AC_CHECK_TYPES
====================================
../../../autoconf/tests/semantics.m4:99: testing...
../../../autoconf/tests/semantics.m4:99: testing...
../../../autoconf/tests/semantics.m4:99: testing...
creating cache ./config.cache
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... no
checking for int... no
checking for struct yes... no
checking for struct no... no
updating cache ./config.cache
creating ./config.status
creating config.h
../../../autoconf/tests/semantics.m4:99: testing...
../../../autoconf/tests/semantics.m4:99: testing...
--- - Sun Feb 20 15:41:50 2000
+++ stdout Sun Feb 20 15:41:50 2000
@@ -1,3 +1,3 @@
-#define HAVE_INT 1
+/* #undef HAVE_INT */
/* #undef HAVE_STRUCT_NO */
-#define HAVE_STRUCT_YES 1
+/* #undef HAVE_STRUCT_YES */
================================
./debug-32.sh: Testing AC_EXEEXT
================================
../../../autoconf/tests/macros.m4:45: testing...
../../../autoconf/tests/macros.m4:45: testing...
../../../autoconf/tests/macros.m4:45: testing...
configure: error: installation or configuration problem: compiler cannot create
executables.
================================
./debug-61.sh: Testing AC_OBJEXT
================================
../../../autoconf/tests/macros.m4:79: testing...
../../../autoconf/tests/macros.m4:79: testing...
../../../autoconf/tests/macros.m4:79: testing...
configure: error: installation or configuration problem; compiler does not work
======================================
./debug-77.sh: Testing AC_PROG_INSTALL
======================================
../../../autoconf/tests/macros.m4:104: testing...
../../../autoconf/tests/macros.m4:104: testing...
../../../autoconf/tests/macros.m4:104: testing...
configure: error: cannot find install-sh or install.sh in . ./.. ./../..
======================================================
./debug-96.sh: Testing AC_VALIDATE_CACHED_SYSTEM_TUPLE
======================================================
../../../autoconf/tests/macros.m4:134: testing...
../../../autoconf/tests/macros.m4:134: testing...
../../../autoconf/tests/macros.m4:134: testing...
configure: error: cannot find install-sh or install.sh in . ./.. ./../..
make[2]: *** [check-local] Error 1
make[2]: Leaving directory
`/n/shekel/proj/bank/amd/working/utils/CYGNUS/MODIFIED/BUILD/AC.sparc-sun-solaris2.7/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory
`/n/shekel/proj/bank/amd/working/utils/CYGNUS/MODIFIED/BUILD/AC.sparc-sun-solaris2.7/tests'
make: *** [check-recursive] Error 1
##############################################################################