[GHC] #8842: Make sure msys2 builds non emulating binaries

#8842: Make sure msys2 builds non emulating binaries ------------------------------------+--------------------------------- Reporter: schyler | Owner: Type: task | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Keywords: | Operating System: Windows Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+--------------------------------- I came across this in my own project. MSys2 doesn't enter #ifdef blocks which test for _WIN32. Instead, it pretends to be Linux and has a set of headers which emulate things like mmap. These emulation functions are really really slow -- in my personal tests about 10x slower than calling the WINAPI -- so this ticket is just a reminder (it may already be done) for someone to check that MSys2 builds things non-emulated in GHC. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8842 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8842: Make sure msys2 builds non emulating binaries -------------------------------------+------------------------------------- Reporter: schyler | Owner: Type: task | Status: new Priority: normal | Milestone: Component: Build | Version: 7.8.1-rc2 System | Keywords: msys2 Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * keywords: => msys2 * component: Compiler => Build System -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8842#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8842: Make sure msys2 builds non emulating binaries -------------------------------------+------------------------------------- Reporter: schyler | Owner: Type: task | Status: new Priority: normal | Milestone: Component: Build | Version: 7.8.1-rc2 System | Keywords: msys2 Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by gintas): * cc: gintas (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8842#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8842: Make sure msys2 builds non emulating binaries -------------------------------------+------------------------------------- Reporter: schyler | Owner: Type: task | Status: infoneeded Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: msys2 Operating System: Windows | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thomie): * status: new => infoneeded * milestone: => 7.12.1 Comment: On Windows, GHC uses a mingw gcc compiler. This command shows that it does define the `_WIN32` macro: {{{ $ /opt/ghc-7.8.3/mingw/bin/gcc -dM -E -x c /dev/null | grep ' _WIN32' #define _WIN32 1 }}} I also compiled a small c program containing an `#ifdef _WIN32` block on Windows using `ghc -c`, and it indeed showed that `_WIN32` is defined. The [wiki:Building/Preparation/Windows build instruction on Windows] for GHC itself are also pretty clear to use the non-emulating version of MSYS2. Anything else I can do to check this? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8842#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8842: Make sure msys2 builds non emulating binaries -------------------------------------+------------------------------------- Reporter: schyler | Owner: Type: task | Status: closed Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.8.1-rc2 Resolution: fixed | Keywords: msys2 Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thomie): * status: infoneeded => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8842#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8842: Make sure msys2 builds non emulating binaries ---------------------------------+---------------------------------------- Reporter: schyler | Owner: Type: task | Status: closed Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.8.1-rc2 Resolution: fixed | Keywords: msys2 Operating System: Windows | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+---------------------------------------- Changes (by gintas): * cc: gintas (removed) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8842#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC