[GHC] #11748: GHC runtime linker: fatal error: I found a duplicate definition for symbol

GHC ghc-devs at haskell.org
Wed Mar 23 15:37:30 UTC 2016


#11748: GHC runtime linker: fatal error: I found a duplicate definition for symbol
-------------------------------------+-------------------------------------
           Reporter:  jeiea          |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  7.10.3
  (Linking)                          |
           Keywords:                 |  Operating System:  Windows
       Architecture:  x86_64         |   Type of failure:  Compile-time
  (amd64)                            |  crash
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 I found GHC panic when using both inline-c and local Win32 package.

 I don't know whether it's related to #6107.

 {{{
 D:\ghc-bug-maybe>stack build
 Win32a-2.3.1.0: build
 Win32a-2.3.1.0: copy/register
 ghc-bug-maybe-0.1.0.0: configure
 ghc-bug-maybe-0.1.0.0: build
 Completed 2 action(s).

 --  While building package ghc-bug-maybe-0.1.0.0 using:
       C:\AppData\Roaming\stack\setup-exe-cache\x86_64-windows\setup-
 Simple-Cabal-1.22.5.0-ghc-7.10.3.exe --builddir=.stack-work\dist\2672c1f3
 build lib:ghc-bug-maybe exe:DualternativeH-exe --ghc-options " -ddump-hi
 -ddump-to-file"
     Process exited with code: ExitFailure 1
     Logs have been written to: D:\ghc-bug-maybe\.stack-work\logs\ghc-bug-
 maybe-0.1.0.0.log

     Configuring ghc-bug-maybe-0.1.0.0...
     Preprocessing library ghc-bug-maybe-0.1.0.0...
     [1 of 1] Compiling Lib              ( src\Lib.hs, .stack-
 work\dist\2672c1f3\build\Lib.o )
     GHC runtime linker: fatal error: I found a duplicate definition for
 symbol
        rgb
     whilst processing object file
        D:\ghc-bug-maybe\.stack-work\install\0464eb7a\lib\x86_64-windows-
 ghc-7.10.3\Win32a-2.3.1.0-JATTCAFziPX9UILXdwDTPA\HSWin32a-2.3.1.0-JATTCAFziPX9UILXdwDTPA.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.exe: panic! (the 'impossible' happened)
       (GHC version 7.10.3 for x86_64-unknown-mingw32):
         loadObj "D:\\ghc-bug-maybe\\.stack-
 work\\install\\0464eb7a\\lib\\x86_64-windows-
 ghc-7.10.3\\Win32a-2.3.1.0-JATTCAFziPX9UILXdwDTPA\\HSWin32a-2.3.1.0-JATTCAFziPX9UILXdwDTPA.o":
 failed

     Please report this as a GHC bug:
 http://www.haskell.org/ghc/reportabug
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11748>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list