[GHC] #13043: GHC 7.10->8.0 regression: GHC code-generates duplicate _closures

GHC ghc-devs at haskell.org
Fri Dec 30 09:20:21 UTC 2016


#13043: GHC 7.10->8.0 regression: GHC code-generates duplicate _closures
-------------------------------------+-------------------------------------
           Reporter:  hvr            |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:  8.0.2
          Component:  Compiler       |           Version:  8.0.2-rc2
           Keywords:                 |  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:
-------------------------------------+-------------------------------------
 Giving GHC 8.0.2rc2 a closer look I stumbled over this one:

 This works fine in GHC 7.10.3, but fails to compile with GHC 8.0.2rc2:

 {{{
 Resolving dependencies...
 In order, the following will be built (use -v for more details):
  - vivid-0.1.0.3 {vivid-0.1.0.3-inplace} (lib) (first run)
 Configuring component lib from vivid-0.1.0.3...
 Preprocessing library vivid-0.1.0.3...
 [ 1 of 10] Compiling Vivid.SynthDef.Types ( Vivid/SynthDef/Types.hs,
 /tmp/vivid-0.1.0.3/dist-
 newstyle/build/x86_64-linux/ghc-8.0.1.20161213/vivid-0.1.0.3/build/Vivid/SynthDef/Types.o
 )
 [ 2 of 10] Compiling Vivid.SynthDef.CrazyTypes (
 Vivid/SynthDef/CrazyTypes.hs, /tmp/vivid-0.1.0.3/dist-
 newstyle/build/x86_64-linux/ghc-8.0.1.20161213/vivid-0.1.0.3/build/Vivid/SynthDef/CrazyTypes.o
 )
 [ 3 of 10] Compiling Vivid.OSC.Util   ( Vivid/OSC/Util.hs,
 /tmp/vivid-0.1.0.3/dist-
 newstyle/build/x86_64-linux/ghc-8.0.1.20161213/vivid-0.1.0.3/build/Vivid/OSC/Util.o
 )
 [ 4 of 10] Compiling Vivid.SynthDef.Literally (
 Vivid/SynthDef/Literally.hs, /tmp/vivid-0.1.0.3/dist-
 newstyle/build/x86_64-linux/ghc-8.0.1.20161213/vivid-0.1.0.3/build/Vivid/SynthDef/Literally.o
 )
 [ 5 of 10] Compiling Vivid.OSC        ( Vivid/OSC.hs, /tmp/vivid-0.1.0.3
 /dist-
 newstyle/build/x86_64-linux/ghc-8.0.1.20161213/vivid-0.1.0.3/build/Vivid/OSC.o
 )
 [ 6 of 10] Compiling Vivid.SCServer   ( Vivid/SCServer.hs,
 /tmp/vivid-0.1.0.3/dist-
 newstyle/build/x86_64-linux/ghc-8.0.1.20161213/vivid-0.1.0.3/build/Vivid/SCServer.o
 )
 /tmp/ghc12095_0/ghc_27.s: Assembler messages:

 /tmp/ghc12095_0/ghc_27.s:5860:0: error:
      Error: symbol
 `vividzm0zi1zi0zi3zminplace_VividziSCServer_scServerState_closure' is
 already defined

 /tmp/ghc12095_0/ghc_27.s:10988:0: error:
      Error: symbol
 `vividzm0zi1zi0zi3zminplace_VividziSCServer_scServerState_closure' is
 already defined

 /tmp/ghc12095_0/ghc_27.s:11751:0: error:
      Error: symbol
 `vividzm0zi1zi0zi3zminplace_VividziSCServer_scServerState_closure' is
 already defined
 `gcc' failed in phase `Assembler'. (Exit code: 1)

 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13043>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list