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

#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

#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) | Resolution: | 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: | -------------------------------------+------------------------------------- Changes (by jeiea): * Attachment "ghc-bug-maybe.7z" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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) | Resolution: | 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: | -------------------------------------+------------------------------------- Comment (by Phyx-): Hi, thanks for the report! This is likely related to #11223 I will test to see if my local branch solves this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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) | Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash | Test Case: Blocked By: | Blocking: Related Tickets: #11223 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * related: => #11223 Comment: The dependency list for the example is quite large, including lots of packages that haven't been updated for 8.0 yet. As such it's quite difficult to reproduce and check on HEAD. For now, I'll assume that this is a duplicate of #11223 since that should fix a lot of these duplicate symbols errors. Can you perhaps trim the amount of packages needed in the example? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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) | Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash | Test Case: Blocked By: | Blocking: Related Tickets: #11223 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by jeiea): It is simplified drastically. I found just using foreign imported rgb function from other package emits same error. But I don't know whether its cause is same to original project. {{{
stack build child1-0.1.0.0: configure child1-0.1.0.0: build child1-0.1.0.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:ghc-bug-maybe-exe --ghc-options " -ddump-hi -ddump-to-file" Process exited with code: ExitFailure 1 Logs have been written to: D:\ghc-bug-maybe-2\.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 ) In-place registering ghc-bug-maybe-0.1.0.0... Preprocessing executable 'ghc-bug-maybe-exe' for ghc-bug- maybe-0.1.0.0... [1 of 1] Compiling Main ( app\Main.hs, .stack- work\dist\2672c1f3\build\ghc-bug-maybe-exe\ghc-bug-maybe-exe-tmp\Main.o ) Linking .stack-work\dist\2672c1f3\build\ghc-bug-maybe-exe\ghc-bug- maybe-exe.exe ... D:\ghc-bug-maybe2\.stack-work\install\b67103b8\lib\x86_64-windows- ghc-7.10.3\child1-0.1.0.0-CPbTpkFzTQ4DOsiuVDCvQJ/libHSchild1-0.1.0.0-CPbTpkFzTQ4DOsiuVDCvQJ.a(Lib.o):fake:(.text+0x6f): undefined reference to `rgb' collect2.exe: error: ld returned 1 exit status }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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) | Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash | Test Case: Blocked By: | Blocking: Related Tickets: #11223 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by jeiea): * Attachment "ghc-bug-maybe-2.7z" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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) | Resolution: | 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: | -------------------------------------+------------------------------------- Changes (by Phyx-): * related: #11223 => Comment: I can't seem to reproduce this even on `7.10.3`. {{{ $ ghc --interactive Lib GHCi, version 7.10.3: http://www.haskell.org/ghc/ :? for help [1 of 1] Compiling Lib ( Lib.hs, interpreted ) Ok, modules loaded: Lib. *Lib> :browse main :: IO () *Lib> main 460035 hello *Lib> }}} I'm not sure what stack is doing, but in your cabal file you specify a `Lib.c` and a `Lib.hs` in the same folder. What is most likely happening is that both compile to `Lib.o` and the wrong object file is loaded. The package doesn't compile either on a normal compile. try renaming `Lib.hs` to something else. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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) | Resolution: | 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: | -------------------------------------+------------------------------------- Comment (by jeiea): Followed your instruction after {{{stack clean}}}, still same error message occurred. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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) | Resolution: | 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: | -------------------------------------+------------------------------------- Comment (by Phyx-): Hi, Can you attach the verbose output of `stack build` e.g. `stack build --verbose=true`. I need to know what it's passing to `GHC`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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) | Resolution: | 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: | -------------------------------------+------------------------------------- Changes (by jeiea): * Attachment "result.txt" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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) | Resolution: | 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: | -------------------------------------+------------------------------------- Comment (by jeiea): Ah... I notice it's not same error now. Although I don't know why undefined symbol error occurred. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11748: GHC runtime linker: fatal error: I found a duplicate definition for symbol
-------------------------------------+-------------------------------------
Reporter: jeiea | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.3
(Linking) |
Resolution: duplicate | Keywords:
Operating System: Windows | Architecture: x86_64
Type of failure: Compile-time | (amd64)
crash | Test Case:
Blocked By: | Blocking:
Related Tickets: #11223 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Changes (by Phyx-):
* status: new => closed
* resolution: => duplicate
* related: => #11223
Comment:
Right, looking at it more closely, I think I understand the problem.
The `Win32` package already provides a function named `rgb`.
Due to the call `C.include "

#11748: GHC runtime linker: fatal error: I found a duplicate definition for symbol -------------------------------------+------------------------------------- Reporter: jeiea | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 (Linking) | Resolution: duplicate | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash | Test Case: Blocked By: | Blocking: Related Tickets: #11223 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by jeiea): I checked that the problem remains on ghc 8.0.2, and also found similar error message when building ghc-mod. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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) | Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash | Test Case: Blocked By: | Blocking: Related Tickets: #11223 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by jeiea): * status: closed => new * resolution: duplicate => -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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) | Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash | Test Case: Blocked By: | Blocking: Related Tickets: #11223 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by jeiea): It's strange, Building ghc-mod succeeds on ghc-8.0.1 but fails on ghc-8.0.2. My attached file consistently fails on both version. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11748: GHC runtime linker: fatal error: I found a duplicate definition for symbol -------------------------------------+------------------------------------- Reporter: jeiea | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 7.10.3 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: #11223 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * component: Compiler (Linking) => Template Haskell * architecture: x86_64 (amd64) => Unknown/Multiple Comment: The linker didn't change between `8.0.1` and `8.0.2`. I think this is a general limitation of TH. At least the current implementation. The linker is correct in saying you have a duplicate symbol. One is coming from the code that `inline-c` generates, which ends up producing a symbol called `rgb` (probably from the macro `RGB` in `windows.h`). The second comes from the `Win32` package. The `8.0.2` linker should have explicitly pointed these out. The issue is that TH uses a version of `Win32` that has all the symbols in the same object file. So the link has no choice but to load it all, even if you don't use `rgb` because it's in the same object file. If instead TH would use the archive instead of the `whole-package-as-object-file` variant then it should work. I'll leave this open so someone who knows more about TH can comment on the issue. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:12 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11748: GHC runtime linker: fatal error: I found a duplicate definition for symbol -------------------------------------+------------------------------------- Reporter: jeiea | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 7.10.3 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: #11223 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * cc: rwbarton (added) Comment: @rwbarton I believe you're the TH guy right? Any thoughts here? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:13 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11748: GHC runtime linker: fatal error: I found a duplicate definition for symbol -------------------------------------+------------------------------------- Reporter: jeiea | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 7.10.3 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: #11223 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by rwbarton): The original issue turns out to be simply due to the fact that `inline-c` depends on `Win32` (via `directory`), and your program's cabal file states a dependency on your local version `Win32a`. `Win32` defines functions like `rgb` as wrappers around Windows API macros and your clone `Win32a` also defines functions with the same names. So you do have duplicate definitions for symbols. The issue doesn't have anything to do with `inline-c` besides the fact that it is causing the real `Win32` to be linked in. The issue is that, unlike symbols that come from Haskell functions, we don't mangle the symbols defined in C source files with the package identifier. I think there is a ticket about changing this, but for now it's a known limitation that you have to ensure that symbol names in C files you link in globally unique. Using the symbol name `rgb` in `Win32` is really not very good, as it is fairly likely to collide with someone else's symbol, and we should change that. In the `unix` package, we use symbol names like `__hsunix_ptsname`. However using a more GHC-specific symbol name would not help here, since you copied the `Win32` source into your own package. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:14 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11748: GHC runtime linker: fatal error: I found a duplicate definition for symbol -------------------------------------+------------------------------------- Reporter: jeiea | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 7.10.3 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: #11223 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by rwbarton): Also, what Phyx- says about TH loading the `.a` file instead of the `.o` file is probably true, since you don't actually use the object file that defines `rgb`. I guess it's possible that without TH your program would actually link successfully, for the same reason. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:15 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11748: GHC runtime linker: fatal error: I found a duplicate definition for symbol -------------------------------------+------------------------------------- Reporter: jeiea | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 7.10.3 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: #11223 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by rwbarton): In the second reproducer, `child1`'s module `Lib` calls `rgb`, which is supposed to be defined by `child1`'s `HsGDI.c`. But the library `child1` does not have `c-sources: src/HsGDI.c`, only the (irrelevant) `child1-exe` does. It happens that `ghc-bug-maybe-exe` links indirectly against `Win32` (via `inline-c`), which coincidentally would provide a symbol `rgb`, but because there is no dependency of `child1` on `Win32`, it happened that `Win32` was given before `child1` on the linker command line and so the linker didn't know that there would be a reference to `rgb` when it processed `Win32`. The right thing to do of course is to specify `c-sources: src/HsGDI.c` in the `child1` ''library'' section; then you might get a duplicate symbol error again, because you chose the same name as `Win32` did. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:16 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11748: GHC runtime linker: fatal error: I found a duplicate definition for symbol -------------------------------------+------------------------------------- Reporter: jeiea | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Template Haskell | Version: 7.10.3 Resolution: invalid | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: #11223 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by rwbarton): * status: new => closed * resolution: => invalid -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:17 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11748: GHC runtime linker: fatal error: I found a duplicate definition for symbol -------------------------------------+------------------------------------- Reporter: jeiea | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Template Haskell | Version: 7.10.3 Resolution: invalid | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: #11223 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by rwbarton): By the way, if ghc-mod doesn't build with ghc-8.0.2, please open a new ticket! Linkers are remarkably complicated beasts and every linker error is a unique snowflake. Having the two issues in the original report and in comment:3 on this ticket was already a little bit confusing. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:18 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11748: GHC runtime linker: fatal error: I found a duplicate definition for symbol -------------------------------------+------------------------------------- Reporter: jeiea | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Template Haskell | Version: 7.10.3 Resolution: invalid | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: #11223 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by jeiea): ghc-mod problem turns out to be my fault that I was using haskell.org ghc distribution rather than github commercialhaskell/ghc release distribution. I submitted `rgb` symbol ticket by shallow thought caused from last phrase 'reportabug'. I thought ghc can ensure successful build despite this situation. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:19 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11748: GHC runtime linker: fatal error: I found a duplicate definition for symbol -------------------------------------+------------------------------------- Reporter: jeiea | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Template Haskell | Version: 7.10.3 Resolution: invalid | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: #11223 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): BTW rwbarton, is #9351 the globally unique symbol names ticket you alluded to in comment:14? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:20 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11748: GHC runtime linker: fatal error: I found a duplicate definition for symbol -------------------------------------+------------------------------------- Reporter: jeiea | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Template Haskell | Version: 7.10.3 Resolution: invalid | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: #11223 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by rwbarton): Yep that's the one I was thinking of, thanks. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11748#comment:21 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC