Menu

#67 configure script needs regenerating for ARM64/Apple Silicon

v1.0 (example)
open
nobody
None
5
2021-04-15
2021-04-15
No

The current shipped configure script falls apart when it encounters Apple Silicon, immediately aborting the build:

checking build system type... configure: error: /bin/sh ./config.sub -apple-darwin20.4.0 failed

Running autoreconf -fvi regenerates the configure script successfully and allows building an arm64 binary on Apple Silicon as desired without any further modifications, but it'd be nice if upstream could possibly do that so downstream package managers don't have to do so themselves.

autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
m4/lbl-net.m4:36: warning: underquoted definition of AC_LBL_LIBRARY_NET
m4/lbl-net.m4:36:   run info Automake 'Extending aclocal'
m4/lbl-net.m4:36:   or see https://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
autoreconf: configure.ac: tracing
configure.ac: warning: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION or AM_GNU_GETTEXT_REQUIRE_VERSION
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /opt/homebrew/Cellar/autoconf/2.71/bin/autoconf --force
configure.ac:23: warning: The macro `AC_CANONICAL_SYSTEM' is obsolete.
configure.ac:23: You should run autoupdate.
./lib/autoconf/general.m4:2081: AC_CANONICAL_SYSTEM is expanded from...
configure.ac:23: the top level
configure.ac:25: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:429: AM_INIT_AUTOMAKE is expanded from...
configure.ac:25: the top level
configure.ac:29: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.ac:29: You should use the 'AC_CONFIG_HEADERS' macro instead.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:727: AM_CONFIG_HEADER is expanded from...
configure.ac:29: the top level
configure.ac:52: warning: The macro `AC_OUTPUT_COMMANDS' is obsolete.
configure.ac:52: You should run autoupdate.
./lib/autoconf/status.m4:1025: AC_OUTPUT_COMMANDS is expanded from...
m4/gettext.m4:330: AM_PO_SUBDIRS is expanded from...
m4/gettext.m4:59: AM_GNU_GETTEXT is expanded from...
configure.ac:52: the top level
configure.ac:52: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:52: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/gettext.m4:59: AM_GNU_GETTEXT is expanded from...
configure.ac:52: the top level
configure.ac:52: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:52: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/iconv.m4:22: AM_ICONV_LINK is expanded from...
m4/gettext.m4:59: AM_GNU_GETTEXT is expanded from...
configure.ac:52: the top level
configure.ac:53: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:53: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
m4/gettext.m4:504: AM_INTL_SUBDIR is expanded from...
configure.ac:53: the top level
configure.ac:53: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:53: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/intdiv0.m4:11: gt_INTDIV0 is expanded from...
m4/gettext.m4:504: AM_INTL_SUBDIR is expanded from...
configure.ac:53: the top level
configure.ac:53: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:53: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/inttypes_h.m4:14: jm_AC_HEADER_INTTYPES_H is expanded from...
m4/uintmax_t.m4:16: jm_AC_TYPE_UINTMAX_T is expanded from...
m4/gettext.m4:504: AM_INTL_SUBDIR is expanded from...
configure.ac:53: the top level
configure.ac:53: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:53: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/stdint_h.m4:14: jm_AC_HEADER_STDINT_H is expanded from...
m4/uintmax_t.m4:16: jm_AC_TYPE_UINTMAX_T is expanded from...
m4/gettext.m4:504: AM_INTL_SUBDIR is expanded from...
configure.ac:53: the top level
configure.ac:53: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:53: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/ulonglong.m4:11: jm_AC_TYPE_UNSIGNED_LONG_LONG is expanded from...
m4/uintmax_t.m4:16: jm_AC_TYPE_UINTMAX_T is expanded from...
m4/gettext.m4:504: AM_INTL_SUBDIR is expanded from...
configure.ac:53: the top level
configure.ac:53: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:53: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/inttypes.m4:14: gt_HEADER_INTTYPES_H is expanded from...
m4/gettext.m4:504: AM_INTL_SUBDIR is expanded from...
configure.ac:53: the top level
configure.ac:53: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:53: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/inttypes-pri.m4:14: gt_INTTYPES_PRI is expanded from...
m4/gettext.m4:504: AM_INTL_SUBDIR is expanded from...
configure.ac:53: the top level
configure.ac:53: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:53: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/iconv.m4:22: AM_ICONV_LINK is expanded from...
m4/iconv.m4:77: AM_ICONV is expanded from...
m4/gettext.m4:504: AM_INTL_SUBDIR is expanded from...
configure.ac:53: the top level
configure.ac:53: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:53: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
m4/iconv.m4:77: AM_ICONV is expanded from...
m4/gettext.m4:504: AM_INTL_SUBDIR is expanded from...
configure.ac:53: the top level
configure.ac:53: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:53: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/codeset.m4:11: AM_LANGINFO_CODESET is expanded from...
m4/gettext.m4:504: AM_INTL_SUBDIR is expanded from...
configure.ac:53: the top level
configure.ac:53: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:53: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/lcmessage.m4:23: AM_LC_MESSAGES is expanded from...
m4/gettext.m4:504: AM_INTL_SUBDIR is expanded from...
configure.ac:53: the top level
configure.ac:98: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:98: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:98: the top level
configure.ac:102: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:102: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:102: the top level
configure.ac:108: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:108: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:108: the top level
configure.ac:112: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:112: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:112: the top level
configure.ac:116: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:116: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:116: the top level
autoreconf: running: /opt/homebrew/Cellar/autoconf/2.71/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:25: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.ac:25: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:32: installing './compile'
lib/contrib/Makefile.am: installing './depcomp'
src/Makefile.am:24: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
autoreconf: './config.sub' is updated
autoreconf: './config.guess' is updated
autoreconf: Leaving directory '.'

~> ./configure --prefix=/tmp/netcatB                                         
checking build system type... aarch64-apple-darwin20.4.0
checking host system type... aarch64-apple-darwin20.4.0
checking target system type... aarch64-apple-darwin20.4.0
[snip]

~> file /tmp/netcatB/bin/nc                                                   
/tmp/netcatB/bin/nc: Mach-O 64-bit executable arm64

Discussion


Log in to post a comment.

MongoDB Logo MongoDB