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

Fix Stack build with Nix on macOS #3031

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

lunaticare
Copy link
Contributor

@lunaticare lunaticare commented Jul 10, 2022

Before the change the build was failing:

$ stack --nix build --keep-going
hfsevents          > Configuring hfsevents-0.1.6...
hfsevents          > build
hfsevents          > Preprocessing library for hfsevents-0.1.6..
hfsevents          > Building library for hfsevents-0.1.6..
hfsevents          > [1 of 1] Compiling System.OSX.FSEvents
hfsevents          > /private/tmp/stack-51fbae1892ce366f/hfsevents-0.1.6/In file included from cbits/c_fsevents.m:1:0: error:
hfsevents          >
hfsevents          > /private/tmp/stack-51fbae1892ce366f/hfsevents-0.1.6/In file included from /nix/store/yynq1crbdnd6fyaajv7d0zicf0bgb46y-apple-framework-CoreServices/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:0: error:
hfsevents          >
hfsevents          >
hfsevents          > /private/tmp/stack-51fbae1892ce366f/hfsevents-0.1.6/In file included from /nix/store/7ji012p4lxn30jql6l26dgnmsmqq8kxk-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:0: error:
hfsevents          >
hfsevents          >
hfsevents          > /private/tmp/stack-51fbae1892ce366f/hfsevents-0.1.6/In file included from /nix/store/7ji012p4lxn30jql6l26dgnmsmqq8kxk-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:0: error:
hfsevents          >
hfsevents          >
hfsevents          > /private/tmp/stack-51fbae1892ce366f/hfsevents-0.1.6/In file included from /nix/store/7ji012p4lxn30jql6l26dgnmsmqq8kxk-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:0: error:
hfsevents          >
hfsevents          >
hfsevents          > /private/tmp/stack-51fbae1892ce366f/hfsevents-0.1.6/In file included from /nix/store/ni8221ym8df3iff8vn864pf4v7rm79ic-Libsystem-1238.60.2/include/dispatch/dispatch.h:48:0: error:
hfsevents          >
hfsevents          >
hfsevents          > /private/tmp/stack-51fbae1892ce366f/hfsevents-0.1.6//nix/store/ni8221ym8df3iff8vn864pf4v7rm79ic-Libsystem-1238.60.2/include/os/object.h:75:9: error:
hfsevents          >      fatal error: 'objc/NSObject.h' file not found
hfsevents          >    |
hfsevents          > 75 | #import <objc/NSObject.h>
hfsevents          >    |         ^
hfsevents          > #import <objc/NSObject.h>
hfsevents          >         ^~~~~~~~~~~~~~~~~
hfsevents          > 1 error generated.
hfsevents          > `cc' failed in phase `C Compiler'. (Exit code: 1)

@lunaticare lunaticare force-pushed the fix_stack_nix_macos branch from 056e04c to dfcb231 Compare July 10, 2022 17:29
@lunaticare lunaticare marked this pull request as ready for review July 10, 2022 17:29
Copy link
Collaborator

@berberman berberman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@berberman berberman merged commit b747aa0 into haskell:master Jul 11, 2022
@lunaticare lunaticare deleted the fix_stack_nix_macos branch July 11, 2022 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants