Skip to content

make install DESTDIR=./relative/path fails

The following works as expected:

$ make install DESTDIR=$PWD/image

however when using a relative target path it fails:

$ make install DESTDIR=./image
...
"inplace/bin/ghc-cabal" install "./image/usr/local/lib/ghc-7.0.1/ghc"
 "./image/usr/local/lib/ghc-7.0.1/ghc-pkg"
 "strip" "./image/usr/local/lib/ghc-7.0.1" libraries/ghc-prim dist-install
 './image' '/usr/local' '/usr/local/lib/ghc-7.0.1'
 '/usr/local/share/doc/ghc/html/libraries' NO  
ghc-cabal:
make[1]: *** [install_packages] Error 1
make: *** [install] Error 2

The ghc-cabal command clearly fails, but no error message (other than "ghc-cabal:") is produced.

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