Skip to content

Build error on Windows 8.1 - ghc.exe: could not execute (project Snowdrift) #466

@freeman42x

Description

@freeman42x

Steps to reproduce:

  1. Windows 8.1
  2. MinGHC 32 was already installed and on path
  3. stack setup
  4. git clone snowdrift at commit
  5. Add to stack.yaml extra-deps: - Win32-notify-0.3.0.1
  6. stack build -v
Version 0.1.1.0, Git revision 91fe70306f51eb3d68667a0d6e09a7d7ebbeb2b6
2015-07-01 01:02:56.9965918: [debug] Checking for project config at: D:\Forks\snowdrift\stack.yaml @(stack-0.1.1.0:Stack.Config src/Stack\Config.hs:489:9)
2015-07-01 01:02:56.9985939: [debug] Loading project config file stack.yaml @(stack-0.1.1.0:Stack.Config src/Stack\Config.hs:512:13)
2015-07-01 01:02:57.0176065: [debug] Run process: ghc --info @(stack-0.1.1.0:System.Process.Read src/System\Process\Read.hs:253:3)
2015-07-01 01:02:57.11467: [debug] Run process: ghc --numeric-version @(stack-0.1.1.0:System.Process.Read src/System\Process\Read.hs:253:3)
2015-07-01 01:02:57.1877188: [debug] Run process: ghc-pkg --no-user-package-db field --simple-output Cabal id @(stack-0.1.1.0:System.Process.Read src/System\Process\Read.hs:253:3)
2015-07-01 01:02:57.2702769: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack-0.1.1.0:System.Process.Read src/System\Process\Read.hs:253:3)
2015-07-01 01:02:57.3440933: [debug] Checking resolver: lts-2.13 @(stack-0.1.1.0:Stack.Build.Source src/Stack\Build\Source.hs:76:13)
2015-07-01 01:02:57.661303: [debug] Run process: ghc-pkg --global --no-user-package-db dump --expand-pkgroot @(stack-0.1.1.0:System.Process.Read src/System\Process\Read.hs:253:3)
2015-07-01 01:02:57.7593684: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db C:\Users\Razvan\AppData\Roaming\stack\snapshots\i386-windows\lts-2.13\7.8.4\pkgdb\ dump --expand-pkgroot @(stack-0.1.1.0:System.Process.Read src/System\Process\Read.hs:253:3)
2015-07-01 01:02:57.9154718: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db D:\Forks\snowdrift\.stack-work\install\i386-windows\lts-2.13\7.8.4\pkgdb\ dump --expand-pkgroot @(stack-0.1.1.0:System.Process.Read src/System\Process\Read.hs:253:3)
2015-07-01 01:02:58.5938451: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack-0.1.1.0:System.Process.Read src/System\Process\Read.hs:253:3)
2015-07-01 01:02:58.7049195: [info] Snowdrift-0.1.4: build @(stack-0.1.1.0:Stack.Build.Execute src/Stack\Build\Execute.hs:478:18)
2015-07-01 01:02:58.7049195: [debug] Run process: C:\Haskell\minghc-7.8.4-i386\ghc-7.8.4\bin\runhaskell.exe -package=Cabal-1.18.1.5 -clear-package-db -global-package-db -package-db=C:\Users\Razvan\AppData\Roaming\stack\snapshots\i386-windows\lts-2.13\7.8.4\pkgdb\ C:\Users\Razvan\AppData\Local\Temp\stack187816\Setup.hs --builddir=.stack-work\dist\i386-windows\Cabal-1.18.1.5\ build @(stack-0.1.1.0:Stack.Build.Execute src/Stack\Build\Execute.hs:579:13)
 @(<unknown>:<unknown> <unknown>:0:0)ilding Snowdrift-0.1.4...
 @(<unknown>:<unknown> <unknown>:0:0)eprocessing library Snowdrift-0.1.4...
 @(<unknown>:<unknown> <unknown>:0:0)n-place registering Snowdrift-0.1.4...
2015-07-01 01:03:11.3903214: [info] Preprocessing executable 'SnowdriftProcessPayments' for Snowdrift-0 @(<unknown>:<unknown> <unknown>:0:0)
2015-07-01 01:03:12.1708397: [info] Linking .stack-work\dist\i386-windows\Cabal-1.18.1.5\build\Snowdrif @(<unknown>:<unknown> <unknown>:0:0)ents.exe ...
 @(<unknown>:<unknown> <unknown>:0:0)reprocessing executable 'Snowdrift' for Snowdrift-0.1.4...
2015-07-01 01:03:47.2630841: [info] Linking .stack-work\dist\i386-windows\Cabal-1.18.1.5\build\Snowdrif @(<unknown>:<unknown> <unknown>:0:0)
2015-07-01 01:04:25.9319173: [info] Preprocessing executable 'SnowdriftEmailDaemon' for Snowdrift-0.1.4 @(<unknown>:<unknown> <unknown>:0:0)
2015-07-01 01:04:28.4115598: [info] Linking .stack-work\dist\i386-windows\Cabal-1.18.1.5\build\Snowdrif @(<unknown>:<unknown> <unknown>:0:0) ...
2015-07-01 01:04:28.8368441: [warn] ghc.exe: could not execute: C:\Haskell\minghc-7.8.4-i386\ghc-7.8.4\ @(<unknown>:<unknown> <unknown>:0:0)

--  While building package Snowdrift-0.1.4 using:
      C:\\Haskell\\minghc-7.8.4-i386\\ghc-7.8.4\\bin\\runhaskell.exe -package=Cabal-1.18.1.5 -clear-package-db -global-package-db -package-db=C:\Users\Razvan\AppData\Roaming\stack\snapshots\i386-windows\lts-2.13\7.8.4\pkgdb\ C:\Users\Razvan\AppData\Local\Temp\stack187816\Setup.hs --builddir=.stack-work\dist\i386-windows\Cabal-1.18.1.5\ build
    Process exited with code: ExitFailure 1

The project builds fine on Linux Mint with ghc provided by stack (64 bit I assume).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions