[GHC] #12604: panic when building repa-fftw

#12604: panic when building repa-fftw -------------------------------------+------------------------------------- Reporter: koshmar | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Linux Architecture: | Type of failure: Building GHC Unknown/Multiple | failed Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Sorry, if I reported it wrongly. It is my first bug. -- While building package repa-fftw-3.2.3.2 using: /home/kosh/.stack/setup-exe-cache/x86_64-linux-nix/setup-Simple- Cabal-1.24.0.0-ghc-8.0.1 --builddir=.stack-work/dist/x86_64-linux- nix/Cabal-1.24.0.0 build --ghc-options " -ddump-hi -ddump-to-file" Process exited with code: ExitFailure 1 Logs have been written to: /home/kosh/haskell/spRepa/.stack-work/logs /repa-fftw-3.2.3.2.log Configuring repa-fftw-3.2.3.2... Building repa-fftw-3.2.3.2... Preprocessing library repa-fftw-3.2.3.2... [1 of 1] Compiling Data.Array.Repa.FFTW ( Data/Array/Repa/FFTW.hs, .stack-work/dist/x86_64-linux- nix/Cabal-1.24.0.0/build/Data/Array/Repa/FFTW.o ) ghc: panic! (the 'impossible' happened) (GHC version 8.0.1 for x86_64-unknown-linux): filterImports/combine (Array, Array{Array, AByteString, ACursored, ADelayed, AForeignPtr, AInterleave, ASmall, APart, AUnboxed, AUndefined, AVector, cursoredExtent, loadCursor, makeCursor, shiftCursor}, Nothing) (Array, Source{Source, Array, deepSeqArray, extent, index, linearIndex, unsafeIndex, unsafeLinearIndex}, Nothing) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12604 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12604: panic when building repa-fftw -------------------------------------+------------------------------------- Reporter: koshmar | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by koshmar): * Attachment "spRepa.cabal" added. cabal file -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12604 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12604: panic when building repa-fftw -------------------------------------+------------------------------------- Reporter: koshmar | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by koshmar): * Attachment "stack.yaml" added. stack file -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12604 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12604: panic when building repa-fftw -------------------------------------+------------------------------------- Reporter: koshmar | 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: | -------------------------------------+------------------------------------- Changes (by koshmar): * failure: Building GHC failed => Compile-time crash -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12604#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12604: panic when building repa-fftw -------------------------------------+------------------------------------- Reporter: koshmar | 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 mpickering): Seems likely to be #11959 without looking at the example at all. Does that look sensible to you? Also, reproduction instructions which use stack are not useful as it is not easy to use a custom build of GHC with stack. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12604#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12604: panic when building repa-fftw -------------------------------------+------------------------------------- Reporter: koshmar | 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 koshmar): Not really. I am very new to haskell. If you will advice me what to do, I would like to do it. I can attach my source code, which is like 50 lines. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12604#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12604: panic when building repa-fftw -------------------------------------+------------------------------------- Reporter: koshmar | 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: | -------------------------------------+------------------------------------- Changes (by koshmar): * Attachment "Main.hs" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12604 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12604: panic when building repa-fftw -------------------------------------+------------------------------------- Reporter: koshmar | 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 mpickering): I'm looking a bit more closely. Sorry for the red herring. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12604#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12604: panic when building repa-fftw -------------------------------------+------------------------------------- Reporter: koshmar | 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 mpickering): Here is a minimal reproduction. It is two files. 1. `M.hs` {{{ {-# LANGUAGE TypeFamilies #-} module M ( -- * Abstract array representation Array (..) , Source(..) ) where class Source r where data Array r data C instance Source C where data Array C = ACursored { cursoredExtent :: Int } }}} 2. `Test.hs` {{{ module Test where import M (Array) }}} Reproduce with `ghc Test.hs`. Error being {{{ ghc: panic! (the 'impossible' happened) (GHC version 8.0.1 for x86_64-apple-darwin): filterImports/combine (Array, Array{Array, ACursored, cursoredExtent}, Nothing) (Array, Source{Source, Array}, Nothing) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} Thanks for the report koshmar! Hopefully Simon will know a workaround. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12604#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12604: panic when building repa-fftw -------------------------------------+------------------------------------- Reporter: koshmar | 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 simonpj): * status: new => closed * resolution: => fixed Comment: Thanks. This is actually a dup of #12127, which is fixed and merged, so it'll be in the 8.0.2 release. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12604#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC