RE: Traditional bogus warnings

2000-05-30 Thread Simon Peyton-Jones

| I know that those warnings below are longstanding buglets, but would
| it be possible to remove them before the release of 4.07? I had a
| medium-quick look at the desugarer/type checker, but with no real
| success.

I'd love to fix them too, but it's all in a couple of modules
written by a research student, Juan Quintela.   Like any mass of new
code, it's hard to get to grips with, and I never have.In short, we are
no better equipped to fix this one than anyone else.  I'd love to see it
fixed, but other things have always come higher up the wish list.

A good thing for a long flight, perhaps.

Bottom line: I agree it is annoying, but I don't really want to commit
to fixing it for 4.07 unless someone volunteers

Simon




RE:

2000-05-30 Thread Simon Marlow

 When compiling ghc-4.06 I get this error message:
 
 ../driver/ghc-inplace -I../includes -I. -Iparallel -optc-Wall 
  -optc-W 
 -optc-Wstrict-prototypes  -optc-Wmissing-prototypes  
 -optc-Wmissing-declarations -optc-Winline 
 -optc-Waggregate-return -optc-Wpointer-arith 
 -optc-Wbad-function-cast -O2 -optc-DCOMPILING_RTS 
 -static-c PrimOps.hc -o PrimOps.o -osuf o
 PrimOps.hc:581: fixed or forbidden register was spilled.
 This may be due to a compiler bug or to impossible asm
 statements or clauses.
 gmake[2]: *** [PrimOps.o] Error 1
 gmake[1]: *** [all] Error 1
 gmake: *** [all] Error 1
 
 Does sb have a hint, what to do?

Is this on an HP box, by any chance?  I get the same error when compiling on
HP/UX, in a couple of functions that deal with long longs in PrimOps.hc.  At
the moment I just #ifdef out these two functions (integerToInt64 and
integerToWord64 I think) on HP.

Cheers,
Simon




ghc build on HP-UX

2000-05-30 Thread Matthias Mann

 Hmm.  I would guess that your gcc is using the native HP/UX
 assembler and not GNU as, so it doesn't understand the .file
 directive.  If you sent us the output of 
 
make EXTRA_HC_OPTS=-optc-v 
 
 we could check that hypothesis.  However ...

Here it is, hope it helps:


==fptools== gmake all --no-print-directory -r;
 in /usr1/users/mann/src/fptools/ghc/rts

gmake -C gmp MAKEFLAGS=
cd mpn; gmake "CC=gcc -O2" "CFLAGS=-O" "XCFLAGS=" libmpn.a
gmake[4]: Entering directory `/usr1/users/mann/src/fptools/ghc/rts/gmp/mpn'
gmake[4]: `libmpn.a' is up to date.
gmake[4]: Leaving directory `/usr1/users/mann/src/fptools/ghc/rts/gmp/mpn'
cd mpz; gmake "CC=gcc -O2" "CFLAGS=-O" "XCFLAGS=" libmpz.a
gmake[4]: Entering directory `/usr1/users/mann/src/fptools/ghc/rts/gmp/mpz'
gmake[4]: `libmpz.a' is up to date.
gmake[4]: Leaving directory `/usr1/users/mann/src/fptools/ghc/rts/gmp/mpz'
../driver/ghc-inplace -I../includes -I. -Iparallel -optc-Wall  -optc-W 
-optc-Wstrict-prototypes  -optc-Wmissing-prototypes  -optc-Wmissing-declarations 
-optc-Winline 
-optc-Waggregate-return -optc-Wpointer-arith -optc-Wbad-function-cast -O2 
-optc-DCOMPILING_RTS 
-static   -optc-v  -O2 -optc-fomit-frame-pointer-c universal_call_c.S -o 
universal_call_c.o
as: "universal_call_c.S", line 16: error 1052: Directive name not recognized - FILE
as: warning 31: Empty source file(s)
gmake[2]: *** [universal_call_c.o] Error 1
gmake[1]: *** [all] Error 1
gmake: *** [all] Error 1

 You don't need universal_call_C.o to build GHC anyway, so a
 quick hack might be to put a giant #if 0 ... #endif around the
 entire file.

