[GHC] #16157: Duplicate symbol error on Windows

#16157: Duplicate symbol error on Windows ----------------------------------------+--------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.3 Keywords: | Operating System: Windows Architecture: Unknown/Multiple | Type of failure: None/Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: ----------------------------------------+--------------------------------- `T11072gcc` is failing on Windows with {{{ Wrong exit code for T11072gcc()(expected 0 , actual 2 ) Stderr ( T11072gcc ): GHC runtime linker: fatal error: I found a duplicate definition for symbol ghczmprim_GHCziClasses_zdp31ZLzvz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUz2cUzvZR_info whilst processing object file C:\GitLabRunner\builds\78d7d3f9\0\ghc\ghc\testsuite\tests\ghci\linking\dyn\T11072gcc.run\bin_impl_gcc\libASx.dll.a The symbol was previously defined in C:\GitLabRunner\builds\78d7d3f9\0\ghc\ghc\libraries\ghc-prim\dist- install\build\HSghc-prim-0.5.3.o This could be caused by: * Loading two different object files which export the same symbol * Specifying the same object file twice on the GHCi command line * An incorrect `package.conf' entry, causing some object to be loaded twice. ghc-stage2.exe: panic! (the 'impossible' happened) (GHC version 8.7.20190106 for x86_64-unknown-mingw32): loadArchive "C:\\GitLabRunner\\builds\\78d7d3f9\\0\\ghc\\ghc\\testsuite\\tests\\ghci\\linking\\dyn\\T11072gcc.run\\bin_impl_gcc\\libASx.dll.a": failed Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug make[2]: *** [Makefile:85: compile_libAS_impl_gcc] Error 1 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16157 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16157: Duplicate symbol error on Windows ---------------------------------+---------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.3 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 Phyx-): This is a ghc annoyance that when you use it to compile a shared library it will include haskell symbol even if they're not used, because we compile with export-all enabled. I guess I should finally bite the bullet and just use gcc directly.. The test is broken too often. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16157#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC