Re: small bug when compiling ghc-2.04 with ghc-0.29

1997-06-08 Thread Sigbjorn Finne


Stefan Westmeier writes:
 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.
 
  [..Makefile snippet elided..]

Oops, a vital target was omitted here for the 0.29 case, please apply
the patch appended. If you're compiling with 2.02/2.03, you need to
set the Ghc2_0 variable in your mk/build.mk file to YES (see
mk/config.mk.in for more).

--Sigbjorn

*** ghc/compiler/Makefile.orig  1997/06/05 21:28:12
--- ghc/compiler/Makefile   1997/06/08 03:29:19
***
*** 296,304 
  # 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 )
--- 296,305 
  # Have the collector *Loop.hs interface files be generated just after having
  # created the .hi's from the .hi-boot's. 
  
  
  else
+ hi-boot :: $(LOOPS)
+ 
  %.hi : %.lhi
$(RM) $@
$(UNLIT) $  $@ || ( $(RM) $@  exit 1 )




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