[GHC] #14379: Regression - GHC 2.8.1 Consumes All Memory On Build

GHC ghc-devs at haskell.org
Wed Oct 25 10:58:27 UTC 2017


#14379: Regression - GHC 2.8.1 Consumes All Memory On Build
-------------------------------------+-------------------------------------
        Reporter:  jm4games          |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:  x86_64
 Type of failure:  Compile-time      |  (amd64)
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  8.0.2
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 As so often, I failed to reproduce this with HEAD, at the first fence
 {{{
 simonpj at cam-05-unx:/cam-01-srv/simonpj/tmp/T14379$ cabal install --with-
 ghc=/home/simonpj/5builds/HEAD/inplace/bin/ghc-stage2 --allow-newer
 Resolving dependencies...
 Configuring primitive-0.6.2.0...
 Building primitive-0.6.2.0...
 Failed to install primitive-0.6.2.0
 Build log ( /home/simonpj/.cabal/logs/primitive-0.6.2.0.log ):
 cabal: Entering directory '/tmp/cabal-tmp-46331/primitive-0.6.2.0'
 Configuring primitive-0.6.2.0...
 Building primitive-0.6.2.0...
 Preprocessing library primitive-0.6.2.0...
 [ 1 of 12] Compiling Control.Monad.Primitive ( Control/Monad/Primitive.hs,
 dist/build/Control/Monad/Primitive.o )

 Control/Monad/Primitive.hs:45:1: warning: [-Wdeprecations]
     Module ‘Control.Monad.Trans.List’ is deprecated:
       This transformer is invalid on most monads
    |
 45 | import Control.Monad.Trans.List     ( ListT    )
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 ...plus many more similar deprecation warnings...

 [ 2 of 12] Compiling Data.Primitive.Internal.Compat (
 Data/Primitive/Internal/Compat.hs,
 dist/build/Data/Primitive/Internal/Compat.o )
 [ 3 of 12] Compiling Data.Primitive.Array ( Data/Primitive/Array.hs,
 dist/build/Data/Primitive/Array.o )

 Data/Primitive/Array.hs:531:10: error:
     • No instance for (Semigroup (Array a))
         arising from the superclasses of an instance declaration
     • In the instance declaration for ‘Monoid (Array a)’
     |
 531 | instance Monoid (Array a) where
     |          ^^^^^^^^^^^^^^^^
 cabal: Leaving directory '/tmp/cabal-tmp-46331/primitive-0.6.2.0'
 cabal: Error: some packages failed to install:
 primitive-0.6.2.0 failed during the building phase. The exception was:
 ExitFailure 1
 some-test-0.2.1.0 depends on primitive-0.6.2.0 which failed to install.
 vector-0.12.0.1 depends on primitive-0.6.2.0 which failed to install.
 simonpj at cam-05-unx:/cam-01-srv/simonpj/tmp/T14379$
 }}}
 Without `--allow-newer` it falls over much faster.  Any ideas for how to
 fix?

 I will try again with 8.2.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14379#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list