Alex Ferguson <[EMAIL PROTECTED]> writes:

> > sh: /home/muth/PACKAGES/fptools/ghc/driver/../compiler/hsc: not found
> 
> This is a pretty generic one; the Actual Compiler (TM) has failed to build,
> but gnumake has plowed on regardless, obtaining the above error message
> as soon as it tries to run the (non-existant) Haskell compiler.  You'll
> need to backscroll somewhat further through the spam, and see what caused
> the compiler build to fail.  Or equally, cd to ghc/compiler, and gmake all
> again.

The fact that 'make' carries on after an error is a bug that's been
plaguing us for ages.  I could have *sworn* I fixed it about a month
ago, but it seems the bug has silently crept in again.

For anyone who's interested, here's the patch:

*** target.mk   1997/11/28 13:48:01     1.24
--- target.mk   1997/12/04 12:13:45     1.25
***************
*** 1012,1018 ****
        @echo "===fptools== Recursively making \`$@' in $(SUBDIRS) ..."
        @echo "PWD = $(shell pwd)"
        @echo 
"------------------------------------------------------------------------"
!       @case '${MFLAGS}' in -*[ik]*) set +e;; *) set -e;; esac; \
        for i in $(SUBDIRS) ; do \
          echo 
"------------------------------------------------------------------------"; \
          echo "==fptools== $(MAKE) $@;"; \
--- 1012,1018 ----
        @echo "===fptools== Recursively making \`$@' in $(SUBDIRS) ..."
        @echo "PWD = $(shell pwd)"
        @echo 
"------------------------------------------------------------------------"
!       @case '${MFLAGS}' in *-[ik]*) set +e;; *) set -e;; esac; \
        for i in $(SUBDIRS) ; do \
          echo 
"------------------------------------------------------------------------"; \
          echo "==fptools== $(MAKE) $@;"; \
***************
*** 1026,1032 ****
        @echo 
"------------------------------------------------------------------------"

  dist ::
!       @case '${MFLAGS}' in -*[ik]*) set +e;; *) set -e;; esac; \
        for i in $(SUBDIRS) ; do \
          $(MKDIRHIER_PREFIX)mkdirhier $(SRC_DIST_DIR)/$$i; \
          $(MAKE) -C $$i $(MFLAGS) $@ SRC_DIST_DIR=$(SRC_DIST_DIR)/$$i; \
--- 1026,1032 ----
        @echo 
"------------------------------------------------------------------------"

  dist ::
!       @case '${MFLAGS}' in *-[ik]*) set +e;; *) set -e;; esac; \
        for i in $(SUBDIRS) ; do \
          $(MKDIRHIER_PREFIX)mkdirhier $(SRC_DIST_DIR)/$$i; \
          $(MAKE) -C $$i $(MFLAGS) $@ SRC_DIST_DIR=$(SRC_DIST_DIR)/$$i; \
***************
*** 1054,1060 ****
        @echo "===fptools== Recursively making \`$@' for ways: $(WAYS) ..."
        @echo "PWD = $(shell pwd)"
        @echo 
"------------------------------------------------------------------------"
!       @case '${MFLAGS}' in -*[ik]*) set +e;; *) set -e;; esac; \
        for i in $(WAYS) ; do \
          echo 
"------------------------------------------------------------------------"; \
          echo "==fptools== $(MAKE) way=$$i $@;"; \
--- 1054,1060 ----
        @echo "===fptools== Recursively making \`$@' for ways: $(WAYS) ..."
        @echo "PWD = $(shell pwd)"
        @echo 
"------------------------------------------------------------------------"
!       @case '${MFLAGS}' in *-[ik]*) set +e;; *) set -e;; esac; \
        for i in $(WAYS) ; do \
          echo 
"------------------------------------------------------------------------"; \
          echo "==fptools== $(MAKE) way=$$i $@;"; \


-- 
Simon Marlow                                             [EMAIL PROTECTED]
University of Glasgow                       http://www.dcs.gla.ac.uk/~simonm/
finger for PGP public key

Reply via email to