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

[Build Failure]: emacs-plus@30 install failed when upgrade macos from ventura 13.7 to sequoia 15.2 #773

Open
3 tasks done
realfirst opened this issue Jan 4, 2025 · 7 comments

Comments

@realfirst
Copy link

realfirst commented Jan 4, 2025

Version

emacs-plus@30

Make sure to follow these steps before submitting the issue

  • run brew update and try to reproduce the issue again
  • run brew doctor, fix all issues and try to reproduce your issue again
  • try to reproduce your issue without any custom options to the formula

What happened?

$  brew reinstall emacs-plus@30 --with-mailutils --with-no-frame-refocus --with-xwidgets --with-imagemagick --with-native-comp --with-modern-pen-icon --with-compress-install
Command output

Warning: The option --with-no-frame-refocus is not required anymore in emacs-plus@30.
==> Fetching d12frosted/emacs-plus/emacs-plus@30
==> Downloading https://alpha.gnu.org/gnu/emacs/pretest/emacs-30.0.93.tar.xz
Already downloaded: /Users/sz/Library/Caches/Homebrew/downloads/e05b36fe6f7d3aca59ae06d3eb6ce30f88d7356fa724039c3c4ebc53b0763be8--emacs-30.0.93.tar.xz
==> Reinstalling d12frosted/emacs-plus/emacs-plus@30 --with-ctags --with-xwidgets --with-no-frame-refocus --with-native-comp --with-compress-install --with-imagemagick --with-mailutils -
Warning: The option --with-no-frame-refocus is not required anymore in emacs-plus@30.
==> Patching
==> Applying fix-window-role.patch
==> Applying system-appearance.patch
==> Applying round-undecorated-frame.patch
==> ImageMagick PKG_CONFIG_PATH:
/opt/homebrew/opt/imagemagick/lib/pkgconfig
==> ./autogen.sh
Last 15 lines from /Users/xxx/Library/Logs/Homebrew/emacs-plus@30/01.autogen.sh:
by your system is too old, it is normally straightforward to build
these packages from source. You can find the sources at:

https://ftp.gnu.org/gnu/PACKAGE/

Download the package (make sure you get at least the minimum version
listed above), extract it using tar, then run configure, make,
make install. Add the installation directory to your PATH and re-run
this script.

If you know that the required versions are in your PATH, but this
script has made an error, then you can simply re-run this script with
the --no-check option.

Please report any problems with this script to [email protected] .

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/d12frosted/homebrew-emacs-plus/issues

These open issues may also help:
[General]: exec-paths not being set in Sequoia for emacs-plus@30 #720

brew doctor output

Your system is ready to brew.

brew config output

HOMEBREW_VERSION: 4.4.14
ORIGIN: https://github.com/Homebrew/brew
HEAD: f84082963da8af8c9ccd6dffbe932eba457e2b78
Last commit: 5 days ago
Branch: stable
Core tap JSON: 03 Jan 15:43 UTC
Core cask tap JSON: 03 Jan 15:43 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: emacsclient -a "emacs"
HOMEBREW_FORCE_BREWED_CURL: set
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 16.0.0 build 1600
Git: 2.46.1 => /opt/homebrew/bin/git
Curl: 8.10.1 => /opt/homebrew/opt/curl/bin/curl
macOS: 15.2-arm64
CLT: 16.2.0.0.1.1733547573
Xcode: N/A
Rosetta 2: false

Any extra information

No response

@d12frosted
Copy link
Owner

Last 15 lines from /Users/xxx/Library/Logs/Homebrew/emacs-plus@30/01.autogen.sh:

As you can see, the last 15 lines are not enough as it's not clear which package the error is referring to. Share more information.

@realfirst
Copy link
Author

realfirst commented Jan 9, 2025

01.autogen.sh.txt
2025-01-09 10:12:43 +0000

./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) ... broken?

Building Emacs from the repository requires the following specialized programs:
autoconf (minimum version 2.65)

Your system seems to be missing the following tool(s):
autoconf (broken?)

If you think you have the required tools, please add them to your PATH
and re-run this script.

Otherwise, please try installing them.
On systems using rpm and yum, try: "yum install PACKAGE"
On systems using dpkg and apt, try: "apt-get install PACKAGE"
Then re-run this script.

If you do not have permission to do this, or if the version provided
by your system is too old, it is normally straightforward to build
these packages from source. You can find the sources at:

https://ftp.gnu.org/gnu/PACKAGE/

Download the package (make sure you get at least the minimum version
listed above), extract it using tar, then run configure, make,
make install. Add the installation directory to your PATH and re-run
this script.

