haskell-hvr / cryptohash-sha256

Fast, pure and practical SHA-256 implementation
https://hackage.haskell.org/package/cryptohash-sha256
Other
22 stars 6 forks source link

Failure to install on Windows #7

Closed ndmitchell closed 4 years ago

ndmitchell commented 4 years ago

Running stack install cryptohash-sha256 --resolver=nightly-2020-09-29 -j1 I get:

C:\Neil>stack install cryptohash-sha256 --resolver=nightly-2020-09-29 -j1
cryptohash-sha256> configure
cryptohash-sha256> Configuring cryptohash-sha256-0.11.101.0...
cryptohash-sha256> Warning: Packages using 'cabal-version: >= 1.10' must specify the
cryptohash-sha256> 'default-language' field for each component (e.g. Haskell98 or Haskell2010).
cryptohash-sha256> If a component uses different languages in different modules then list the
cryptohash-sha256> other ones in the 'other-languages' field.
cryptohash-sha256> build
cryptohash-sha256> Preprocessing library for cryptohash-sha256-0.11.101.0..
cryptohash-sha256> Building library for cryptohash-sha256-0.11.101.0..
cryptohash-sha256> [1 of 2] Compiling Crypto.Hash.SHA256.FFI
cryptohash-sha256> ghc.exe: could not execute: C:/GitLabRunner/builds/2WeHDSFP/0/ghc/ghc/inplace/mingw/bin/ld.exe

--  While building package cryptohash-sha256-0.11.101.0 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_3.2.0.0_ghc-8.10.2.exe --builddir=.stack-work\dist\a3a5fe88 build --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1

I don't have GitLabRunner on my machine, so I guess its coming from Stack, Stackage or the package in question (and couldn't find it for the package in question).

ndmitchell commented 4 years ago

This works on Cabal, so I'm blaming Stack. If you want to follow along, the upstream ticket is here, but I'll close this issue.

ndmitchell commented 4 years ago

https://github.com/commercialhaskell/stack/issues/5408

Mistuke commented 4 years ago

This is a GHC bug https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3840 8.10.2 is sadly.. broken.