#4270: Out of memory when compiling Statistics.Quantile
------------------------------------+---------------------------------------
    Reporter:  Itkovian             |       Owner:                    
        Type:  bug                  |      Status:  new               
    Priority:  normal               |   Component:  Compiler          
     Version:  6.13                 |    Keywords:  Out-of-memory     
    Testcase:  Statistics.Quantile  |   Blockedby:                    
          Os:  Linux                |    Blocking:                    
Architecture:  x86_64 (amd64)       |     Failure:  Compile-time crash
------------------------------------+---------------------------------------
 A recent build of GHC (6.13.20100823) runs out of memory when building the
 statistics-0.6.0.2 package while compiling the Statistics/Quantile.hs
 file.

 Not that I am _not_ using the LLVM backend.

 Info:

 {{{
 gengar2:~ $ uname -a
 Linux gengar2 2.6.18-128.1.1.el5.perfctr.2.6.38.ug.1 #1 SMP Sun Feb 22
 21:38:17 CET 2009 x86_64 x86_64 x86_64 GNU/Linux
 }}}

 I'm on an Intel Xeon machine,

 {{{
 processor       : 0
 vendor_id       : GenuineIntel
 cpu family      : 6
 model           : 23
 model name      : Intel(R) Xeon(R) CPU           L5420  @ 2.50GHz
 stepping        : 6
 cpu MHz         : 2500.093
 cache size      : 6144 KB
 physical id     : 0
 siblings        : 4
 core id         : 0
 cpu cores       : 4
 apicid          : 0
 fpu             : yes
 fpu_exception   : yes
 cpuid level     : 10
 wp              : yes
 flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
 cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm
 constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
 bogomips        : 5003.65
 clflush size    : 64
 cache_alignment : 64
 address sizes   : 38 bits physical, 48 bits virtual
 }}}

 Relevant steps:

 {{{
 
gengar2:~/.cabal/packages/hackage.haskell.org/statistics/0.6.0.2/statistics-0.6.0.2
 $ ghc --info
  [("Project name","The Glorious Glasgow Haskell Compilation System")
  ,("Project version","6.13.20100823")
  ,("Booter version","6.12.1")
  ,("Stage","2")
  ,("Build platform","x86_64-unknown-linux")
  ,("Host platform","x86_64-unknown-linux")
  ,("Target platform","x86_64-unknown-linux")
  ,("Have interpreter","YES")
  ,("Object splitting","YES")
  ,("Have native code generator","YES")
  ,("Have llvm code generator","YES")
  ,("Support SMP","YES")
  ,("Unregisterised","NO")
  ,("Tables next to code","YES")
  ,("RTS ways","l debug  thr thr_debug thr_l thr_p  dyn debug_dyn thr_dyn
 thr_debug_dyn")
  ,("Leading underscore","NO")
  ,("Debug on","False")
  ,("LibDir","/user/home/gent/vsc400/vsc40075/data/ghc-
 llvm/lib/ghc-6.13.20100823")
  ,("Global Package DB","/user/home/gent/vsc400/vsc40075/data/ghc-
 llvm/lib/ghc-6.13.20100823/package.conf.d")
  ]
 }}}

 {{{
 
gengar2:~/.cabal/packages/hackage.haskell.org/statistics/0.6.0.2/statistics-0.6.0.2
 $ cabal configure --user -v
 /user/home/gent/vsc400/vsc40075/data/ghc-llvm/bin/ghc --numeric-version
 looking for package tool: ghc-pkg near compiler in
 /user/home/gent/vsc400/vsc40075/data/ghc-llvm/bin
 found package tool in
 /user/home/gent/vsc400/vsc40075/data/ghc-llvm/bin/ghc-pkg
 /user/home/gent/vsc400/vsc40075/data/ghc-llvm/bin/ghc-pkg --version
 /user/home/gent/vsc400/vsc40075/data/ghc-llvm/bin/ghc --supported-
 languages
 Reading installed packages...
 /user/home/gent/vsc400/vsc40075/data/ghc-llvm/bin/ghc-pkg dump --global
 /user/home/gent/vsc400/vsc40075/data/ghc-llvm/bin/ghc-pkg dump --user
 Reading available packages...
 Resolving dependencies...
 selecting statistics-0.6.0.2 (hackage)
 selecting base-4.3.0.0 (installed)
 selecting erf-1.0.0.0 (installed)
 selecting ffi-1.0 (installed)
 selecting ghc-prim-0.2.0.0 (installed)
 selecting integer-gmp-0.2.0.0 (installed)
 selecting mwc-random-0.7.0.0 (installed)
 selecting Cabal-1.9.2 (installed)
 selecting array-0.3.0.0 (installed)
 selecting bin-package-db-0.0.0.0 (installed)
 selecting binary-0.5.0.2 (installed)
 selecting bytestring-0.9.1.7 (installed)
 selecting containers-0.3.0.0 (installed)
 selecting directory-1.0.1.2 (installed)
 selecting filepath-1.2.0.0 (installed)
 selecting ghc-6.13.20100823 (installed)
 selecting hpc-0.5.0.5 (installed)
 selecting old-locale-1.0.0.2 (installed)
 selecting old-time-1.0.0.5 (installed)
 selecting pretty-1.0.1.1 (installed)
 selecting primitive-0.3 (installed)
 selecting process-1.0.1.3 (installed)
 selecting rts-1.0 (installed)
 selecting template-haskell-2.4.0.0 (installed)
 selecting time-1.2.0.3 (installed)
 selecting unix-2.4.0.1 (installed)
 selecting vector-0.6.0.2 (installed)
 selecting vector-algorithms-0.3.2 (installed)
 Configuring statistics-0.6.0.2...
 Dependency base ==4.3.0.0: using base-4.3.0.0
 Dependency erf ==1.0.0.0: using erf-1.0.0.0
 Dependency mwc-random ==0.7.0.0: using mwc-random-0.7.0.0
 Dependency primitive ==0.3: using primitive-0.3
 Dependency time ==1.2.0.3: using time-1.2.0.3
 Dependency vector ==0.6.0.2: using vector-0.6.0.2
 Dependency vector-algorithms ==0.3.2: using vector-algorithms-0.3.2
 Using Cabal-1.8.0.2 compiled by ghc-6.12
 Using compiler: ghc-6.13.20100823
 Using install prefix: /user/home/gent/vsc400/vsc40075/.cabal
 Binaries installed in: /user/home/gent/vsc400/vsc40075/.cabal/bin
 Libraries installed in:
 /user/home/gent/vsc400/vsc40075/.cabal/lib/statistics-0.6.0.2/ghc-6.13.20100823
 Private binaries installed in:
 /user/home/gent/vsc400/vsc40075/.cabal/libexec
 Data files installed in:
 /user/home/gent/vsc400/vsc40075/.cabal/share/statistics-0.6.0.2
 Documentation installed in:
 /user/home/gent/vsc400/vsc40075/.cabal/share/doc/statistics-0.6.0.2
 Using alex version 2.3.3 found on system at:
 /user/home/gent/vsc400/vsc40075/.cabal/bin/alex
 Using ar found on system at: /usr/bin/ar
 No c2hs found
 No cpphs found
 No ffihugs found
 Using gcc version 4.1.2 found on system at: /usr/bin/gcc
 Using ghc version 6.13.20100823 found on system at:
 /user/home/gent/vsc400/vsc40075/data/ghc-llvm/bin/ghc
 Using ghc-pkg version 6.13.20100823 found on system at:
 /user/home/gent/vsc400/vsc40075/data/ghc-llvm/bin/ghc-pkg
 No greencard found
 Using haddock version 2.7.2 found on system at:
 /user/home/gent/vsc400/vsc40075/data/ghc-llvm/bin/haddock
 Using happy version 1.18.4 found on system at:
 /user/home/gent/vsc400/vsc40075/.cabal/bin/happy
 No hmake found
 Using hsc2hs version 0.67 found on system at:
 /user/home/gent/vsc400/vsc40075/data/ghc-llvm/bin/hsc2hs
 No hscolour found
 No hugs found
 No jhc found
 Using ld found on system at: /usr/bin/ld
 No lhc found
 No lhc-pkg found
 No nhc98 found
 Using pkg-config version 0.21 found on system at: /usr/bin/pkg-config
 Using ranlib found on system at: /usr/bin/ranlib
 Using strip found on system at: /usr/bin/strip
 Using tar found on system at: /bin/tar
 }}}

 {{{
 
gengar2:~/.cabal/packages/hackage.haskell.org/statistics/0.6.0.2/statistics-0.6.0.2
 $ cabal build -v
 Creating dist/build (and its parents)
 Creating dist/build/autogen (and its parents)
 Preprocessing library statistics-0.6.0.2...
 Building statistics-0.6.0.2...
 Building library...
 Creating dist/build (and its parents)
 /user/home/gent/vsc400/vsc40075/data/ghc-llvm/bin/ghc --make -package-name
 statistics-0.6.0.2 -hide-all-packages -fbuilding-cabal-package -i
 -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build
 -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build
 -hidir dist/build -stubdir dist/build -package-id
 base-4.3.0.0-9f7ee17cf0c893cd92f8415a454f915e -package-id
 erf-1.0.0.0-234201e2383c09459ab94beb0df3b3e8 -package-id mwc-
 random-0.7.0.0-4eee58df7544c900191a0363293b359c -package-id
 primitive-0.3-32b8e2f221017a439ede3f200657c4e2 -package-id
 time-1.2.0.3-59ab28dd5cef69306532e1ebdf2c6002 -package-id
 vector-0.6.0.2-5ec473c310b06377a585b57e8cdec13a -package-id vector-
 algorithms-0.3.2-a3c01526213cd5570b76237e0b01b6d0 -O -fwarn-tabs -Wall
 -funbox-strict-fields Statistics.Autocorrelation Statistics.Constants
 Statistics.Distribution Statistics.Distribution.Binomial
 Statistics.Distribution.Gamma Statistics.Distribution.Geometric
 Statistics.Distribution.Exponential Statistics.Distribution.Hypergeometric
 Statistics.Distribution.Normal Statistics.Distribution.Poisson
 Statistics.Function Statistics.KernelDensity Statistics.Math
 Statistics.Quantile Statistics.Resampling Statistics.Resampling.Bootstrap
 Statistics.Sample Statistics.Sample.Powers Statistics.Types
 Statistics.Internal
 [ 1 of 20] Compiling Statistics.Internal ( Statistics/Internal.hs,
 dist/build/Statistics/Internal.o )
 [ 2 of 20] Compiling Statistics.Function ( Statistics/Function.hs,
 dist/build/Statistics/Function.o )
 [ 3 of 20] Compiling Statistics.Types ( Statistics/Types.hs,
 dist/build/Statistics/Types.o )
 [ 4 of 20] Compiling Statistics.Resampling ( Statistics/Resampling.hs,
 dist/build/Statistics/Resampling.o )
 [ 5 of 20] Compiling Statistics.Distribution ( Statistics/Distribution.hs,
 dist/build/Statistics/Distribution.o )
 [ 6 of 20] Compiling Statistics.Distribution.Geometric (
 Statistics/Distribution/Geometric.hs,
 dist/build/Statistics/Distribution/Geometric.o )
 [ 7 of 20] Compiling Statistics.Constants ( Statistics/Constants.hs,
 dist/build/Statistics/Constants.o )
 [ 8 of 20] Compiling Statistics.Quantile ( Statistics/Quantile.hs,
 dist/build/Statistics/Quantile.o )
 ghc: out of memory (requested 1048576 bytes)
 }}}




 For comparison, it does build using ghc-6.12.1.

 {{{
 gengar2:~ $ ghc --info
  [("Project name","The Glorious Glasgow Haskell Compilation System")
  ,("Project version","6.12.1")
  ,("Booter version","6.8.2")
  ,("Stage","2")
  ,("Have interpreter","YES")
  ,("Object splitting","YES")
  ,("Have native code generator","YES")
  ,("Support SMP","YES")
  ,("Unregisterised","NO")
  ,("Tables next to code","YES")
  ,("Win32 DLLs","")
  ,("RTS ways","l debug  thr thr_debug thr_l thr_p  dyn debug_dyn thr_dyn
 thr_debug_dyn")
  ,("Leading underscore","NO")
  ,("Debug on","False")
  ,("LibDir","/user/home/gent/vsc400/vsc40075/data/ghc-
 release-6.12.1/lib/ghc-6.12.1")
  ]
 }}}

 {{{
 gengar2:~ $ cabal install statistics
 Resolving dependencies...
 Configuring vector-0.6.0.2...
 Preprocessing library vector-0.6.0.2...

 <snip>

 Configuring statistics-0.6.0.2...
 Preprocessing library statistics-0.6.0.2...
 Building statistics-0.6.0.2...
 [ 1 of 20] Compiling Statistics.Internal ( Statistics/Internal.hs,
 dist/build/Statistics/Internal.o )
 [ 2 of 20] Compiling Statistics.Function ( Statistics/Function.hs,
 dist/build/Statistics/Function.o )
 [ 3 of 20] Compiling Statistics.Types ( Statistics/Types.hs,
 dist/build/Statistics/Types.o )
 [ 4 of 20] Compiling Statistics.Resampling ( Statistics/Resampling.hs,
 dist/build/Statistics/Resampling.o )
 [ 5 of 20] Compiling Statistics.Distribution ( Statistics/Distribution.hs,
 dist/build/Statistics/Distribution.o )
 [ 6 of 20] Compiling Statistics.Distribution.Geometric (
 Statistics/Distribution/Geometric.hs,
 dist/build/Statistics/Distribution/Geometric.o )
 [ 7 of 20] Compiling Statistics.Constants ( Statistics/Constants.hs,
 dist/build/Statistics/Constants.o )
 [ 8 of 20] Compiling Statistics.Quantile ( Statistics/Quantile.hs,
 dist/build/Statistics/Quantile.o )
 [ 9 of 20] Compiling Statistics.Sample ( Statistics/Sample.hs,
 dist/build/Statistics/Sample.o )
 [10 of 20] Compiling Statistics.Distribution.Normal (
 Statistics/Distribution/Normal.hs,
 dist/build/Statistics/Distribution/Normal.o )
 [11 of 20] Compiling Statistics.Math  ( Statistics/Math.hs,
 dist/build/Statistics/Math.o )
 [12 of 20] Compiling Statistics.Distribution.Binomial (
 Statistics/Distribution/Binomial.hs,
 dist/build/Statistics/Distribution/Binomial.o )
 [13 of 20] Compiling Statistics.Distribution.Gamma (
 Statistics/Distribution/Gamma.hs,
 dist/build/Statistics/Distribution/Gamma.o )
 [14 of 20] Compiling Statistics.Distribution.Hypergeometric (
 Statistics/Distribution/Hypergeometric.hs,
 dist/build/Statistics/Distribution/Hypergeometric.o )
 [15 of 20] Compiling Statistics.Distribution.Poisson (
 Statistics/Distribution/Poisson.hs,
 dist/build/Statistics/Distribution/Poisson.o )
 [16 of 20] Compiling Statistics.Sample.Powers (
 Statistics/Sample/Powers.hs, dist/build/Statistics/Sample/Powers.o )
 [17 of 20] Compiling Statistics.Distribution.Exponential (
 Statistics/Distribution/Exponential.hs,
 dist/build/Statistics/Distribution/Exponential.o )
 [18 of 20] Compiling Statistics.KernelDensity (
 Statistics/KernelDensity.hs, dist/build/Statistics/KernelDensity.o )
 [19 of 20] Compiling Statistics.Resampling.Bootstrap (
 Statistics/Resampling/Bootstrap.hs,
 dist/build/Statistics/Resampling/Bootstrap.o )
 [20 of 20] Compiling Statistics.Autocorrelation (
 Statistics/Autocorrelation.hs, dist/build/Statistics/Autocorrelation.o )
 Registering statistics-0.6.0.2...
 Installing library in
 /user/home/gent/vsc400/vsc40075/.cabal/lib/statistics-0.6.0.2/ghc-6.12.1
 Registering statistics-0.6.0.2...
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4270>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to