d12frosted / homebrew-emacs-plus

Emacs Plus formulae for the Homebrew package manager
MIT License
2.35k stars 181 forks source link

emacs@29 --with-native-comp linkage errors #476

Closed bbenchen closed 2 years ago

bbenchen commented 2 years ago

Error: Failed changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-566f90ed/preloaded/isearch-693bdd75-7048e0a2.eln

from isearch-693bdd75-7048e0a2.eln

to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-566f90ed/preloaded/isearch-693bdd75-7048e0a2.eln

Error: Failed to fix install linkage

The formula built, but you may encounter issues using it or linking other

Please make sure to follow these steps (and mark the checkboxes):

What you were trying to do

What happened (include command output)

$ brew install emacs-plus brew install emacs-plus@29 --with-xwidgets --with-imagemagick --with-native-comp --with-elrumo2-icon
Command output

  ==> Cloning https://github.com/emacs-mirror/emacs.git
Updating /Users/chenxianbin/Library/Caches/Homebrew/emacs-plus@29--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 47374d4416 duplicate-line: fix optional argument and add test (bug#46621)
==> Installing emacs-plus@29 from d12frosted/emacs-plus
==> Patching
==> Applying fix-window-role.patch
patching file src/nsterm.m
Hunk #1 succeeded at 9321 (offset 553 lines).
==> Applying system-appearance.patch
patching file src/frame.h
patching file src/nsfns.m
Hunk #1 succeeded at 1376 (offset 120 lines).
patching file src/nsterm.m
Hunk #1 succeeded at 1933 (offset 44 lines).
Hunk #2 succeeded at 5713 (offset 318 lines).
Hunk #3 succeeded at 6001 (offset 360 lines).
Hunk #4 succeeded at 6051 (offset 360 lines).
Hunk #5 succeeded at 6277 (offset 360 lines).
Hunk #6 succeeded at 9654 (offset 752 lines).
Hunk #7 succeeded at 10988 (offset 930 lines).
==> ImageMagick PKG_CONFIG_PATH:
/usr/local/opt/imagemagick/lib/pkgconfig
==> ./autogen.sh
==> ./configure --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus@29/29.0.50/share/info/em
==> gmake
==> gmake install
==> Injecting PATH value to Emacs.app/Contents/Info.plist
Patching plist at /usr/local/Cellar/emacs-plus@29/29.0.50/Emacs.app/Contents/Info.plist with following PATH value:
/Users/chenxianbin/.jenv/shims
/Users/chenxianbin/Library/Python/3.9/bin
/usr/local/opt/grep/libexec/gnubin
/usr/local/opt/findutils/libexec/gnubin
/usr/local/opt/gnu-indent/libexec/gnubin
/usr/local/opt/e2fsprogs/sbin
/usr/local/opt/e2fsprogs/bin
/Users/chenxianbin/.gem/ruby/2.6.0/bin
/Users/chenxianbin/.go/bin
/Users/chenxianbin/.n/bin
/Users/chenxianbin/.jenv/bin
/Users/chenxianbin/.doom.d/bin
/Users/chenxianbin/.doom-emacs.d/bin
/usr/local/sbin
/usr/local/bin
/Library/TeX/texbin
/Library/Apple/usr/bin
/Users/chenxianbin/.zinit/plugins/b4b4r07---httpstat
/Users/chenxianbin/.zinit/polaris/bin
/Applications/kitty.app/Contents/MacOS
/usr/bin
/bin
/usr/sbin
/sbin
==> /usr/libexec/PlistBuddy -c 'Add :LSEnvironment dict' '/usr/local/Cellar/emacs-plus@29/29.0.50/Emacs.app/Contents/Info.plist'
==> /usr/libexec/PlistBuddy -c 'Add :LSEnvironment:PATH string' '/usr/local/Cellar/emacs-plus@29/29.0.50/Emacs.app/Contents/Info.plist'
==> /usr/libexec/PlistBuddy -c 'Set :LSEnvironment:PATH /Users/chenxianbin/.jenv/shims:/Users/chenxianbin/Library/Python/3.9/bin:/usr/l
==> /usr/libexec/PlistBuddy -c 'Print :LSEnvironment' '/usr/local/Cellar/emacs-plus@29/29.0.50/Emacs.app/Contents/Info.plist'
==> touch '/usr/local/Cellar/emacs-plus@29/29.0.50/Emacs.app'
Error: Failed changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-566f90ed/preloaded/isearch-693bdd75-7048e0a2.eln
  from isearch-693bdd75-7048e0a2.eln
    to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-566f90ed/preloaded/isearch-693bdd75-7048e0a2.eln
Error: Failed to fix install linkage
The formula built, but you may encounter issues using it or linking other
formulae against it.
==> Caveats
Emacs.app was installed to:
  /usr/local/opt/emacs-plus@29

To link the application to default Homebrew App location:
  ln -s /usr/local/opt/emacs-plus@29/Emacs.app /Applications

Your PATH value was injected into Emacs.app/Contents/Info.plist

Report any issues to http://github.com/d12frosted/homebrew-emacs-plus

To start d12frosted/emacs-plus/emacs-plus@29 now and restart at login:
  brew services start d12frosted/emacs-plus/emacs-plus@29
Or, if you don't want/need a background service you can just run:
  emacs
==> Summary
🍺  /usr/local/Cellar/emacs-plus@29/29.0.50: 4,229 files, 168.3MB, built in 7 minutes 17 seconds
==> Running `brew cleanup emacs-plus@29`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

  

Output of brew config

$ brew config
HOMEBREW_VERSION: 3.5.2-121-g150c7d4
ORIGIN: https://github.com/Homebrew/brew
HEAD: 150c7d4d4847c3692cd46549edbb67aac83429f1
Last commit: 3 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 62deae70c8cc3f62ca5e83e3ba9caf2c44a01024
Core tap last commit: 2 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BOTTLE_DOMAIN: https://mirrors.ustc.edu.cn/homebrew-bottles
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: vim
HOMEBREW_MAKE_JOBS: 12
HOMEBREW_NO_AUTO_UPDATE: set
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: dodeca-core 64-bit kabylake
Clang: 13.1.6 build 1316
Git: 2.36.1 => /usr/local/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.4-x86_64
CLT: 13.4.0.0.1.1651278267
Xcode: 13.4.1

Output of brew doctor

$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /Users/chenxianbin/Library/Python/3.9/bin/pre-commit-validate-config

Warning: Putting non-prefixed coreutils in your path can cause GMP builds to fail.

Warning: Putting non-prefixed findutils in your path can cause python builds to fail.

Warning: A '.pydistutils.cfg' file was found in $HOME, which may cause Python
builds to fail. See:
  https://bugs.python.org/issue6138
  https://bugs.python.org/issue4655
d12frosted commented 2 years ago

Looks like the same issue as https://github.com/d12frosted/homebrew-emacs-plus/issues/392#issuecomment-1162854131

agzam commented 2 years ago

On mine it's failing with a different error:

Error: Failed changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/isearch-693bdd75-005fb30b.eln
  from isearch-693bdd75-005fb30b.eln
    to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/isearch-693bdd75-005fb30b.eln
Error: Failed to fix install linkage

adding --debug flag reveals more dylib errors:

expand ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/byte-opt-9c5f25f5-f5981a41.eln from byte-opt-9c5f25f5-f5981a41.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/byte-opt-9c5f25f5-f5981a41.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/bytecomp-12882072-2034f0e5.eln from bytecomp-12882072-2034f0e5.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/bytecomp-12882072-2034f0e5.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/cconv-3b1f1f98-92441f72.eln from cconv-3b1f1f98-92441f72.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/cconv-3b1f1f98-92441f72.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/charscript-600dca1a-639e1e93.eln from charscript-600dca1a-639e1e93.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/charscript-600dca1a-639e1e93.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/comp-7672a6ed-b4e5c638.eln from comp-7672a6ed-b4e5c638.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/comp-7672a6ed-b4e5c638.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/comp-cstr-ef162ef7-4aae7f32.eln from comp-cstr-ef162ef7-4aae7f32.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/comp-cstr-ef162ef7-4aae7f32.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/emoji-zwj-4f682c68-a74e4ca6.eln from emoji-zwj-4f682c68-a74e4ca6.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/emoji-zwj-4f682c68-a74e4ca6.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/ja-dic-283bfd77-a5e4a1e7.eln from ja-dic-283bfd77-a5e4a1e7.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/ja-dic-283bfd77-a5e4a1e7.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/loaddefs-gen-e8a3ad9c-40d48910.eln from loaddefs-gen-e8a3ad9c-40d48910.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/loaddefs-gen-e8a3ad9c-40d48910.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/abbrev-2af30c9a-a55c2154.eln from abbrev-2af30c9a-a55c2154.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/abbrev-2af30c9a-a55c2154.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/backquote-d5b20f7c-6dfc6085.eln from backquote-d5b20f7c-6dfc6085.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/backquote-d5b20f7c-6dfc6085.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/bindings-d30713c5-51094253.eln from bindings-d30713c5-51094253.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/bindings-d30713c5-51094253.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/buff-menu-da4b0b04-f49b1235.eln from buff-menu-da4b0b04-f49b1235.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/buff-menu-da4b0b04-f49b1235.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/burmese-3ddca72e-6aa09761.eln from burmese-3ddca72e-6aa09761.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/burmese-3ddca72e-6aa09761.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/button-747c9d6e-a7b76f86.eln from button-747c9d6e-a7b76f86.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/button-747c9d6e-a7b76f86.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/byte-run-79ff048e-ac701ff3.eln from byte-run-79ff048e-ac701ff3.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/byte-run-79ff048e-ac701ff3.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/case-table-3a8e2808-be7656d4.eln from case-table-3a8e2808-be7656d4.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/case-table-3a8e2808-be7656d4.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/cham-7498ab67-4831a6b4.eln from cham-7498ab67-4831a6b4.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/cham-7498ab67-4831a6b4.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/characters-45232aae-b9231a08.eln from characters-45232aae-b9231a08.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/characters-45232aae-b9231a08.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/chinese-c5896779-bb7df124.eln from chinese-c5896779-bb7df124.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/chinese-c5896779-bb7df124.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/cl-generic-be68ad15-5073ba8d.eln from cl-generic-be68ad15-5073ba8d.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/cl-generic-be68ad15-5073ba8d.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/cl-preloaded-6e6a1f4e-1babc2d6.eln from cl-preloaded-6e6a1f4e-1babc2d6.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/cl-preloaded-6e6a1f4e-1babc2d6.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/common-win-4b869e38-b9fb640b.eln from common-win-4b869e38-b9fb640b.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/common-win-4b869e38-b9fb640b.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/composite-beea1fd5-6001e0e1.eln from composite-beea1fd5-6001e0e1.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/composite-beea1fd5-6001e0e1.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/cp51932-89105e97-e8997b76.eln from cp51932-89105e97-e8997b76.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/cp51932-89105e97-e8997b76.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/cus-face-74f1689e-d2e9ec30.eln from cus-face-74f1689e-d2e9ec30.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/cus-face-74f1689e-d2e9ec30.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/cus-start-26315480-f6bf0916.eln from cus-start-26315480-f6bf0916.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/cus-start-26315480-f6bf0916.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/custom-c166a157-d940b671.eln from custom-c166a157-d940b671.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/custom-c166a157-d940b671.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/cyrillic-79ea53dc-54849acf.eln from cyrillic-79ea53dc-54849acf.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/cyrillic-79ea53dc-54849acf.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/czech-c6790aeb-8820d2fd.eln from czech-c6790aeb-8820d2fd.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/czech-c6790aeb-8820d2fd.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/debug-early-d734b212-2a54743d.eln from debug-early-d734b212-2a54743d.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/debug-early-d734b212-2a54743d.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/disp-table-375616aa-5c285770.eln from disp-table-375616aa-5c285770.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/disp-table-375616aa-5c285770.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/dnd-12d90309-23a105d7.eln from dnd-12d90309-23a105d7.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/dnd-12d90309-23a105d7.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/dos-fns-6e9410f2-9e80dcb2.eln from dos-fns-6e9410f2-9e80dcb2.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/dos-fns-6e9410f2-9e80dcb2.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/dos-vars-f5506e15-bb9b98ed.eln from dos-vars-f5506e15-bb9b98ed.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/dos-vars-f5506e15-bb9b98ed.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/dos-w32-923cbfb1-13f651ee.eln from dos-w32-923cbfb1-13f651ee.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/dos-w32-923cbfb1-13f651ee.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/dynamic-setting-55f80457-29972e5a.eln from dynamic-setting-55f80457-29972e5a.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/dynamic-setting-55f80457-29972e5a.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/easymenu-1fb41c0e-a3d158eb.eln from easymenu-1fb41c0e-a3d158eb.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/easymenu-1fb41c0e-a3d158eb.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/ediff-hook-0b92f1a2-9201f46f.eln from ediff-hook-0b92f1a2-9201f46f.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/ediff-hook-0b92f1a2-9201f46f.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/eldoc-d20a5fe9-9556395a.eln from eldoc-d20a5fe9-9556395a.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/eldoc-d20a5fe9-9556395a.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/electric-a9ca6cdd-5fa030a5.eln from electric-a9ca6cdd-5fa030a5.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/electric-a9ca6cdd-5fa030a5.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/elisp-mode-90dbfe40-c47135b6.eln from elisp-mode-90dbfe40-c47135b6.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/elisp-mode-90dbfe40-c47135b6.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/english-e3896aa2-6665c1ec.eln from english-e3896aa2-6665c1ec.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/english-e3896aa2-6665c1ec.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/env-72406999-a036d1f6.eln from env-72406999-a036d1f6.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/env-72406999-a036d1f6.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/epa-hook-99ab3afb-11a7f05a.eln from epa-hook-99ab3afb-11a7f05a.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/epa-hook-99ab3afb-11a7f05a.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/ethiopic-b0f5a6d8-80a96866.eln from ethiopic-b0f5a6d8-80a96866.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/ethiopic-b0f5a6d8-80a96866.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/eucjp-ms-5daf4e1a-cf27da4c.eln from eucjp-ms-5daf4e1a-cf27da4c.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/eucjp-ms-5daf4e1a-cf27da4c.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/european-369de593-3fd092db.eln from european-369de593-3fd092db.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/european-369de593-3fd092db.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/faces-b9447c93-a8da564d.eln from faces-b9447c93-a8da564d.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/faces-b9447c93-a8da564d.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/files-1e8937b2-efb18082.eln from files-1e8937b2-efb18082.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/files-1e8937b2-efb18082.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/fill-19d89c43-093a41f8.eln from fill-19d89c43-093a41f8.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/fill-19d89c43-093a41f8.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/float-sup-c5369b32-fa14b03f.eln from float-sup-c5369b32-fa14b03f.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/float-sup-c5369b32-fa14b03f.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/font-core-c3bff1fd-c6f4afb7.eln from font-core-c3bff1fd-c6f4afb7.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/font-core-c3bff1fd-c6f4afb7.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/font-lock-895216f6-af1333fe.eln from font-lock-895216f6-af1333fe.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/font-lock-895216f6-af1333fe.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/fontset-da863153-ef95ca03.eln from fontset-da863153-ef95ca03.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/fontset-da863153-ef95ca03.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/format-c5b23b0d-c37952e0.eln from format-c5b23b0d-c37952e0.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/format-c5b23b0d-c37952e0.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/frame-b40fc590-b68c5079.eln from frame-b40fc590-b68c5079.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/frame-b40fc590-b68c5079.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/fringe-d5d49a60-5e2a8b21.eln from fringe-d5d49a60-5e2a8b21.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/fringe-d5d49a60-5e2a8b21.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/georgian-8daa6ed6-af8cf423.eln from georgian-8daa6ed6-af8cf423.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/georgian-8daa6ed6-af8cf423.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/greek-ddbf878c-f6edb38b.eln from greek-ddbf878c-f6edb38b.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/greek-ddbf878c-f6edb38b.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/haiku-win-a742f47b-77966cb7.eln from haiku-win-a742f47b-77966cb7.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/haiku-win-a742f47b-77966cb7.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/hebrew-b9ed6a0d-8863a58f.eln from hebrew-b9ed6a0d-8863a58f.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/hebrew-b9ed6a0d-8863a58f.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/help-59d8049f-6de96057.eln from help-59d8049f-6de96057.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/help-59d8049f-6de96057.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/image-f221b419-f068150b.eln from image-f221b419-f068150b.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/image-f221b419-f068150b.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/indent-396b3792-bf6b5b76.eln from indent-396b3792-bf6b5b76.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/indent-396b3792-bf6b5b76.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/indian-0c4ce628-13d9366c.eln from indian-0c4ce628-13d9366c.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/indian-0c4ce628-13d9366c.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/indonesian-3fd5df38-329f87f6.eln from indonesian-3fd5df38-329f87f6.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/indonesian-3fd5df38-329f87f6.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/internal-957edb14-8e7081e0.eln from internal-957edb14-8e7081e0.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/internal-957edb14-8e7081e0.eln ==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/isearch-693bdd75-005fb30b.eln from isearch-693bdd75-005fb30b.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/isearch-693bdd75-005fb30b.eln Error: Failed changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/isearch-693bdd75-005fb30b.eln from isearch-693bdd75-005fb30b.eln to /usr/local/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp/29.0.50-b2fb589e/preloaded/isearch-693bdd75-005fb30b.eln Error: Failed to fix install linkage The formula built, but you may encounter issues using it or linking other formulae against it.
cxa commented 2 years ago

A workaround to make it work:

ln -sf $(brew --prefix)/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp $(brew --prefix)/Cellar/emacs-plus@29/29.0.50/Emacs.app/Contents

gwbrck commented 2 years ago

can confirm. for me ln -sf /usr/local/Cellar/emacs-plus@29/29.0.50/lib/emacs/29.0.50/native-lisp /opt/homebrew/Cellar/emacs-plus@29/29.0.50/Emacs.app/Contents did the trick...

LuciusChen commented 2 years ago

A workaround to make it work:

ln -sf $(brew --prefix)/opt/emacs-plus@29/lib/emacs/29.0.50/native-lisp $(brew --prefix)/Cellar/emacs-plus@29/29.0.50/Emacs.app/Contents

It works

d12frosted commented 2 years ago

The fix is in master. CI on branch is green. Since I am not using native compilation, would be nice for someone to confirm.

agzam commented 2 years ago

@d12frosted I ran:

brew uninstall emacs-plus@29

brew install emacs-plus@29 --with-native-comp --with-xwidgets --with-modern-papirus-icon --verbose

Intel chip Mac. Things looking good.

jackson15j commented 2 years ago

Reinstalled Brew on an M1 (arm64) Macbook via uninstall steps and then: brew install emacs-plus@29 --with-dbus --with-mailutils --with-xwidgets --with-imagemagick --with-native-comp.

Seems to have been working well so far with multiple restarts. Here is the output from brew info:

% brew info d12frosted/emacs-plus/emacs-plus@29
d12frosted/emacs-plus/emacs-plus@29: stable 29.0.50
/opt/homebrew/Cellar/emacs-plus@29/29.0.50 (4,378 files, 192.0MB) *
  Built from source on 2022-07-07 at 12:42:48 with: --with-xwidgets --with-native-comp --with-imagemagick --with-dbus --with-mailutils
From: https://github.com/d12frosted/homebrew-emacs-plus/blob/HEAD/Formula/emacs-plus@29.rb
==> Dependencies
Build: make ✔, autoconf ✔, gnu-sed ✔, gnu-tar ✔, awk ✔, coreutils ✔, pkg-config ✔, texinfo ✔
Required: gnutls ✔, librsvg ✔, little-cms2 ✔, jansson ✔
Optional: imagemagick ✔, dbus ✔, mailutils ✔
...
tilgovi commented 2 years ago

I'm still getting this output at the end of my build:

==> touch '/usr/local/Cellar/emacs-plus@29/29.0.50/Emacs.app'
Error: Failed changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/Emacs.app/Contents/native-lisp/29.0.50-beb5b449/comp-7672a6ed-aea242fd.eln
  from comp-7672a6ed-aea242fd.eln
    to /usr/local/opt/emacs-plus@29/Emacs.app/Contents/native-lisp/29.0.50-beb5b449/comp-7672a6ed-aea242fd.eln
Error: Failed to fix install linkage
The formula built, but you may encounter issues using it or linking other
formulae against it.
d12frosted commented 2 years ago

@tilgovi make sure to brew update before trying to install.

tilgovi commented 2 years ago

Yeah, I have. I even wiped the tap and retapped, made sure the git log showed it was up-to-date. I've uninstalled, reinstalled emacs multiple times.

I don't know if this is the right command because I don't know about these OSX linking things, but here's output if I try to change the dylib ID manually:

❯ install_name_tool -id /usr/local/opt/emacs-plus@29/Emacs.app/Contents/native-lisp/29.0.50-beb5b449/comp-7672a6ed-aea242fd.eln /usr/local/Cellar/emacs-plus@29/29.0.50/Emacs.app/Contents/native-lisp/29.0.50-beb5b449/comp-7672a6ed-aea242fd.eln
error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: changing install names or rpaths can't be redone for: /usr/local/Cellar/emacs-plus@29/29.0.50/Emacs.app/Contents/native-lisp/29.0.50-beb5b449/comp-7672a6ed-aea242fd.eln (for architecture x86_64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names)
agzam commented 2 years ago

@tilgovi what version of Command Line Tools do you have installed? Can you check? pkgutil --pkg-info=com.apple.pkg.CLTools_Executables

tilgovi commented 2 years ago
❯ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 13.4.0.0.1.1651278267
volume: /
location: /
install-time: 1654198104
groups: com.apple.FindSystemFiles.pkg-group 
agzam commented 2 years ago

Have you tried @LuciusChen 's workaround?

tilgovi commented 2 years ago

I'm not sure what the workaround should do. I observe nothing broken. Emacs starts without trouble. I am just reporting the log message.

agzam commented 2 years ago

Oh, okay. I misunderstood. I thought it's still failing to install for you. I'm glad you have Emacs running. Nothing is worse when you can't get Emacs (the way you wanted) on your machine.

tilgovi commented 2 years ago

True :). And you all are amazing and responsive and I appreciate this repository so much.

tilgovi commented 2 years ago

Please let me know if you have suggestions as to how to help debug. I don't even know how to get more verbose output from Homebrew to see which command is actually failing. I guessed at the install_name_tool command to try manually.

agzam commented 2 years ago

if you have suggestions as to how to help debug

there are --verbose and --debug flags that you can feed to brew install

tilgovi commented 2 years ago

After several successful messages about changing dylib IDs, it gets to this one that fails:

==> Changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/Emacs.app/Contents/native-lisp/29.0.50-beb5b449/comp-7672a6ed-aea242fd.eln
  from comp-7672a6ed-aea242fd.eln
    to /usr/local/opt/emacs-plus@29/Emacs.app/Contents/native-lisp/29.0.50-beb5b449/comp-7672a6ed-aea242fd.eln
Error: Failed changing dylib ID of /usr/local/Cellar/emacs-plus@29/29.0.50/Emacs.app/Contents/native-lisp/29.0.50-beb5b449/comp-7672a6ed-aea242fd.eln
  from comp-7672a6ed-aea242fd.eln
    to /usr/local/opt/emacs-plus@29/Emacs.app/Contents/native-lisp/29.0.50-beb5b449/comp-7672a6ed-aea242fd.eln
Error: Failed to fix install linkage
The formula built, but you may encounter issues using it or linking other
formulae against it.
==> Updated load commands do not fit in the header of /usr/local/Cellar/emacs-plus@29/29.0.50/Emacs.app/Contents/native-lisp/29.0.50-beb5b449/comp-7672a6ed-aea242fd.eln. /usr/local/Cellar/emacs-plus@29/29.0.50/Emacs.app/Contents/native-lisp/29.0.50-beb5b449/comp-7672a6ed-aea242fd.eln needs to be relinked, possibly with -headerpad or -headerpad_max_install_names

That's not really helpful or new information, probably, from what I posted before, but I did want to follow up with what the --verbose --debug output gave me.

tilgovi commented 2 years ago

Well, I tried this again later in the day and it worked without issue. I can't explain that, but I'll accept it.

d12frosted commented 2 years ago

@tilgovi thank you for your enthusiasm in digging this issues 💪 I don't know why it didn't work in the first place and why it works now. I checked the latest commits in the Emacs master branch and seems like there is nothing related. I am with @agzam on this - I am just happy that it builds and works 😸