macOS glibtoolize (confusingly) complains of missing gm4 / gnum4 / m4 #26155

issue Sjors opened this issue on September 22, 2022
  1. Sjors commented at 8:55 AM on September 22, 2022: member

    Just ran into this when trying to build v24.0rc1 from scratch on macOS 12.6 (two separate machines).

    git clean -dfx
    % ./autogen.sh  
    glibtoolize:   error: One of these is required:
    glibtoolize:                 gm4 gnum4 m4
    glibtoolize:   error: Please install GNU M4, or 'export M4=/path/to/gnu/m4'.
    autoreconf: error: /usr/local/bin/glibtoolize failed with exit status: 1
    

    There's no new dependency mentioned in build-osx.

    Turns out I just had to reinstall the Xcode command line tools after the update to macOS 12.6 apparently silently nuked them. This shouldn't affect actually new users, because we tell them to install Xcode. See also #13601.

  2. Sjors added the label Bug on Sep 22, 2022
  3. Sjors commented at 8:55 AM on September 22, 2022: member

    Self closing, I'm sure Google will find this when others search the error message.

  4. Sjors closed this on Sep 22, 2022

  5. fanquake removed the label Bug on Sep 22, 2022
  6. fanquake commented at 8:58 AM on September 22, 2022: member

    This shouldn't affect actually new users, because we tell them to install Xcode.

    No we don't? You only need the command line tools, which is what we tell users to install. There is no reason nor requirement to install Xcode in it's entierity to compile Bitcoin Core.

  7. Sjors commented at 9:16 AM on September 22, 2022: member

    You only need the command line tools

    That's what I meant. I wonder if those also get nuked by macOS updates, or this only happens when you install the command line tools from Xcode. It doesn't happen on every update either, so it's usually long enough ago that I forgot.

  8. bitcoin locked this on Sep 22, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 09:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me