[GHC] #11153: building lens-4.12.3 impossible happened: dupe _hs_primitive_memcpy

#11153: building lens-4.12.3 impossible happened: dupe _hs_primitive_memcpy -----------------------------------------+--------------------------------- Reporter: blippy | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: libraries (other) | Version: 7.10.2 Keywords: | Operating System: Windows Architecture: x86 | Type of failure: None/Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -----------------------------------------+--------------------------------- I issued the command: stack install lens hoping to upgrade to lens-4.13 and I received the following error log: GHC runtime linker: fatal error: I found a duplicate definition for symbol _hsprimitive_memcpy whilst processing object file C:\apps\HaskellPlatform\7.10.2-a\lib\extralibs\primitive-0.6\HSprimitive-0.6-3d4UsQu7pJCEtlsxN3gLjk.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: panic! (the 'impossible' happened) (GHC version 7.10.2 for i386-unknown-mingw32): loadObj "C:\\apps\\HaskellPlatform\\7.10.2-a\\lib\\extralibs\\primitive-0.6\\HSprimitive-0.6-3d4UsQu7pJCEtlsxN3gLjk.o": failed Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11153 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11153: building lens-4.12.3 impossible happened: dupe _hs_primitive_memcpy --------------------------------------+---------------------------------- Reporter: blippy | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: libraries (other) | Version: 7.10.2 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | --------------------------------------+---------------------------------- Changes (by thomie): * status: new => infoneeded Comment: Thanks for the report. Which version of `lens` did you have installed before? Are you able to reproduce this bug? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11153#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11153: building lens-4.12.3 impossible happened: dupe _hs_primitive_memcpy --------------------------------------+---------------------------------- Reporter: blippy | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: libraries (other) | Version: 7.10.2 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | --------------------------------------+---------------------------------- Comment (by blippy): Result of ghc-pkg list is at http://pastebin.com/h4XA7Ksy Result of stack install lens is at http://pastebin.com/Wqk7DbmK Performing cabal install lens seems to be OK though: http://pastebin.com/zxDjvP59 . lens-4.13 successfully installed. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11153#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11153: building lens-4.12.3 impossible happened: dupe _hs_primitive_memcpy --------------------------------------+---------------------------------- Reporter: blippy | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: libraries (other) | Version: 7.10.2 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | --------------------------------------+---------------------------------- Comment (by thomie): Hmm, I can't reproduce this. I installed haskell-platform 7.10.2, and then ran `stack install lens --resolver=lts-3.16`. Perhaps it really is a Windows-only bug. Part of the problem is that `haskell-platform` and `stack` don't play well together. See for example: https://mail.haskell.org/pipermail/haskell- community/2015-September/000014.html. So one solution would be to uninstall `haskell-platform`, and use only `stack`. Maybe upgrading to `haskell-platform 7.10.3` could also work (after uninstalling 7.10.2). 7.10.3 has the same version of `primitive` installed as `stack` wants to install, so that might circumvent the issue. But you might run into other problems later. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11153#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11153: building lens-4.12.3 impossible happened: dupe _hs_primitive_memcpy --------------------------------------+---------------------------------- Reporter: blippy | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: libraries (other) | Version: 7.10.2 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | --------------------------------------+---------------------------------- Comment (by Phyx-): Is this still the case with `GHC 8.0.1`? Could you output the trace from that? The duplicate error message has been improved to show where both symbols come from. That should help diagnose this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11153#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11153: building lens-4.12.3 impossible happened: dupe _hs_primitive_memcpy --------------------------------------+------------------------------ Reporter: blippy | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: libraries (other) | Version: 7.10.2 Resolution: invalid | Keywords: Operating System: Windows | Architecture: x86 Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | --------------------------------------+------------------------------ Changes (by Phyx-): * status: infoneeded => closed * resolution: => invalid Comment: No information in 10 months. Closing ticket as not reproducable. The fact that cabal works indicates this is a stack issue. If this still happens in 8.0.1 report the bug to stack. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11153#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC