[GHC] #11109: build broken in libffi/ when `install-sh` is used
#11109: build broken in libffi/ when `install-sh` is used -------------------------------------+------------------------------------- Reporter: hvr | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.10.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- If the `/usr/bin/install` tool is missing or not deemed usable by Autoconf, `install-sh` is used. However, GHC's build then fails with {{{ ... ===--- building final phase make --no-print-directory -f ghc.mk phase=final all rts/ghc.mk:543: rts/dist/build/.depend-v-dyn-l-debug-thr-thr_debug-thr_l- debug_dyn-thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm: No such file or directory compiler/ghc.mk:661: compiler/stage2/build/.depend-v-dyn.haskell: No such file or directory make -C libffi/build MAKEFLAGS= install MAKE x86_64-unknown-linux-gnu : 0 * install make[3]: Entering directory '/home/hvr/Haskell/GHC/ghc/libffi/build/x86_64 -unknown-linux-gnu' Making install in include make[4]: Entering directory '/home/hvr/Haskell/GHC/ghc/libffi/build/x86_64 -unknown-linux-gnu/include' make[5]: Entering directory '/home/hvr/Haskell/GHC/ghc/libffi/build/x86_64 -unknown-linux-gnu/include' make[5]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/home/hvr/Haskell/GHC/ghc/libffi/build/inst/lib/libffi-3.1/include' ../install-sh -c -m 644 ffi.h ffitarget.h '/home/hvr/Haskell/GHC/ghc/libffi/build/inst/lib/libffi-3.1/include' /bin/bash: line 11: ../install-sh: No such file or directory Makefile:361: recipe for target 'install-nodist_includesHEADERS' failed make[5]: *** [install-nodist_includesHEADERS] Error 127 make[5]: Leaving directory '/home/hvr/Haskell/GHC/ghc/libffi/build/x86_64 -unknown-linux-gnu/include' Makefile:477: recipe for target 'install-am' failed make[4]: *** [install-am] Error 2 make[4]: Leaving directory '/home/hvr/Haskell/GHC/ghc/libffi/build/x86_64 -unknown-linux-gnu/include' Makefile:1577: recipe for target 'install-recursive' failed make[3]: *** [install-recursive] Error 1 make[3]: Leaving directory '/home/hvr/Haskell/GHC/ghc/libffi/build/x86_64 -unknown-linux-gnu' Makefile:3095: recipe for target 'install' failed make[2]: *** [install] Error 2 libffi/ghc.mk:116: recipe for target 'libffi/stamp.ffi.static- shared.install' failed make[1]: *** [libffi/stamp.ffi.static-shared.install] Error 2 Makefile:121: recipe for target 'all' failed make: *** [all] Error 2 }}} This can be easily simulated on Linux by temporarily renaming `/usr/bin/install` -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11109> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11109: build broken in libffi/ when `install-sh` is used -------------------------------------+------------------------------------- Reporter: hvr | Owner: Type: bug | Status: patch Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1494 Wiki Page: | -------------------------------------+------------------------------------- Changes (by hvr): * status: new => patch * differential: => Phab:D1494 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11109#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11109: build broken in libffi/ when `install-sh` is used -------------------------------------+------------------------------------- Reporter: hvr | Owner: Type: bug | Status: patch Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1494 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"3e2a4eefbed7002437c3f3ee340832a42f0b37f8/ghc" 3e2a4ee/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="3e2a4eefbed7002437c3f3ee340832a42f0b37f8" Fix broken build-system when libffi uses install-sh Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1494 GHC Trac Issues: #11109 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11109#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11109: build broken in libffi/ when `install-sh` is used -------------------------------------+------------------------------------- Reporter: hvr | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.10.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1494 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11109#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11109: build broken in libffi/ when `install-sh` is used -------------------------------------+------------------------------------- Reporter: hvr | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.10.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1494 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Herbert Valerio Riedel <hvr@…>): In [changeset:"4976ab2bd333e28a1d4cfe924d4d8ebb49489366/ghc" 4976ab2b/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="4976ab2bd333e28a1d4cfe924d4d8ebb49489366" Follow-up fix to 3e2a4eefbed7002437c3f (re #11109) Using `:` as sed-`s`-expr separator is not a good idea on windows, as this can result in an expression like 's:@INSTALL@:$(subst ../install-sh,E:/msys64/home/foo/ghc/install- sh,@INSTALL@):g' (note the `E:/` drive component) Using `|` instead of `:` has less risk of collision with the substitution expression }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11109#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC