Subject: Bug report automake 1.16.1: Says "aclocal-1.16: error: too many loops"

From: Sebastian Pipping <[email-masked]>
Date: Sun, 18 Nov 2018 16:13:07 +0100

Hi!

The output said "Please contact <[email-masked]>." so I'm writing
this e-mail...

Here's how to reproduce it:

# git clone https://github.com/aria2/aria2.git
Cloning into 'aria2'...
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 56637 (delta 5), reused 10 (delta 4), pack-reused 56617
Receiving objects: 100% (56637/56637), 27.89 MiB | 5.25 MiB/s, done.
Resolving deltas: 100% (49056/49056), done.

# cd aria2/

# git --no-pager show
commit 6c30b13a91646d5b9ed26d12806850d33ec6f94b (HEAD -> master,
origin/master, origin/HEAD)
Merge: 34fc5579 c6b7cca5
Author: Tatsuhiro Tsujikawa <[email-masked]>
Date:   Sun Nov 18 21:38:06 2018 +0900

    Merge pull request #1300 from aria2/accept-metalink

    Don't send Accept Metalink header if Metalink is disabled

# autoreconf -i
Copying file ABOUT-NLS
Copying file config.rpath
Copying file m4/codeset.m4
Copying file m4/fcntl-o.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
Copying file m4/intl.m4
Copying file m4/intldir.m4
Copying file m4/intlmacosx.m4
Copying file m4/intmax.m4
Copying file m4/inttypes-pri.m4
Copying file m4/inttypes_h.m4
Copying file m4/lcmessage.m4
Copying file m4/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/lock.m4
Copying file m4/longlong.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/printf-posix.m4
Copying file m4/progtest.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/threadlib.m4
Copying file m4/uintmax_t.m4
Copying file m4/visibility.m4
Copying file m4/wchar_t.m4
Copying file m4/wint_t.m4
Copying file m4/xsize.m4
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
Copying file po/boldquot.sed
Copying file po/[email-masked]
Copying file po/[email-masked]
Copying file po/insert-header.sin
Copying file po/quot.sed
Copying file po/remove-potcdate.sin
aclocal-1.16: overwriting 'm4/ax_check_compile_flag.m4' with
'/usr/share/aclocal/ax_check_compile_flag.m4'
aclocal-1.16: installing 'm4/ax_cxx_compile_stdcxx.m4' from
'/usr/share/aclocal/ax_cxx_compile_stdcxx.m4'
aclocal-1.16: overwriting 'm4/ax_cxx_compile_stdcxx_11.m4' with
'/usr/share/aclocal/ax_cxx_compile_stdcxx_11.m4'
aclocal-1.16: installing 'm4/libgcrypt.m4' from
'/usr/share/aclocal/libgcrypt.m4'
aclocal-1.16: installing 'm4/libtool.m4' from
'/usr/share/aclocal/libtool.m4'
aclocal-1.16: installing 'm4/ltoptions.m4' from
'/usr/share/aclocal/ltoptions.m4'
aclocal-1.16: installing 'm4/ltsugar.m4' from
'/usr/share/aclocal/ltsugar.m4'
aclocal-1.16: installing 'm4/ltversion.m4' from
'/usr/share/aclocal/ltversion.m4'
aclocal-1.16: installing 'm4/lt~obsolete.m4' from
'/usr/share/aclocal/lt~obsolete.m4'
aclocal-1.16: installing 'm4/pkg.m4' from '/usr/share/aclocal/pkg.m4'
aclocal-1.16: installing 'm4/ax_require_defined.m4' from
'/usr/share/aclocal/ax_require_defined.m4'
aclocal-1.16: error: too many loops
aclocal-1.16: Please contact <[email-masked]>.
 at /usr/share/automake-1.16/Automake/Channels.pm line 662.
        Automake::Channels::msg("automake", "", "too many loops") called
at /usr/share/automake-1.16/Automake/ChannelDefs.pm line 212
        Automake::ChannelDefs::prog_error("too many loops") called at
/usr/bin/aclocal-1.16 line 1195
autoreconf-2.69: aclocal failed with exit status: 255

# for i in autoconf automake ; do ${i} --version | head -n 1; done
autoconf (GNU Autoconf) 2.69
automake (GNU automake) 1.16.1

# autoreconf -i  # second take
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:26: installing './compile'
configure.ac:26: installing './config.guess'
configure.ac:26: installing './config.sub'
configure.ac:40: installing './install-sh'
configure.ac:40: installing './missing'
Makefile.am: installing './INSTALL'
lib/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
configure.ac:731: warning: The 'AM_PROG_MKDIR_P' macro is deprecated,
and its use is discouraged.
configure.ac:731: You should use the Autoconf-provided 'AC_PROG_MKDIR_P'
macro instead,
configure.ac:731: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your
Makefile.am files.
configure.ac:13: installing './compile'
configure.ac:7: installing './config.guess'
configure.ac:7: installing './config.sub'
configure.ac:10: installing './install-sh'
configure.ac:10: installing './missing'
Makefile.am: installing './INSTALL'
src/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'

Best

Sebastian