Opened 10 years ago

Last modified 4 years ago

#3782 new bug

Data Parallel "Impossible happened" compiler error

Reported by: guest Owned by: benl
Priority: low Milestone:
Component: Data Parallel Haskell Version: 6.12.1
Keywords: Cc: rl@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: #7330 Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description (last modified by igloo)

When I attempted to compile my vectorized code , I got the following message:

ghc -c -Odph -fcpr-off -fdph-seq newprop.hs
ghc: panic! (the 'impossible' happened)
  (GHC version 6.12.1 for i386-apple-darwin):
	sumTyCon 11

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Attachments (1)

newprop.hs (11.3 KB) - added by guest 10 years ago.

Download all attachments as: .zip

Change History (19)

Changed 10 years ago by guest

Attachment: newprop.hs added

comment:1 Changed 10 years ago by igloo

Description: modified (diff)

comment:2 Changed 10 years ago by igloo

Component: CompilerData Parallel Haskell
Milestone: 6.12.2

Thanks for the report. This also happens in the HEAD and 6.12 branches.

comment:3 Changed 10 years ago by simonmar

Cc: rl@… added

Roman, have you seen this?

comment:4 Changed 10 years ago by rl

Owner: set to rl

Oops, no, I missed it. Thanks! The problem is that at the moment, DPH doesn't handle sum types with more than 2 constructors. This is basically a question of implementing the relevant library functions but there are a lot of them and unfortunately, I doubt we'll this any time soon. I'll try to make the message more informative, though.

comment:5 Changed 10 years ago by igloo

Milestone: 6.12.26.12.3
Priority: normalhigh

We should try to get a better error into 6.12.3.

comment:6 Changed 9 years ago by igloo

Milestone: 6.12.36.14.1

comment:7 Changed 9 years ago by simonmar

Owner: changed from rl to benl

Ben: since Roman is no longer working on this, it falls to you I'm afraid :)

comment:8 Changed 9 years ago by simonpj

Ben: ok to leave this unfixed? RSVP.

comment:9 Changed 9 years ago by benl

I doubt we'll support data types with 11 constructors soon, but I'll see about making the error message nicer tomorrow.

comment:10 Changed 9 years ago by benl

Beautified by

Thu Oct 28 23:33:20 PDT 2010  benl@ouroborus.net
* Nicer error message for #3782
 It now says:

 ghc-stage2: sorry! (this is work in progress)
   (GHC version 7.1.20101028 for i386-apple-darwin):
 	Vectorise.Builtins.indexBuiltin

     DPH builtin function 'sumTyCon' of size '11' is not yet implemented.
     This function does not appear in your source program, but it is needed
     to compile your code in the backend. This is a known, current limitation
     of DPH. If you want it to to work you should send mail to cvs-ghc@haskell.org
     and ask what you can do to help (it might involve some GHC hacking).


 I added 'pprSorry' that behaves like 'pprPanic' except it say sorry! instead 
 of panic!, and doesn't ask the user to report a bug. 

comment:11 Changed 9 years ago by igloo

Milestone: 7.0.17.2.1
Priority: highnormal

Merged.

comment:12 Changed 8 years ago by igloo

Milestone: 7.4.17.6.1
Priority: normallow

comment:13 Changed 7 years ago by igloo

Milestone: 7.6.17.6.2

comment:14 Changed 7 years ago by benl

Blocked By: 7330 added

comment:15 Changed 5 years ago by thoughtpolice

Milestone: 7.6.27.10.1

Moving to 7.10.1.

comment:16 Changed 5 years ago by thoughtpolice

Milestone: 7.10.17.12.1

Moving to 7.12.1 milestone; if you feel this is an error and should be addressed sooner, please move it back to the 7.10.1 milestone.

comment:17 Changed 4 years ago by thoughtpolice

Milestone: 7.12.18.0.1

Milestone renamed

comment:18 Changed 4 years ago by bgamari

Milestone: 8.0.1

Moving DPH tickets out to _|_ as the project is more or less stagnant.

Note: See TracTickets for help on using tickets.