haskell-hedgehog icon indicating copy to clipboard operation
haskell-hedgehog copied to clipboard

Build fails on Windows with GHC 8.0.2

Open ttuegel opened this issue 8 years ago • 9 comments

I am trying to build hedgehog on Windows 10 with GHC 8.0.2 and cabal-install 1.24. The build fails with an access violation:

Failed to install hedgehog-0.5
Build log ( C:\Users\appveyor\AppData\Roaming\cabal\logs\hedgehog-0.5.log ):
Building hedgehog-0.5...
Preprocessing library hedgehog-0.5...
[ 1 of 24] Compiling Hedgehog.Internal.Source ( src\Hedgehog\Internal\Source.hs, dist\build\Hedgehog\Internal\Source.o )
[ 2 of 24] Compiling Hedgehog.Internal.Shrink ( src\Hedgehog\Internal\Shrink.hs, dist\build\Hedgehog\Internal\Shrink.o )
[ 3 of 24] Compiling Hedgehog.Internal.Show ( src\Hedgehog\Internal\Show.hs, dist\build\Hedgehog\Internal\Show.o )
[ 4 of 24] Compiling Hedgehog.Internal.Seed ( src\Hedgehog\Internal\Seed.hs, dist\build\Hedgehog\Internal\Seed.o )
[ 5 of 24] Compiling Hedgehog.Internal.Region ( src\Hedgehog\Internal\Region.hs, dist\build\Hedgehog\Internal\Region.o )
[ 6 of 24] Compiling Hedgehog.Internal.Range ( src\Hedgehog\Internal\Range.hs, dist\build\Hedgehog\Internal\Range.o )
[ 7 of 24] Compiling Hedgehog.Range   ( src\Hedgehog\Range.hs, dist\build\Hedgehog\Range.o )
[ 8 of 24] Compiling Hedgehog.Internal.Opaque ( src\Hedgehog\Internal\Opaque.hs, dist\build\Hedgehog\Internal\Opaque.o )
[ 9 of 24] Compiling Hedgehog.Internal.HTraversable ( src\Hedgehog\Internal\HTraversable.hs, dist\build\Hedgehog\Internal\HTraversable.o )
[10 of 24] Compiling Hedgehog.Internal.Exception ( src\Hedgehog\Internal\Exception.hs, dist\build\Hedgehog\Internal\Exception.o )
[11 of 24] Compiling Hedgehog.Internal.Distributive ( src\Hedgehog\Internal\Distributive.hs, dist\build\Hedgehog\Internal\Distributive.o )
[12 of 24] Compiling Hedgehog.Internal.Tree ( src\Hedgehog\Internal\Tree.hs, dist\build\Hedgehog\Internal\Tree.o )
[13 of 24] Compiling Hedgehog.Internal.Gen ( src\Hedgehog\Internal\Gen.hs, dist\build\Hedgehog\Internal\Gen.o )
[14 of 24] Compiling Hedgehog.Internal.Property ( src\Hedgehog\Internal\Property.hs, dist\build\Hedgehog\Internal\Property.o )
Segmentation fault/access violation in generated code
cabal: Leaving directory 'C:\Users\appveyor\AppData\Local\Temp\cabal-tmp-2584\hedgehog-0.5'

ttuegel avatar Jul 25 '17 18:07 ttuegel

Eep! That's not good, there's a few Windows issues piling up, I really ought to take some time out to look at them. If anyone has any insight in to what's going on here it would be appreciated.

jacobstanley avatar Jul 25 '17 22:07 jacobstanley

I have a Windows 10 machine ready and I'll hopefully be able to look at this today.

moodmosaic avatar Jul 26 '17 05:07 moodmosaic

Could it be a cabal-install issue? Builds fine on Windows 10, with Stack, using LTS Haskell 8.23 (ghc-8.0.2):

