
#8974: 64 bit windows executable built with ghc-7.9.20140405+LLVM segfaults ------------------------------------+-------------------------------------- Reporter: awson | Owner: Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Compiler (LLVM) | Version: 7.9 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ------------------------------------+-------------------------------------- Comment (by GordonBGood): Replying to [comment:46 Phyx-]:
Binutils 2.27-2 has been released on msys, this contains Awson's patch.
Awson's patch doesn't seem to be enough: Tried Msys2 mingw64/mingw-w64-x86_64-binutils 2.27-2 with LLVM 3.7 and 64-bit GHC 8.0.1 on Windows with a simple Sieve of Eratosthenes Program, which while it compiles using the -fllvm switch still segfaults on execution but does not segfault on execution using no -fllvm switch (defaults to using NCG). However, Awson's patch does help as other versions of a similar program can be compiled with the same platform and same -fllvm switch to run successfully (and 25% faster than with NCG) whereas they never have before. I need to boil down a version that consistently fails using -fllvm and not without and will submit it here... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8974#comment:47 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler