[GHC] #9924: libffi configure script does not detect MSYS2 Windows 10 x86_64

#9924: libffi configure script does not detect MSYS2 Windows 10 x86_64 -------------------------------------+------------------------------------- Reporter: luite | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1-rc1 Keywords: | Operating System: Windows Architecture: Unknown/Multiple | Type of failure: Difficulty: Unknown | None/Unknown Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- When building GHC 7.10 RC 1 on Windows 10 Technical Preview, 64 bit, in MSYS2, libffi fails with the message that it cannot determine the build system, and that `config.guess` and `config.sub` may need to be updated. The latest versions do indeed work. Unfortunately the scripts are stored in the `libffi.tar` file, if we don't want to change the file we'll need some way to get the correct versions in place. I have a very hacky workaround that downloads the latest versions after unpacking the tar, which is obviously not how it should be solved, but might help some people get their RC1 to build before we have a proper fix: {{{ diff --git a/libffi/ghc.mk b/libffi/ghc.mk index ec37f0c..fbd2e5e 100644 --- a/libffi/ghc.mk +++ b/libffi/ghc.mk @@ -89,6 +89,9 @@ $(libffi_STAMP_CONFIGURE): $(TOUCH_DEP) cd libffi && \ $(LIBFFI_PATH_MANGLE) \ cd build && \ + autoreconf -f && \ + wget -O config.guess "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess..." && \ + wget -O config.sub "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;h..." && \ CC=$(CC_STAGE1) \ CXX=$(CC_STAGE1) \ LD=$(LD) \ }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9924 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9924: libffi configure script does not detect MSYS2 Windows 10 x86_64 -------------------------------------+------------------------------------- Reporter: luite | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1-rc1 Resolution: | Keywords: Operating System: Windows | Architecture: Unknown/Multiple Type of failure: | Difficulty: Unknown None/Unknown | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by luite): More versions might be affected, but my other test system with Windows 8.1 32 bit, with MSYS2 msys32 is detected correctly. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9924#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9924: libffi configure script does not detect MSYS2 Windows 10 x86_64 -------------------------------------+------------------------------------- Reporter: luite | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1-rc1 Resolution: | Keywords: Operating System: Windows | Architecture: Unknown/Multiple Type of failure: | Difficulty: Unknown None/Unknown | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by hvr): ...would the `config.guess` & `config.sub` files from the top-level `ghc.git` folder be new enough? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9924#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9924: libffi configure script does not detect MSYS2 Windows 10 x86_64 -------------------------------------+------------------------------------- Reporter: luite | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1-rc1 Resolution: | Keywords: Operating System: Windows | Architecture: Unknown/Multiple Type of failure: | Difficulty: Unknown None/Unknown | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by luite): Yep, I just completed a build succesfully with the following patch: {{{ diff --git a/libffi/ghc.mk b/libffi/ghc.mk index ec37f0c..62ffe32 100644 --- a/libffi/ghc.mk +++ b/libffi/ghc.mk @@ -89,6 +89,8 @@ $(libffi_STAMP_CONFIGURE): $(TOUCH_DEP) cd libffi && \ $(LIBFFI_PATH_MANGLE) \ cd build && \ + cp $(TOP)/config.guess config.guess && \ + cp $(TOP)/config.sub config.sub && \ CC=$(CC_STAGE1) \ CXX=$(CC_STAGE1) \ LD=$(LD) \ }}} (This probably fails if `$(TOP)` contains spaces, due to missing quotes) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9924#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9924: libffi configure script does not detect MSYS2 Windows 10 x86_64
-------------------------------------+-------------------------------------
Reporter: luite | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.1-rc1
Resolution: | Keywords:
Operating System: Windows | Architecture: Unknown/Multiple
Type of failure: | Difficulty: Unknown
None/Unknown | Blocked By:
Test Case: | Related Tickets:
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Comment (by Herbert Valerio Riedel

#9924: libffi configure script does not detect MSYS2 Windows 10 x86_64 -------------------------------------+------------------------------------- Reporter: luite | Owner: Type: bug | Status: merge Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.10.1-rc1 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: Building | Blocked By: GHC failed | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by hvr): * status: new => merge * failure: None/Unknown => Building GHC failed * component: Compiler => Build System * milestone: => 7.10.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9924#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC