bug-autoconf
[Top][All Lists]
Advanced

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

Re: [GNU Autoconf 2.63] testsuite: 60 failed


From: Eric Blake
Subject: Re: [GNU Autoconf 2.63] testsuite: 60 failed
Date: Mon, 15 Dec 2008 13:01:54 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Martin Dauskardt on 12/14/2008 3:34 PM:

Hello, Martin,

> Linux From Scratch - Version 6.4
> Chapter 6.28.1: autoconf compiles fine, but "make check" gives an unexpected 
> failure:
>  60: AS_IF and AS_CASE                               FAILED (m4sh.at:744)

Thanks for the report.  Which shell was this with?  Your shell is severely
limited; it can't handle more than 125 nested if-else sequences:

> +++ /sources/autoconf-2.63/tests/testsuite.dir/at-groups/60/stderr
> 2008-12-14 22:04:50.000000000 +0000
> @@ -0,0 +1,2 @@
> +./script: line 672: syntax error near unexpected token `$1'
> +./script: line 672: `elif test $1 = 125; then'

Bash 3.2, for example, handles about 2500 nested if-else before it runs
into a hard-coded recursion limit (you can rebuild bash yourself and
enable a bison option that avoids the arbitrary limit of 10000 tokens
applied as a default by bison, but then you run the risk of stack overflow
which is even harder to diagnose).  Other shells might even implement
nested if-else parsing in such a manner that stack recursion is avoided.

Without more details about your shell, we can't determine whether our test
is in error for trying to expect that much nesting from your shell, or
whether your best course of action is to use a more powerful shell.  At
any rate, it does not represent a bug in autoconf, per se, so much as a
limitation in your current shell (although autoconf might be taught how to
avoid that limitation).

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklGt7IACgkQ84KuGfSFAYDMwwCgq7xgEngJHNzxdk/CBtZibZr2
VjoAn1cYGYEvhiTFIRrS3xrAPQJT1v8H
=3fvx
-----END PGP SIGNATURE-----




reply via email to

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