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

Could not install either emacs-plus@27 or @28 - Appkit.h failure #351

Closed
3 tasks done
flaggerkatt opened this issue May 3, 2021 · 2 comments
Closed
3 tasks done
Assignees

Comments

@flaggerkatt
Copy link

flaggerkatt commented May 3, 2021

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

  • run brew update and try to reproduce the issue again
  • run brew doctor, fix all issues and try to reproduce your issue again
  • run brew config and brew doctor and include their output

What you were trying to do

Trying to install emacs-plus@28 with native comp. After removing the non-native-comp version that was built and installed months ago, installation of both "--with-native-comp" and normal fails; complaining about missing "Appkit.h" and that I should run the install with the "--without-ns"-parameter (which isn't a valid parameter

What happened (include command output)

Both these commands now fail

$ brew install emacs-plus@28 --with-mailutils --with-native-comp
$ brew install emacs-plus@28 --with-mailutils
Command output
..configure runs until this step:

checking for AppKit/AppKit.h... no
configure: error: The include files (AppKit/AppKit.h etc) that
are required for a Nextstep build are missing or cannot be compiled.
Either fix this, or re-configure with the option '--without-ns'.

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

These open issues may also help:
[ci] add --with-x11 to emacs-plus@28 build matrix #280
Permission issues with emacs-plus running as a service #304

Output of brew config

$ brew config
[~]$ brew config
HOMEBREW_VERSION: 3.1.5
ORIGIN: https://github.com/Homebrew/brew
HEAD: 227445ece9414a82aa8929b91ca2e0cca28a561b
Last commit: 4 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 1fc4222cac4fea1e13caa38663cd89619c90d220
Core tap last commit: 58 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit icelake
Clang: 12.0 build 1205
Git: 2.31.1 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.4-x86_64
CLT: 12.0.0.32.29
Xcode: 12.5

Output of brew doctor

brew doctor only lists a deprecated, unrelated formula:

$ 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: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  ilmbase

I tried building with X11 as mentioned in the build log, but emacs won't even run in commandline after that build (which runs through.

@d12frosted
Copy link
Owner

Could you try again please? Sometimes builds from Emacs master are not stable.

@flaggerkatt
Copy link
Author

Could you try again please? Sometimes builds from Emacs master are not stable.

Tried again today. The install fails on the same step; missing Appkit.h
After attempting a couple times, running it verbose dumped that an update to the xcode command line tools was available.
Removing the Command Line folder and reinstalling (sudo rm -rf /Library/Developer/CommandLineTools; sudo xcode-select --install) the xcode tools seems to have resolved the issue.

It's built now, but not sure why I didn't get the xcode-warning earlier. Issue can be closed.

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

2 participants