Opened 10 months ago

Last modified 9 months ago

#15877 new bug

--flavour=quick followed by --flavour=prof fails

Reported by: mpickering Owned by:
Priority: normal Milestone: 8.6.3
Component: Build System (Hadrian) Version: 8.6.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown 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

Change History (2)

comment:1 Changed 10 months ago by mpickering

Resolution: fixed
Status: newclosed

Turns out I was using an old version of hadrian. No problems with an up-to-date version.

comment:2 Changed 9 months ago by hsyl20

Resolution: fixed
Status: closednew

It happened to me with current head.

./hadrian/ -c -j binary-dist
WARNING: Ignoring out of range dependency (allow-newer enabled): Cabal- happy requires: <2.4
hadrian- build (exe)
hadrian- 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
Note: See TracTickets for help on using tickets.