Skip to content

Hadrian puts its build tree in the wrong place

I have a source tree in my slow, network-mounted backed-up filestore /home/simonpj/ghc, and a separate link-tree in my fast, physically-connected, non-backed up filestore /playpen/ghc. Every file in /playpen/ghc is a symlink to the corresponding source file in /home/simonpj/ghc.

But when I do

$ cd /playpen/ghc
$ hadrian/build.sh -c -j4 --flavour=quick  

I find a new _build director in /home/simonpj/ghc. This is bad! It should be in /playpen/ghc. Otherwise (a) it's slower, (b) it creates backup churn and (c) as it happens, I ran out of space on the backed-up filestore.

Can this be fixed? It's a bad Hadrian shortcoming.

Trac metadata
Trac field Value
Version 8.4.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC andrey.mokhov@newcastle.ac.uk
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information