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

emacs25Macport cannot use AppKit #20682

Closed
matthewbauer opened this issue Nov 24, 2016 · 0 comments
Closed

emacs25Macport cannot use AppKit #20682

matthewbauer opened this issue Nov 24, 2016 · 0 comments

Comments

@matthewbauer
Copy link
Member

matthewbauer commented Nov 24, 2016

Issue description

It looks like emacs is not able to use Appkit for some reason. Here is the relevant logs:

checking AppKit/AppKit.h usability... no
checking AppKit/AppKit.h presence... yes
configure: WARNING: AppKit/AppKit.h: present but cannot be compiled
configure: WARNING: AppKit/AppKit.h:     check for missing prerequisite headers?
configure: WARNING: AppKit/AppKit.h: see the Autoconf documentation
configure: WARNING: AppKit/AppKit.h:     section "Present But Cannot Be Compiled"
configure: WARNING: AppKit/AppKit.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-gnu-emacs@gnu.org ##
configure: WARNING:     ## ------------------------------------ ##
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.
$ nix-shell --pure --run "echo '#import <AppKit/AppKit.h>' | cc -x objective-c-header -" -p stdenv.cc darwin.apple_sdk.frameworks.AppKit
In file included from <stdin>:1:
In file included from /nix/store/6zrda57fmgvn9yjpqfv0lm97vabma0f5-apple-framework-AppKit/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
In file included from /nix/store/7f0bbz6lclkbmgr44n74kqkwq37p4dq5-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:141:
In file included from /nix/store/7f0bbz6lclkbmgr44n74kqkwq37p4dq5-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:7:
In file included from /nix/store/2qbqqy62d750c2gcq2pp94skqwapdg9n-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:39:
In file included from /nix/store/y5v7lnz3fiksjha0bij50zdbalvykqmc-apple-framework-CoreText/Library/Frameworks/CoreText.framework/Headers/CoreText.h:27:
In file included from /nix/store/y5v7lnz3fiksjha0bij50zdbalvykqmc-apple-framework-CoreText/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h:22:
In file included from /nix/store/y5v7lnz3fiksjha0bij50zdbalvykqmc-apple-framework-CoreText/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h:21:
/nix/store/y5v7lnz3fiksjha0bij50zdbalvykqmc-apple-framework-CoreText/Library/Frameworks/CoreText.framework/Headers/CTLine.h:22:10: fatal error: 'CoreFoundation/CFAttributedString.h' file not found
#include <CoreFoundation/CFAttributedString.h>
         ^
1 error generated.

It looks like Foundation framework is busted. This is lowPrio so I don't think there is Hydra logs.

nixpkgs commit: b69f568
nix version: 1.11.4

cc @copumpkin

matthewbauer added a commit to matthewbauer/nixpkgs that referenced this issue Nov 25, 2016
Previously, emacs-macport was giving the error:

- AppKit/AppKit.h: present but cannot be compiled
- Carbon/Carbon.h: present but cannot be compiled

This add "MAC_OS_X_VERSION_MIN_REQUIRED=1090" to CFLAGS to allow them
to compile with the new 10.10 headers.

Fixes NixOS#20682.
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