Libtool failing to build on aarch64

Builds of master on aarch64 platforms have recently begun failing, erroring out at libtool in the toolchain phase. This is relatively new, within the last ten days or so. I can't pin it down more than that because I don't rebuild my toolchain every time.

Log of fail, from the beginning of libtool, is:

make[3]: Entering directory '/mnt/bulk/devel/openwrt/tools/libtool'
. /mnt/bulk/devel/openwrt/include/shell.sh; xzcat /mnt/bulk/devel/openwrt/dl/libtool-2.4.7.tar.xz | tar -C /mnt/bulk/devel/openwrt/build_dir/host/libtool-2.4.7/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/* /mnt/bulk/devel/openwrt/build_dir/host/libtool-2.4.7

Applying ./patches/000-relocatable.patch using plaintext: 
patching file libtoolize.in
patching file m4/libtool.m4

Applying ./patches/100-libdir-fixes.patch using plaintext: 
patching file build-aux/ltmain.in

Applying ./patches/110-dont-use-target-dir-for-relinking.patch using plaintext: 
patching file build-aux/ltmain.in

Applying ./patches/120-strip-unsafe-dirs-for-relinking.patch using plaintext: 
patching file build-aux/ltmain.in

Applying ./patches/130-trailingslash.patch using plaintext: 
patching file build-aux/ltmain.in

Applying ./patches/140-don-t-quote-SHELL-in-Makefile.am.patch using plaintext: 
patching file Makefile.am

Applying ./patches/200-openwrt-branding.patch using plaintext: 
patching file build-aux/ltmain.in
patching file build-aux/funclib.sh
CFLAGS="-O2 -I/mnt/bulk/devel/openwrt/staging_dir/host/include " CPPFLAGS="-I/mnt/bulk/devel/openwrt/staging_dir/host/include " CXXFLAGS="" LDFLAGS="-L/mnt/bulk/devel/openwrt/staging_dir/host/lib " make  -C /mnt/bulk/devel/openwrt/build_dir/host/libtool-2.4.7  uninstall
make[4]: Entering directory '/mnt/bulk/devel/openwrt/build_dir/host/libtool-2.4.7'
There seems to be no Makefile in this directory.
You must run ./configure before running 'make'.
make[4]: *** [GNUmakefile:108: abort-due-to-no-makefile] Error 1
make[4]: Leaving directory '/mnt/bulk/devel/openwrt/build_dir/host/libtool-2.4.7'
make[3]: [Makefile:67: /mnt/bulk/devel/openwrt/build_dir/host/libtool-2.4.7/.prepared3cb946466e662990243245b969bf1714_6664517399ebbbc92a37c5bb081b5c53] Error 2 (ignored)
(cd /mnt/bulk/devel/openwrt/staging_dir/host/share/aclocal/ && rm -f libtool.m4 ltdl.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4)
( cd /mnt/bulk/devel/openwrt/build_dir/host/libtool-2.4.7; AUTOM4TE=/mnt/bulk/devel/openwrt/staging_dir/host/bin/autom4te AUTOCONF=/mnt/bulk/devel/openwrt/staging_dir/host/bin/autoconf AUTOMAKE=/mnt/bulk/devel/openwrt/staging_dir/host/bin/automake ACLOCAL=/mnt/bulk/devel/openwrt/staging_dir/host/bin/aclocal AUTOHEADER=/mnt/bulk/devel/openwrt/staging_dir/host/bin/autoheader LIBTOOLIZE=/mnt/bulk/devel/openwrt/staging_dir/host/bin/libtoolize LIBTOOL=/mnt/bulk/devel/openwrt/staging_dir/host/bin/libtool M4=/mnt/bulk/devel/openwrt/staging_dir/host/bin/m4 AUTOPOINT=true GTKDOCIZE=true ./bootstrap --force --skip-git --skip-po --gnulib-srcdir=/mnt/bulk/devel/openwrt/staging_dir/host/share/gnulib )
bootstrap: warning: No 'git' found; imported gnulib modules may be outdated.
bootstrap: running: git submodule init -- gl-mod/bootstrap
error: pathspec 'gl-mod/bootstrap' did not match any file(s) known to git
bootstrap: running: git submodule update -- gl-mod/bootstrap
error: pathspec 'gl-mod/bootstrap' did not match any file(s) known to git
bootstrap: running: /mnt/bulk/devel/openwrt/staging_dir/host/share/gnulib/gnulib-tool --no-changelog --avoid=dummy --libtool --macro-prefix=GL --with-tests --tests-base=gnulib-tests --aux-dir=build-aux --m4-base=m4 --local-dir=gl --local-dir=gl-mod/bootstrap --symlink --import announce-gen bootstrap...
/mnt/bulk/devel/openwrt/staging_dir/host/share/gnulib/gnulib-tool: 'join' program not found. Consider installing GNU coreutils.
make[3]: *** [Makefile:69: /mnt/bulk/devel/openwrt/build_dir/host/libtool-2.4.7/.prepared3cb946466e662990243245b969bf1714_6664517399ebbbc92a37c5bb081b5c53] Error 1
make[3]: Leaving directory '/mnt/bulk/devel/openwrt/tools/libtool'
time: tools/libtool/compile#1.70#0.30#0.00
    ERROR: tools/libtool failed to build.
make[2]: *** [tools/Makefile:226: tools/libtool/compile] Error 1

Is it, installed ?

1 Like

=

When all else fails, actually read the error messages. :wink:
Coreutil's join must be a new requirement. I didn't even notice that error amongst the git errors. Thanks so much!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.