+ cd automake-1.11.1
+ patch -p1
patching file automake.in
+ cp ../config.guess-am-1.11.4 lib/config.guess
+ ./bootstrap
main::scan_file() called too early to check prototype at ./aclocal.tmp line 618.
+ CONFARGS=--prefix=/disk/arduino_rebuild/GIT/toolchain-avr/toolsdir
+ ./configure --prefix=/disk/arduino_rebuild/GIT/toolchain-avr/toolsdir
checking build system type... lib/config.guess: unable to guess system type
This script, last modified 2012-02-10, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
If the version you run (lib/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.
config.guess timestamp = 2012-02-10
uname -m = ppc64le
uname -r = 4.19.0-4-powerpc64le
uname -s = Linux
uname -v = #1 SMP Debian 4.19.28-2 (2019-03-15)
/usr/bin/uname -p =
/bin/uname -X =
hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch =
/usr/bin/oslevel =
/usr/convex/getsysinfo =
UNAME_MACHINE = ppc64le
UNAME_RELEASE = 4.19.0-4-powerpc64le
UNAME_SYSTEM = Linux
UNAME_VERSION = #1 SMP Debian 4.19.28-2 (2019-03-15)
configure: error: cannot guess build type; you must specify one
The config.guess file in use (from 2012!) is out of date and is unable to properly detect the host architecture on ppc64le systems.
Copying the system config.guess file over the obsolete provided one seems to work:
cp -Rp /usr/share/misc/config.guess config.guess-am-1.11.4
This impacts https://github.com/arduino/Arduino/issues/8778