Closed
Description
I can't build the current stack master (last commit is abf4ca0, a clean clone from GitHub) with stack (version is: Version 1.9.3, Git revision 40cf7b3 (6211 commits) x86_64 hpack-0.31.1, a clean download of the binary) on Windows 10. It always fails at the process-1.6.3.0
step. For example:
C:\Users\Mike Pilgrem\Documents\Code\Haskell\stack>stack install
WARNING: Ignoring out of range dependency (trusting snapshot over Hackage revisions): Cabal-2.4.0.1. lens requires: >=1.10 && <2.3
process-1.6.3.0: configure
Progress 1/54
-- While building package process-1.6.3.0 using:
C:\Users\Mike Pilgrem\AppData\Local\Temp\stack28980\process-1.6.3.0\.stack-work\dist\5c8418a7\setup\setup --builddir=.stack-work\dist\5c8418a7 configure "--with-ghc=C:\\Users\\Mike Pilgrem\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-8.2.2\\bin\\ghc.EXE" "--with-ghc-pkg=C:\\Users\\Mike Pilgrem\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-8.2.2\\bin\\ghc-pkg.EXE" --user --package-db=clear --package-db=global --package-db=C:\sr\snapshots\dbfc50c3\pkgdb --libdir=C:\sr\snapshots\dbfc50c3\lib --bindir=C:\sr\snapshots\dbfc50c3\bin --datadir=C:\sr\snapshots\dbfc50c3\share --libexecdir=C:\sr\snapshots\dbfc50c3\libexec --sysconfdir=C:\sr\snapshots\dbfc50c3\etc --docdir=C:\sr\snapshots\dbfc50c3\doc\process-1.6.3.0 --htmldir=C:\sr\snapshots\dbfc50c3\doc\process-1.6.3.0 --haddockdir=C:\sr\snapshots\dbfc50c3\doc\process-1.6.3.0 --dependency=Win32=Win32-2.5.4.1 --dependency=base=base-4.10.1.0 --dependency=deepseq=deepseq-1.4.3.0 --dependency=directory=directory-1.3.0.2 --dependency=filepath=filepath-1.4.1.2 "--extra-include-dirs=C:\\Users\\Mike Pilgrem\\AppData\\Local\\Programs\\stack\\x86_64-windows\\msys2-20180531\\mingw64\\include" "--extra-lib-dirs=C:\\Users\\Mike Pilgrem\\AppData\\Local\\Programs\\stack\\x86_64-windows\\msys2-20180531\\mingw64\\bin" "--extra-lib-dirs=C:\\Users\\Mike Pilgrem\\AppData\\Local\\Programs\\stack\\x86_64-windows\\msys2-20180531\\mingw64\\lib"
Process exited with code: ExitFailure 77
Logs have been written to: C:\Users\Mike Pilgrem\Documents\Code\Haskell\stack\.stack-work\logs\process-1.6.3.0.log
[1 of 2] Compiling Main ( C:\Users\Mike Pilgrem\AppData\Local\Temp\stack28980\process-1.6.3.0\Setup.hs, C:\Users\Mike Pilgrem\AppData\Local\Temp\stack28980\process-1.6.3.0\.stack-work\dist\5c8418a7\setup\Main.o )
[2 of 2] Compiling StackSetupShim ( C:\sr\setup-exe-src\setup-shim-Z6RU0evB.hs, C:\Users\Mike Pilgrem\AppData\Local\Temp\stack28980\process-1.6.3.0\.stack-work\dist\5c8418a7\setup\StackSetupShim.o )
Linking C:\Users\Mike Pilgrem\AppData\Local\Temp\stack28980\process-1.6.3.0\.stack-work\dist\5c8418a7\setup\setup.exe ...
Configuring process-1.6.3.0...
configure: WARNING: unrecognized options: --with-compiler
configure: loading site script /usr/local/etc/config.site
checking for gcc... C:\Users\Mike Pilgrem\AppData\Local\Programs\stack\X86_64~1\GHC-82~1.2\mingw\bin\gcc.exe
checking whether the C compiler works... no
configure: error: in `/c/Users/Mike Pilgrem/AppData/Local/Temp/stack28980/process-1.6.3.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
Given the reference in the error message above to gcc
, in case it is relevant:
C:\Users\Mike Pilgrem\Documents\Code\Haskell\stack>stack exec where -- gcc
C:\Users\Mike Pilgrem\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\mingw\bin\gcc.exe
C:\Program Files\Haskell Platform\8.6.3\mingw\bin\gcc.exe
C:\Users\Mike Pilgrem\Documents\Code\Haskell\stack>stack exec gcc -- --version
realgcc.exe (Rev2, Built by MSYS2 project) 6.2.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.