Skip to content

GHC 7.10->8.0 regression: GHC code-generates duplicate _closures

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)
Trac metadata
Trac field Value
Version 8.0.2-rc2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information