[GHC] #16157: Duplicate symbol error on Windows

GHC ghc-devs at haskell.org
Wed Jan 9 16:15:52 UTC 2019


#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


More information about the ghc-tickets mailing list