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

Warning emitted by ac-wrapper #3588

Closed
1 task done
angelog0 opened this issue Feb 26, 2023 · 4 comments
Closed
1 task done

Warning emitted by ac-wrapper #3588

angelog0 opened this issue Feb 26, 2023 · 4 comments
Labels

Comments

@angelog0
Copy link

Description / Steps to reproduce the issue

Recently building Emacs emits this warning

./autogen.sh
Checking whether you have the necessary tools...
(Read INSTALL.REPO for more details on building Emacs)
Checking for autoconf (need at least version 2.65) ... ok
Your system has the required tools.
Building aclocal.m4 ...
Running 'autoreconf -fi -I m4' ...
ac-wrapper: autoreconf: warning: auto-detected versions not found ( ); falling back to latest available
[...]

It seems that this happens since the last autoconf-wrapper update

Expected behavior

.

Actual behavior

.

Verification

Windows Version

MSYS_NT-10.0-19045

Are you willing to submit a PR?

No response

@angelog0 angelog0 added the bug label Feb 26, 2023
@Biswa96
Copy link
Member

Biswa96 commented Feb 26, 2023

Agree. I can reproduce the warning in my setup. Though the warning does not look serious. It can be workaround with command like this WANT_AUTOCONF=latest ./autogen.sh

@angelog0
Copy link
Author

Yes, it is just a warning, a noise...

@Biswa96
Copy link
Member

Biswa96 commented Feb 26, 2023

This seems like a chicken-egg problem.

  1. The autogen.sh file in emacs does not create the aclocal.m4 file using aclocal command. Instead, autogen.sh includes every m4 files in aclocal.m4. This way aclocal.m4 does not have the commented metadata at top.

  2. In other side, ac-wrapper.sh finds those commented metadata in aclocal.m4 to extract version number. It does not find the version number and shows that warning. Here is the commit from autotools-wrapper which adds that version check https://gitweb.gentoo.org/proj/autotools-wrappers.git/commit/?h=main&id=26310da15dd46776faf1c8e892896f443aa9c419

@Biswa96
Copy link
Member

Biswa96 commented Feb 26, 2023

Also emacs do not want to use aclocal as mentioned in autogen.sh file.

  # Build aclocal.m4 here so that autoreconf need not use aclocal.
  # aclocal is part of Automake and might not be installed, and
  # autoreconf skips aclocal if aclocal.m4 is already supplied.

So, the warning from ac-wrapper is expected.

@Biswa96 Biswa96 closed this as completed Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants