small bug when compiling ghc-2.04 with ghc-0.29

1997-06-07 Thread Stefan Westmeier

The following piece of code is from fptools/ghc/compiler/Makefile. 
When doing "gmake boot" the goal hi-boot is not found and some
hi-files are not produced from the hi-boot files.

Ciao, Stefan.
--
Stefan Westmeier  [EMAIL PROTECTED]
Schaphuser Str. 24
D-28307 Bremen vox humana: +(49) 421 424001
Germany   fax machina: +(49) 421 424045



#-
#   Interface files

# LoopHack.lhc is an SLPJ addition to fix a profiling problem.  See comments
# inside it. (compilation is handled by the suffix rules).

#
# Building the loop breakers from .lhi (0.2x) or .hi-boot (2.xx) files
#
ifeq ($(Ghc2_0),YES)

BOOT_HI_STEMS = $(basename $(wildcard */*.hi-boot))

hi-boot :: 
@for n in $(BOOT_HI_STEMS); \
do  \
  echo Creating $$n.hi ; \
  $(RM) $$n.hi ; \
  $(CP) $$n.hi-boot $$n.hi || ( $(RM) $$n.hi  exit 1 ) ; \
done 
#
# Have the collector *Loop.hs interface files be generated just after having
# created the .hi's from the .hi-boot's. 

#hi-boot :: $(patsubst %.hs,%.hi,$(LOOPS_HS))

else
%.hi : %.lhi
$(RM) $@
$(UNLIT) $  $@ || ( $(RM) $@  exit 1 )
@chmod 444 $@
endif

boot :: hi-boot




Small bug when compiling ghc-2.04 with ghc-2.02

1997-06-07 Thread Stefan Westmeier

When compiling the ghc-2.04-src.tar.gz (without hi and hc files) with
ghc-2.02 "gmake boot" gives the following error. It does not appear
when removing the "," from withing the SLIT of this piece of code from
TcSimplify.lhs from line 728:

\begin{code}
reduceErr insts sty
  = hang (ptext (SLIT("Context required by inferred type but missing on a type 
signature")))
   4 (vcat (map (pprInst sty) (bagToList insts)))
\end{code}


What does also not work is the following piece of code with Linux:

"#!/bin/sh -- # to stop perl from looping "

It is from target.mk and is put at front of some of the scripts like
mkdependC ... replacing it with just

"#!/usr/bin/perl" 

helped comming throught "gmake boot". The original version complained
about the "--".

Ciao, Stefan.
--
Stefan Westmeier  [EMAIL PROTECTED]
Schaphuser Str. 24
D-28307 Bremen vox humana: +(49) 421 424001
Germany   fax machina: +(49) 421 424045




==fptools== gmake boot;
 in /home/stefan/bkb/haskell/ghc-2.04/fptools/ghc/compiler

Creating absCSyn/CLabel.hi
Creating basicTypes/FieldLabel.hi
Creating basicTypes/Id.hi
Creating basicTypes/Literal.hi
Creating basicTypes/Name.hi
Creating basicTypes/Unique.hi
Creating codeGen/CgBindery.hi
Creating codeGen/CgExpr.hi
Creating codeGen/CgRetConv.hi
Creating codeGen/CgUsages.hi
Creating codeGen/ClosureInfo.hi
Creating coreSyn/CoreUnfold.hi
Creating deSugar/DsBinds.hi
Creating deSugar/DsExpr.hi
Creating deSugar/Match.hi
Creating hsSyn/HsBinds.hi
Creating hsSyn/HsExpr.hi
Creating hsSyn/HsMatches.hi
Creating nativeGen/MachMisc.hi
Creating nativeGen/Stix.hi
Creating nativeGen/StixPrim.hi
Creating prelude/PrimOp.hi
Creating prelude/StdIdInfo.hi
Creating prelude/TysPrim.hi
Creating prelude/TysWiredIn.hi
Creating profiling/CostCentre.hi
Creating rename/RnBinds.hi
Creating rename/RnSource.hi
Creating simplCore/MagicUFs.hi
Creating simplCore/Simplify.hi
Creating specialise/SpecEnv.hi
Creating typecheck/TcEnv.hi
Creating typecheck/TcGRHSs.hi
Creating typecheck/TcType.hi
Creating types/Class.hi
Creating types/TyCon.hi
Creating types/TyVar.hi
Creating types/Type.hi
Creating utils/UniqFM.hi
../utils/ugen/ugen parser/binding.ugn || rm -f parser/binding.h parser/binding.hs
../utils/ugen/ugen parser/constr.ugn || rm -f parser/constr.h parser/constr.hs
../utils/ugen/ugen parser/either.ugn || rm -f parser/either.h parser/either.hs
../utils/ugen/ugen parser/entidt.ugn || rm -f parser/entidt.h parser/entidt.hs
../utils/ugen/ugen parser/list.ugn || rm -f parser/list.h parser/list.hs
../utils/ugen/ugen parser/literal.ugn || rm -f parser/literal.h parser/literal.hs
../utils/ugen/ugen parser/maybe.ugn || rm -f parser/maybe.h parser/maybe.hs
../utils/ugen/ugen parser/pbinding.ugn || rm -f parser/pbinding.h parser/pbinding.hs
../utils/ugen/ugen parser/qid.ugn || rm -f parser/qid.h parser/qid.hs
../utils/ugen/ugen parser/tree.ugn || rm -f parser/tree.h parser/tree.hs
../utils/ugen/ugen parser/ttype.ugn || rm -f parser/ttype.h parser/ttype.hs
../utils/unlit/unlit main/LoopHack.lhc main/LoopHack.hc
../../glafp-utils/mkdependC/mkdependC -f .depend-- -Iparser -I. -I../includes
--   parser/binding.c  parser/constr.c  parser/either.c  parser/entidt.c  
parser/list.c  parser/literal.c  parser/maybe.c  parser/pbinding.c  parser/qid.c  
parser/tree.c  parser/ttype.cghc-2.02ghc-2.02 -M -optdep-f -optdep.depend -cpp 
-fhaskell-1.3 -fglasgow-exts -DCOMPILING_GHC -Rghc-timing -I. -IcodeGen -InativeGen 
-Iparser -iutils -ibasicTypes -itypes -ihsSyn -iprelude -irename -itypecheck -ideSugar 
-icoreSyn -ispecialise -isimplCore -istranal -istgSyn -isimplStg -icodeGen -iabsCSyn 
-imain -ireader -iprofiling -iparser -inativeGen -recomp -DOMIT_DEFORESTER 
parser/U_binding.hs parser/U_constr.hs parser/U_either.hs parser/U_entidt.hs 
parser/U_list.hs parser/U_literal.hs parser/U_maybe.hs parser/U_pbinding.hs 
parser/U_qid.hs parser/U_tree.hs parser/U_ttype.hs utils/Argv.lhs utils/Bag.lhs 
utils/BitSet.lhs utils/Digraph.lhs utils/FastString.lhs utils/FiniteMap.lhs 
utils/ListSetOps.lhs utils/Mat!
!
chEnv.lhs utils/Maybes.lhs utils/OrdList.lhs utils/Outputable.lhs utils/Pretty.lhs 
utils/PrimPacked.lhs utils/SST.lhs utils/StringBuffer.lhs utils/UniqFM.lhs 
utils/UniqSet.lhs utils/Util.lhs basicTypes/BasicTypes.lhs basicTypes/Demand.lhs 
basicTypes/FieldLabel.lhs basicTypes/Id.lhs basicTypes/IdInfo.lhs 
basicTypes/IdUtils.lhs basicTypes/Literal.lhs basicTypes/Name.lhs 
basicTypes/PprEnv.lhs basicTypes/PragmaInfo.lhs basicTypes/SrcLoc.lhs 
basicTypes/UniqSupply.lhs basicTypes/Unique.lhs types/Class.lhs types/Kind.lhs 
types/PprType.lhs types/TyCon.lhs types/TyVar.lhs types/Type.lhs types/Usage.lhs 
hsSyn/HsBasic.lhs hsSyn/HsBinds.lhs hsSyn/HsCore.lhs hsSyn/HsDecls.lhs 
hsSyn/HsExpr.lhs hsSyn/HsImpExp.lhs hsSyn/HsMatches.lhs