#2355: Building NDP fails with GHC panic on x86_64
---------------------------+------------------------------------------------
Reporter: Nolari | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.9
Severity: major | Resolution:
Keywords: ndp ghc panic | Difficulty: Unknown
Testcase: | Architecture: x86_64 (amd64)
Os: Linux |
---------------------------+------------------------------------------------
Comment (by Nolari):
Thanks! Editing the cabal file indeed works. By the way, which branch of
GHC should I be using with NDP? I'm trying both the
http://darcs.haskell.org/ghc/ and http://darcs.haskell.org/ghc-2008-06-02/
branches.
The `ghc-2008-06-02` one doesn't seem to understand the `-fno-ds-multi-
tyvar` option, and `-dcore-lint` gives no additional output. Here's the
result of my last 3 `make rebuild.library.ndp` runs:
{{{
[29 of 78] Compiling Data.Array.Parallel.Unlifted.Flat.Enum (
Data/Array/Parallel/Unlifted/Flat/Enum.hs,
dist/build/Data/Array/Parallel/Unlifted/Flat/Enum.p_o )
GHC error in desugarer lookup in
ndp:Data.Array.Parallel.Unlifted.Flat.Enum:
attempting to use module `ndp:Data.Array.Parallel.Lifted.PArray'
(./Data/Array/Parallel/Lifted/PArray.hs) which is not loaded
ghc-6.9.20080602: panic! (the 'impossible' happened)
(GHC version 6.9.20080602 for x86_64-unknown-linux):
initDs user error (IOEnv failure)
}}}
{{{
[12 of 78] Compiling Data.Array.Parallel.Stream.Flat.Combinators (
Data/Array/Parallel/Stream/Flat/Combinators.hs,
dist/build/Data/Array/Parallel/Stream/Flat/Combinators.o )
GHC error in desugarer lookup in
ndp:Data.Array.Parallel.Stream.Flat.Combinators:
attempting to use module `ndp:Data.Array.Parallel.Lifted.PArray'
(./Data/Array/Parallel/Lifted/PArray.hs) which is not loaded
ghc-6.9.20080602: panic! (the 'impossible' happened)
(GHC version 6.9.20080602 for x86_64-unknown-linux):
initDs user error (IOEnv failure)
}}}
{{{
[27 of 78] Compiling Data.Array.Parallel.Unlifted.Flat.Combinators (
Data/Array/Parallel/Unlifted/Flat/Combinators.hs,
dist/build/Data/Array/Parallel/Unlifted/Flat/Combinators.o )
GHC error in desugarer lookup in
ndp:Data.Array.Parallel.Unlifted.Flat.Combinators:
attempting to use module `ndp:Data.Array.Parallel.Lifted.PArray'
(./Data/Array/Parallel/Lifted/PArray.hs) which is not loaded
ghc-6.9.20080602: panic! (the 'impossible' happened)
(GHC version 6.9.20080602 for x86_64-unknown-linux):
initDs user error (IOEnv failure)
}}}
On the `ghc` branch the option `-fno-ds-multi-tyvar` is understood, and
gives me the following on `make rebuild.library.ndp`:
{{{
[21 of 78] Compiling Data.Array.Parallel.Unlifted.Flat.UArr (
Data/Array/Parallel/Unlifted/Flat/UArr.hs,
dist/build/Data/Array/Parallel/Unlifted/Flat/UArr.o )
Data/Array/Parallel/Unlifted/Flat/UArr.hs:423:25:
A newtype constructor cannot have a strictness annotation,
but `UAChar' does
In the definition of data constructor `UAChar'
In the newtype instance declaration for `UArr'
In the instance declaration for `UA Char'
Data/Array/Parallel/Unlifted/Flat/UArr.hs:424:25:
A newtype constructor cannot have a strictness annotation,
but `MUAChar' does
In the definition of data constructor `MUAChar'
In the newtype instance declaration for `MUArr'
In the instance declaration for `UA Char'
Data/Array/Parallel/Unlifted/Flat/UArr.hs:445:24:
A newtype constructor cannot have a strictness annotation,
but `UAInt' does
In the definition of data constructor `UAInt'
In the newtype instance declaration for `UArr'
In the instance declaration for `UA Int'
Data/Array/Parallel/Unlifted/Flat/UArr.hs:446:24:
A newtype constructor cannot have a strictness annotation,
but `MUAInt' does
In the definition of data constructor `MUAInt'
In the newtype instance declaration for `MUArr'
In the instance declaration for `UA Int'
Data/Array/Parallel/Unlifted/Flat/UArr.hs:473:26:
A newtype constructor cannot have a strictness annotation,
but `UAFloat' does
In the definition of data constructor `UAFloat'
In the newtype instance declaration for `UArr'
In the instance declaration for `UA Float'
Data/Array/Parallel/Unlifted/Flat/UArr.hs:474:26:
A newtype constructor cannot have a strictness annotation,
but `MUAFloat' does
In the definition of data constructor `MUAFloat'
In the newtype instance declaration for `MUArr'
In the instance declaration for `UA Float'
Data/Array/Parallel/Unlifted/Flat/UArr.hs:495:27:
A newtype constructor cannot have a strictness annotation,
but `UADouble' does
In the definition of data constructor `UADouble'
In the newtype instance declaration for `UArr'
In the instance declaration for `UA Double'
Data/Array/Parallel/Unlifted/Flat/UArr.hs:496:27:
A newtype constructor cannot have a strictness annotation,
but `MUADouble' does
In the definition of data constructor `MUADouble'
In the newtype instance declaration for `MUArr'
In the instance declaration for `UA Double'
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2355#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs