Opened 7 years ago

Closed 7 years ago

#4883 closed bug (fixed)

make install DESTDIR=./relative/path fails

Reported by: duncan Owned by: igloo
Priority: normal Milestone:
Component: Build System Version: 7.0.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Installing GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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"
 "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  
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.

Change History (3)

comment:1 Changed 7 years ago by igloo

comment:2 Changed 7 years ago by igloo

Owner: set to igloo

comment:3 Changed 7 years ago by igloo

Resolution: fixed
Status: newclosed

Fixed in HEAD and 7.0 branch:

Sat Jan  8 17:16:35 GMT 2011  Ian Lynagh <>
  * Make DESTDIR an absolute path when installing; fixes #4883
Note: See TracTickets for help on using tickets.