Skip to content

Installing math-functions with GHC-8.2.1 on windows crashed

I use the ghc-8.2.1 in Windows. When install math-functions, ghc crash. The following is the output.

λ  stack install math-functions
math-functions-0.2.1.0: configure
math-functions-0.2.1.0: build

--  While building package math-functions-0.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 255
    Logs have been written to: A:\Glob\.stack-work\logs\math-functions-0.2.1.0.log

    Configuring math-functions-0.2.1.0...
    Preprocessing library for math-functions-0.2.1.0..
    Building library for math-functions-0.2.1.0..
    [ 1 of 10] Compiling Numeric.MathFunctions.Comparison ( Numeric\MathFunctions\Comparison.hs, .stack-work\dist\e53504d9\build\Numeric\MathFunctions\Comparison.o )
    [ 2 of 10] Compiling Numeric.MathFunctions.Constants ( Numeric\MathFunctions\Constants.hs, .stack-work\dist\e53504d9\build\Numeric\MathFunctions\Constants.o )
    [ 3 of 10] Compiling Numeric.Polynomial ( Numeric\Polynomial.hs, .stack-work\dist\e53504d9\build\Numeric\Polynomial.o )
    [ 4 of 10] Compiling Numeric.Polynomial.Chebyshev ( Numeric\Polynomial\Chebyshev.hs, .stack-work\dist\e53504d9\build\Numeric\Polynomial\Chebyshev.o )
    [ 5 of 10] Compiling Numeric.RootFinding ( Numeric\RootFinding.hs, .stack-work\dist\e53504d9\build\Numeric\RootFinding.o )
    [ 6 of 10] Compiling Numeric.Series   ( Numeric\Series.hs, .stack-work\dist\e53504d9\build\Numeric\Series.o )
    [ 7 of 10] Compiling Numeric.SpecFunctions.Internal ( Numeric\SpecFunctions\Internal.hs, .stack-work\dist\e53504d9\build\Numeric\SpecFunctions\Internal.o )

    C:\Users\qinka\AppData\Local\Temp\stack12716\math-functions-0.2.1.0\Numeric\SpecFunctions\Internal.hs:24:1: warning: [-Wunused-imports]
        The import of 鈥榚xpm1鈥?from module 鈥楪HC.Float鈥?is redundant
       |
    24 | import GHC.Float (log1p,expm1)
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [ 8 of 10] Compiling Numeric.SpecFunctions.Extra ( Numeric\SpecFunctions\Extra.hs, .stack-work\dist\e53504d9\build\Numeric\SpecFunctions\Extra.o )
    [ 9 of 10] Compiling Numeric.SpecFunctions ( Numeric\SpecFunctions.hs, .stack-work\dist\e53504d9\build\Numeric\SpecFunctions.o )
    [10 of 10] Compiling Numeric.Sum      ( Numeric\Sum.hs, .stack-work\dist\e53504d9\build\Numeric\Sum.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.
Trac metadata
Trac field Value
Version 8.2.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown/Multiple
Architecture x86_64 (amd64)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information