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

Fail to build on Mac OS X #18

Closed
abailly opened this issue Jan 3, 2023 · 4 comments
Closed

Fail to build on Mac OS X #18

abailly opened this issue Jan 3, 2023 · 4 comments

Comments

@abailly
Copy link

abailly commented Jan 3, 2023

I am trying to build bee from source on Mac OS X (Monterey 12.2.1) using ./bootstrap and get the following failure:

Don't forget to
  - add "lib/Makefile" to AC_CONFIG_FILES in ./configure.ac,
  - mention "lib" in SUBDIRS in Makefile.am,
  - mention "-I m4" in ACLOCAL_AMFLAGS in Makefile.am,
  - mention "m4/gnulib-cache.m4" in EXTRA_DIST in Makefile.am,
  - invoke gl_EARLY in ./configure.ac, right after AC_PROG_CC_C99,
  - invoke gl_INIT in ./configure.ac.
bootstrap: running: autoreconf --symlink --install
/Library/Developer/CommandLineTools/usr/bin/gm4: unrecognized option `--gnu'
Try `/Library/Developer/CommandLineTools/usr/bin/gm4 --help' for more information.
autom4te: error: /usr/bin/gm4 failed with exit status: 1
aclocal: error: autom4te failed with exit status: 1
autoreconf: error: aclocal failed with exit status: 1

I can build the distribution tarball fine.

@rrthomas
Copy link
Owner

rrthomas commented Jan 5, 2023

Unfortunately, macOS's GNU m4 is too old. I have added a version requirement to bootstrap.conf that should now give a better error message.

@rrthomas rrthomas closed this as completed Jan 5, 2023
@abailly
Copy link
Author

abailly commented Jan 5, 2023

Thanks a lot! I guess I can override with brew's version?

@rrthomas
Copy link
Owner

rrthomas commented Jan 5, 2023

Exactly! bootstrap should find it provided it's somewhere on your PATH (doesn't even have to be before the system version).

@abailly
Copy link
Author

abailly commented Jan 5, 2023

Actually, it was there but I have had to prepend PATH 🤷

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