commercialhaskell/stackage-content

I cannot install GHC 8.2.2 on Manjaro linux

miladz68 opened this issue · 2 comments

I run stack setup on a project an I am getting the following error when installing GHC 8.2.2, It downloads the file but cannot unpack it:

Downloaded ghc-tinfo6-nopie-8.2.2.
Running /usr/bin/tar Jxf /home/milad/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2.tar.xz in directory /home/milad/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2.temp/ exited with ExitFailure 2

xz: (stdin): Compressed data is corrupt
/usr/bin/tar: Unexpected EOF in archive
/usr/bin/tar: Unexpected EOF in archive
/usr/bin/tar: Error is not recoverable: exiting now

Error: Error encountered while unpacking GHC with
tar Jxf /home/milad/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2.tar.xz
run in /home/milad/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2.temp/

The following directories may now contain files, but won't be used by stack:
- /home/milad/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2.temp/
- /home/milad/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2/

Unpacking GHC into /home/milad/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2.temp/ ...%

I have no knowledge about stack, but in older versions of GHC, stack was downloading ghc-nopie instead of ghc-tinfo6-nopie. this is the only difference I noticed, So I thought It may help.

Also I landed on this repo by google search, If I should move it to the main stack repository let me know.
More Info: the content length of the file matches the one provided in this repo but the sha1sum doesn't match. I ran stack setup 2 times which downloads the file each time and the same error occurs.

stack --version
Version 1.6.3, Git revision b27e629b8c4ce369e3b8273f04db193b060000db (5454 commits) x86_64 hpack-0.20.0

Update: I was mistaken about sha1. their sha1sum matches !!

OK, here is the weird part.
Although I am getting an error in setup process, if I run stack build after that it works !!
Isn't that weird ?

I think it is OK to close this issue