-
Notifications
You must be signed in to change notification settings - Fork 844
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
cabal-macosx module not found when building #1316
Comments
It looks like this is happening because Stack is giving Setup.hs access to snapshot packages via the @snoyberg: this looks like an oversight to me, but can you confirm that this behaviour is not intentional? |
@mgsloan had already proposed changing this behavior, which I'm ambivalent on. You can also play with this setting, which should solve the problem |
Thanks. Adding
to my |
Sorry to comment on a close issue, but I'm having the same issue as the OP, and when I tried the
|
I was told to open the issue here: HeinrichApfelmus/reactive-banana#116
I am trying to set up a project that depends on reactive-banana-wx.
For convenience, Heinrich described the problem as follows:
"The problem here is that the
cabal-macosx
package has to be in scope when configuring thereactive-banana-wx
library — it uses a customSetup.hs
script that also depends on thecabal-macosx
package. It looks likestack
cannot deal with this situation yet."Steps to reproduce:
stack new test simple
andcd
to projectstack setup
stack build
Expected: The build to succeed.
Actual:
Here is my
stack --version
output:Version 0.1.6.0, Git revision e22271f (2313 commits) x86_64
Here is the output of
stack build
:Here is the output of
stack build --verbose
:Version 0.1.6.0, Git revision e22271f (2313 commits) x86_64
2015-11-08 18:24:41.720818: [debug] Checking for project config at: /home/dimitrios/test/stack.yaml @(stack_AExdckAgYVa6TDUNGi5WTl:Stack.Config src/Stack/Config.hs:546:9)
2015-11-08 18:24:41.721082: [debug] Loading project config file stack.yaml @(stack_AExdckAgYVa6TDUNGi5WTl:Stack.Config src/Stack/Config.hs:569:13)
2015-11-08 18:24:41.721966: [debug] Run process: ldd /usr/bin/stack @(stack_AExdckAgYVa6TDUNGi5WTl:System.Process.Read src/System/Process/Read.hs:272:3)
2015-11-08 18:24:41.734665: [debug] Trying to decode /home/dimitrios/.stack/build-plan-cache/x86_64-linux/lts-3.7.cache @(stack_AExdckAgYVa6TDUNGi5WTl:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:53:5)
2015-11-08 18:24:41.74051: [debug] Success decoding /home/dimitrios/.stack/build-plan-cache/x86_64-linux/lts-3.7.cache @(stack_AExdckAgYVa6TDUNGi5WTl:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:62:13)
2015-11-08 18:24:41.740838: [debug] Run process: ghc --info @(stack_AExdckAgYVa6TDUNGi5WTl:System.Process.Read src/System/Process/Read.hs:272:3)
2015-11-08 18:24:41.789933: [debug] Run process: ghc --numeric-version @(stack_AExdckAgYVa6TDUNGi5WTl:System.Process.Read src/System/Process/Read.hs:272:3)
2015-11-08 18:24:41.817121: [debug] Run process: ghc-pkg --no-user-package-db field --simple-output Cabal version @(stack_AExdckAgYVa6TDUNGi5WTl:System.Process.Read src/System/Process/Read.hs:272:3)
2015-11-08 18:24:41.841172: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack_AExdckAgYVa6TDUNGi5WTl:System.Process.Read src/System/Process/Read.hs:272:3)
2015-11-08 18:24:41.874592: [debug] Checking resolver: lts-3.7 @(stack_AExdckAgYVa6TDUNGi5WTl:Stack.Build.Source src/Stack/Build/Source.hs:162:17)
2015-11-08 18:24:41.874809: [debug] Trying to decode /home/dimitrios/.stack/build-plan-cache/x86_64-linux/lts-3.7.cache @(stack_AExdckAgYVa6TDUNGi5WTl:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:53:5)
2015-11-08 18:24:41.882822: [debug] Success decoding /home/dimitrios/.stack/build-plan-cache/x86_64-linux/lts-3.7.cache @(stack_AExdckAgYVa6TDUNGi5WTl:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:62:13)
2015-11-08 18:24:41.883765: [debug] Trying to decode /home/dimitrios/.stack/indices/Hackage/00-index.cache @(stack_AExdckAgYVa6TDUNGi5WTl:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:53:5)
2015-11-08 18:24:42.158163: [debug] Success decoding /home/dimitrios/.stack/indices/Hackage/00-index.cache @(stack_AExdckAgYVa6TDUNGi5WTl:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:62:13)
2015-11-08 18:24:42.15938: [debug] Run process: ghc-pkg --global --no-user-package-db dump --expand-pkgroot @(stack_AExdckAgYVa6TDUNGi5WTl:System.Process.Read src/System/Process/Read.hs:272:3)
2015-11-08 18:24:42.206801: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /home/dimitrios/.stack/snapshots/x86_64-linux/lts-3.7/7.10.2/pkgdb/ dump --expand-pkgroot @(stack_AExdckAgYVa6TDUNGi5WTl:System.Process.Read src/System/Process/Read.hs:272:3)
2015-11-08 18:24:42.246641: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /home/dimitrios/test/.stack-work/install/x86_64-linux/lts-3.7/7.10.2/pkgdb/ dump --expand-pkgroot @(stack_AExdckAgYVa6TDUNGi5WTl:System.Process.Read src/System/Process/Read.hs:272:3)
2015-11-08 18:24:42.274242: [debug] Trying to decode /home/dimitrios/.stack/indices/Hackage/00-index.cache @(stack_AExdckAgYVa6TDUNGi5WTl:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:53:5)
2015-11-08 18:24:42.49305: [debug] Success decoding /home/dimitrios/.stack/indices/Hackage/00-index.cache @(stack_AExdckAgYVa6TDUNGi5WTl:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:62:13)
2015-11-08 18:24:42.494364: [debug] Trying to decode /home/dimitrios/.stack/indices/Hackage/00-index.cache @(stack_AExdckAgYVa6TDUNGi5WTl:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:53:5)
2015-11-08 18:24:42.794108: [debug] Success decoding /home/dimitrios/.stack/indices/Hackage/00-index.cache @(stack_AExdckAgYVa6TDUNGi5WTl:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:62:13)
2015-11-08 18:24:42.917867: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack_AExdckAgYVa6TDUNGi5WTl:System.Process.Read src/System/Process/Read.hs:272:3)
2015-11-08 18:24:42.943091: [debug] Trying to decode /home/dimitrios/.stack/indices/Hackage/00-index.cache @(stack_AExdckAgYVa6TDUNGi5WTl:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:53:5)
2015-11-08 18:24:43.138106: [debug] Success decoding /home/dimitrios/.stack/indices/Hackage/00-index.cache @(stack_AExdckAgYVa6TDUNGi5WTl:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:62:13)
2015-11-08 18:24:43.217989: [info] reactive-banana-wx-1.0.0.0: configure @(stack_AExdckAgYVa6TDUNGi5WTl:Stack.Build.Execute src/Stack/Build/Execute.hs:621:23)
2015-11-08 18:24:43.219122: [debug] Run process: /home/dimitrios/.stack/programs/x86_64-linux/ghc-7.10.2/bin/ghc --make -odir /tmp/stack27174/reactive-banana-wx-1.0.0.0/.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/setup/ -hidir /tmp/stack27174/reactive-banana-wx-1.0.0.0/.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/setup/ -i -i. -package=Cabal-1.22.4.0 -clear-package-db -global-package-db -package-db=/home/dimitrios/.stack/snapshots/x86_64-linux/lts-3.7/7.10.2/pkgdb/ /tmp/stack27174/reactive-banana-wx-1.0.0.0/Setup.hs -o /tmp/stack27174/reactive-banana-wx-1.0.0.0/.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/setup/setup @(stack_AExdckAgYVa6TDUNGi5WTl:Stack.Build.Execute src/Stack/Build/Execute.hs:755:21)
-- While building package reactive-banana-wx-1.0.0.0 using:
/home/dimitrios/.stack/programs/x86_64-linux/ghc-7.10.2/bin/ghc --make -odir /tmp/stack27174/reactive-banana-wx-1.0.0.0/.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/setup/ -hidir /tmp/stack27174/reactive-banana-wx-1.0.0.0/.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/setup/ -i -i. -package=Cabal-1.22.4.0 -clear-package-db -global-package-db -package-db=/home/dimitrios/.stack/snapshots/x86_64-linux/lts-3.7/7.10.2/pkgdb/ /tmp/stack27174/reactive-banana-wx-1.0.0.0/Setup.hs -o /tmp/stack27174/reactive-banana-wx-1.0.0.0/.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/setup/setup
Process exited with code: ExitFailure 1
Logs have been written to: /home/dimitrios/test/.stack-work/logs/reactive-banana-wx-1.0.0.0.log
More information
stack exec ghc-pkg list
shows cabal-macosx-0.2.3.1 in .stack-work/install/x86_64-linux/lts-3.7/7.10.2/pkgdb, andstack exec ghc-pkg describe cabal-macosx
lists Distribution.MacOSX as an exposed module.stack exec stack -- build
gives the same error.The text was updated successfully, but these errors were encountered: