#7510: Immediate seg-fault on 32-bit windows build
    Reporter:  simonpj           |       Owner:  simonmar        
        Type:  bug               |      Status:  new             
    Priority:  highest           |   Milestone:  7.8.1           
   Component:  Compiler          |     Version:  7.6.1           
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  

Comment(by igloo):

 But with
 --- a/compiler/nativeGen/AsmCodeGen.lhs
 +++ b/compiler/nativeGen/AsmCodeGen.lhs
 @@ -189,7 +189,7 @@ x86_64NcgImpl dflags
         ,maxSpillSlots             = X86.Instr.maxSpillSlots dflags
         ,allocatableRegs           = X86.Regs.allocatableRegs platform
         ,ncg_x86fp_kludge          = id
 -       ,ncgAllocMoreStack         = X86.Instr.allocMoreStack platform
 +       ,ncgAllocMoreStack         = noAllocMoreStack --
 X86.Instr.allocMoreStack platform
         ,ncgExpandTop              = id
         ,ncgMakeFarBranches        = id
 the build fails with
 "inplace/bin/ghc-stage1.exe" -static    -H32m -O -Werror -Wall -H64m -O0
 -package-name Cabal-1.17.0  -hide-all-packages  -i
 -ilibraries/Cabal/Cabal/.  -ilibraries/Cabal/Cabal/dist-install/build
 -Ilibraries/Cabal/Cabal/dist-install/build -Ilibraries/Cabal/Cabal/dist-
 install/build/autogen  -Ilibraries/Cabal/Cabal/.        -optP-include
 -package array- -package base- -package bytestring-
 -package containers- -package deepseq- -package
 directory- -package filepath- -package pretty-
 -package process- -package time-    -fwarn-tabs -Wall -fno-
 ignore-asserts -XHaskell98 -XCPP -O2 -O -dcore-lint -fno-warn-deprecated-
 flags    -no-user-package-db -rtsopts  -w          -odir
 libraries/Cabal/Cabal/dist-install/build -hidir libraries/Cabal/Cabal
 /dist-install/build -stubdir libraries/Cabal/Cabal/dist-install/build
 -hisuf hi -osuf  o -hcsuf hc -c
 libraries/Cabal/Cabal/./Distribution/Simple/SrcDist.hs -o
 ghc-stage1.exe: panic! (the 'impossible' happened)
   (GHC version 7.7.20130101 for i386-unknown-mingw32):
         Register allocator: out of stack slots (need 682)
    If you are trying to compile SHA1.hs from the crypto library then this
    is a known limitation in the linear allocator.

    Try enabling the graph colouring allocator with -fregs-graph instead.
 You can still file a bug report if you like.

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
 so we are at least hitting this code, so it's plausible that it is to

Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7510#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

Glasgow-haskell-bugs mailing list

Reply via email to