Re: One more bug (I hope)

1998-09-01 Thread David Barton

OK, done.  I have applied the patch, run gmake all, then gmake
install.  I now get the following error from the final (ld) step:

  /usr/src/ghc/lib/lib/libHSrts.a(Printer.o): In function `DEBUG_LoadSymbols':
  /usr/src/ghc/fptools/ghc/rts/Printer.c:623: undefined reference to `bfd_init'
  /usr/src/ghc/fptools/ghc/rts/Printer.c:624: undefined reference to `bfd_openr'
  /usr/src/ghc/fptools/ghc/rts/Printer.c:628: undefined reference to 
`bfd_check_format_matches'
  make: *** [main] Error 1

Still working on things.

Dave Barton <*>
[EMAIL PROTECTED] )0(
http://www.intermetrics.com/~dlb



Re: One more bug (I hope)

1998-09-01 Thread David Barton

Will do.  I assume this does not require a recompile, just a reinstall?

Dave Barton <*>
[EMAIL PROTECTED] )0(
http://www.intermetrics.com/~dlb



Re: GHC 4.00 "Hackers only" release

1998-09-01 Thread Simon Marlow

Sven Panne <[EMAIL PROTECTED]> writes:

> 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.
> 

Thanks, I hadn't tried compiling Readline as yet.

>* 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.

Grrr.  [Simon tunrs white and starts gibbering at the mention of
_GNU_SOURCE].

This is a (harmless) bug in the Linux header files.

Cheers,
Simon



> 
> ---
> *** fptools/ghc/lib/misc/cbits/ghcReadline.h.~1~  Mon Feb  2 18:32:20 1998
> --- fptools/ghc/lib/misc/cbits/ghcReadline.h  Tue 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 
> ! #include 
>   #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.h  Tue Sep  1 09:55:19 1998
> ***
> *** 2,7 
> --- 2,11 
>   #ifndef _MD5_H
>   #define _MD5_H
>   
> + #if HAVE_STRING_H
> + #include 
> + #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
> 

-- 
-- 
Simon Marlow [EMAIL PROTECTED]
University of Glasgow   http://www.dcs.gla.ac.uk/~simonm/
finger for PGP public key



Re: One more bug (I hope)

1998-09-01 Thread Simon Marlow

David Barton <[EMAIL PROTECTED]> writes:

> OK, I have compiled and installed ghc-4.00 on Linux Redhat 5.0.  When
> linking, inlcuding -syslip posix, I got the following ld error:
> 
> ld: cannot open -lnot-installed: No such file or directory
> 
> Obviously, not-installed is not mentioned in any of my command lines.
> 
> Any assistance would be appreciated.

Try the following patch to ghc/driver/ghc.lprl:

*** 1242,1248 
  # If this machine has GMP already installed, then we'll get the installed
  # lib here, because presumably the one in the tree won't have been built.

! push(@SysLibrary, "-l$LibGmp");
  push(@SysLibrary, '-lm');
  \end{code}

--- 1252,1263 
  # If this machine has GMP already installed, then we'll get the installed
  # lib here, because presumably the one in the tree won't have been built.

! if ($LibGmp eq 'not-installed') {
!   push(@SysLibrary, "-lgmp");
! } else {
!   push(@SysLibrary, "-l$LibGmp");
! }
!
  push(@SysLibrary, '-lm');
  \end{code}

-- 
Simon Marlow [EMAIL PROTECTED]
University of Glasgow   http://www.dcs.gla.ac.uk/~simonm/
finger for PGP public key



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 
! #include 
  #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 
+ #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