Re: GHC 4.00 Hackers only release

1998-09-01 Thread Sven Panne

Just a little bit of nit picking in ghc-pre-4.00.2:

   * PROTO is not defined by GHC's headers anymore, therefore the
 compilation of Readline.lhs fails.

   * readline/history.h is not included.

   * Prototypes for bcopy/bzero are missing.

   * GHC somehow manages to generate the following warning while
 compiling the RTS:
/usr/include/stdlib.h:149: warning: no previous prototype for `strtold'
 This is simply cured by -D_GNU_SOURCE.

---
*** fptools/ghc/lib/misc/cbits/ghcReadline.h.~1~Mon Feb  2 18:32:20 1998
--- fptools/ghc/lib/misc/cbits/ghcReadline.hTue Sep  1 09:55:33 1998
***
*** 5,11 
  #include "config.h"
  
  #if HAVE_READLINE_READLINE_H
! #include "readline/readline.h"
  #endif
  
  /* For some reason the following 3 aren't defined in readline.h */
--- 5,12 
  #include "config.h"
  
  #if HAVE_READLINE_READLINE_H
! #include readline/readline.h
! #include readline/history.h
  #endif
  
  /* For some reason the following 3 aren't defined in readline.h */
***
*** 17,23 
  /* Our C Hackery stuff for Callbacks */
  typedef I_ KeyCode;
  extern StgStablePtr cbackList;
! I_ genericRlCback PROTO((I_, I_));
  extern StgStablePtr haskellRlEntry;
  extern I_ current_narg, rl_return;
  extern KeyCode current_kc;
--- 18,24 
  /* Our C Hackery stuff for Callbacks */
  typedef I_ KeyCode;
  extern StgStablePtr cbackList;
! I_ genericRlCback (I_, I_);
  extern StgStablePtr haskellRlEntry;
  extern I_ current_narg, rl_return;
  extern KeyCode current_kc;
*** fptools/ghc/lib/misc/cbits/md5.h.~1~Fri Aug  7 12:04:03 1998
--- fptools/ghc/lib/misc/cbits/md5.hTue Sep  1 09:55:19 1998
***
*** 2,7 
--- 2,11 
  #ifndef _MD5_H
  #define _MD5_H
  
+ #if HAVE_STRING_H
+ #include string.h
+ #endif
+ 
  typedef unsigned long word32;
  typedef unsigned char byte;
  
*** fptools/ghc/driver/ghc.lprl.~1~ Tue Aug 25 13:11:36 1998
--- fptools/ghc/driver/ghc.lprl Tue Sep  1 10:16:54 1998
***
*** 246,252 
  
  \begin{code}
  $CcRegd   = $GHC_OPT_HILEV_ASM;
! @CcBoth_flags = ('-S','-Wimplicit');   # flags for *any* C compilation
  @CcInjects= ();
  
  # GCC flags: 
--- 246,252 
  
  \begin{code}
  $CcRegd   = $GHC_OPT_HILEV_ASM;
! @CcBoth_flags = ('-S','-Wimplicit','-D_GNU_SOURCE');   # flags for *any* C 
compilation
  @CcInjects= ();
  
  # GCC flags: 
---

-- 
Sven PanneTel.: +49/89/2178-2235
LMU, Institut fuer Informatik FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen  Oettingenstr. 67
mailto:[EMAIL PROTECTED]D-80538 Muenchen
http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne



Re: GHC 4.00 Hackers only release

1998-08-29 Thread Sigbjorn Finne


Kevin Glynn writes:
 
 Simon Marlow writes:
   
   This is pre-release of the long awaited GHC 4.00.  I decided to put
   together a release today because the sources are in pretty good shape
   at the moment, not because it is at all ready.  In particular, we plan
   to have some sort of profiling working for the real 4.00 release.
   
   The source snapshot can be found at
   
   ftp://ftp.dcs.gla.ac.uk/pub/haskell/glasgow/working/ghc-pre-4.00.tar.gz
   
   Have Fun!
   
 
 Actually:
 
 ftp://ftp.dcs.gla.ac.uk/pub/haskell/glasgow/working/ghc-pre-4.00-src.tar.gz
 

There was a couple of minor problems with that tarball, so I've rolled
another one that hopefully simplifies the path to ghc-4.00 happiness.
Try

ftp://ftp.dcs.gla.ac.uk/pub/haskell/glasgow/working/ghc-pre-4.00.1-src.tar.gz

--Sigbjorn

For those keeping track / don't want to download it all again, the
changes in this bundle were: 

 - removed ghc/driver/ghc
 - removed ghc/compiler/parser/tree.{c,h}
 - removed ghc/compiler/parser/hslexer.c
 - removed ghc/compiler/parser/hsparser.tab.{c,h}
 - added mk/config.h.in

 - turn off the building of profiling libs by default, since
   the profiling bits in the rts doesn't compile cleanly:

*** fptools-4.00/mk/config.mk.inFri Aug 21 13:35:43 1998
--- fptools/mk/config.mk.in Sat Aug 29 16:42:13 1998
***
*** 208,212 
  GhcLibWays=
  else
! GhcLibWays=p
  endif
  
--- 208,212 
  GhcLibWays=
  else
! GhcLibWays=
  endif
  

 - configure.in: changed default WithGhcHc from ghc-2.10 to
   ghc-3.02, since the compiler sources doesn't compile
   cleanly with 2.10 at the moment:

*** fptools-4.00/configure.in   Fri Aug 21 13:35:26 1998
--- fptools/configure.inSat Aug 29 16:48:13 1998
***
*** 287,296 
  AC_ARG_WITH(ghc-hc,
  [  --with-ghc-hc=haskell compiler
! Use a command different from 'ghc-2.10' to compile up the GHC compiler 
sources.
   (no claims currently made that this will work with a compiler other than a
recent version of GHC, but you could always try...)
  ],
  [WithGhcHc="$withval"],
! [WithGhcHc="ghc-2.10"]
  )
  AC_SUBST(WithGhcHc)
--- 287,296 
  AC_ARG_WITH(ghc-hc,
  [  --with-ghc-hc=haskell compiler
! Use a command different from 'ghc-3.02' to compile up the GHC compiler 
sources.
   (no claims currently made that this will work with a compiler other than a
recent version of GHC, but you could always try...)
  ],
  [WithGhcHc="$withval"],
! [WithGhcHc="ghc-3.02"]
  )
  AC_SUBST(WithGhcHc)


 - misc ghc/rts/gmp Makefile fixes to make gmp source build properly.

*** fptools-4.00/ghc/rts/gmp/Makefile.inFri Aug 21 15:48:47 1998
--- fptools/ghc/rts/gmp/Makefile.in Sat Aug 29 17:49:45 1998
***
*** 193,196 
  
  force:
! .PNONY: check install install-bsdmp install-info-files install-strip uninstall
  .PHONY: doc clean distclean maintainer-clean force info dvi
--- 193,204 
  
  force:
! .PHONY: check install install-bsdmp install-info-files install-strip uninstall
  .PHONY: doc clean distclean maintainer-clean force info dvi
+ 
+ # added sof. 
+ .SUFFIXES: .o .c
+ # In the fptools/ mk setup we clear the setting of .SUFFIXES since we
+ # don't use any pre-supplied suffix rules (if any). This causes a
+ # problem when descending into a directory like gmp/ which does
+ # use suffix rules, so we need to add .c  .o to the .SUFFIXES list
+ # here.


*** fptools-4.00/ghc/rts/gmp/mpz/Makefile.inFri Aug 21 15:50:28 1998
--- fptools/ghc/rts/gmp/mpz/Makefile.in Sat Aug 29 15:40:01 1998
***
*** 78,82 
  clean mostlyclean:
rm -f *.o libmpz.a
!   -cd tests; $(MAKE) $@
  distclean maintainer-clean: clean
rm -f Makefile config.status
--- 78,82 
  clean mostlyclean:
rm -f *.o libmpz.a
!   #-cd tests; $(MAKE) $@
  distclean maintainer-clean: clean
rm -f Makefile config.status