[GHC] #16053: GHC build regression ("HSghc-prim-0.5.3.p_o: copyFile: does not exist")

#16053: GHC build regression ("HSghc-prim-0.5.3.p_o: copyFile: does not exist") -------------------------------------+------------------------------------- Reporter: hvr | Owner: (none) Type: bug | Status: new Priority: high | Milestone: Component: Build System | Version: 8.7 (make) | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Building GHC Unknown/Multiple | failed Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Ben asked me to file this here: Some time between 8.7.20181015+git.1.2e1df7c and 8.7.20181210+git.1.4773b43 the GHC build process as orchestrated by the automated PPA Debian package builds started failing with {{{ /usr/bin/install -c -m 755 -d "/<<BUILDDIR>>/ghc- head-8.7.20181210+git.1.4773b43/debian/tmp/opt/ghc/head/lib/ghc-8.7.20181210/rts" for i in rts/dist/build/libHSrts.a rts/dist/build/libHSrts- ghc8.7.20181210.so rts/dist/build/libHSrts_p.a rts/dist/build/libHSrts_l.a rts/dist/build/libHSrts_debug.a rts/dist/build/libHSrts_thr.a rts/dist/build/libHSrts_thr_debug.a rts/dist/build/libHSrts_thr_l.a rts/dist/build/libHSrts_thr_p.a rts/dist/build/libHSrts_debug- ghc8.7.20181210.so rts/dist/build/libHSrts_thr-ghc8.7.20181210.so rts/dist/build/libHSrts_thr_debug-ghc8.7.20181210.so rts/dist/build /libHSrts_l-ghc8.7.20181210.so rts/dist/build/libHSrts_thr_l- ghc8.7.20181210.so rts/dist/build/libHSrts_thr_debug_p.a rts/dist/build/libHSrts_debug_p.a rts/dist/build/libffi.so rts/dist/build/libffi.so.7 rts/dist/build/libffi.so.7.1.0 rts/dist/build/libCffi.a rts/dist/build/libCffi_p.a rts/dist/build/libCffi_l.a rts/dist/build/libCffi_debug.a rts/dist/build/libCffi_thr.a rts/dist/build/libCffi_thr_debug.a rts/dist/build/libCffi_thr_l.a rts/dist/build/libCffi_thr_p.a rts/dist/build/libCffi_thr_debug_p.a rts/dist/build/libCffi_debug_p.a; do case $i in *.a) /usr/bin/install -c -m 644 $i "/<<BUILDDIR>>/ghc- head-8.7.20181210+git.1.4773b43/debian/tmp/opt/ghc/head/lib/ghc-8.7.20181210/rts"; true "/<<BUILDDIR>>/ghc- head-8.7.20181210+git.1.4773b43/debian/tmp/opt/ghc/head/lib/ghc-8.7.20181210/rts"/`basename $i` ;; *.dll) /usr/bin/install -c -m 755 $i "/<<BUILDDIR>>/ghc- head-8.7.20181210+git.1.4773b43/debian/tmp/opt/ghc/head/lib/ghc-8.7.20181210/rts" ; strip "/<<BUILDDIR>>/ghc- head-8.7.20181210+git.1.4773b43/debian/tmp/opt/ghc/head/lib/ghc-8.7.20181210/rts"/`basename $i` ;; *.so) /usr/bin/install -c -m 755 $i "/<<BUILDDIR>>/ghc- head-8.7.20181210+git.1.4773b43/debian/tmp/opt/ghc/head/lib/ghc-8.7.20181210/rts" ;; *.dylib) /usr/bin/install -c -m 755 $i "/<<BUILDDIR>>/ghc- head-8.7.20181210+git.1.4773b43/debian/tmp/opt/ghc/head/lib/ghc-8.7.20181210/rts";; *) /usr/bin/install -c -m 644 $i "/<<BUILDDIR>>/ghc- head-8.7.20181210+git.1.4773b43/debian/tmp/opt/ghc/head/lib/ghc-8.7.20181210/rts"; esac; done "inplace/bin/ghc-cabal" copy libraries/ghc-prim dist-install "strip" '/<<BUILDDIR>>/ghc-head-8.7.20181210+git.1.4773b43/debian/tmp' '/opt/ghc/head' '/opt/ghc/head/lib/ghc-8.7.20181210' '/opt/ghc/head/share/doc/ghc-8.7.20181210/html/libraries' 'v dyn p' Installing library in /<<BUILDDIR>>/ghc- head-8.7.20181210+git.1.4773b43/debian/tmp/opt/ghc/head/lib/ghc-8.7.20181210 /ghc-prim-0.5.3 dist-install/build/HSghc-prim-0.5.3.p_o: copyFile: does not exist (No such file or directory) make[2]: *** [install_packages] Error 1 make[1]: *** [install] Error 2 make[1]: Leaving directory `/<<BUILDDIR>>/ghc- head-8.7.20181210+git.1.4773b43' dh_auto_install: make -j4 install DESTDIR=/<<BUILDDIR>>/ghc- head-8.7.20181210+git.1.4773b43/debian/tmp AM_UPDATE_INFO_DIR=no returned exit code 2 }}} Full logs available at https://launchpadlibrarian.net/401081604 /buildlog_ubuntu-trusty-amd64.ghc- head_8.7.20181210+git.1.4773b43-9~14.04_BUILDING.txt.gz -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16053 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16053: GHC build regression ("HSghc-prim-0.5.3.p_o: copyFile: does not exist") -------------------------------------+------------------------------------- Reporter: hvr | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (make) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * priority: high => highest * cc: alpmestan (added) * milestone: => 8.8.1 Comment: I haven't quite finished bisecting yet but I strongly suspect that this is due to the Cabal changes introduced in fb9971607c5a41ade71338188c683ee9cb8ca6fc. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16053#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16053: GHC build regression ("HSghc-prim-0.5.3.p_o: copyFile: does not exist") -------------------------------------+------------------------------------- Reporter: hvr | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (make) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Confirmed. fb9971607c5a41ade71338188c683ee9cb8ca6fc is the culprit. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16053#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16053: GHC build regression ("HSghc-prim-0.5.3.p_o: copyFile: does not exist") -------------------------------------+------------------------------------- Reporter: hvr | Owner: (none) Type: bug | Status: patch Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (make) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5169 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => patch * differential: => Phab:D5169 Comment: I see; this will be fixed when we merge Phab:D5169, which is in my merge queue. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16053#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16053: GHC build regression ("HSghc-prim-0.5.3.p_o: copyFile: does not exist") -------------------------------------+------------------------------------- Reporter: hvr | Owner: (none) Type: bug | Status: patch Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (make) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by alpmestan): * differential: Phab:D5169 => Comment: Herbert, could you provide me with instructions to reproduce those issues? Even if it requires running a container/VM or something. I'm afraid that's the kind of problem that's hard to debug without some degree of interactivity. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16053#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16053: GHC build regression ("HSghc-prim-0.5.3.p_o: copyFile: does not exist") -------------------------------------+------------------------------------- Reporter: hvr | Owner: (none) Type: bug | Status: patch Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (make) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5169 Wiki Page: | -------------------------------------+------------------------------------- Changes (by alpmestan): * differential: => Phab:D5169 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16053#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16053: GHC build regression ("HSghc-prim-0.5.3.p_o: copyFile: does not exist") -------------------------------------+------------------------------------- Reporter: hvr | Owner: (none) Type: bug | Status: closed Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (make) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5169 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed Comment: Merged with de56a67acf39098dd94693c6e265dfaade867d2f. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16053#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16053: GHC build regression ("HSghc-prim-0.5.3.p_o: copyFile: does not exist") -------------------------------------+------------------------------------- Reporter: hvr | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (make) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5169 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * cc: watashi (added) * status: closed => new * resolution: fixed => Comment: Unfortunately it Phab:D5169 did not appear to fix this in all cases: the binary distributions produced by CI using the `perf` flavour still fail in `make install` with: {{{ "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy libraries /ghc-prim dist-install "strip" '' '/home/ben/tmp2/ghc-8.7.20181230/hi' '/home/ben/tmp2/ghc-8.7.20181230/hi/lib/ghc-8.7.20181230' '/home/ben/tmp2/ghc-8.7.20181230/hi/share/doc/ghc-8.7.20181230/html/libraries' 'v p dyn' Installing library in /home/ben/tmp2/ghc-8.7.20181230/hi/lib/ghc-8.7.20181230/ghc-prim-0.5.3 dist-install/build/HSghc-prim-0.5.3.o: copyFile: does not exist (No such file or directory) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16053#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16053: GHC build regression ("HSghc-prim-0.5.3.p_o: copyFile: does not exist") -------------------------------------+------------------------------------- Reporter: hvr | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (make) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5169 Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Indeed `libraries/ghc-prim/dist-install/build/HSghc-prim-0.5.3.p_o` exists but `libraries/ghc-prim/dist-install/build/HSghc-prim-0.5.3.o` does not. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16053#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16053: GHC build regression ("HSghc-prim-0.5.3.p_o: copyFile: does not exist") -------------------------------------+------------------------------------- Reporter: hvr | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (make) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5169 Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): I built a `BuildFlavour=perf` build locally and found that while `libraries/ghc-prim/dist-install/build/HSghc-prim-0.5.3.o` was indeed built, it was not included in the binary distribution. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16053#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16053: GHC build regression ("HSghc-prim-0.5.3.p_o: copyFile: does not exist") -------------------------------------+------------------------------------- Reporter: hvr | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (make) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5169 Wiki Page: | -------------------------------------+------------------------------------- Comment (by watashi): Attempt to address this in https://gitlab.haskell.org/ghc/ghc/merge_requests/65 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16053#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16053: GHC build regression ("HSghc-prim-0.5.3.p_o: copyFile: does not exist") -------------------------------------+------------------------------------- Reporter: hvr | Owner: (none) Type: bug | Status: closed Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (make) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5169 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed Comment: Merged with 9ea8dcea3e5ba96808ef91028e0efde9d31f7272. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16053#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC