[GHC] #14168: Installing math-functions with GHC-8.2.1 on windows crashed
GHC
ghc-devs at haskell.org
Mon Sep 4 15:06:07 UTC 2017
#14168: Installing math-functions with GHC-8.2.1 on windows crashed
---------------------------------+----------------------------------------
Reporter: Qinka | Owner: (none)
Type: bug | Status: infoneeded
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
Resolution: | Keywords:
Operating System: Windows | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
---------------------------------+----------------------------------------
Comment (by Qinka):
I use the PowerShell, and it is same when I use the cmd.
I though this problem is not related to math-function. When I am just
trying to install something,
there is the same problem:
{{{
λ stack install glob-tool --flag glob-auth:client --flag glob-
utils:client --stack-yaml stack-8.2.1.yaml
WARNING: Ignoring out of range dependency (trusting snapshot over Hackage
revisions): Win32-2.5.4.1. mintty requires: <2.5
mintty-0.1.1: configure
aeson-1.2.1.0: download
aeson-1.2.1.0: configure
aeson-1.2.1.0: build
Progress: 2/6
-- While building package aeson-1.2.1.0 using:
C:\sr\setup-exe-cache\x86_64-windows\Cabal-
simple_Z6RU0evB_2.0.0.2_ghc-8.2.1.exe --builddir=.stack-work\dist\e53504d9
build --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 3
Logs have been written to: A:\Glob\.stack-work\logs\aeson-1.2.1.0.log
Configuring aeson-1.2.1.0...
Preprocessing library for aeson-1.2.1.0..
Building library for aeson-1.2.1.0..
[ 1 of 23] Compiling Data.Aeson.Internal.Functions (
Data\Aeson\Internal\Functions.hs, .stack-
work\dist\e53504d9\build\Data\Aeson\Internal\Functions.o )
[ 2 of 23] Compiling Data.Aeson.Parser.UnescapePure (
pure\Data\Aeson\Parser\UnescapePure.hs, .stack-
work\dist\e53504d9\build\Data\Aeson\Parser\UnescapePure.o )
[ 3 of 23] Compiling Data.Aeson.Parser.Unescape (
Data\Aeson\Parser\Unescape.hs, .stack-
work\dist\e53504d9\build\Data\Aeson\Parser\Unescape.o )
[ 4 of 23] Compiling Data.Aeson.Types.Generic (
Data\Aeson\Types\Generic.hs, .stack-
work\dist\e53504d9\build\Data\Aeson\Types\Generic.o )
[ 5 of 23] Compiling Data.Aeson.Types.Internal (
Data\Aeson\Types\Internal.hs, .stack-
work\dist\e53504d9\build\Data\Aeson\Types\Internal.o )
[ 6 of 23] Compiling Data.Aeson.Parser.Internal (
Data\Aeson\Parser\Internal.hs, .stack-
work\dist\e53504d9\build\Data\Aeson\Parser\Internal.o )
ghc.EXE: internal error: mkPath failed converting char* to wchar_t*
(GHC version 8.2.1 for x86_64_unknown_mingw32)
Please report this as a GHC bug:
http://www.haskell.org/ghc/reportabug
This application has requested the Runtime to terminate it in an
unusual way.
Please contact the application's support team for more information.
-- While building package mintty-0.1.1 using:
C:\sr\setup-exe-cache\x86_64-windows\Cabal-
simple_Z6RU0evB_2.0.0.2_ghc-8.2.1.exe --builddir=.stack-work\dist\e53504d9
configure --with-
ghc=C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\bin\ghc.EXE
--with-ghc-
pkg=C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\bin
\ghc-pkg.EXE --user --package-db=clear --package-db=global --package-
db=C:\sr\snapshots\4c52f22a\pkgdb --libdir=C:\sr\snapshots\4c52f22a\lib
--bindir=C:\sr\snapshots\4c52f22a\bin
--datadir=C:\sr\snapshots\4c52f22a\share
--libexecdir=C:\sr\snapshots\4c52f22a\libexec
--sysconfdir=C:\sr\snapshots\4c52f22a\etc
--docdir=C:\sr\snapshots\4c52f22a\doc\mintty-0.1.1
--htmldir=C:\sr\snapshots\4c52f22a\doc\mintty-0.1.1
--haddockdir=C:\sr\snapshots\4c52f22a\doc\mintty-0.1.1
--dependency=Win32=Win32-2.5.4.1 --dependency=base=base-4.10.0.0
--dependency=filepath=filepath-1.4.1.2 -f-win32-2-5 --extra-include-
dirs=C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\msys2-20161025\mingw64\include
--extra-lib-
dirs=C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\msys2-20161025\mingw64\lib
Process exited with code: ExitFailure 1
Logs have been written to: A:\Glob\.stack-work\logs\mintty-0.1.1.log
Configuring mintty-0.1.1...
Cabal-simple_Z6RU0evB_2.0.0.2_ghc-8.2.1.exe: Encountered missing
dependencies:
Win32 <2.5 && ==2.5.4.1
}}}
My ghc-8.2.1 was installed via stack.
{{{
λ stack --version
Version 1.4.0, Git revision e714f1dd3fade19496d91bd6a017e435a96a6bcd
x86_64 hpack-0.17.0
}}}
I thought my toolchain might be broken.
The ghc-8.2.1's "mingw" is replace by the msys2, which was I install with
gcc.
{{{
λ gcc --version
gcc.exe (Rev2, Built by MSYS2 project) 7.1.0
Copyright (C) 2017 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.
λ which gcc
/mingw64/bin/gcc
}}}
And unfortunately, my cabal a broken.
{{{
λ cat .\build.log
package: primitive-0.6.2.0
os: windows
arch: x86_64
compiler: ghc-8.2.1
client: cabal-install-1.24.0.2
dependencies: base-4.10.0.0 ghc-prim-0.5.1.0 transformers-0.5.2.0
install-outcome: DownloadFailed
docs-outcome: NotTried
tests-outcome: NotTried
package: vector-0.12.0.1
os: windows
arch: x86_64
compiler: ghc-8.2.1
client: cabal-install-1.24.0.2
flags: -wall -unsafechecks -internalchecks boundschecks
dependencies: base-4.10.0.0 deepseq-1.4.3.0 ghc-prim-0.5.1.0
primitive-0.6.2.0
install-outcome: DependencyFailed primitive-0.6.2.0
docs-outcome: NotTried
tests-outcome: NotTried
package: vector-th-unbox-0.2.1.6
os: windows
arch: x86_64
compiler: ghc-8.2.1
client: cabal-install-1.24.0.2
dependencies: base-4.10.0.0 template-haskell-2.12.0.0
vector-0.12.0.1
install-outcome: DependencyFailed primitive-0.6.2.0
docs-outcome: NotTried
tests-outcome: NotTried
}}}
{{{
λ cabal install math-functions --only-dependencies -v
Using a sandbox located at A:\tmp\.cabal-sandbox
"C:\Users\qinka\AppData\Roaming\local\bin\c2hs.exe" "--numeric-version"
"C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\mingw\bin\gcc.exe"
"-dumpversion"
looking for tool haddock near compiler in
C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\bin
found haddock in
C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\bin\haddock.exe
"C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\bin\haddock.exe"
"--version"
"C:\Users\qinka\AppData\Roaming\local\bin\happy.exe" "--version"
"C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\bin\hpc.exe"
"version"
looking for tool hsc2hs near compiler in
C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\bin
found hsc2hs in
C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\bin\hsc2hs.exe
"C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\bin\hsc2hs.exe"
"--version"
"C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\bin\ghc.exe"
"-hide-all-packages" "-c" "C:\Users\qinka\AppData\Local\Temp\4118467.c"
"-o" "C:\Users\qinka\AppData\Local\Temp\633426500.o"
"C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\mingw\bin\ld.exe"
"-x" "-r" "C:\Users\qinka\AppData\Local\Temp\633426500.o" "-o"
"C:\Users\qinka\AppData\Local\Temp\1916915724.o"
"C:\msys64\mingw64\bin\pkg-config.exe" "--version"
"C:\msys64\usr\bin\tar.exe" "--help"
Reading installed packages...
"C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\bin
\ghc-pkg.exe" "dump" "--package-db=A:\tmp\.cabal-sandbox\x86_64-windows-
ghc-8.2.1-packages.conf.d" "-v0"
"C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\bin\ghc.exe"
"--print-libdir"
Found no modified add-source deps.
Reading available packages...
"C:\msys64\mingw64\bin\pkg-config.exe" "--list-all"
"C:\msys64\mingw64\bin\pkg-config.exe" "--modversion" "libtasn1" "zlib"
"gobject-introspection-no-export-1.0" "theoraenc" "libecpg_compat"
"protobuf" "gio-2.0" "dbus-glib-1" "python-3.6" "libidn" "hogweed" "cairo-
gobject" "harfbuzz-icu" "opus" "libpng16" "gstreamer-net-1.0" "geoclue"
"dbus-1" "cairo-ps" "gmodule-2.0" "fftw3" "gstreamer-tag-1.0" "p11-kit-1"
"glib-2.0" "ImageMagick" "gstreamer-sdp-1.0" "libalpm" "libopenjpwl" "xpm"
"python-3.6m" "libopenjp3d" "pango" "MagickCore-7.Q16HDRI" "gdk-win32-2.0"
"libturbojpeg" "MagickWand" "fftw3f" "gstreamer-1.0" "panelw" "adwaita-
icon-theme" "fftw3l" "json-glib-1.0" "libspdylay" "gnurx" "fftw3q"
"libpcrecpp" "gdk-pixbuf-2.0" "pangoft2" "libexslt" "libprotobuf-c"
"gmodule-no-export-2.0" "gtksourceview-3.0" "libffi" "orc-0.4" "theoradec"
"libcroco-0.6" "libopenjpip" "icu-io" "liblzma" "gtk+-3.0" "lqr-1"
"gstreamer-allocators-1.0" "gobject-introspection-1.0" "Magick++"
"gtk+-win32-2.0" "javascriptcoregtk-3.0" "gstreamer-plugins-base-1.0"
"python-2.7" "lcms2" "gdk-2.0" "isl" "libcares" "libssl" "webkitgtk-3.0"
"menuw" "libsoup-2.4" "libxml-2.0" "openssl" "vorbisidec" "cairo-pdf"
"minizip" "jasper" "python" "cairo-win32-font" "expat" "gstreamer-
base-1.0" "graphite2" "libwebpdecoder" "libwebpmux" "gio-windows-2.0"
"gdk-win32-3.0" "ddjvuapi" "gstreamer-app-1.0" "gmodule-export-2.0"
"pangocairo" "libjpeg" "vorbisfile" "libpq" "sqlite3" "gnutls" "cairo-
win32" "nettle" "pixman-1" "ncurses++w" "gstreamer-check-1.0" "enchant"
"gtk+-broadway-3.0" "libpcre16" "gstreamer-controller-1.0" "libtiff-4"
"gstreamer-video-1.0" "gobject-2.0" "ImageMagick-7.Q16HDRI"
"Magick++-7.Q16HDRI" "libsoup-gnome-2.4" "libpng" "gthread-2.0" "gsl"
"libnghttp2" "libecpg" "cairo-fc" "gdk-3.0" "python2" "cairo" "libopenjp2"
"gstreamer-fft-1.0" "libpcreposix" "libwebp" "fontconfig" "gtk+-win32-3.0"
"libcrypto" "gstreamer-pbutils-1.0" "jansson" "cairo-png" "cairo-ft"
"epoxy" "pangowin32" "python3" "vorbisenc" "atk" "gstreamer-rtp-1.0"
"bzip2" "ogg" "gdk-broadway-3.0" "MagickWand-7.Q16HDRI" "icu-uc" "cairo-
svg" "gstreamer-rtsp-1.0" "regex" "ncursesw" "protobuf-lite" "shared-mime-
info" "theora" "vorbis" "harfbuzz" "lzo2" "icu-i18n" "libpgtypes"
"libpcre" "cairo-script" "libpcre32" "gstreamer-riff-1.0" "gail-3.0"
"gstreamer-audio-1.0" "cairo-tee" "freeglut" "hunspell" "MagickCore"
"fribidi" "tre" "freetype2" "librsvg-2.0" "tensorflow" "gtk+-2.0" "gail"
"harfbuzz-gobject" "raqm" "libwebpdemux" "libxslt" "bash-completion"
"oniguruma" "formw"
Choosing modular solver.
Resolving dependencies...
Notice: installing into a sandbox located at A:\tmp\.cabal-sandbox
Ready to install primitive-0.6.2.0
Downloading primitive-0.6.2.0...
Waiting for install task to finish...
Failed to install primitive-0.6.2.0
Build log ( A:\tmp\.cabal-sandbox\logs\primitive-0.6.2.0.log ):
Updating world file...
cabal.exe: Error: some packages failed to install:
primitive-0.6.2.0 failed while downloading the package. The exception was:
connect: failed (Connection timed out (WSAETIMEDOUT))
vector-0.12.0.1 depends on primitive-0.6.2.0 which failed to install.
vector-th-unbox-0.2.1.6 depends on primitive-0.6.2.0 which failed to
install.
}}}
When I try to run ghci(8.2.1)
{{{
λ ghci -v3
GHCi, version 8.2.1: http://www.haskell.org/ghc/ :? for help
Glasgow Haskell Compiler, Version 8.2.1, stage 2 booted by GHC version
8.0.2
Using binary package database:
C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\lib\package.conf.d\package.cache
package flags []
loading package database
C:\Users\qinka\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\lib\package.conf.d
wired-in package ghc-prim mapped to ghc-prim-0.5.1.0
wired-in package integer-gmp mapped to integer-gmp-1.0.1.0
wired-in package base mapped to base-4.10.0.0
wired-in package rts mapped to rts
wired-in package template-haskell mapped to template-haskell-2.12.0.0
wired-in package ghc mapped to ghc-8.2.1
wired-in package dph-seq not found.
wired-in package dph-par not found.
*** Parser [source]:
!!! Parser [source]: finished in 0.00 milliseconds, allocated 0.128
megabytes
*** Desugar:
*** Simplify [expr]:
!!! Simplify [expr]: finished in 0.00 milliseconds, allocated 0.112
megabytes
*** CorePrep [expr]:
!!! CorePrep [expr]: finished in 0.00 milliseconds, allocated 1.560
megabytes
*** ByteCodeGen [Ghci1]:
!!! ByteCodeGen [Ghci1]: finished in 0.00 milliseconds, allocated 0.135
megabytes
ghc.exe: internal error: mkPath failed converting char* to wchar_t*
(GHC version 8.2.1 for x86_64_unknown_mingw32)
Please report this as a GHC bug:
http://www.haskell.org/ghc/reportabug
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14168#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list