
#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