Skip to content

Install fails on windows and stack for ghc-8.6.5: duplicate def of aToWordzh #90

Closed
@jneira

Description

@jneira
  • windows 10, ghc-8.6.5 and stack-2.3.1
  • stack intall.hs hls-8.6.5 fails with:
haskell-language-server          > GHC runtime linker: fatal error: I found a duplicate definition for symbol
haskell-language-server          >    aToWordzh
haskell-language-server          > whilst processing object file
haskell-language-server          >    D:\bin\stack\x86_64-windows\ghc-8.6.5\lib\ghc-heap-8.6.5\HSghc-heap-8.6.5.o
haskell-language-server          > The symbol was previously defined in
haskell-language-server          >    C:\sr\snapshots\9070fc3e\lib\x86_64-windows-ghc-8.6.5\ghc-lib-parser-8.10.1.20200412-2BSV0WaFUv7bn4MuxkBnD\HSghc-lib-parser-8.10.1.20200412-2BSV0WaFUv7bn4MuxkBnD.o
haskell-language-server          > This could be caused by:
haskell-language-server          >    * Loading two different object files which export the same symbol
haskell-language-server          >    * Specifying the same object file twice on the GHCi command line
haskell-language-server          >    * An incorrect `package.conf' entry, causing some object to be
haskell-language-server          >      loaded twice.
haskell-language-server          > ghc.exe: panic! (the 'impossible' happened)
haskell-language-server          >   (GHC version 8.6.5 for x86_64-unknown-mingw32):
haskell-language-server          >      loadObj "D:\\bin\\stack\\x86_64-windows\\ghc-8.6.5\\lib\\ghc-heap-8.6.5\\HSghc-heap-8.6.5.o": failed
haskell-language-server          > Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
haskell-language-server          >

--  While building package haskell-language-server-0.1.0.0 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.4.0.1_ghc-8.6.5.exe --builddir=.stack-work\dist\e626a42b build lib:haskell-language-server lib:hls-test-utils exe:haskell-language-server exe:haskell-language-server-wrapper --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
)
  • it works with cabal: cabal-hls-install hls-8.6.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIContinuous integrationcan-workaroundos: windowstype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions