homebrew-emacs-plus: Install --with-native-comp fails
brew install emacs-plus@29 --with-native-comp fails with the error:
Error: invalid option: --with-native-comp
And a Usage message for brew install listing of options that does not include the options from the brewfile.
brew install emacs-plus@29 --with-native-nonsense fails with the error:
Error: invalid option: --with-native-nonsense
And a Usage message for brew install listing of options that does include the options from the brewfile.
Here’s a brew config; any ideas where I can look next to debug this?
HOMEBREW_VERSION: 3.6.2-24-g3452176
ORIGIN: https://github.com/Homebrew/brew
HEAD: 34521764a659fdce4861a2c1ff0662fe8186c446
Last commit: 5 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: cc6abf752cdff1737a9c3856ee86c0bcdd1add13
Core tap last commit: 2 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /Users/bsniffen/homebrew
HOMEBREW_REPOSITORY: /Users/bsniffen/homebrew
HOMEBREW_CELLAR: /Users/bsniffen/homebrew/Cellar
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: vim
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 14.0.0 build 1400
Git: 2.37.0 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.6-arm64
CLT: 14.0.0.0.1.1661618636
Xcode: N/A
Rosetta 2: false
Thanks for your work on this amazingly useful project!
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 16 (6 by maintainers)
@agzam as far as I remember,
reinstallhandles fetching of the latest master. But there are troubles if you are using any options, that’s why I advise to use combination ofuninstallandinstall. That allows you to upgrade and properly propagate all options.P.S. I feel like I need to taste this again, it’s possible that they fixed the old behaviour.
Thanks for the idea, but same error message. I did some more digging, and have a theory:
brewwas installing (upgrading) libgccjit, and the option was being passed to it also. Of course, it doesn’t support any options. That, in turn, has been failing because of a linker error; see https://github.com/iains/gcc-12-branch/issues/6 — but neither of these is your problem. It looks like a reasonable workaround for installing formulae with options is to install dependencies first without options, then install the formula with options.I spent an hour looking at Brew code to see where options were being propagated to dependencies, but haven’t found it. Thanks for the support & for your work on this tap!
🤔 Might be some issue with
brew. I will upgrade later this day and see what’s wrong.