Re: ghc-4.00 cvs source build question
> This morning I got the cvs source tree from > > CVSROOT="[EMAIL PROTECTED]:/cvs" > [..] > > Did you put Version 3.03 back in the repository? Or is it just > the wrong name? [to the list because I had the same problem] The head of the tree is still 3.03; if you want 4 you have to do cvs co -r new-rts fpconfig cd fptools cvs co -r new-rts ghc HTH. --KW 8-) -- : Keith Wansbrough, MSc, BSc(Hons) (Auckland) : : PhD Student, Computer Laboratory, University of Cambridge, England. : : (and recently of the University of Glasgow, Scotland. [><] ) : : Native of Antipodean Auckland, New Zealand: 174d47' E, 36d55' S.: : http://www.cl.cam.ac.uk/users/kw217/ mailto:[EMAIL PROTECTED] : :-:
GHC-4.00 source build
Some minor quirks with today's ghc-4.00: * fptools/ghc/rts/StgPrimFloat.c did not compile because of the redefiniton of union ieee754_double, which is already defined in /usr/include/ieee754.h on my Linux (libc5) box. Fix: rename ieee754_double to my_ieee754_double. This works, but autoconf should better check for this. * Word.lhs needs a little bit more heap for compilation: diff -r fptools.orig/ghc/lib/exts/Makefile fptools/ghc/lib/exts/Makefile 43c43 < Word_HC_OPTS += -H12m --- > Word_HC_OPTS += -H16m * Remove some imports in PosixIO (PrelHandle does not export these): diff -r fptools.orig/ghc/lib/posix/PosixIO.lhs fptools/ghc/lib/posix/PosixIO.lhs 34c34 < import PrelHandle (readHandle, writeHandle, newHandle, getBMode__, getHandleFd ) --- > import PrelHandle (newHandle, getBMode__, getHandleFd ) * fptools/distrib is missing. My quick hack: Use the one from 3.03. * The stubs generated for the FFI include rtsdefs.h instead of Rts.h. * The C compiler complains when using foreign exports: /tmp/ghc17785.hc:242: macro `STK_CHK' used with too many (7) args * GHC dies during the compilation of: module Foo where import GlaExts(Addr) foreign export _ccall dynamic myBaz :: (Int -> IO Char) -> IO Addr with the message: panic! (the `impossible' happened): applyTypeToArgs {-_ccall-}_ccall_ createAdjustor {dDT 0 dDU (_litlit_ "dEc" PrelAddr.Addr{-32,W-})} Please report it as a compiler bug to [EMAIL PROTECTED] * Bootstrapping does not work at all: The compilation of fptools/ghc/compiler/utils/FastString.lhs aborts with: FastString.lhs:64: Module `PrelHandle' does not export `readHandle' Alas, grepping through the whole fptools directory reveals no definition of readHandle... Apart from that, everything was OK... :-} -- 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
Missing Library
... not really a bug, but a small thing which could be annopying for the user who just wants to install and run ... After installing the sun-sparc binary, I tried to compile the HelloWorld example, and I was told that the "gmp" library could not be found. I then compiled the library on the directory fptools/ghc/rts/gmp and moved the file libgmp.a to a place that is in the search path of the linker (eg, /usr/local/lib/ghc-4.00). Then everything worked fine. Best wishes, Martin
ghc-4.00 cvs source build question
Hello, This morning I got the cvs source tree from CVSROOT="[EMAIL PROTECTED]:/cvs" The build created the files lrwxrwxrwx 1 laitenbe pardc 8 Nov 12 07:09 ghc -> ghc-3.03* -rwxr-xr-x 1 laitenbe pardc 103189 Nov 12 07:09 ghc-3.03* -rwxr-xr-x 1 laitenbe pardc 36772 Nov 12 07:09 hp2ps* -rwxr-xr-x 1 laitenbe pardc 2946 Nov 12 07:09 hstags* -rwxr-xr-x 1 laitenbe pardc 19993 Nov 12 07:09 mkdependHS* -rwxr-xr-x 1 laitenbe pardc 2558 Nov 12 07:09 stat2resid* in the bin directory. Did you put Version 3.03 back in the repository? Or is it just the wrong name? Best Wishes, Jan ___ '---|-- | __, _ _ EMail: [EMAIL PROTECTED] | / | / |/ | WWWeb: http://www.uni-passau.de/~laitenbe/ |/\_/|_/ | |_/ /| Laitenberger --(-|-- \|