[GHC] #14053: Runtime linker failed due to a duplicate symbol definition

#14053: Runtime linker failed due to a duplicate symbol definition -------------------------------------+------------------------------------- Reporter: | Owner: (none) SwiftsNamesake | Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 (Linking) | Keywords: linker, | Operating System: Unknown/Multiple windows | Architecture: | Type of failure: Compile-time Unknown/Multiple | crash or panic Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- {{{ Preprocessing library Pixels-0.1.0.0... [1 of 9] Compiling Pixels.Walker ( src\Pixels\Walker.hs, .stack- work\dist\ca59d0ab\build\Pixels\Walker.o ) [2 of 9] Compiling Pixels.Types ( src\Pixels\Types.hs, .stack- work\dist\ca59d0ab\build\Pixels\Types.o ) GHC runtime linker: fatal error: I found a duplicate definition for symbol runInteractiveProcess whilst processing object file C:\Users\Jonatan\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\lib\process-1.4.3.0\HSprocess-1.4.3.0.o The symbol was previously defined in C:\sr\snapshots\55a68d16\lib\x86_64-windows- ghc-8.0.2\process-1.4.2.0-KoK49SuYVPk1TQ4YVt6ZK5\HSprocess-1.4.2.0-KoK49SuYVPk1TQ4YVt6ZK5.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 8.0.2 for x86_64-unknown-mingw32): loadObj "C:\\Users\\Jonatan\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-8.0.2\\lib\\process-1.4.3.0\\HSprocess-1.4.3.0.o": failed CallStack (from HasCallStack): error, called at libraries\ghci\GHCi\ObjLink.hs:97:21 in ghci-8.0.2:GHCi.ObjLink Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} OS: Windows 10 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14053 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14053: Runtime linker failed due to a duplicate symbol definition -------------------------------------+------------------------------------- Reporter: SwiftsNamesake | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 (Linking) | Keywords: linker, Resolution: | windows Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: new => infoneeded Comment: Where can we find the code this is from? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14053#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14053: Runtime linker failed due to a duplicate symbol definition -------------------------------------+------------------------------------- Reporter: SwiftsNamesake | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 (Linking) | Keywords: linker, Resolution: | windows Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by SwiftsNamesake): It's one of my own projects. I suppose I could put it up on GitHub. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14053#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14053: Runtime linker failed due to a duplicate symbol definition -------------------------------------+------------------------------------- Reporter: SwiftsNamesake | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 (Linking) | Keywords: linker, Resolution: | windows Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): Please do! There's not much we can do to diagnose the issue unless we have something to work with. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14053#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14053: Runtime linker failed due to a duplicate symbol definition -------------------------------------+------------------------------------- Reporter: SwiftsNamesake | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 (Linking) | Keywords: linker, Resolution: | windows Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by SwiftsNamesake): I'm using stack if that's any help. I'll upload the project when I have time. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14053#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14053: Runtime linker failed due to a duplicate symbol definition -------------------------------------+------------------------------------- Reporter: SwiftsNamesake | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 (Linking) | Keywords: linker, Resolution: | windows Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by SwiftsNamesake): * os: Unknown/Multiple => Windows -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14053#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14053: Runtime linker failed due to a duplicate symbol definition -------------------------------------+------------------------------------- Reporter: SwiftsNamesake | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 (Linking) | Keywords: linker, Resolution: | windows Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by SwiftsNamesake): OS is Windows 10, by the way. Tried to edit the report, but that was rejected as spam for some inscrutable reason. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14053#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14053: Runtime linker failed due to a duplicate symbol definition -------------------------------------+------------------------------------- Reporter: SwiftsNamesake | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 (Linking) | Keywords: linker, Resolution: | windows Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by SwiftsNamesake): As per Ryan's request: https://github.com/SwiftsNamesake/Pixels -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14053#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14053: Runtime linker failed due to a duplicate symbol definition -------------------------------------+------------------------------------- Reporter: SwiftsNamesake | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 (Linking) | Keywords: linker, Resolution: invalid | windows Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: infoneeded => closed * resolution: => invalid Comment: That... is a very long list of dependencies.. The linker is correct in complaining. You're loading somehow two different versions of `process` at the same time in the same program. This would indeed lead to symbols duplication. You need to find out where in your project the dependency to `process-1.4.2.0` and `process-1.4.3.0` come from. My guess is your package configuration is messed up(check `ghc-pkg check`). Or a bug I the constraint solver for stack or cabal. But it's not a GHC bug, it's correctly rejecting loading a duplicate module. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14053#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14053: Runtime linker failed due to a duplicate symbol definition -------------------------------------+------------------------------------- Reporter: SwiftsNamesake | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 (Linking) | Keywords: linker, Resolution: invalid | windows Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by SwiftsNamesake): Thought as much, but the error message encouraged me to file a bug report so I did -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14053#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14053: Runtime linker failed due to a duplicate symbol definition -------------------------------------+------------------------------------- Reporter: SwiftsNamesake | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 (Linking) | Keywords: linker, Resolution: invalid | windows Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): No worries! Appreciate the report, I prefer to get it than not and it turning out to be an actual bug :) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14053#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC