Problems building ghc-current

Alastair Reid alastair@reid-consulting-uk.ltd.uk
Wed, 28 May 2003 09:50:15 +0100


--Boundary-00=_HhH1+SDKIZ5f3bU
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


> Alastair: Thanks a lot for the detailed reply! I'll take a look at the
> build again; maybe I can get this problem fixed after all.

The attached diff (about to be committed) seems to fix the problem.

--
Alastair
--Boundary-00=_HhH1+SDKIZ5f3bU
Content-Type: text/x-diff;
  charset="iso-8859-1";
  name="gc-diffs"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="gc-diffs"

? gc-3.00
? distrib/html/old_index.html
? lib/Foreign/GreenCard.p_hi
? lib/Foreign/GreenCard.p_o
? lib/Foreign/GreenCard_split
? src/green-card.bin
Index: lib/Makefile
===================================================================
RCS file: /home/cvs/root/fptools/green-card/lib/Makefile,v
retrieving revision 1.12
diff -c -C2 -r1.12 Makefile
*** lib/Makefile	27 May 2003 16:24:02 -0000	1.12
--- lib/Makefile	28 May 2003 08:50:00 -0000
***************
*** 16,20 ****
                    $(addsuffix _stub_ffi.o,$(basename $(GC_SRCS))) 
  
! SRC_GC_OPTS += --target ffi
  
  CC=$(HC)
--- 16,20 ----
                    $(addsuffix _stub_ffi.o,$(basename $(GC_SRCS))) 
  
! GREENCARD = $(TOP)/src/green-card.bin --libdir=$(TOP)/lib
  
  CC=$(HC)
***************
*** 24,28 ****
  LIBOBJS		= $(GC_OBJS) $(C_OBJS)
  
! SRC_HC_OPTS	+= -cpp -fglasgow-exts -package lang -fno-prune-tydecls
  
  %.o : %.c
--- 24,28 ----
  LIBOBJS		= $(GC_OBJS) $(C_OBJS)
  
! SRC_HC_OPTS	+= -cpp -fglasgow-exts -fno-prune-tydecls
  
  %.o : %.c
Index: src/Makefile
===================================================================
RCS file: /home/cvs/root/fptools/green-card/src/Makefile,v
retrieving revision 1.39
diff -c -C2 -r1.39 Makefile
*** src/Makefile	27 May 2003 11:39:17 -0000	1.39
--- src/Makefile	28 May 2003 08:50:00 -0000
***************
*** 12,16 ****
  HS_OBJS	       += $(C_OBJS)
  
! HS_PROG		= green-card
  
  SRC_HC_OPTS    += -fvia-C -fglasgow-exts -O
--- 12,16 ----
  HS_OBJS	       += $(C_OBJS)
  
! HS_PROG		= green-card.bin
  
  SRC_HC_OPTS    += -fvia-C -fglasgow-exts -O
***************
*** 26,34 ****
  	sed < $^ > $@ "s|@ProjectVersion@|${ProjectVersion}|g"
  
! all :: green-card.sh
  
  dist :: $(BOOT_SRCS)
  
! green-card.sh : green-card.sh.in
  	sed < $^ > $@ "s|@libdir@|${libdir}|g"
  	chmod a+x $@
--- 26,34 ----
  	sed < $^ > $@ "s|@ProjectVersion@|${ProjectVersion}|g"
  
! all :: green-card
  
  dist :: $(BOOT_SRCS)
  
! green-card : green-card.sh.in
  	sed < $^ > $@ "s|@libdir@|${libdir}|g"
  	chmod a+x $@

--Boundary-00=_HhH1+SDKIZ5f3bU--