d12frosted / homebrew-emacs-plus

Emacs Plus formulae for the Homebrew package manager
MIT License
2.38k stars 187 forks source link

[Build Failure]: cant build emacs after installing treesitter #749

Closed Morilindo closed 1 week ago

Morilindo commented 1 week ago

Version

emacs-plus@30

Make sure to follow these steps before submitting the issue

What happened?

$ brew install emacs-plus@30
$ brew install emacs-plus@30 --with-xwidgets --with-debug --with-memeplex-wide-icon --with-native-comp
Command output

  ==> gmake
Last 15 lines from /Users/liyuxiao/Library/Logs/Homebrew/emacs-plus@30/03.gmake:
gmake[1]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory '/private/tmp/emacs-plusA30-20241112-40670-i4hm9r/emacs-30.0.92/doc/lispref'
gmake[1]: Leaving directory '/private/tmp/emacs-plusA30-20241112-40670-i4hm9r/emacs-30.0.92'
gmake[1]: Entering directory '/private/tmp/emacs-plusA30-20241112-40670-i4hm9r/emacs-30.0.92'
***
*** "make all" failed with exit status 2.
***
*** You could try to:
*** - run "make bootstrap", which might fix the problem
*** - run "make V=1", which displays the full commands invoked by make,
***   to further investigate the problem
***
gmake[1]: *** [Makefile:418: advice-on-failure] Error 2
gmake[1]: Leaving directory '/private/tmp/emacs-plusA30-20241112-40670-i4hm9r/emacs-30.0.92'
gmake: *** [Makefile:374: all] Error 2

  

brew doctor output

brew doctor Your system is ready to brew.

brew config output

brew config HOMEBREW_VERSION: 4.4.5 ORIGIN: https://github.com/Homebrew/brew HEAD: 254bf3fe9d8fa2e1b2fb55dbcf535b2d870180c4 Last commit: 18 hours ago Core tap JSON: 12 Nov 05:11 UTC Core cask tap JSON: 12 Nov 05:11 UTC HOMEBREW_PREFIX: /opt/homebrew HOMEBREW_CASK_OPTS: [] 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_blizzard_avalanche Clang: 16.0.0 build 1600 Git: 2.47.0 => /opt/homebrew/bin/git Curl: 8.7.1 => /usr/bin/curl macOS: 15.0.1-arm64 CLT: N/A Xcode: 16.1 Rosetta 2: false

Any extra information

After installing tree-sitter with homebrew, I was notified emacs become deprecate. It crashes every time I tried to open it. I tried to reinstall (remove & install) emacs, but I got the error, both with and without custom parameters. I tried to uninstall tree-sitter, but I still cant install emacs.

My system version is macOS Sequoia Version 15.0.1

config.log config.log

Morilindo commented 1 week ago

fixed in #750 I have reproduced the same issue on my environment (macOS 15.1). This might be related to the system's SQLite library.

The build succeeded after modifying the formula to use Homebrew's SQLite instead of the system library.

...

   depends_on "mailutils" => :optional
+  depends_on "sqlite"

...
     ENV.append "CFLAGS", "-O2 -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT"
+
+    # sqlite
+    ENV.append "CFLAGS", "-I#{Formula["sqlite"].include}"
+    ENV.append "LDFLAGS", "-L#{Formula["sqlite"].opt_lib}"

...

Originally posted by @oshiteku in https://github.com/d12frosted/homebrew-emacs-plus/issues/750#issuecomment-2471039941