[GHC] #11748: GHC runtime linker: fatal error: I found a duplicate definition for symbol
GHC
ghc-devs at haskell.org
Fri Apr 8 09:09:27 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) |
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
More information about the ghc-tickets
mailing list