"cannot satisfy -package-id" on `stack build`

63 views
Skip to first unread message

Kevin Meredith

unread,
Sep 20, 2017, 9:00:06 AM9/20/17
to haskell-stack
In this project, https://github.com/kevinmeredith/tiny-url-servant, I get the following error when running `stack build`:

$stack --version

Version 1.5.1 x86_64 hpack-0.17.1


$stack clean

stack build Populating index cache ...

Populated index cache.    


$stack build 

tiny-url-servant-0.1.0.0: configure (exe)

Configuring tiny-url-servant-0.1.0.0...

tiny-url-servant-0.1.0.0: build (exe)

Preprocessing executable 'tiny-url-servant-exe' for

tiny-url-servant-0.1.0.0...

<command line>: cannot satisfy -package-id tiny-url-servant-0.1.0.0-8CCMOVGJd5V7zFsIARIoRa

    (use -v for more information)


--  While building package tiny-url-servant-0.1.0.0 using:

      /Users/kevinmeredith/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.2.0 build exe:tiny-url-servant-exe --ghc-options " -ddump-hi -ddump-to-file"

    Process exited with code: ExitFailure 1


Can someone please explain how I can fix this issue? Also, what does this error mean?


Thanks!

Kevin

Kevin Meredith

unread,
Sep 20, 2017, 9:03:19 AM9/20/17
to haskell-stack
Nevermind, I had to add dependencies in `build-depends`:

build-depends:       base
, tiny-url-servant
, servant-server
, base-compat
, wai
, aeson
, blaze-markup
, blaze-html
, directory
, warp
, http-media
, lucid
, time
, bytestring
, attoparsec
, string-conversions
, mtl
, servant-lucid

Kevin Meredith

unread,
Sep 22, 2017, 8:04:53 AM9/22/17
to haskell-stack
Actually, it's still failing with the same error, I believe:

$stack build

base-compat-0.9.3: configure

basement-0.0.2: download

base-compat-0.9.3: build

auto-update-0.1.4: configure

auto-update-0.1.4: build

ansi-terminal-0.6.3.1: configure

ansi-terminal-0.6.3.1: build

bytestring-builder-0.10.8.1.0: configure

auto-update-0.1.4: copy/register

bytestring-builder-0.10.8.1.0: build

appar-0.1.4: configure

bytestring-builder-0.10.8.1.0: copy/register

appar-0.1.4: build

base64-bytestring-1.0.0.1: configure

base64-bytestring-1.0.0.1: build

byteorder-1.0.4: configure

base-compat-0.9.3: copy/register

appar-0.1.4: copy/register

byteorder-1.0.4: build

basement-0.0.2: configure

basement-0.0.2: build

cabal-doctest-1.0.2: configure

ansi-terminal-0.6.3.1: copy/register

base64-bytestring-1.0.0.1: copy/register

byteorder-1.0.4: copy/register

cabal-doctest-1.0.2: build

cmdargs-0.10.17: configure

cmdargs-0.10.17: build

data-default-class-0.1.2.0: configure

data-default-class-0.1.2.0: build

dlist-0.8.0.3: configure

cabal-doctest-1.0.2: copy/register

dlist-0.8.0.3: build

ansi-wl-pprint-0.6.7.3: configure

data-default-class-0.1.2.0: copy/register

ansi-wl-pprint-0.6.7.3: build

easy-file-0.2.1: configure

dlist-0.8.0.3: copy/register

easy-file-0.2.1: build

file-embed-0.0.10: configure

file-embed-0.0.10: build

hex-0.1.2: configure

ansi-wl-pprint-0.6.7.3: copy/register

hex-0.1.2: build

integer-logarithms-1.0.2: configure

easy-file-0.2.1: copy/register

hex-0.1.2: copy/register

integer-logarithms-1.0.2: build

mtl-2.2.1: configure

file-embed-0.0.10: copy/register

mtl-2.2.1: build

natural-transformation-0.4: configure

natural-transformation-0.4: build

network-2.6.3.2: configure

integer-logarithms-1.0.2: copy/register

natural-transformation-0.4: copy/register

mtl-2.2.1: copy/register

cmdargs-0.10.17: copy/register

network-2.6.3.2: build

old-locale-1.0.0.7: configure

old-locale-1.0.0.7: build

primitive-0.6.2.0: configure

primitive-0.6.2.0: build

random-1.1: configure

old-locale-1.0.0.7: copy/register

random-1.1: build

safe-0.3.15: configure

safe-0.3.15: build

split-0.2.3.2: configure

split-0.2.3.2: build

stm-2.4.4.1: configure

stm-2.4.4.1: build

old-time-1.1.0.3: configure

split-0.2.3.2: copy/register

safe-0.3.15: copy/register

stm-2.4.4.1: copy/register

random-1.1: copy/register

primitive-0.6.2.0: copy/register

old-time-1.1.0.3: build

stringsearch-0.3.6.6: configure

network-2.6.3.2: copy/register

stringsearch-0.3.6.6: build

text-1.2.2.2: configure

text-1.2.2.2: build

async-2.1.1.1: configure

async-2.1.1.1: build

th-lift-0.7.7: configure

th-lift-0.7.7: build

time-locale-compat-0.1.1.3: configure

time-locale-compat-0.1.1.3: build

iproute-1.7.1: configure

time-locale-compat-0.1.1.3: copy/register

basement-0.0.2: copy/register

iproute-1.7.1: build

simple-sendfile-0.2.25: configure

th-lift-0.7.7: copy/register

async-2.1.1.1: copy/register

foundation-0.0.15: download

old-time-1.1.0.3: copy/register

simple-sendfile-0.2.25: build

transformers-compat-0.5.1.4: configure

transformers-compat-0.5.1.4: build

foundation-0.0.15: configure

foundation-0.0.15: build

unix-compat-0.4.3.1: configure

simple-sendfile-0.2.25: copy/register

transformers-compat-0.5.1.4: copy/register

unix-compat-0.4.3.1: build

unix-time-0.3.7: configure

unix-compat-0.4.3.1: copy/register

stringsearch-0.3.6.6: copy/register

iproute-1.7.1: copy/register

unix-time-0.3.7: build

utf8-string-1.0.1.1: configure

utf8-string-1.0.1.1: build

exceptions-0.8.3: configure

exceptions-0.8.3: build

mmorph-1.0.9: configure

mmorph-1.0.9: build

optparse-applicative-0.13.2.0: configure

unix-time-0.3.7: copy/register

optparse-applicative-0.13.2.0: build

tagged-0.8.5: configure

tagged-0.8.5: build

transformers-base-0.4.4: configure

exceptions-0.8.3: copy/register

mmorph-1.0.9: copy/register

transformers-base-0.4.4: build

vector-0.12.0.1: configure

utf8-string-1.0.1.1: copy/register

vector-0.12.0.1: build

void-0.7.2: configure

transformers-base-0.4.4: copy/register

void-0.7.2: build

word8-0.1.3: configure

void-0.7.2: copy/register

word8-0.1.3: build

monad-control-1.0.2.2: configure

tagged-0.8.5: copy/register

monad-control-1.0.2.2: build

zlib-0.6.1.2: configure

word8-0.1.3: copy/register

zlib-0.6.1.2: build

monad-control-1.0.2.2: copy/register

lifted-base-0.2.3.11: configure

lifted-base-0.2.3.11: build

optparse-applicative-0.13.2.0: copy/register

lifted-base-0.2.3.11: copy/register

resourcet-1.1.9: configure

resourcet-1.1.9: build

zlib-0.6.1.2: copy/register

resourcet-1.1.9: copy/register

foundation-0.0.15: copy/register

memory-0.14.8: download

memory-0.14.8: configure

memory-0.14.8: build

text-1.2.2.2: copy/register

hashable-1.2.6.1: configure

hashable-1.2.6.1: build

mime-types-0.1.0.7: configure

mime-types-0.1.0.7: build

blaze-builder-0.4.0.2: configure

memory-0.14.8: copy/register

blaze-builder-0.4.0.2: build

fast-logger-2.4.10: configure

fast-logger-2.4.10: build

parsec-3.1.11: configure

hashable-1.2.6.1: copy/register

parsec-3.1.11: build

string-conversions-0.4.0.1: configure

string-conversions-0.4.0.1: build

cryptonite-0.23: configure

cryptonite-0.23: build

case-insensitive-1.2.0.10: configure

string-conversions-0.4.0.1: copy/register

blaze-builder-0.4.0.2: copy/register

fast-logger-2.4.10: copy/register

case-insensitive-1.2.0.10: build

psqueues-0.2.3.0: configure

psqueues-0.2.3.0: build

blaze-markup-0.8.0.0: configure

blaze-markup-0.8.0.0: build

cookie-0.4.2.1: configure

case-insensitive-1.2.0.10: copy/register

cookie-0.4.2.1: build

http-media-0.6.4: configure

http-media-0.6.4: build

mime-types-0.1.0.7: copy/register

http-types-0.9.1: configure

cookie-0.4.2.1: copy/register

http-types-0.9.1: build

scientific-0.3.5.2: download

scientific-0.3.5.2: configure

scientific-0.3.5.2: build

http-media-0.6.4: copy/register

streaming-commons-0.1.17: configure

