'stack build' fails; can't seem to copy over file.

39 views
Skip to first unread message

Lance Clark

unread,
Mar 1, 2018, 7:05:10 PM3/1/18
to haskell-stack
Despite having no problem with copying files over to their destinations for a bunch of other packages, uri-bytestring-0.3.1.0 fails to have its files copied over.

Honestly, I'm not quite sure where to post to get help for this. Please direct me elsewhere if this is the wrong place.


=== Output ===

(Thu 03/01/2018 14:14:32.93) λ stack build
Cabal-2.0.1.1: using precompiled package
base-compat-0.9.3: using precompiled package
byteorder-1.0.4: download
appar-0.1.4: download
basement-0.0.4: download
base64-bytestring-1.0.0.1: download
byteorder-1.0.4: configure
bytestring-builder-0.10.8.1.0: download
cabal-doctest-1.0.6: download
auto-update-0.1.4: download
colour-2.3.4: download
byteorder-1.0.4: build
base64-bytestring-1.0.0.1: configure
byteorder-1.0.4: copy/register
data-default-class-0.1.2.0: download
base64-bytestring-1.0.0.1: build
appar-0.1.4: configure
cabal-doctest-1.0.6: configure
appar-0.1.4: build
base64-bytestring-1.0.0.1: copy/register
appar-0.1.4: copy/register
dlist-0.8.0.4: download
cabal-doctest-1.0.6: build
auto-update-0.1.4: configure
easy-file-0.2.1: download
bytestring-builder-0.10.8.1.0: configure
auto-update-0.1.4: build
cabal-doctest-1.0.6: copy/register
fail-4.9.0.0: using precompiled package
bytestring-builder-0.10.8.1.0: build
colour-2.3.4: configure
auto-update-0.1.4: copy/register
file-embed-0.0.10.1: download
bytestring-builder-0.10.8.1.0: copy/register
mtl-2.2.1: using precompiled package
colour-2.3.4: build
basement-0.0.4: configure
data-default-class-0.1.2.0: configure
basement-0.0.4: build
dlist-0.8.0.4: configure
data-default-class-0.1.2.0: build
data-default-class-0.1.2.0: copy/register
network-2.6.3.3: download
dlist-0.8.0.4: build
easy-file-0.2.1: configure
colour-2.3.4: copy/register
file-embed-0.0.10.1: configure
easy-file-0.2.1: build
dlist-0.8.0.4: copy/register
ansi-terminal-0.7.1.1: download
old-locale-1.0.0.7: download
integer-logarithms-1.0.2: configure
file-embed-0.0.10.1: build
easy-file-0.2.1: copy/register
primitive-0.6.3.0: download
file-embed-0.0.10.1: copy/register
integer-logarithms-1.0.2: build
natural-transformation-0.4: configure
random-1.1: using precompiled package
safe-0.3.15: download
network-2.6.3.3: configure
natural-transformation-0.4: build
integer-logarithms-1.0.2: copy/register
natural-transformation-0.4: copy/register
semigroups-0.18.4: download
split-0.2.3.3: download
basement-0.0.4: copy/register
foundation-0.0.17: download
network-2.6.3.3: build
ansi-terminal-0.7.1.1: configure
ansi-terminal-0.7.1.1: build
old-locale-1.0.0.7: configure
primitive-0.6.3.0: configure
old-locale-1.0.0.7: build
old-locale-1.0.0.7: copy/register
safe-0.3.15: configure
primitive-0.6.3.0: build
stm-2.4.5.0: download
semigroups-0.18.4: configure
safe-0.3.15: build
split-0.2.3.3: configure
semigroups-0.18.4: build
semigroups-0.18.4: copy/register
safe-0.3.15: copy/register
stringsearch-0.3.6.6: download
split-0.2.3.3: build
foundation-0.0.17: configure
text-1.2.2.2: using precompiled package
blaze-builder-0.4.0.2: using precompiled package
blaze-markup-0.8.2.0: download
ansi-terminal-0.7.1.1: copy/register
foundation-0.0.17: build
split-0.2.3.3: copy/register
stm-2.4.5.0: configure
ansi-wl-pprint-0.6.8.2: download
cookie-0.4.3: download
primitive-0.6.3.0: copy/register
stm-2.4.5.0: build
stringsearch-0.3.6.6: configure
fast-logger-2.4.11: download
blaze-markup-0.8.2.0: configure
stringsearch-0.3.6.6: build
ansi-wl-pprint-0.6.8.2: configure
blaze-markup-0.8.2.0: build
stm-2.4.5.0: copy/register
async-2.1.1.1: download
ansi-wl-pprint-0.6.8.2: build
cookie-0.4.3: configure
cookie-0.4.3: build
fast-logger-2.4.11: configure
network-2.6.3.3: copy/register
ansi-wl-pprint-0.6.8.2: copy/register
hashable-1.2.6.1: using precompiled package
iproute-1.7.2: download
cookie-0.4.3: copy/register
fast-logger-2.4.11: build
async-2.1.1.1: configure
mime-types-0.1.0.7: download
blaze-markup-0.8.2.0: copy/register
blaze-html-0.9.0.1: download
async-2.1.1.1: build
case-insensitive-1.2.0.10: configure
stringsearch-0.3.6.6: copy/register
fast-logger-2.4.11: copy/register
parsec-3.1.13.0: download
case-insensitive-1.2.0.10: build
iproute-1.7.2: configure
async-2.1.1.1: copy/register
psqueues-0.2.5.0: download
mime-types-0.1.0.7: configure
iproute-1.7.2: build
case-insensitive-1.2.0.10: copy/register
http-types-0.9.1: using precompiled package
system-filepath-0.4.14: download
mime-types-0.1.0.7: build
blaze-html-0.9.0.1: configure
parsec-3.1.13.0: configure
blaze-html-0.9.0.1: build
parsec-3.1.13.0: build
psqueues-0.2.5.0: configure
iproute-1.7.2: copy/register
scientific-0.3.5.2: configure
psqueues-0.2.5.0: build
mime-types-0.1.0.7: copy/register
th-lift-0.7.8: download
scientific-0.3.5.2: build
system-filepath-0.4.14: configure
scientific-0.3.5.2: copy/register
psqueues-0.2.5.0: copy/register
attoparsec-0.13.2.2: download
parsec-3.1.13.0: copy/register
http2-1.6.3: download
blaze-html-0.9.0.1: copy/register
time-locale-compat-0.1.1.3: using precompiled package
transformers-compat-0.5.1.4: using precompiled package
exceptions-0.8.3: download
th-abstraction-0.2.6.0: configure
system-filepath-0.4.14: build
th-lift-0.7.8: configure
th-abstraction-0.2.6.0: build
attoparsec-0.13.2.2: configure
th-lift-0.7.8: build
th-lift-0.7.8: copy/register
attoparsec-0.13.2.2: build
network-uri-2.6.1.0: configure
system-filepath-0.4.14: copy/register
mmorph-1.1.0: using precompiled package
optparse-applicative-0.14.1.0: download
th-abstraction-0.2.6.0: copy/register
network-uri-2.6.1.0: build
exceptions-0.8.3: configure
transformers-base-0.4.4: download
exceptions-0.8.3: build
http2-1.6.3: configure
foundation-0.0.17: copy/register
http2-1.6.3: build
tagged-0.8.5: configure
exceptions-0.8.3: copy/register
network-uri-2.6.1.0: copy/register
memory-0.14.11: download
typed-process-0.2.1.0: download
tagged-0.8.5: build
optparse-applicative-0.14.1.0: configure
unix-compat-0.5.0.1: download
transformers-base-0.4.4: configure
optparse-applicative-0.14.1.0: build
tagged-0.8.5: copy/register
unliftio-core-0.1.1.0: download
transformers-base-0.4.4: build
typed-process-0.2.1.0: configure
transformers-base-0.4.4: copy/register
typed-process-0.2.1.0: build
memory-0.14.11: configure
monad-control-1.0.2.2: download
memory-0.14.11: build
unix-compat-0.5.0.1: configure
typed-process-0.2.1.0: copy/register
unordered-containers-0.2.8.0: using precompiled package
unliftio-core-0.1.1.0: configure
unix-compat-0.5.0.1: build
utf8-string-1.0.1.1: using precompiled package
http-media-0.7.1.2: download
unliftio-core-0.1.1.0: build
monad-control-1.0.2.2: configure
optparse-applicative-0.14.1.0: copy/register
unliftio-core-0.1.1.0: copy/register
string-conversions-0.4.0.1: using precompiled package
monad-control-1.0.2.2: build
http-media-0.7.1.2: configure
uuid-types-1.0.3: using precompiled package
vault-0.3.1.0: download
monad-control-1.0.2.2: copy/register
http2-1.6.3: copy/register
vault-0.3.1.0: configure
http-media-0.7.1.2: build
lifted-base-0.2.3.11: download
void-0.7.2: download
memory-0.14.11: copy/register
vector-0.12.0.1: configure
vault-0.3.1.0: build
cryptonite-0.24: download
unix-compat-0.5.0.1: copy/register
http-media-0.7.1.2: copy/register
vector-0.12.0.1: build
lifted-base-0.2.3.11: configure
word8-0.1.3: download
zlib-0.6.1.2: download
vault-0.3.1.0: copy/register
attoparsec-0.13.2.2: copy/register
lifted-base-0.2.3.11: build
void-0.7.2: configure
wai-3.2.1.1: download
void-0.7.2: build
word8-0.1.3: configure
void-0.7.2: copy/register
http-date-0.0.6.1: download
lifted-base-0.2.3.11: copy/register
word8-0.1.3: build
cryptonite-0.24: configure
resourcet-1.1.11: download
word8-0.1.3: copy/register
cryptonite-0.24: build
zlib-0.6.1.2: configure
wai-3.2.1.1: configure
zlib-0.6.1.2: build
attoparsec-iso8601-1.0.0.0: configure
wai-3.2.1.1: build
wai-3.2.1.1: copy/register
http-date-0.0.6.1: configure
attoparsec-iso8601-1.0.0.0: build
wai-logger-2.3.1: download
http-date-0.0.6.1: build
resourcet-1.1.11: configure
attoparsec-iso8601-1.0.0.0: copy/register
wai-logger-2.3.1: configure
resourcet-1.1.11: build
http-date-0.0.6.1: copy/register
wai-logger-2.3.1: build
resourcet-1.1.11: copy/register
wai-logger-2.3.1: copy/register
conduit-1.2.13: download
zlib-0.6.1.2: copy/register
conduit-1.2.13: configure
streaming-commons-0.1.19: download
streaming-commons-0.1.19: configure
conduit-1.2.13: build
streaming-commons-0.1.19: build
conduit-1.2.13: copy/register
streaming-commons-0.1.19: copy/register
conduit-extra-1.2.3.2: download
conduit-extra-1.2.3.2: configure
conduit-extra-1.2.3.2: build
conduit-extra-1.2.3.2: copy/register
simple-sendfile-0.2.27: download
simple-sendfile-0.2.27: configure
simple-sendfile-0.2.27: build
simple-sendfile-0.2.27: copy/register
warp-3.2.13: download
warp-3.2.13: configure
warp-3.2.13: build
vector-0.12.0.1: copy/register
th-lift-instances-0.1.11: configure
aeson-1.2.4.0: download
th-lift-instances-0.1.11: build
aeson-1.2.4.0: configure
th-lift-instances-0.1.11: copy/register
aeson-1.2.4.0: build
uri-bytestring-0.3.1.0: configure
uri-bytestring-0.3.1.0: build
cryptonite-0.24: copy/register
warp-3.2.13: copy/register
uri-bytestring-0.3.1.0: copy/register
aeson-1.2.4.0: copy/register
Progress: 88/94
--  While building custom Setup.hs for package uri-bytestring-0.3.1.0 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe --builddir=.stack-work\dist\5c8418a7 register
    Process exited with code: ExitFailure 1
    Logs have been written to: C:\Users\lance.clark\Projects\haskell\webservice\.stack-work\logs\uri-bytestring-0.3.1.0.log

    Configuring uri-bytestring-0.3.1.0...
    Preprocessing library for uri-bytestring-0.3.1.0..
    Building library for uri-bytestring-0.3.1.0..
    [1 of 5] Compiling URI.ByteString.Types ( src\URI\ByteString\Types.hs, .stack-work\dist\5c8418a7\build\URI\ByteString\Types.o )
    [2 of 5] Compiling URI.ByteString.Lens ( src\URI\ByteString\Lens.hs, .stack-work\dist\5c8418a7\build\URI\ByteString\Lens.o )
    [3 of 5] Compiling URI.ByteString.Internal ( src\URI\ByteString\Internal.hs, .stack-work\dist\5c8418a7\build\URI\ByteString\Internal.o )
    [4 of 5] Compiling URI.ByteString   ( src\URI\ByteString.hs, .stack-work\dist\5c8418a7\build\URI\ByteString.o )
    [5 of 5] Compiling URI.ByteString.QQ ( src\URI\ByteString\QQ.hs, .stack-work\dist\5c8418a7\build\URI\ByteString\QQ.o )
    copyFile: permission denied (Access is denied.)

