Skip to content
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

ghc-8.10.4 incomplete archive for x86_64-linux #5517

Closed
DylanSp opened this issue Apr 7, 2021 · 1 comment
Closed

ghc-8.10.4 incomplete archive for x86_64-linux #5517

DylanSp opened this issue Apr 7, 2021 · 1 comment

Comments

@DylanSp
Copy link

DylanSp commented Apr 7, 2021

General summary/comments (optional)

When running stack setup with resolver: lts-17.9, I get the following error:

Downloaded ghc-8.10.4.                                      
xz: (stdin): Compressed data is corrupt                                         
/bin/tar: Unexpected EOF in archive                                             
/bin/tar: Unexpected EOF in archive                                             
/bin/tar: Error is not recoverable: exiting now                                 
Received ExitFailure 2 when running                                             
Raw command: /bin/tar Jxf /home/dylan/.stack/programs/x86_64-linux/ghc-8.10.4.tar.xz
Run from: /home/dylan/.stack/programs/x86_64-linux/ghc-8.10.4.temp/

Stack version

$ stack --version
Version 2.5.1, Git revision d6ab861544918185236cf826cb2028abb266d6d5 x86_64 hpack-0.33.0

Method of installation

Official binary, downloaded from stackage.org

Relevant Stack verbose output

2021-04-06 23:55:29.758317: [debug] Downloading from http://downloads.haskell.org/~ghc/8.10.4/ghc-8.10.4-x86_64-deb9-linux.tar.xz to /home/dylan/.stack/programs/x86_64-linux/ghc-8.10.4.tar.xz ...
2021-04-06 23:55:29.758361: [debug] Will check against sha1 hash: 4c8ac9e8c047db4b8a5131275b9bfbf824988d8f
2021-04-06 23:55:29.758398: [debug] Will check against sha256 hash: 5694200a5c38f22c142baf850b1d2f3784211d2ec9302e11693259a1ae8e38b7
2021-04-06 23:55:29.758701: [debug] Downloading /~ghc/8.10.4/ghc-8.10.4-x86_64-deb9-linux.tar.xz
2021-04-07 00:12:06.071960: [info] Downloaded ghc-8.10.4.   

[menv output ommitted due to length]

2021-04-07 00:12:07.383124: [debug] ziptool: xz
2021-04-07 00:12:07.383328: [debug] make: make
2021-04-07 00:12:07.383432: [debug] tar: tar
2021-04-07 00:12:07.383491: [debug] Unpacking /home/dylan/.stack/programs/x86_64-linux/ghc-8.10.4.tar.xz
2021-04-07 00:12:07.384110: [debug] Run process within /home/dylan/.stack/programs/x86_64-linux/ghc-8.10.4.temp/: /bin/tar Jxf /home/dylan/.stack/programs/x86_64-linux/ghc-8.10.4.tar.xz
2021-04-07 00:12:21.778174: [error] xz: (stdin): Compressed data is corrupt     
2021-04-07 00:12:21.780974: [error] /bin/tar: Unexpected EOF in archive         
2021-04-07 00:12:21.781091: [error] /bin/tar: Unexpected EOF in archive         
2021-04-07 00:12:21.781186: [error] /bin/tar: Error is not recoverable: exiting now
2021-04-07 00:12:21.781410: [error] Received ExitFailure 2 when running         
Raw command: /bin/tar Jxf /home/dylan/.stack/programs/x86_64-linux/ghc-8.10.4.tar.xz
Run from: /home/dylan/.stack/programs/x86_64-linux/ghc-8.10.4.temp/

2021-04-07 00:12:21.789414: [error]                                             
Error: Error encountered while unpacking GHC with
         tar Jxf /home/dylan/.stack/programs/x86_64-linux/ghc-8.10.4.tar.xz
         run in /home/dylan/.stack/programs/x86_64-linux/ghc-8.10.4.temp/
       
       The following directories may now contain files, but won't be used by stack:
         - /home/dylan/.stack/programs/x86_64-linux/ghc-8.10.4.temp/
         - /home/dylan/.stack/programs/x86_64-linux/ghc-8.10.4/
       
       For more information consider rerunning with --verbose flag
       
Unpacking GHC into /home/dylan/.stack/programs/x86_64-linux/ghc-8.10.4.temp/ ...

Looks to be a similar issue to #2170. However, manually downloading and running tar against http://downloads.haskell.org/~ghc/8.10.4/ghc-8.10.4-x86_64-deb9-linux.tar.xz works without issues.

$ wget http://downloads.haskell.org/~ghc/8.10.4/ghc-8.10.4-x86_64-deb9-linux.tar.xz 
$ /bin/tar Jxf ghc-8.10.4-x86_64-deb9-linux.tar.xz
$ echo $?
0
@mpilgrem
Copy link
Member

I am closing this as it relates to an old version of GHC (GHC 8.10.7 is available in the 8.10 series) and an old version of Stack (Stack 2.9.3 is available). Please reopen if it occurs for more recent versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants