Closed dredozubov closed 7 years ago
2017-02-02 12:07:47.146291: [warn] - Implicitly adding HsOpenSSL to extra-deps based on command line flag
Just gave a brief glance, but you're aware of this line in the logs?
@lwm good catch, this happened because i tried to demonstrate the problem after finding a way around it! I can still reproduce it without adding HsOpenSSL to the extra-dep list:
% stack install --flag HsOpenSSL:homebrew-openssl HsOpenSSL -v
Version 1.3.2 x86_64 hpack-0.15.0
2017-02-02 19:48:25.862562: [debug] Checking for project config at: /Users/dr/workspace/contractor/stack.yaml
@(Stack/Config.hs:863:9)
2017-02-02 19:48:25.863988: [debug] Loading project config file stack.yaml
@(Stack/Config.hs:881:13)
2017-02-02 19:48:25.866567: [debug] Trying to decode /Users/dr/.stack/build-plan-cache/x86_64-osx/lts-6.25.cache
@(Data/Store/VersionTagged.hs:68:5)
2017-02-02 19:48:25.881261: [debug] Success decoding /Users/dr/.stack/build-plan-cache/x86_64-osx/lts-6.25.cache
@(Data/Store/VersionTagged.hs:72:13)
2017-02-02 19:48:25.885936: [debug] Using standard GHC build
@(Stack/Setup.hs:597:9)
2017-02-02 19:48:25.886685: [debug] Getting global package database location
@(Stack/GhcPkg.hs:55:5)
2017-02-02 19:48:25.887163: [debug] Run process: /Users/dr/.stack/programs/x86_64-osx/ghc-7.10.3/bin/ghc-pkg --no-user-package-db list --global
@(System/Process/Read.hs:306:3)
2017-02-02 19:48:25.887440: [debug] Asking GHC for its version
@(Stack/Setup/Installed.hs:103:13)
2017-02-02 19:48:25.887643: [debug] Run process: /Users/dr/.stack/programs/x86_64-osx/ghc-7.10.3/bin/ghc --numeric-version
@(System/Process/Read.hs:306:3)
2017-02-02 19:48:25.896699: [debug] Getting Cabal package version
@(Stack/GhcPkg.hs:189:5)
2017-02-02 19:48:25.896848: [debug] Run process: /Users/dr/.stack/programs/x86_64-osx/ghc-7.10.3/bin/ghc-pkg --no-user-package-db field --simple-output Cabal version
@(System/Process/Read.hs:306:3)
2017-02-02 19:48:25.945496: [debug] Process finished in 58ms: /Users/dr/.stack/programs/x86_64-osx/ghc-7.10.3/bin/ghc-pkg --no-user-package-db list --global
@(System/Process/Read.hs:306:3)
2017-02-02 19:48:25.947940: [debug] Process finished in 44ms: /Users/dr/.stack/programs/x86_64-osx/ghc-7.10.3/bin/ghc-pkg --no-user-package-db field --simple-output Cabal version
@(System/Process/Read.hs:306:3)
2017-02-02 19:48:25.975676: [debug] Process finished in 79ms: /Users/dr/.stack/programs/x86_64-osx/ghc-7.10.3/bin/ghc --numeric-version
@(System/Process/Read.hs:306:3)
2017-02-02 19:48:25.975848: [debug] Resolving package entries
@(Stack/Setup.hs:252:5)
2017-02-02 19:48:25.976469: [debug] Starting to execute command inside EnvConfig
@(Stack/Runners.hs:163:18)
2017-02-02 19:48:25.976594: [debug] Parsing the cabal files of the local packages
@(Stack/Build/Source.hs:298:5)
2017-02-02 19:48:26.083836: [debug] Parsing the targets
@(Stack/Build/Source.hs:235:5)
2017-02-02 19:48:26.084115: [warn] - Implicitly adding HsOpenSSL to extra-deps based on command line flag
@(Stack/Build/Source.hs:287:17)
2017-02-02 19:48:26.085098: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/travel246/admin/admin.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.138666: [debug] Finished in 53ms: getPackageFiles /Users/dr/workspace/contractor/travel246/admin/admin.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.145577: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/platform/amadeus/amadeus.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.230719: [debug] Finished in 84ms: getPackageFiles /Users/dr/workspace/contractor/platform/amadeus/amadeus.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.233071: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/b2b/api/api.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.252507: [debug] Finished in 19ms: getPackageFiles /Users/dr/workspace/contractor/b2b/api/api.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.253306: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/platform/api-platform/api-platform.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.263251: [debug] Finished in 9ms: getPackageFiles /Users/dr/workspace/contractor/platform/api-platform/api-platform.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.264214: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/atc-shopper/atc-shopper/atc-shopper.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.278611: [debug] Finished in 14ms: getPackageFiles /Users/dr/workspace/contractor/atc-shopper/atc-shopper/atc-shopper.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.280954: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/platform/authorizenet/authorizenet.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.337609: [debug] Finished in 56ms: getPackageFiles /Users/dr/workspace/contractor/platform/authorizenet/authorizenet.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.339535: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/b2b/backend/backend/backend.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.380500: [debug] Finished in 40ms: getPackageFiles /Users/dr/workspace/contractor/b2b/backend/backend/backend.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.382711: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/b2b/backend/backend-bin/backend-bin.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.384723: [debug] Finished in 1ms: getPackageFiles /Users/dr/workspace/contractor/b2b/backend/backend-bin/backend-bin.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.385323: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/platform/common/common.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.442678: [debug] Finished in 57ms: getPackageFiles /Users/dr/workspace/contractor/platform/common/common.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.444187: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/platform/lens-time/lens-time.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.444833: [debug] Finished in 0ms: getPackageFiles /Users/dr/workspace/contractor/platform/lens-time/lens-time.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.446553: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/platform/platform/platform.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.657521: [debug] Finished in 210ms: getPackageFiles /Users/dr/workspace/contractor/platform/platform/platform.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.667341: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/platform/sig/sig.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.683554: [debug] Finished in 16ms: getPackageFiles /Users/dr/workspace/contractor/platform/sig/sig.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.684406: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/tinkoff-travel/admin/tinkoff-admin.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.727192: [debug] Finished in 42ms: getPackageFiles /Users/dr/workspace/contractor/tinkoff-travel/admin/tinkoff-admin.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.733417: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/tinkoff-travel/tinkoff-travel/tinkoff-travel.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.816529: [debug] Finished in 82ms: getPackageFiles /Users/dr/workspace/contractor/tinkoff-travel/tinkoff-travel/tinkoff-travel.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:26.824891: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/travel246/travel246/travel246.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:27.008689: [debug] Finished in 183ms: getPackageFiles /Users/dr/workspace/contractor/travel246/travel246/travel246.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:27.016170: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/travel246/twitter-conduit/twitter-conduit.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:27.029212: [debug] Finished in 12ms: getPackageFiles /Users/dr/workspace/contractor/travel246/twitter-conduit/twitter-conduit.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:27.031427: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/travel246/twitter-types/twitter-types.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:27.037330: [debug] Finished in 5ms: getPackageFiles /Users/dr/workspace/contractor/travel246/twitter-types/twitter-types.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:27.038135: [debug] Exception ignored when attempting to load /Users/dr/workspace/contractor/.stack-work/downloaded/H-rYr3rJWgIX/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/stack-build-cache: /Users/dr/workspace/contractor/.stack-work/downloaded/H-rYr3rJWgIX/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/stack-build-cache: openBinaryFile: does not exist (No such file or directory)
@(Data/Store/VersionTagged.hs:86:9)
2017-02-02 19:48:27.038525: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/.stack-work/downloaded/H-rYr3rJWgIX/xml-isogen.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:27.042015: [debug] Finished in 3ms: getPackageFiles /Users/dr/workspace/contractor/.stack-work/downloaded/H-rYr3rJWgIX/xml-isogen.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:27.049957: [debug] Start: getPackageFiles /Users/dr/workspace/contractor/b2b/backend/yesod-backend/yesod-backend.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:27.086861: [debug] Finished in 36ms: getPackageFiles /Users/dr/workspace/contractor/b2b/backend/yesod-backend/yesod-backend.cabal
@(Stack/Package.hs:250:21)
2017-02-02 19:48:27.093903: [debug] Finding out which packages are already installed
@(Stack/Build/Installed.hs:68:5)
2017-02-02 19:48:27.094393: [debug] Run process: /Users/dr/.stack/programs/x86_64-osx/ghc-7.10.3/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot
@(System/Process/Read.hs:306:3)
2017-02-02 19:48:27.150758: [debug] Process finished in 56ms: /Users/dr/.stack/programs/x86_64-osx/ghc-7.10.3/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot
@(System/Process/Read.hs:306:3)
2017-02-02 19:48:27.165085: [debug] Ignoring package haskeline due to wanting version 0.7.2.3 instead of 0.7.2.1
@(Stack/Build/Installed.hs:191:5)
2017-02-02 19:48:27.165206: [debug] Ignoring package terminfo due to wanting version 0.4.0.2 instead of 0.4.0.1
@(Stack/Build/Installed.hs:191:5)
2017-02-02 19:48:27.165296: [debug] Ignoring package Cabal due to wanting version 1.22.8.0 instead of 1.22.5.0
@(Stack/Build/Installed.hs:191:5)
2017-02-02 19:48:27.165561: [debug] Run process: /Users/dr/.stack/programs/x86_64-osx/ghc-7.10.3/bin/ghc-pkg --user --no-user-package-db --package-db /Users/dr/.stack/snapshots/x86_64-osx/lts-6.25/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:306:3)
2017-02-02 19:48:27.417177: [debug] Process finished in 251ms: /Users/dr/.stack/programs/x86_64-osx/ghc-7.10.3/bin/ghc-pkg --user --no-user-package-db --package-db /Users/dr/.stack/snapshots/x86_64-osx/lts-6.25/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:306:3)
2017-02-02 19:48:27.420159: [debug] Run process: /Users/dr/.stack/programs/x86_64-osx/ghc-7.10.3/bin/ghc-pkg --user --no-user-package-db --package-db /Users/dr/workspace/contractor/.stack-work/install/x86_64-osx/lts-6.25/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:306:3)
2017-02-02 19:48:27.462598: [debug] Process finished in 42ms: /Users/dr/.stack/programs/x86_64-osx/ghc-7.10.3/bin/ghc-pkg --user --no-user-package-db --package-db /Users/dr/workspace/contractor/.stack-work/install/x86_64-osx/lts-6.25/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:306:3)
2017-02-02 19:48:27.472931: [debug] Trying to decode /Users/dr/.stack/indices/Hackage/00-index.cache
@(Data/Store/VersionTagged.hs:68:5)
2017-02-02 19:48:27.616789: [debug] Success decoding /Users/dr/.stack/indices/Hackage/00-index.cache
@(Data/Store/VersionTagged.hs:72:13)
2017-02-02 19:48:27.778644: [debug] Constructing the build plan
@(Stack/Build/ConstructPlan.hs:159:5)
2017-02-02 19:48:27.785917: [error]
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for HsOpenSSL-0.11.3.2(+homebrew-openssl):
integer-gmp-1.0.0.0 must match >=0.2 && <1 (latest applicable is 0.5.1.0)
@(Stack/Build/ConstructPlan.hs:198:13)
without adding HsOpenSSL to the extra-dep list
Isn't it the case that Stack is adding it for you because of HsOpenSSL:homebrew-openssl
?
@lwm i'm now sure how it works internally when i explicitly pass the flag for HsOpenSSL
, but this way i don't see the line you've mentioned above ([warn] - Implicitly adding HsOpenSSL to extra-deps based on command line flag
)
This is a potentially confusing aspect of flags. If you specify any flags for a snapshot package, it does not use any of the flags from the build-plan.
I'm using stack 1.3.2 + resolver lts-6.25. HsOpenSSL fails to build on OS X, although the flag that's necessary to build it successfully is present in a build plan. It builds correctly on different linux machines. Relevant part of
~/.stack/build-plan/lts-6.25.yaml
:Software versions and
stack install HsOpenSSL -v
output:which is exactly the problem that occurs when flag
fast-bignum
is set onHsOpenSSL
:The only way out i found is adding
HsOpenSSL
toextra-deps
and setting this instack.yaml
: