[GHC] #12663: amazonka-ec2 fails to build with --split-objs

#12663: amazonka-ec2 fails to build with --split-objs -------------------------------------+------------------------------------- Reporter: joehillen | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Linux Architecture: | Type of failure: Compile-time Unknown/Multiple | crash Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I've created a repo for reproducing this bug: https://github.com/joehillen/ec2-split-objs-bug The bug can appear as either: {{{ [189 of 207] Compiling Network.AWS.EC2.Waiters ( gen/Network/AWS/EC2/Waiters.hs, .stack- work/dist/x86_64-linux/Cabal-1.24.0.0/build/Network/AWS/EC2/Waiters.o ) [190 of 207] Compiling Network.AWS.EC2.DeleteVPNConnection ( gen/Network/AWS/EC2/DeleteVPNConnection.hs, .stack- work/dist/x86_64-linux/Cabal-1.24.0.0/build/Network/AWS/EC2/DeleteVPNConnection.o ) ghc: panic! (the 'impossible' happened) (GHC version 8.0.1 for x86_64-unknown-linux): tyThingTyCon Identifier ‘$fFoldableFirst_$cfold’ Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} or {{{ [189 of 207] Compiling Network.AWS.EC2.Waiters ( gen/Network/AWS/EC2/Waiters.hs, .stack- work/dist/x86_64-linux/Cabal-1.24.0.0/build/Network/AWS/EC2/Waiters.o ) [190 of 207] Compiling Network.AWS.EC2.DeleteVPNConnection ( gen/Network/AWS/EC2/DeleteVPNConnection.hs, .stack- work/dist/x86_64-linux/Cabal-1.24.0.0/build/Network/AWS/EC2/DeleteVPNConnection.o ) /tmp/stack11/amazonka- ec2-1.4.3/gen/Network/AWS/EC2/DeleteVPNConnection.hs:51:25: error: • Couldn't match expected type ‘Either a0 a10’ with actual type ‘a1 -> ShowS’ • Probable cause: ‘showsPrec’ is applied to too few arguments In the first argument of ‘GHC.Show.showList__’, namely ‘(showsPrec 0)’ In the expression: GHC.Show.showList__ (showsPrec 0) In an equation for ‘showList’: showList = GHC.Show.showList__ (showsPrec 0) When typechecking the code for ‘showList’ in a derived instance for ‘Show DeleteVPNConnection’: To see the code I am typechecking, use -ddump-deriv /tmp/stack11/amazonka- ec2-1.4.3/gen/Network/AWS/EC2/DeleteVPNConnection.hs:104:23: error: • Couldn't match expected type ‘Either a2 a3’ with actual type ‘a4 -> ShowS’ • Probable cause: ‘showsPrec’ is applied to too few arguments In the first argument of ‘GHC.Show.showList__’, namely ‘(showsPrec 0)’ In the expression: GHC.Show.showList__ (showsPrec 0) In an equation for ‘showList’: showList = GHC.Show.showList__ (showsPrec 0) When typechecking the code for ‘showList’ in a derived instance for ‘Show DeleteVPNConnectionResponse’: To see the code I am typechecking, use -ddump-deriv }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12663 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12663: amazonka-ec2 fails to build with --split-objs -------------------------------------+------------------------------------- Reporter: joehillen | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by rwbarton): Could you test with 8.0.2? This looks like it might be the same issue underlying #12899. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12663#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12663: amazonka-ec2 fails to build with --split-objs -------------------------------------+------------------------------------- Reporter: joehillen | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by joehillen): Looks like it is fixed in 8.0.2. Thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12663#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12663: amazonka-ec2 fails to build with --split-objs -------------------------------------+------------------------------------- Reporter: joehillen | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Linux | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by joehillen): * status: new => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12663#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC