Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys-apps/nix-2.3.{4,5,6} configure.ac:118: error: possibly undefined macro: AC_MSG_ERROR #8

Closed
darlo-me opened this issue Jun 4, 2020 · 3 comments

Comments

@darlo-me
Copy link

darlo-me commented Jun 4, 2020

Prepare fails with Running autoconf --force ... fails for sys-apps/nix-2.3.{4,5,6}

autoconf.out:

***** autoconf *****
***** PWD: /var/tmp/portage/sys-apps/nix-2.3.6/work/nix-2.3.6
***** autoconf --force

configure.ac:118: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

See NixOS/nix#3658

Maybe autoconf-archive should be added in the DEPEND?

@darlo-me darlo-me changed the title configure.ac:118: error: possibly undefined macro: AC_MSG_ERROR sys-apps/nix-2.3.{4,5,6} configure.ac:118: error: possibly undefined macro: AC_MSG_ERROR Jun 4, 2020
@trofi
Copy link
Owner

trofi commented Jun 4, 2020

That sounds reasonable, but AC_MSG_ERROR macro comes from autoconf itself. It's a very simple macro without seemingly any extra dependencies:

AC_DEFUN([NEED_PROG],
[
AC_PATH_PROG($1, $2)
if test -z "$$1"; then
    AC_MSG_ERROR([$2 is required])
fi
])

I wonder what it really misses here. I'll try to reproduce without autoconf-archive installed to try to debug.

@trofi
Copy link
Owner

trofi commented Jun 4, 2020

Reproduced locally. Upstream tarball is missing at least the following .m4 files:

$ aclocal -I m4/ --install
aclocal-1.16: installing 'm4//ax_boost_base.m4' from '/usr/share/aclocal/ax_boost_base.m4'
aclocal-1.16: installing 'm4//ax_require_defined.m4' from '/usr/share/aclocal/ax_require_defined.m4'
aclocal-1.16: installing 'm4//pkg.m4' from '/usr/share/aclocal/pkg.m4'

These come from:

$ qfile /usr/share/aclocal/ax_boost_base.m4 /usr/share/aclocal/ax_require_defined.m4 /usr/share/aclocal/pkg.m4
dev-util/pkgconfig: /usr/share/aclocal/pkg.m4
sys-devel/autoconf-archive: /usr/share/aclocal/ax_boost_base.m4
sys-devel/autoconf-archive: /usr/share/aclocal/ax_require_defined.m4

@trofi trofi closed this as completed in bda7aa4 Jun 4, 2020
@trofi
Copy link
Owner

trofi commented Jun 4, 2020

bda7aa4 should hopefully fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants