#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/autogen
-Ilibraries/Cabal/Cabal/dist-install/build -Ilibraries/Cabal/Cabal/dist-
install/build/autogen -Ilibraries/Cabal/Cabal/. -optP-include
-optPlibraries/Cabal/Cabal/dist-install/build/autogen/cabal_macros.h
-package array-0.4.0.2 -package base-4.7.0.0 -package bytestring-0.10.2.0
-package containers-0.5.0.0 -package deepseq-1.3.0.2 -package
directory-1.2.0.1 -package filepath-1.3.0.2 -package pretty-1.1.1.0
-package process-1.2.0.0 -package time-1.4.0.2 -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
libraries/Cabal/Cabal/dist-install/build/Distribution/Simple/SrcDist.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
blame.
--
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
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs