[GHC] #15877: --flavour=quick followed by --flavour=prof fails

#15877: --flavour=quick followed by --flavour=prof fails -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Build System | Version: 8.6.2 (Hadrian) | 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: -------------------------------------+------------------------------------- Starting from a clean tree I first built successfully with `--flavour=quick`, I then changed to `--flavour=prof` and the build failed as follows: {{{ /root/ghc/_build/stage1/rts/build/libCffi_p.a: copyFile: does not exist (No such file or directory) shakeArgsWith 0.010s 0% Function shake 0.435s 0% Database read 0.670s 0% With database 0.035s 0% Running rules 123.401s 99% ========================= Total 124.551s 100% Error when running Shake build system: at src/Rules.hs:(32,19)-(45,17): at src/Rules.hs:45:5-17: * Depends on: _build/stage1/lib/package.conf.d/rts-1.0.conf * Raised the exception: ExitFailure 1 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15877 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15877: --flavour=quick followed by --flavour=prof fails -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.6.3 Component: Build System | Version: 8.6.2 (Hadrian) | 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): Wiki Page: | -------------------------------------+------------------------------------- Changes (by mpickering): * status: new => closed * resolution: => fixed Comment: Turns out I was using an old version of hadrian. No problems with an up- to-date version. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15877#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15877: --flavour=quick followed by --flavour=prof fails -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Build System | Version: 8.6.2 (Hadrian) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by hsyl20): * status: closed => new * resolution: fixed => Comment: It happened to me with current head. {{{ ./hadrian/build.stack.sh -c -j binary-dist WARNING: Ignoring out of range dependency (allow-newer enabled): Cabal-2.5.0.0. happy requires: <2.4 hadrian-0.1.0.0: build (exe) hadrian-0.1.0.0: copy/register Log files have been written to: snip.../hadrian/.stack-work/logs/ snip.../_build/stage1/rts/build/libCffi_p.a: copyFile: does not exist (No such file or directory) }}} A workaround is to delete libffi.a: {{{ rm _build/stage1/libffi/build/inst/lib/libffi.a }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15877#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC