[GHC] #7712: "make install" fails on Windows

GHC cvs-ghc at haskell.org
Fri Feb 22 17:55:08 CET 2013


#7712: "make install" fails on Windows
----------------------------------+-----------------------------------------
Reporter:  dpratt71               |          Owner:                  
    Type:  bug                    |         Status:  new             
Priority:  normal                 |      Component:  Build System    
 Version:  7.7                    |       Keywords:                  
      Os:  Windows                |   Architecture:  Unknown/Multiple
 Failure:  Installing GHC failed  |      Blockedby:                  
Blocking:                         |        Related:                  
----------------------------------+-----------------------------------------
 Running the 'make install' command under Windows 8/MinGW produces an
 error. The full output of 'make install':

 {{{
 $ make install
 ===--- building phase 0
 make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds
 make[1]: Nothing to be done for `phase_0_builds'.
 ===--- building phase 1
 make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds
 make[1]: Nothing to be done for `phase_1_builds'.
 ===--- building final phase
 make -r --no-print-directory -f ghc.mk phase=final install
 /bin/install -c -m 755 -d "/usr/local/lib"
 /bin/install -c -m 755  driver/split/dist/ghc-split "/usr/local/lib"
 driver/ghci/ghc.mk:56: *** removeFiles: Got leading slash:
 /usr/local/bin/ghcii.sh.  Stop.
 make: *** [install] Error 2
 }}}

 It seems that the removeFiles function specifically disallows paths that
 start with a "/". Looking around at other places where removeFiles was
 being called with a rooted path, the path was also quoted. I added quotes
 to the path in the line mentioned in the error above (and one other place)
 and thereafter the 'make install' command proceeded without errors.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7712>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list