-
Notifications
You must be signed in to change notification settings - Fork 846
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cannot build gtk on OS X using stack #807
Comments
The issue is that stack prevents you from modifying flags of snapshot packages, because doing so leads to contamination of the snapshot database. One option is to create a stack.yaml to be very explicit about moving gtk to the extra-deps, e.g.: resolver: lts-3.1
extra-deps:
- gtk-0.13.9
flags:
gtk:
have-quartz-gtk: true
packages: [] Then running |
One possibility is that, instead of complaining about using a flag on a snapshot package, we simply take it out of the snapshot and put it in extra-deps. I'm leaning towards that being the best solution here. |
👍 |
Alright, I've just pushed a commit that should make stack behave as described. @dhobbs Can you test out the latest master ( |
It's still failing the same way I'm afraid. Sorry I can't be more helpful here, I'm not very familiar with cabal flags. I can confirm that when using cabal with LTS-3.1, Embarrassingly I've only just noticed that threadscope itself isn't in LTS so I would have faceplanted shortly after this step anyway. |
Can you provide the -v output? And are you sure you're using the newly On Tue, Aug 18, 2015, 1:06 PM Darren notifications@github.com wrote:
|
|
Unless I'm misreading, this looks like quite a different problem than the one you initially had, am I mistaken? Can you confirm which version of gtk you were able to successfully compile with cabal? |
The compile error is what you get on a mac when using cabal if the -fhave-quartz-gtk cabal flag is not supplied. |
Ahh, OK, that helps quite a bit, thank you. I think I know what that problem means. |
OK, I think I got it that time. master should hopefully do it. |
That did it!
|
Awesome, thanks for reporting and testing. |
I'm not sure if this is the right place to report this, but I seem to be having trouble installing
EditAs @cocreature pointed me to gtk2hs/gtk2hs#112, it works as described in this comment. So please ignore my comment above. |
Using the following stack version:
stack build gtk --flag gtk:have-quartz-gtk
gives the following error:I'm trying to install threadscope (which requires gtk) on a mac, using stack. The error below is what happens if -fhave-quartz-gtk isn't supplied, which is why I suspect it isn't making it through when I use a wildcard package.
The text was updated successfully, but these errors were encountered: