Ticket #3111 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

Can't find DPH

Reported by: colin-adams Owned by:
Priority: normal Milestone: 6.12.1
Component: Compiler Version: 6.11
Keywords: Cc:
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description (last modified by simonpj) (diff)

I added the following to the top of my module:

{-# LANGUAGE PArr, ParallelListComp #-}
{-# OPTIONS -fvectorise #-}

But when building I got:

GHC error in desugarer lookup in main:Board:
  Failed to load interface for `Data.Array.Parallel.Lifted.PArray':
    no package matching `dph-par' was found
ghc: panic! (the 'impossible' happened)
  (GHC version 6.11.20090317 for x86_64-unknown-linux):
	initDs IOEnv failure

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

I hadn't done anything in particular to try to install DPH, so this is probably a user error, but as the panic occurred, i felt duty-bound to report the bug as requested.

Change History

  Changed 4 years ago by simonpj

  • difficulty set to Unknown
  • description modified (diff)

What's gone wrong is that you need the DPH packages installed, else the DPH extensions won't work at all:  http://haskell.org/haskellwiki/GHC/Data_Parallel_Haskell.

Right, it's a bug that GHC crashes rather than giving a civilised error message.

Simon

follow-up: ↓ 3   Changed 4 years ago by colin-adams

That's what I thought, on both counts.

The instructions for installing the DPH packages fail at the first hurdle. Should I open a separate ticket for this, or just write an email on the ghc list?

in reply to: ↑ 2   Changed 4 years ago by chak

Replying to colin-adams:

That's what I thought, on both counts. The instructions for installing the DPH packages fail at the first hurdle. Should I open a separate ticket for this, or just write an email on the ghc list?

Just tell us. What is the first hurdle? As you report the error against 6.11, I am wondering how you obtained the compiler? Did you get it via darcs or as a nightly snapshot? In the latter case, I don't think there is a straight forward way of adding package DPH as I don't think we have snapshots for it.

If you get GHC from the darcs repo, getting dph is very easy. Just run

./darcs-all --dph get

in your local ghc repository. Then, build the compiler as usual.

  Changed 4 years ago by igloo

  • milestone set to 6.12.1

  Changed 4 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

As dph is now always built with GHC, there will not be an error due to it being absent. No response from submitter as to what the problem with installing dph was, and it presumably no longer applies anyway, so closing this ticket.

Note: See TracTickets for help on using tickets.