streaming-commons-0.1.17: build

parsec-3.1.11: copy/register

psqueues-0.2.3.0: copy/register

network-uri-2.6.1.0: configure

http-types-0.9.1: copy/register

blaze-markup-0.8.0.0: copy/register

network-uri-2.6.1.0: build

system-filepath-0.4.13.4: configure

scientific-0.3.5.2: copy/register

system-filepath-0.4.13.4: build

unordered-containers-0.2.8.0: configure

unordered-containers-0.2.8.0: build

blaze-html-0.9.0.1: configure

blaze-html-0.9.0.1: build

attoparsec-0.13.1.0: configure

attoparsec-0.13.1.0: build

network-uri-2.6.1.0: copy/register

uuid-types-1.0.3: configure

uuid-types-1.0.3: build

streaming-commons-0.1.17: copy/register

system-filepath-0.4.13.4: copy/register

uuid-types-1.0.3: copy/register

unordered-containers-0.2.8.0: copy/register

lucid-2.9.8.1: configure

lucid-2.9.8.1: build

vault-0.3.0.7: configure

vault-0.3.0.7: build

vault-0.3.0.7: copy/register

wai-3.2.1.1: configure

wai-3.2.1.1: build

wai-3.2.1.1: copy/register

wai-logger-2.3.0: configure

vector-0.12.0.1: copy/register

wai-logger-2.3.0: build

th-lift-instances-0.1.11: configure

lucid-2.9.8.1: copy/register

th-lift-instances-0.1.11: build

wai-logger-2.3.0: copy/register

th-lift-instances-0.1.11: copy/register

attoparsec-0.13.1.0: copy/register

attoparsec-iso8601-1.0.0.0: configure

blaze-html-0.9.0.1: copy/register

attoparsec-iso8601-1.0.0.0: build

uri-bytestring-0.2.3.3: configure

uri-bytestring-0.2.3.3: build

http-date-0.0.6.1: configure

http-date-0.0.6.1: build

aeson-1.1.2.0: configure

aeson-1.1.2.0: build

attoparsec-iso8601-1.0.0.0: copy/register

http-date-0.0.6.1: copy/register

uri-bytestring-0.2.3.3: copy/register

http-api-data-0.3.7.1: configure

http-api-data-0.3.7.1: build

http-api-data-0.3.7.1: copy/register

cryptonite-0.23: copy/register

aeson-1.1.2.0: copy/register

servant-0.11: configure

servant-0.11: build

aeson-pretty-0.8.5: configure

aeson-pretty-0.8.5: build

wai-extra-3.0.20.0: configure

wai-extra-3.0.20.0: build

servant-0.11: copy/register

aeson-pretty-0.8.5: copy/register

servant-lucid-0.7.1: configure

servant-lucid-0.7.1: build

http2-1.6.3: configure

servant-lucid-0.7.1: copy/register

http2-1.6.3: build

wai-extra-3.0.20.0: copy/register

http2-1.6.3: copy/register

warp-3.2.13: configure

warp-3.2.13: build

warp-3.2.13: copy/register

wai-app-static-3.1.6.1: configure

wai-app-static-3.1.6.1: build

wai-app-static-3.1.6.1: copy/register

servant-server-0.11: configure

servant-server-0.11: build

servant-server-0.11: copy/register

tiny-url-servant-0.1.0.0: configure (exe)

Configuring tiny-url-servant-0.1.0.0...

tiny-url-servant-0.1.0.0: build (exe)

Preprocessing executable 'tiny-url-servant-exe' for

tiny-url-servant-0.1.0.0...

<command line>: cannot satisfy -package-id tiny-url-servant-0.1.0.0-8CCMOVGJd5V7zFsIARIoRa

    (use -v for more information)

Completed 92 action(s).


--  While building package tiny-url-servant-0.1.0.0 using:

      /Users/kevinmeredith/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.2.0 build exe:tiny-url-servant-exe --ghc-options " -ddump-hi -ddump-to-file"

    Process exited with code: ExitFailure 1


Could someone please let me know how to resolve it?


Thanks!

Michael Sloan

unread,
Sep 22, 2017, 1:12:22 PM9/22/17
to Kevin Meredith, haskell-stack
Hi!

It builds locally here.  I think that can be caused by https://github.com/commercialhaskell/stack/issues/3391 , perhaps other circumstances.  I recommend not interrupting stack builds.  This should hopefully be resolved by doing "stack clean --full" and rebuilding.

-Michael

--
You received this message because you are subscribed to the Google Groups "haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haskell-stack+unsubscribe@googlegroups.com.
To post to this group, send email to haskel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/41edf460-35b7-41ad-8e63-a6044269be00%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages