GHC runtime linker: fatal error: I found a duplicate definition for symbol
I found GHC panic when using both inline-c and local Win32 package.
I don't know whether it's related to #6107 (closed).
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
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.10.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler (Linking) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | x86_64 (amd64) |