Skip to content

Fix Stack build with Nix on macOS#3031

Merged
berberman merged 1 commit into
haskell:masterfrom
lunaticare:fix_stack_nix_macos
Jul 11, 2022
Merged

Fix Stack build with Nix on macOS#3031
berberman merged 1 commit into
haskell:masterfrom
lunaticare:fix_stack_nix_macos

Conversation

@lunaticare

@lunaticare lunaticare commented Jul 10, 2022

Copy link
Copy Markdown
Contributor

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

@berberman berberman left a comment

Copy link
Copy Markdown
Collaborator

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