Christopher Allen

unread,
Mar 2, 2018, 3:49:04 PM3/2/18
to Lance Clark, haskell-stack
Have you tried stack clean or nuking the .stack-work directory and
building from that?
> --
> 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-stac...@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/fda39b05-b19f-4aad-b614-d46d19020aae%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Chris Allen
Currently working on http://haskellbook.com

Lance Clark

unread,
Mar 6, 2018, 5:45:04 PM3/6/18
to haskell-stack
Yes, I have. I was able to build the same project on OSX, so it seems to be specific to Windows 7 64-bit so far.

Is there a flag or command I could run to get help diagnose the problem?

Lance Clark

unread,
Mar 16, 2018, 11:37:07 AM3/16/18
to haskell-stack
*bump*

Lance Clark

unread,
Mar 19, 2018, 3:13:35 PM3/19/18
to Michael Snoyman, haskell-stack
Here’s the output for that: http://pastebin.com/1Kdz3NHX

On Mar 19, 2018, at 01:06, Michael Snoyman <mic...@snoyman.com> wrote:

Can you try running with --cabal-verbose and --verbose?

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.

Michael Snoyman

unread,
Mar 20, 2018, 4:56:56 AM3/20/18
to Lance Clark, haskell-stack
Can you try running with --cabal-verbose and --verbose?
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.

Michael Snoyman

unread,
Mar 21, 2018, 2:37:29 AM3/21/18
to Lance Clark, haskell-stack
Does the directory C:\sr\snapshots\9f8b1558\doc exist? Are you able to manually create files in it?

Lance Clark

unread,
Mar 27, 2018, 2:17:07 PM3/27/18
to haskell-stack
Yes. Both exists, and I was able to create a folder and a new file in that new directory.

Michael Snoyman

unread,
Apr 3, 2018, 1:51:05 AM4/3/18
to Lance Clark, haskell-stack
I'm sorry for the delay, but I've looked this over a few times, and I don't know what could be causing this. My best recommendation right now would be to try a different LTS version with a different version of GHC (and therefore different Cabal library version) and see if the problem goes away. The error message is being generated from Cabal itself, making it more difficult to track down than a bug in Stack.

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.
Reply all
Reply to author
Forward
0 new messages