If you know that the required versions are in your PATH, but this
script has made an error, then you can simply re-run this script with
the --no-check option.

Please report any problems with this script to [email protected] .

HOMEBREW_VERSION: 4.4.14
ORIGIN: https://github.com/Homebrew/brew
HEAD: f84082963da8af8c9ccd6dffbe932eba457e2b78
Last commit: 10 days ago
Branch: stable
Core tap JSON: 05 Jan 16:55 UTC
Core cask tap JSON: 05 Jan 16:55 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: emacsclient -a "emacs"
HOMEBREW_FORCE_BREWED_CURL: set
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_BOOTSNAP: set
Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 16.0.0 build 1600
Git: 2.46.1 => /opt/homebrew/bin/git
Curl: 8.10.1 => /opt/homebrew/opt/curl/bin/curl
macOS: 15.2-arm64
CLT: 16.2.0.0.1.1733547573
Xcode: N/A
Rosetta 2: false

HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
CFLAGS: -O2 -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/gcc/include -I/opt/homebrew/opt/libgccjit/include
LDFLAGS: -L/opt/homebrew/opt/sqlite/lib -L/opt/homebrew/lib/gcc/14 -I/opt/homebrew/opt/gcc/include -I/opt/homebrew/opt/libgccjit/include
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /opt/homebrew/opt/m4:/opt/homebrew/opt/sqlite:/opt/homebrew/opt/readline:/opt/homebrew/opt/icu4c@76:/opt/homebrew/opt/libarchive:/opt/homebrew/opt/libomp:/opt/homebrew/opt/jpeg:/opt/homebrew/opt/zlib:/opt/homebrew
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /opt/homebrew/opt/[email protected]/Frameworks
PKG_CONFIG_PATH: /opt/homebrew/opt/imagemagick/lib/pkgconfig:/opt/homebrew/opt/pkgconf/lib/pkgconfig:/opt/homebrew/opt/xz/lib/pkgconfig:/opt/homebrew/opt/sqlite/lib/pkgconfig:/opt/homebrew/opt/gmp/lib/pkgconfig:/opt/homebrew/opt/libidn2/lib/pkgconfig:/opt/homebrew/opt/libtasn1/lib/pkgconfig:/opt/homebrew/opt/nettle/lib/pkgconfig:/opt/homebrew/opt/p11-kit/lib/pkgconfig:/opt/homebrew/opt/openssl@3/lib/pkgconfig:/opt/homebrew/opt/libevent/lib/pkgconfig:/opt/homebrew/opt/libnghttp2/lib/pkgconfig:/opt/homebrew/opt/unbound/lib/pkgconfig:/opt/homebrew/opt/gnutls/lib/pkgconfig:/opt/homebrew/opt/libpng/lib/pkgconfig:/opt/homebrew/opt/freetype/lib/pkgconfig:/opt/homebrew/opt/fontconfig/lib/pkgconfig:/opt/homebrew/opt/pcre2/lib/pkgconfig:/opt/homebrew/opt/mpdecimal/lib/pkgconfig:/opt/homebrew/opt/readline/lib/pkgconfig:/opt/homebrew/opt/[email protected]/lib/pkgconfig:/opt/homebrew/opt/glib/lib/pkgconfig:/opt/homebrew/opt/libxau/lib/pkgconfig:/opt/homebrew/opt/libxdmcp/lib/pkgconfig:/opt/homebrew/opt/libxcb/lib/pkgconfig:/opt/homebrew/opt/libx11/lib/pkgconfig:/opt/homebrew/opt/libxext/lib/pkgconfig:/opt/homebrew/opt/libxrender/lib/pkgconfig:/opt/homebrew/opt/lzo/lib/pkgconfig:/opt/homebrew/opt/pixman/lib/pkgconfig:/opt/homebrew/opt/cairo/lib/pkgconfig:/opt/homebrew/opt/jpeg-turbo/lib/pkgconfig:/opt/homebrew/opt/lz4/lib/pkgconfig:/opt/homebrew/opt/zstd/lib/pkgconfig:/opt/homebrew/opt/libtiff/lib/pkgconfig:/opt/homebrew/opt/gdk-pixbuf/lib/pkgconfig:/opt/homebrew/opt/fribidi/lib/pkgconfig:/opt/homebrew/opt/graphite2/lib/pkgconfig:/opt/homebrew/opt/icu4c@76/lib/pkgconfig:/opt/homebrew/opt/harfbuzz/lib/pkgconfig:/opt/homebrew/opt/pango/lib/pkgconfig:/opt/homebrew/opt/librsvg/lib/pkgconfig:/opt/homebrew/opt/little-cms2/lib/pkgconfig:/opt/homebrew/opt/jansson/lib/pkgconfig:/opt/homebrew/opt/tree-sitter/lib/pkgconfig:/opt/homebrew/opt/webp/lib/pkgconfig:/opt/homebrew/opt/jbig2dec/lib/pkgconfig:/opt/homebrew/opt/openjpeg/lib/pkgconfig:/opt/homebrew/opt/leptonica/lib/pkgconfig:/opt/homebrew/opt/libb2/lib/pkgconfig:/opt/homebrew/opt/libarchive/lib/pkgconfig:/opt/homebrew/opt/libidn/lib/pkgconfig:/opt/homebrew/opt/tesseract/lib/pkgconfig:/opt/homebrew/opt/brotli/lib/pkgconfig:/opt/homebrew/opt/highway/lib/pkgconfig:/opt/homebrew/opt/imath/lib/pkgconfig:/opt/homebrew/opt/libdeflate/lib/pkgconfig:/opt/homebrew/opt/openexr/lib/pkgconfig:/opt/homebrew/opt/jpeg-xl/lib/pkgconfig:/opt/homebrew/opt/libvmaf/lib/pkgconfig:/opt/homebrew/opt/aom/lib/pkgconfig:/opt/homebrew/opt/libde265/lib/pkgconfig:/opt/homebrew/opt/x265/lib/pkgconfig:/opt/homebrew/opt/libheif/lib/pkgconfig:/opt/homebrew/opt/liblqr/lib/pkgconfig:/opt/homebrew/opt/jasper/lib/pkgconfig:/opt/homebrew/opt/libraw/lib/pkgconfig:/opt/homebrew/opt/libgpg-error/lib/pkgconfig:/opt/homebrew/opt/libgcrypt/lib/pkgconfig:/opt/homebrew/opt/gsasl/lib/pkgconfig:/opt/homebrew/opt/isl/lib/pkgconfig:/opt/homebrew/opt/mpfr/lib/pkgconfig:/opt/homebrew/opt/jpeg/lib/pkgconfig:/opt/homebrew/opt/zlib/lib/pkgconfig:/opt/homebrew/opt/xorgproto/share/pkgconfig:/opt/homebrew/opt/shared-mime-info/share/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/15
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk
ACLOCAL_PATH: /opt/homebrew/share/aclocal
PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/make/bin:/opt/homebrew/opt/autoconf/bin:/opt/homebrew/opt/gnu-sed/bin:/opt/homebrew/opt/gnu-tar/bin:/opt/homebrew/opt/grep/bin:/opt/homebrew/opt/awk/bin:/opt/homebrew/opt/coreutils/bin:/opt/homebrew/opt/pkgconf/bin:/opt/homebrew/opt/texinfo/bin:/opt/homebrew/opt/xz/bin:/opt/homebrew/opt/m4/bin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/gettext/bin:/opt/homebrew/opt/libidn2/bin:/opt/homebrew/opt/libtasn1/bin:/opt/homebrew/opt/nettle/bin:/opt/homebrew/opt/p11-kit/bin:/opt/homebrew/opt/openssl@3/bin:/opt/homebrew/opt/libevent/bin:/opt/homebrew/opt/gnutls/bin:/opt/homebrew/opt/libpng/bin:/opt/homebrew/opt/freetype/bin:/opt/homebrew/opt/fontconfig/bin:/opt/homebrew/opt/pcre2/bin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/opt/glib/bin:/opt/homebrew/opt/cairo/bin:/opt/homebrew/opt/jpeg-turbo/bin:/opt/homebrew/opt/lz4/bin:/opt/homebrew/opt/zstd/bin:/opt/homebrew/opt/libtiff/bin:/opt/homebrew/opt/gdk-pixbuf/bin:/opt/homebrew/opt/fribidi/bin:/opt/homebrew/opt/graphite2/bin:/opt/homebrew/opt/icu4c@76/bin:/opt/homebrew/opt/harfbuzz/bin:/opt/homebrew/opt/pango/bin:/opt/homebrew/opt/librsvg/bin:/opt/homebrew/opt/little-cms2/bin:/opt/homebrew/opt/tree-sitter/bin:/opt/homebrew/opt/giflib/bin:/opt/homebrew/opt/webp/bin:/opt/homebrew/opt/jbig2dec/bin:/opt/homebrew/opt/openjpeg/bin:/opt/homebrew/opt/leptonica/bin:/opt/homebrew/opt/libarchive/bin:/opt/homebrew/opt/libidn/bin:/opt/homebrew/opt/tesseract/bin:/opt/homebrew/opt/ghostscript/bin:/opt/homebrew/opt/brotli/bin:/opt/homebrew/opt/libdeflate/bin:/opt/homebrew/opt/openexr/bin:/opt/homebrew/opt/jpeg-xl/bin:/opt/homebrew/opt/libvmaf/bin:/opt/homebrew/opt/aom/bin:/opt/homebrew/opt/libde265/bin:/opt/homebrew/opt/shared-mime-info/bin:/opt/homebrew/opt/x265/bin:/opt/homebrew/opt/libheif/bin:/opt/homebrew/opt/jasper/bin:/opt/homebrew/opt/libraw/bin:/opt/homebrew/opt/libtool/bin:/opt/homebrew/opt/imagemagick/bin:/opt/homebrew/opt/libgpg-error/bin:/opt/homebrew/opt/libgcrypt/bin:/opt/homebrew/opt/gsasl/bin:/opt/homebrew/opt/mailutils/bin:/opt/homebrew/opt/gcc/bin:/opt/homebrew/opt/jpeg/bin:/opt/homebrew/opt/[email protected]/libexec/bin:/usr/bin:/bin:/usr/sbin:/sbin

