[Redirected to g-h-b to spare the tender souls on g-h-u :-) ]

> 
> After my success at compiling ghc-2.05 on SunOS 4, I am now attempting it
> on sparc-sun-solaris2.5.1 and i386-unknown-solaris2.5 and both of them
> have stopped with this:
> 
> ghc-0.29 [....] -c absCSyn/PprAbsC.lhs -o absCSyn/PprAbsC.o -osuf o
> 
> "codeGen/ClosureInfo.hi", line 72:
>     undefined type constructor: StgSyn.StgBinderInfo
>  
  ...
> 
> (and is there any way to get "make all" abort if "cd ghc/compiler;make all"
> has errors?)
> 
> Oddly enough it compiles OK if I take the -O out, so perhaps I'll continue
> with that (it occurs to me that I probably didn't compile the sunos one
> with the -O flag.  [pause]  yes, it doesn't work with -O on sunos either).
> 
> imc

Hi,

sorry about the delay. To get around the problem with
absCSyn/PprAbsC.o & 'ghc-0.29 -O', you can either do as you did or
apply the patch suggested on the bugs page:

  http://www.dcs.gla.ac.uk/fp/software/ghc/bugs.html#2.05-compile

Re: stop-on-error behaviour with make, the following (untested) patch
might help...

HTH,
--Sigbjorn

*** fptools/mk/target.mk        1997/07/05 00:49:46     1.15
--- fptools/mk/target.mk        1997/07/31 12:48:10
***************
*** 1021,1025 ****
  
  all docs runtests boot TAGS clean veryclean maintainer-clean install info ::
-       @case '${MFLAGS}' in *[ik]*) set +e;; esac;
        @echo 
"------------------------------------------------------------------------"
        @echo "===fptools== Recursively making \`$@' in $(SUBDIRS) ..."
--- 1021,1024 ----
***************
*** 1027,1030 ****
--- 1026,1030 ----
        @echo 
"------------------------------------------------------------------------"
        @for i in $(SUBDIRS) ; do \
+         case '${MFLAGS}' in *-[ik]*) set +e; break;; *) set -e;; esac; \
          echo 
"------------------------------------------------------------------------"; \
          echo "==fptools== $(MAKE) $@;"; \
***************
*** 1039,1044 ****
  
  dist ::
-       @case '${MFLAGS}' in *[ik]*) 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; \
--- 1039,1044 ----
  
  dist ::
        for i in $(SUBDIRS) ; do \
+         case '${MFLAGS}' in *-[ik]*) set +e;; *) set -e;; esac; \
          $(MKDIRHIER_PREFIX)mkdirhier $(SRC_DIST_DIR)/$$i; \
          $(MAKE) -C $$i $(MFLAGS) $@ SRC_DIST_DIR=$(SRC_DIST_DIR)/$$i; \
***************
*** 1068,1071 ****
--- 1068,1072 ----
        @echo 
"------------------------------------------------------------------------"
        @for i in $(WAYS) ; do \
+         case '${MFLAGS}' in *-[ik]*) set +e;; *) set -e;; esac; \
          echo 
"------------------------------------------------------------------------"; \
          echo "==fptools== $(MAKE) way=$$i $@;"; \

Reply via email to