...
hedgehog-0.5: configure (lib)
Configuring hedgehog-0.5...
hedgehog-0.5: build (lib)
Preprocessing library hedgehog-0.5...
[ 1 of 24] Compiling Hedgehog.Internal.Source ( src\Hedgehog\Internal\Source.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Source.o )
[ 2 of 24] Compiling Hedgehog.Internal.Shrink ( src\Hedgehog\Internal\Shrink.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Shrink.o )
[ 3 of 24] Compiling Hedgehog.Internal.Show ( src\Hedgehog\Internal\Show.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Show.o )
[ 4 of 24] Compiling Hedgehog.Internal.Seed ( src\Hedgehog\Internal\Seed.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Seed.o )
[ 5 of 24] Compiling Hedgehog.Internal.Region ( src\Hedgehog\Internal\Region.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Region.o )
[ 6 of 24] Compiling Hedgehog.Internal.Range ( src\Hedgehog\Internal\Range.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Range.o )
[ 7 of 24] Compiling Hedgehog.Range   ( src\Hedgehog\Range.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Range.o )
[ 8 of 24] Compiling Hedgehog.Internal.Opaque ( src\Hedgehog\Internal\Opaque.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Opaque.o )
[ 9 of 24] Compiling Hedgehog.Internal.HTraversable ( src\Hedgehog\Internal\HTraversable.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\HTraversable.o )
[10 of 24] Compiling Hedgehog.Internal.Exception ( src\Hedgehog\Internal\Exception.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Exception.o )
[11 of 24] Compiling Hedgehog.Internal.Distributive ( src\Hedgehog\Internal\Distributive.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Distributive.o )
[12 of 24] Compiling Hedgehog.Internal.Tree ( src\Hedgehog\Internal\Tree.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Tree.o )
[13 of 24] Compiling Hedgehog.Internal.Gen ( src\Hedgehog\Internal\Gen.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Gen.o )
[14 of 24] Compiling Hedgehog.Internal.Property ( src\Hedgehog\Internal\Property.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Property.o )
[15 of 24] Compiling Hedgehog.Internal.Tripping ( src\Hedgehog\Internal\Tripping.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Tripping.o )
[16 of 24] Compiling Hedgehog.Internal.State ( src\Hedgehog\Internal\State.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\State.o )
[17 of 24] Compiling Hedgehog.Internal.Discovery ( src\Hedgehog\Internal\Discovery.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Discovery.o )
[18 of 24] Compiling Hedgehog.Internal.TH ( src\Hedgehog\Internal\TH.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\TH.o )
[19 of 24] Compiling Hedgehog.Internal.Config ( src\Hedgehog\Internal\Config.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Config.o )
[20 of 24] Compiling Hedgehog.Internal.Queue ( src\Hedgehog\Internal\Queue.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Queue.o )
[21 of 24] Compiling Hedgehog.Internal.Report ( src\Hedgehog\Internal\Report.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Report.o )
[22 of 24] Compiling Hedgehog.Internal.Runner ( src\Hedgehog\Internal\Runner.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Runner.o )
[23 of 24] Compiling Hedgehog.Gen     ( src\Hedgehog\Gen.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Gen.o )
[24 of 24] Compiling Hedgehog         ( src\Hedgehog.hs, .stack-work\dist\ca59d0ab\build\Hedgehog.o )
hedgehog-0.5: copy/register
Installing library in
<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\lib\x86_64-windows-ghc-8.0.2\hedgehog-0.5-Id8HxtzM2dMBNkWnCzbHJP
Registering hedgehog-0.5...
Completed 26 action(s).

moodmosaic avatar Jul 26 '17 12:07 moodmosaic

Could it be a cabal-install issue?

That's possible, but I think it's more likely a dependency version issue, since you are using LTS Haskell.

I say this because I know that, in the past, there have been GHC codegen issues on Windows around type families. If some package that hedgehog depends on has changed some type family slightly, that could be hitting a bug that was avoided before.

Could you post a verbose log so I can see what command was used to invoke GHC? That would give all the package versions, and anything else that might affect codegen.

ttuegel avatar Jul 26 '17 16:07 ttuegel

Could you post a verbose log so I can see what command was used to invoke GHC?

Here's one with stack build --verbose, hmm...

$ stack build --verbose
Version 1.4.0, Git revision e714f1dd3fade19496d91bd6a017e435a96a6bcd x86_64 hpack-0.17.0
2017-07-27 08:13:19.429818: [debug] Checking for project config at: <..>\Hedgehog\haskell-hedgehog\hedgehog\stack.yaml
@(Stack\Config.hs:935:9)
2017-07-27 08:13:19.429818: [debug] Loading project config file stack.yaml
@(Stack\Config.hs:960:13)
2017-07-27 08:13:19.429818: [debug] Trying to decode C:\sr\build-plan-cache\x86_64-windows\lts-8.23.cache
@(Data\Store\VersionTagged.hs:68:5)
2017-07-27 08:13:19.444773: [debug] Success decoding C:\sr\build-plan-cache\x86_64-windows\lts-8.23.cache
@(Data\Store\VersionTagged.hs:72:13)
2017-07-27 08:13:19.444773: [debug] Using standard GHC build
@(Stack\Setup.hs:600:9)
2017-07-27 08:13:19.460220: [debug] Getting global package database location
@(Stack\GhcPkg.hs:55:5)
2017-07-27 08:13:19.460220: [debug] Asking GHC for its version
@(Stack\Setup\Installed.hs:103:13)
2017-07-27 08:13:19.460220: [debug] Getting Cabal package version
@(Stack\GhcPkg.hs:189:5)
2017-07-27 08:13:19.460220: [debug] Run process: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --no-user-package-db list --global
@(System\Process\Read.hs:306:3)
2017-07-27 08:13:19.460220: [debug] Run process: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc.EXE --numeric-version
@(System\Process\Read.hs:306:3)
2017-07-27 08:13:19.460220: [debug] Run process: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --no-user-package-db field --simple-output Cabal version
@(System\Process\Read.hs:306:3)
2017-07-27 08:13:19.549332: [debug] Process finished in [92m75ms[0m: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc.EXE --numeric-version
@(System\Process\Read.hs:306:3)
2017-07-27 08:13:19.570329: [debug] Process finished in [92m103ms[0m: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --no-user-package-db list --global
@(System\Process\Read.hs:306:3)
2017-07-27 08:13:19.595374: [debug] Process finished in [92m108ms[0m: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --no-user-package-db field --simple-output Cabal version
@(System\Process\Read.hs:306:3)
2017-07-27 08:13:19.595374: [debug] Resolving package entries
@(Stack\Setup.hs:254:5)
2017-07-27 08:13:19.595374: [debug] Starting to execute command inside EnvConfig
@(Stack\Runners.hs:166:18)
2017-07-27 08:13:19.595374: [debug] Parsing the cabal files of the local packages
@(Stack\Build\Source.hs:310:5)
2017-07-27 08:13:19.595374: [debug] Parsing the targets
@(Stack\Build\Source.hs:247:5)
2017-07-27 08:13:19.595374: [debug] Start: getPackageFiles <..>\Hedgehog\haskell-hedgehog\hedgehog\hedgehog.cabal
@(Stack\Package.hs:251:21)
2017-07-27 08:13:19.673463: [debug] Finished in 73ms: getPackageFiles <..>\Hedgehog\haskell-hedgehog\hedgehog\hedgehog.cabal
@(Stack\Package.hs:251:21)
2017-07-27 08:13:19.689116: [debug] Finding out which packages are already installed
@(Stack\Build\Installed.hs:69:5)
2017-07-27 08:13:19.689116: [debug] Run process: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --global --no-user-package-db dump --expand-pkgroot
@(System\Process\Read.hs:306:3)
2017-07-27 08:13:19.770367: [debug] Process finished in [92m77ms[0m: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --global --no-user-package-db dump --expand-pkgroot
@(System\Process\Read.hs:306:3)
2017-07-27 08:13:19.770367: [debug] Ignoring package xhtml due to wanting version 3000.2.2 instead of 3000.2.1
@(Stack\Build\Installed.hs:199:5)
2017-07-27 08:13:19.786131: [debug] Ignoring package haskeline due to wanting version 0.7.4.0 instead of 0.7.3.0
@(Stack\Build\Installed.hs:199:5)
2017-07-27 08:13:19.786131: [debug] Run process: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --user --no-user-package-db --package-db C:\sr\snapshots\4200eef4\pkgdb dump --expand-pkgroot
@(System\Process\Read.hs:306:3)
2017-07-27 08:13:19.896125: [debug] Process finished in [92m106ms[0m: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --user --no-user-package-db --package-db C:\sr\snapshots\4200eef4\pkgdb dump --expand-pkgroot
@(System\Process\Read.hs:306:3)
2017-07-27 08:13:19.896125: [debug] Run process: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --user --no-user-package-db --package-db <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\pkgdb dump --expand-pkgroot
@(System\Process\Read.hs:306:3)
2017-07-27 08:13:19.969513: [debug] Process finished in [92m68ms[0m: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --user --no-user-package-db --package-db <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\pkgdb dump --expand-pkgroot
@(System\Process\Read.hs:306:3)
2017-07-27 08:13:19.969513: [debug] Constructing the build plan
@(Stack\Build\ConstructPlan.hs:158:5)
2017-07-27 08:13:19.969513: [debug] Checking if we are going to build multiple executables with the same name
@(Stack\Build.hs:210:5)
2017-07-27 08:13:19.969513: [debug] Executing the build plan
@(Stack\Build\Execute.hs:458:5)
2017-07-27 08:13:19.969513: [debug] Getting global package database location
@(Stack\GhcPkg.hs:55:5)
2017-07-27 08:13:19.985139: [debug] Run process: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --no-user-package-db list --global
@(System\Process\Read.hs:306:3)
2017-07-27 08:13:20.058653: [debug] Process finished in [92m71ms[0m: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --no-user-package-db list --global
@(System\Process\Read.hs:306:3)

moodmosaic avatar Jul 27 '17 05:07 moodmosaic

According to that log, stack didn't build anything?

ttuegel avatar Jul 27 '17 16:07 ttuegel

Yeah, I guess it needs the --force-dirty if nothing's changed in source code. Here's another shot:

$ stack build --force-dirty --verbose
Version 1.4.0, Git revision e714f1dd3fade19496d91bd6a017e435a96a6bcd x86_64 hpack-0.17.0
2017-07-27 21:40:04.211250: [debug] Checking for project config at: <..>\Hedgehog\haskell-hedgehog\hedgehog\stack.yaml
@(Stack\Config.hs:935:9)
2017-07-27 21:40:04.217357: [debug] Loading project config file stack.yaml
@(Stack\Config.hs:960:13)
2017-07-27 21:40:04.226278: [debug] Trying to decode C:\sr\build-plan-cache\x86_64-windows\lts-8.23.cache
@(Data\Store\VersionTagged.hs:68:5)
2017-07-27 21:40:04.254252: [debug] Success decoding C:\sr\build-plan-cache\x86_64-windows\lts-8.23.cache
@(Data\Store\VersionTagged.hs:72:13)
2017-07-27 21:40:04.263254: [debug] Using standard GHC build
@(Stack\Setup.hs:600:9)
2017-07-27 21:40:04.265254: [debug] Getting global package database location
@(Stack\GhcPkg.hs:55:5)
2017-07-27 21:40:04.267254: [debug] Asking GHC for its version
@(Stack\Setup\Installed.hs:103:13)
2017-07-27 21:40:04.268253: [debug] Getting Cabal package version
@(Stack\GhcPkg.hs:189:5)
2017-07-27 21:40:04.268253: [debug] Run process: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --no-user-package-db list --global
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:04.270258: [debug] Run process: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc.EXE --numeric-version
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:04.279269: [debug] Run process: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --no-user-package-db field --simple-output Cabal version
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:04.350259: [debug] Process finished in [92m76ms[0m: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc.EXE --numeric-version
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:04.386263: [debug] Process finished in [92m100ms[0m: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --no-user-package-db field --simple-output Cabal version
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:04.393260: [debug] Process finished in [92m122ms[0m: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --no-user-package-db list --global
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:04.394261: [debug] Resolving package entries
@(Stack\Setup.hs:254:5)
2017-07-27 21:40:04.397264: [debug] Starting to execute command inside EnvConfig
@(Stack\Runners.hs:166:18)
2017-07-27 21:40:04.398265: [debug] Parsing the cabal files of the local packages
@(Stack\Build\Source.hs:310:5)
2017-07-27 21:40:04.404261: [debug] Parsing the targets
@(Stack\Build\Source.hs:247:5)
2017-07-27 21:40:04.405262: [debug] Start: getPackageFiles <..>\Hedgehog\haskell-hedgehog\hedgehog\hedgehog.cabal
@(Stack\Package.hs:251:21)
2017-07-27 21:40:04.476420: [debug] Finished in 64ms: getPackageFiles <..>\Hedgehog\haskell-hedgehog\hedgehog\hedgehog.cabal
@(Stack\Package.hs:251:21)
2017-07-27 21:40:04.480271: [debug] Finding out which packages are already installed
@(Stack\Build\Installed.hs:69:5)
2017-07-27 21:40:04.482270: [debug] Run process: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --global --no-user-package-db dump --expand-pkgroot
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:04.551272: [debug] Process finished in [92m67ms[0m: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --global --no-user-package-db dump --expand-pkgroot
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:04.562303: [debug] Ignoring package xhtml due to wanting version 3000.2.2 instead of 3000.2.1
@(Stack\Build\Installed.hs:199:5)
2017-07-27 21:40:04.563285: [debug] Ignoring package haskeline due to wanting version 0.7.4.0 instead of 0.7.3.0
@(Stack\Build\Installed.hs:199:5)
2017-07-27 21:40:04.564274: [debug] Run process: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --user --no-user-package-db --package-db C:\sr\snapshots\4200eef4\pkgdb dump --expand-pkgroot
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:04.657279: [debug] Process finished in [92m92ms[0m: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --user --no-user-package-db --package-db C:\sr\snapshots\4200eef4\pkgdb dump --expand-pkgroot
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:04.660279: [debug] Run process: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --user --no-user-package-db --package-db <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\pkgdb dump --expand-pkgroot
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:04.727285: [debug] Process finished in [92m67ms[0m: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --user --no-user-package-db --package-db <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\pkgdb dump --expand-pkgroot
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:04.731285: [debug] Constructing the build plan
@(Stack\Build\ConstructPlan.hs:158:5)
2017-07-27 21:40:04.737287: [debug] Checking if we are going to build multiple executables with the same name
@(Stack\Build.hs:210:5)
2017-07-27 21:40:04.737287: [debug] Executing the build plan
@(Stack\Build\Execute.hs:458:5)
2017-07-27 21:40:04.743285: [debug] Getting global package database location
@(Stack\GhcPkg.hs:55:5)
2017-07-27 21:40:04.743285: [debug] Run process: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --no-user-package-db list --global
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:04.805289: [debug] Process finished in [92m61ms[0m: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --no-user-package-db list --global
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:04.807291: [info] hedgehog-0.5: unregistering (--force-dirty specified)
@(Stack\Build\Execute.hs:595:17)
2017-07-27 21:40:04.807291: [debug] Run process: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --no-user-package-db --package-db=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\pkgdb\ unregister --user --force --ipid hedgehog-0.5-Id8HxtzM2dMBNkWnCzbHJP
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:04.876295: [debug] Process finished in [92m67ms[0m: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --no-user-package-db --package-db=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\pkgdb\ unregister --user --force --ipid hedgehog-0.5-Id8HxtzM2dMBNkWnCzbHJP
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:04.879297: [info] hedgehog-0.5: configure (lib)
@(Stack\Build\Execute.hs:830:23)
2017-07-27 21:40:04.901296: [debug] Run process: C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe --builddir=.stack-work\dist\ca59d0ab configure --with-ghc=C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc.EXE --with-ghc-pkg=C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --user --package-db=clear --package-db=global --package-db=C:\sr\snapshots\4200eef4\pkgdb --package-db=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\pkgdb --libdir=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\lib --bindir=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\bin --datadir=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\share --libexecdir=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\libexec --sysconfdir=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\etc --docdir=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\doc\hedgehog-0.5 --htmldir=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\doc\hedgehog-0.5 --haddockdir=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\doc\hedgehog-0.5 --dependency=ansi-terminal=ansi-terminal-0.6.3.1-CdiTOvx5ZEQ2RerUYIP05k --dependency=async=async-2.1.1.1-8yywY4inVGRLJSCg60gBXj --dependency=base=base-4.9.1.0 --dependency=bytestring=bytestring-0.10.8.1 --dependency=concurrent-output=concurrent-output-1.7.9-IrvOLZ65JFfLIepNlHrwvM --dependency=containers=containers-0.5.7.1 --dependency=directory=directory-1.3.0.0 --dependency=exceptions=exceptions-0.8.3-ADEDRATtUrMK1JW4zMQ9U --dependency=lifted-async=lifted-async-0.9.3-JjFV9uInDn5I3chvnlR5nT --dependency=mmorph=mmorph-1.0.9-5bASEvmIkr5CpdAYXwPsn0 --dependency=monad-control=monad-control-1.0.2.1-CqOqIBYVBjy1GnPfyWnFHC --dependency=mtl=mtl-2.2.1-BLKBelFsPB3BoFeSWSOYj6 --dependency=pretty-show=pretty-show-1.6.13-LSgpbeg7Zcd2id7s8ra4bM --dependency=primitive=primitive-0.6.1.0-6AbSTw9JXz141LE5p6LGH --dependency=random=random-1.1-9tceXaeYIMZ4JrKq20Egog --dependency=resourcet=resourcet-1.1.9-4kJNagEzSAo2Kfakyf6y5E --dependency=stm=stm-2.4.4.1-JQn4hNPyYjP5m9AcbI88Ve --dependency=template-haskell=template-haskell-2.11.1.0 --dependency=text=text-1.2.2.1-Ji7hMs2U4BkBwavd4taEVR --dependency=th-lift=th-lift-0.7.7-JWI9Gh7wB0MC9Q5wqv5aoI --dependency=time=time-1.6.0.1 --dependency=transformers=transformers-0.5.2.0 --dependency=transformers-base=transformers-base-0.4.4-GKSs0LKukAL8ymq2naFmrH --dependency=wl-pprint-annotated=wl-pprint-annotated-0.0.1.4-2LVtBc7naQRFxG1fnHOmcW --extra-include-dirs=C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\include --extra-lib-dirs=C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\lib --enable-tests --enable-benchmarks
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:05.759357: [info] Configuring hedgehog-0.5...
@(Stack\Build\Execute.hs:1070:67)
2017-07-27 21:40:07.011446: [debug] Process finished in [92m2101ms[0m: C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe --builddir=.stack-work\dist\ca59d0ab configure --with-ghc=C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc.EXE --with-ghc-pkg=C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --user --package-db=clear --package-db=global --package-db=C:\sr\snapshots\4200eef4\pkgdb --package-db=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\pkgdb --libdir=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\lib --bindir=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\bin --datadir=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\share --libexecdir=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\libexec --sysconfdir=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\etc --docdir=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\doc\hedgehog-0.5 --htmldir=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\doc\hedgehog-0.5 --haddockdir=<..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\doc\hedgehog-0.5 --dependency=ansi-terminal=ansi-terminal-0.6.3.1-CdiTOvx5ZEQ2RerUYIP05k --dependency=async=async-2.1.1.1-8yywY4inVGRLJSCg60gBXj --dependency=base=base-4.9.1.0 --dependency=bytestring=bytestring-0.10.8.1 --dependency=concurrent-output=concurrent-output-1.7.9-IrvOLZ65JFfLIepNlHrwvM --dependency=containers=containers-0.5.7.1 --dependency=directory=directory-1.3.0.0 --dependency=exceptions=exceptions-0.8.3-ADEDRATtUrMK1JW4zMQ9U --dependency=lifted-async=lifted-async-0.9.3-JjFV9uInDn5I3chvnlR5nT --dependency=mmorph=mmorph-1.0.9-5bASEvmIkr5CpdAYXwPsn0 --dependency=monad-control=monad-control-1.0.2.1-CqOqIBYVBjy1GnPfyWnFHC --dependency=mtl=mtl-2.2.1-BLKBelFsPB3BoFeSWSOYj6 --dependency=pretty-show=pretty-show-1.6.13-LSgpbeg7Zcd2id7s8ra4bM --dependency=primitive=primitive-0.6.1.0-6AbSTw9JXz141LE5p6LGH --dependency=random=random-1.1-9tceXaeYIMZ4JrKq20Egog --dependency=resourcet=resourcet-1.1.9-4kJNagEzSAo2Kfakyf6y5E --dependency=stm=stm-2.4.4.1-JQn4hNPyYjP5m9AcbI88Ve --dependency=template-haskell=template-haskell-2.11.1.0 --dependency=text=text-1.2.2.1-Ji7hMs2U4BkBwavd4taEVR --dependency=th-lift=th-lift-0.7.7-JWI9Gh7wB0MC9Q5wqv5aoI --dependency=time=time-1.6.0.1 --dependency=transformers=transformers-0.5.2.0 --dependency=transformers-base=transformers-base-0.4.4-GKSs0LKukAL8ymq2naFmrH --dependency=wl-pprint-annotated=wl-pprint-annotated-0.0.1.4-2LVtBc7naQRFxG1fnHOmcW --extra-include-dirs=C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\include --extra-lib-dirs=C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\lib --enable-tests --enable-benchmarks
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:07.015450: [debug] Encoding <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\dist\ca59d0ab\stack-config-cache
@(Data\Store\VersionTagged.hs:51:5)
2017-07-27 21:40:07.025466: [debug] Finished writing <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\dist\ca59d0ab\stack-config-cache
@(Data\Store\VersionTagged.hs:55:5)
2017-07-27 21:40:07.034450: [debug] Encoding <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\dist\ca59d0ab\stack-cabal-mod
@(Data\Store\VersionTagged.hs:51:5)
2017-07-27 21:40:07.067451: [debug] Finished writing <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\dist\ca59d0ab\stack-cabal-mod
@(Data\Store\VersionTagged.hs:55:5)
2017-07-27 21:40:07.083451: [debug] Encoding <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\dist\ca59d0ab\stack-build-cache
@(Data\Store\VersionTagged.hs:51:5)
2017-07-27 21:40:07.092525: [debug] Finished writing <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\dist\ca59d0ab\stack-build-cache
@(Data\Store\VersionTagged.hs:55:5)
2017-07-27 21:40:07.093453: [info] hedgehog-0.5: build (lib)
@(Stack\Build\Execute.hs:830:23)
2017-07-27 21:40:07.109467: [debug] Run process: C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe --builddir=.stack-work\dist\ca59d0ab build lib:hedgehog --ghc-options " -ddump-hi -ddump-to-file"
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:07.266465: [info] Preprocessing library hedgehog-0.5...
@(Stack\Build\Execute.hs:1070:67)
2017-07-27 21:40:07.733498: [info] [ 1 of 24] Compiling Hedgehog.Internal.Source ( src\Hedgehog\Internal\Source.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Source.o ) [.stack-work\dist\ca59d0ab\build\autogen\cabal_macros.h changed]
@(Stack\Build\Execute.hs:1070:67)
2017-07-27 21:40:08.122525: [info] [ 4 of 24] Compiling Hedgehog.Internal.Seed ( src\Hedgehog\Internal\Seed.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Seed.o ) [.stack-work\dist\ca59d0ab\build\autogen\cabal_macros.h changed]
@(Stack\Build\Execute.hs:1070:67)
2017-07-27 21:40:08.536551: [info] [12 of 24] Compiling Hedgehog.Internal.Tree ( src\Hedgehog\Internal\Tree.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Tree.o ) [.stack-work\dist\ca59d0ab\build\autogen\cabal_macros.h changed]
@(Stack\Build\Execute.hs:1070:67)
2017-07-27 21:40:09.622630: [info] [19 of 24] Compiling Hedgehog.Internal.Config ( src\Hedgehog\Internal\Config.hs, .stack-work\dist\ca59d0ab\build\Hedgehog\Internal\Config.o ) [.stack-work\dist\ca59d0ab\build\autogen\cabal_macros.h changed]
@(Stack\Build\Execute.hs:1070:67)
2017-07-27 21:40:11.468758: [debug] Process finished in [92m4350ms[0m: C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe --builddir=.stack-work\dist\ca59d0ab build lib:hedgehog --ghc-options " -ddump-hi -ddump-to-file"
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:11.472759: [debug] Start: getPackageFiles <..>\Hedgehog\haskell-hedgehog\hedgehog\hedgehog.cabal
@(Stack\Package.hs:251:21)
2017-07-27 21:40:11.542766: [debug] Finished in 68ms: getPackageFiles <..>\Hedgehog\haskell-hedgehog\hedgehog\hedgehog.cabal
@(Stack\Package.hs:251:21)
2017-07-27 21:40:11.566766: [debug] Encoding <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\dist\ca59d0ab\stack-build-cache
@(Data\Store\VersionTagged.hs:51:5)
2017-07-27 21:40:11.578770: [debug] Finished writing <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\dist\ca59d0ab\stack-build-cache
@(Data\Store\VersionTagged.hs:55:5)
2017-07-27 21:40:11.580770: [info] hedgehog-0.5: copy/register
@(Stack\Build\Execute.hs:830:23)
2017-07-27 21:40:11.581770: [debug] Run process: C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe --builddir=.stack-work\dist\ca59d0ab copy
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:11.878788: [info] Installing library in
@(Stack\Build\Execute.hs:1070:67)
2017-07-27 21:40:11.882790: [info] <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\lib\x86_64-windows-ghc-8.0.2\hedgehog-0.5-Id8HxtzM2dMBNkWnCzbHJP
@(Stack\Build\Execute.hs:1070:67)
2017-07-27 21:40:11.887789: [debug] Process finished in [92m302ms[0m: C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe --builddir=.stack-work\dist\ca59d0ab copy
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:11.891790: [debug] Run process: C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe --builddir=.stack-work\dist\ca59d0ab register
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:12.200813: [info] Registering hedgehog-0.5...
@(Stack\Build\Execute.hs:1070:67)
2017-07-27 21:40:12.209813: [debug] Process finished in [92m316ms[0m: C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe --builddir=.stack-work\dist\ca59d0ab register
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:12.212813: [debug] Run process: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --user --no-user-package-db --package-db <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\pkgdb describe --simple-output hedgehog --expand-pkgroot
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:12.296004: [debug] Process finished in [92m81ms[0m: C:\Users\Nikos\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --user --no-user-package-db --package-db <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\pkgdb describe --simple-output hedgehog --expand-pkgroot
@(System\Process\Read.hs:306:3)
2017-07-27 21:40:12.299820: [debug] Encoding <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\flag-cache\hedgehog-0.5-Id8HxtzM2dMBNkWnCzbHJP
@(Data\Store\VersionTagged.hs:51:5)
2017-07-27 21:40:12.311818: [debug] Finished writing <..>\Hedgehog\haskell-hedgehog\hedgehog\.stack-work\install\2c737dac\flag-cache\hedgehog-0.5-Id8HxtzM2dMBNkWnCzbHJP
@(Data\Store\VersionTagged.hs:55:5)

moodmosaic avatar Jul 27 '17 18:07 moodmosaic

Hedgehog does compile using cabal and those dependency versions, so the problem appears to be that some package was updated on Hackage.

ttuegel avatar Jul 28 '17 15:07 ttuegel

Are you still having troubles building Hedgehog on Windows 10 with GHC 8.0.2 and cabal-install 1.24.2?

moodmosaic avatar Jul 09 '18 15:07 moodmosaic