the attach is the compile processing generated 01.autogen.sh file content.

@d12frosted
Copy link
Owner

We do depend on autoconf 🤔 What does brew info autoconf print? If it's not installed, can you try manually installing it using brew install autoconf and then giving Emacs+ another try?

@realfirst
Copy link
Author

Screenshot 2025-01-10 at 9 57 52 PM

i have installed autoconf before emacs-plus building action.

@sugitach
Copy link

I ran into a similar problem with emacs-plus@28. In my case (still compiling) I ran brew reinstall autoconf and the autoconf error shown at the beginning is no longer there!

@rhstanton
Copy link

I had the same problem, and reinstalling autoconf did indeed get things to start compiling. But not to completion... The next error is this one. Note that I've tried reinstalling libgccjit and this doesn't help:

Last 15 lines from /Users/stanton/Library/Logs/Homebrew/emacs-plus@30/02.configure:
checking for library containing inflateEnd... -lz
checking for dladdr... yes
checking for dlfunc... no
checking for gcc_jit_context_acquire in -lgccjit... yes
checking for libgccjit.h... yes
configure: error: The installed libgccjit failed to compile and run a test program using
the libgccjit library; see config.log for the details of the failure.
The test program can be found here:
<https://gcc.gnu.org/onlinedocs/jit/intro/tutorial01.html>.
You can try compiling it yourself to investigate the issues.
Please report the issue to your distribution if libgccjit was installed
through that.
You can find the instructions on how to compile and install libgccjit from
source on this site:
<https://gcc.gnu.org/wiki/JIT>.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/d12frosted/homebrew-emacs-plus/issues

These open issues may also help:
[General]: exec-paths not being set in Sequoia for emacs-plus@30 https://github.com/d12frosted/homebrew-emacs-plus/issues/720
[Build Failure]: emacs-plus@30 install failed when upgrade macos from ventura 13.7 to sequoia 15.2 https://github.com/d12frosted/homebrew-emacs-plus/issues/773

@rhstanton
Copy link

I had the same problem, and reinstalling autoconf did indeed get things to start compiling. But not to completion... The next error is this one. Note that I've tried reinstalling libgccjit and this doesn't help:

Last 15 lines from /Users/stanton/Library/Logs/Homebrew/emacs-plus@30/02.configure:
checking for library containing inflateEnd... -lz
checking for dladdr... yes
checking for dlfunc... no
checking for gcc_jit_context_acquire in -lgccjit... yes
checking for libgccjit.h... yes
configure: error: The installed libgccjit failed to compile and run a test program using
the libgccjit library; see config.log for the details of the failure.
The test program can be found here:
<https://gcc.gnu.org/onlinedocs/jit/intro/tutorial01.html>.
You can try compiling it yourself to investigate the issues.
Please report the issue to your distribution if libgccjit was installed
through that.
You can find the instructions on how to compile and install libgccjit from
source on this site:
<https://gcc.gnu.org/wiki/JIT>.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/d12frosted/homebrew-emacs-plus/issues

These open issues may also help:
[General]: exec-paths not being set in Sequoia for emacs-plus@30 https://github.com/d12frosted/homebrew-emacs-plus/issues/720
[Build Failure]: emacs-plus@30 install failed when upgrade macos from ventura 13.7 to sequoia 15.2 https://github.com/d12frosted/homebrew-emacs-plus/issues/773

The nuclear option - uninstalling and reinstalling Homebrew from scratch - solved this problem. I know I've had to do this at least once before with libgccjit problems.

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

No branches or pull requests

4 participants