"make install" fails on Windows
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.
Trac metadata
Trac field | Value |
---|---|
Version | 7.7 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Build System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |