bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNU Autoconf 2.67] testsuite: 3 43 45 46 51 65 69 206 306 308 faile


From: Ralf Wildenhues
Subject: Re: [GNU Autoconf 2.67] testsuite: 3 43 45 46 51 65 69 206 306 308 failed
Date: Tue, 10 Aug 2010 22:32:50 +0200
User-agent: Mutt/1.5.20 (2010-04-22)

Hi Luke,

thanks for the bug report.

* Luke Dalessandro wrote on Mon, Aug 09, 2010 at 08:51:25PM CEST:
> Not sure if it's my environment causing this trouble.

Only in the sense that the Autoconf testsuite isn't sufficiently
prepared to deal with it:

| autom4te: $LOCAL/m4-1.4.6/bin/m4-1.4.6 failed with exit status: 1
| ../../tests/base.at:82: sed 's/^[^:]*m4[.ex]*: *\([^:]*:\) *\([0-9][0-9]*: 
\)/m4:\1\2/
|         s/^\([^:]*:\) *\([0-9][0-9]*:\)[^:]*m4[.ex]*: /m4:\1\2 /
|         s/: C\(annot open \)\([^`:]*\):/: c\1`\2'\'':/
|         s/: include:\( cannot open\)/:\1/
|         s/^autom4te: [^ ]*m4[.ex]* /autom4te: m4 /
|         s/ (E[A-Z]*)$//
|     ' stderr >&2
| --- -   Mon Aug  9 12:07:42 2010
| +++ $HOME/work/autoconf-2.67/build/tests/testsuite.dir/at-groups/206/stderr   
  Mon Aug  9 12:07:42 2010
| @@ -1,4 +1,4 @@
|  configure.ac:1: error: AC_REQUIRE(AC_PROG_CC): cannot be used outside of an 
AC_DEFUN'd macro
|  configure.ac:1: the top level
| -autom4te: m4 failed with exit status: 1
| +autom4te: $LOCAL/m4-1.4.6/bin/m4-1.4.6 failed with exit status: 1
| 
| 206. base.at:72: 206. AC_REQUIRE: error message (base.at:72): FAILED 
(base.at:82)

autoconf/tests/local.at:AT_CHECK_M4 needs to cope with typical
--program-transform uses of m4, such as m4-X.Y or m4-X.Y.Z.
I suggest the patch below, OK to commit and add Luke to THANKS?


| 306. fortran.at:768: testing AC_FC_FREEFORM with AC_FC_SRCEXT ...
| ../../tests/fortran.at:793: autoconf --force
| ../../tests/fortran.at:794: ./configure $configure_options
| --- /dev/null   Mon Aug  9 12:45:23 2010
| +++ $HOME/work/autoconf-2.67/build/tests/testsuite.dir/at-groups/306/stderr   
  Mon Aug  9 12:45:23 2010
| @@ -0,0 +1 @@
| +configure: error: Fortran could not compile .f90 files
| stdout:
| checking for gfortran... no
[...]
| checking for g77... g77
| checking whether the Fortran compiler works... yes

This and the other failing Fortran tests need to ensure the compiler
groks .f90 files or skip otherwise.  I suggest the second patch below.

Thanks,
Ralf

   Fix testsuite failures with typical m4-x.y.z program suffix.
   * tests/local.at (AT_CHECK_M4): Normalize hyphens and digits
   after the `m4' program name.
   * THANKS: Update.
   Report by Luke Dalessandro <address@hidden>.

diff --git a/tests/local.at b/tests/local.at
index 297c954..ca25b6e 100644
--- a/tests/local.at
+++ b/tests/local.at
@@ -80,6 +80,11 @@ m4_define([AT_CHECK_PERL_SYNTAX],
 #  script.4s:1: /usr/local/bin/gm4: Cannot open foo: No such file or directory
 #  autom4te: /usr/local/bin/gm4 failed with exit status: 1
 #
+# or this (GNU M4 1.4.13 installed as m4-1.4.13):
+#
+#  /usr/bin/m4-1.4.13:script.4s:1: include: cannot open `foo': No such file or 
directory
+#  autom4te: /usr/bin/m4-1.4.13 failed with exit status: 1
+#
 # becomes
 #
 #  m4:script.4s:1: cannot open `foo': No such file or directory
@@ -108,8 +113,8 @@ m4_define([AT_CHECK_M4],
 [AT_CHECK([$1], [$2], [$3],
           m4_case([$4], [], [], [ignore], [ignore], [stderr]))
 m4_case([$4], [], [], [ignore], [],
-[AT_CHECK([[sed 's/^[^:]*m4[.ex]*: *\([^:]*:\) *\([0-9][0-9]*: \)/m4:\1\2/
-       s/^\([^:]*:\) *\([0-9][0-9]*:\)[^:]*m4[.ex]*: /m4:\1\2 /
+[AT_CHECK([[sed 's/^[^:]*m4[-.ex0-9]*: *\([^:]*:\) *\([0-9][0-9]*: \)/m4:\1\2/
+       s/^\([^:]*:\) *\([0-9][0-9]*:\)[^:]*m4[-.ex0-9]*: /m4:\1\2 /
        s/: C\(annot open \)\([^`:]*\):/: c\1`\2'\'':/
        s/: include:\( cannot open\)/:\1/
        s/^autom4te: [^ ]*m4[.ex]* /autom4te: m4 /




   Skip AC_FC_SRCEXT([f90]) tests with a Fortran 77 compiler in $FC.
   * tests/fortran.at (AC_FC_FREEFORM with AC_FC_SRCEXT)
   (AC_FC_FIXEDFORM with AC_FC_SRCEXT): Skip if the compiler cannot
   handle files with .f90 extension.
   Report by Luke Dalessandro.

diff --git a/tests/fortran.at b/tests/fortran.at
index 990968e..c723748 100644
--- a/tests/fortran.at
+++ b/tests/fortran.at
@@ -769,7 +769,7 @@ AT_SETUP([AC_FC_FREEFORM with AC_FC_SRCEXT])
 
 AT_DATA([configure.ac],
 [[AC_INIT
-AC_FC_SRCEXT([f90])
+AC_FC_SRCEXT([f90], [], [AS_EXIT([77])])
 AC_PROG_FC
 AC_FC_FREEFORM
 AC_CONFIG_FILES([Makefile])
@@ -846,7 +846,7 @@ AT_SETUP([AC_FC_FIXEDFORM with AC_FC_SRCEXT])
 AT_DATA([configure.ac],
 [[AC_INIT
 AC_PROG_FC
-AC_FC_SRCEXT([f90])
+AC_FC_SRCEXT([f90], [], [AS_EXIT([77])])
 AC_FC_FIXEDFORM
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT



reply via email to

[Prev in Thread] Current Thread [Next in Thread]