I'll try this, thanks.

Matthias Mann
JWG-Universität Frankfurt



RE: ghc build on HP-UX

2000-05-30 Thread Simon Marlow


  Hmm.  I would guess that your gcc is using the native HP/UX
  assembler and not GNU as, so it doesn't understand the .file
  directive.  If you sent us the output of 
  
 make EXTRA_HC_OPTS=-optc-v 
  
  we could check that hypothesis.  However ...
 
 Here it is, hope it helps:

sorry, I think Julian meant

make EXTRA_HC_OPTS=-v

Simon




cygwin32 compile

2000-05-30 Thread Brett_A . _Letner



Greetings-
I'm attempting to compile ghc 4.06 (I need the FFI stuff) under Windows NT
cygwin32.
The compile fails in the compiler directory with this:

/usr/local/bin/ghc -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen
-Iparser
-iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:profiling:parser:usageSP:cprAnalysis:nativeGen

-recomp   -fvia-C  -c utils/Argv.lhs -o utils/Argv.o -osuf o

HsVersions.h:148: Could not find valid interface file `FastString'

Compilation had errors

make: *** [utils/Argv.o] Error 1

Thanks-
Brett Letner






Re: cygwin32 compile

2000-05-30 Thread Reuben Thomas

4.06 doesn't compile under Cygwin. 4.07 (out RSN) will. In the meantime,
the newest version is 4.05 (binaries only, I think).

-- 
http://sc3d.org/rrt/ | plagiarism, n.  the mind burgles





typo in CVS users_guide/4-07-notes.sgml

2000-05-30 Thread Carl R. Witty

The file 4-07-notes.sgml in the latest CVS mentions 
http://www.cse.ogi.ed/~jlewis/implicit.ps.gz

That should be .edu, not .ed .

Carl Witty
[EMAIL PROTECTED]




typo in CVS hslibs/lang/doc/IArray.sgml

2000-05-30 Thread Carl R. Witty

The file IArray.sgml in the latest CVS says "additiona" instead of
"addition".

Carl Witty
[EMAIL PROTECTED]




No ghc/configure file?

2000-05-30 Thread Mark Utting


Summary: I'm trying to build GHC, but cannot find fptools/ghc/configure

I need to use the most recent version of GHC, so have followed
the CVS checkout instructions on:
 http://haskell.cs.yale.edu/ghc/cvs-cheat-sheet.html

This gives me a top-level fptools directory, with no ./configure
file, though the README says that ./configure is the first step.

But upon reading the Makefile, I found I could generate ./configure by:

make -f Makefile.config ./configure

Done.

But then ./configure stops with:

configuring in ghc
running /bin/sh ./configure  --cache-file=.././config.cache --srcdir=.
./configure: ./configure: No such file or directory
configure: error: ./configure failed for ghc

How do I fix this (or generate ghc/configure)?  

(I assume this is necessary, because trying a 'make boot' or 'make'
 command in the fptools directory gives the error:
...
make: *** docbook: No such file or directory.  Stop.
make[1]: *** [boot] Error 1
make: *** [boot] Error 1
)

This is on a Redhat 6.2 Linux box, Pentium III 500Mhz...

Sorry if this is a dumb question.
Thanks.
Mark.




Re: No ghc/configure file?

2000-05-30 Thread Manuel M. T. Chakravarty

Mark Utting [EMAIL PROTECTED] wrote,

 Summary: I'm trying to build GHC, but cannot find fptools/ghc/configure
[..]
 But upon reading the Makefile, I found I could generate ./configure by:
 
   make -f Makefile.config ./configure
 
 Done.
 
 But then ./configure stops with:
 
   configuring in ghc
   running /bin/sh ./configure  --cache-file=.././config.cache --srcdir=.
   ./configure: ./configure: No such file or directory
   configure: error: ./configure failed for ghc

 How do I fix this (or generate ghc/configure)?  

  cd ghc  autoconf

generates the file.

[I am currently trying to make all this automatic, but I
have too many distractions = teaching...]

Manuel