Trouble installing ghc 6.0 on Solaris

2003-06-20 Thread Stecher, Jack
I've tried installing ghc 6.0 on Solaris under /opt/ghc.  The files that get created 
include a bunch with references to Hal Daume's home directory (e.g., 
/opt/ghc/bin/ghci-6.0 needed to be changed).  I don't know if I've found all of the 
changes I need to make, but when I type
ghci
at the UNIX prompt, I get back
ghci:  /opt/ghc/ghci-6.0:  cannot execute

I did an ls -l to make sure I had execute permission.  Here's what the file says, 
after my changes:

#! /bin/sh
bindir='/opt/ghc/bin'
libdir='/opt/ghc/lib/ghc-6.0'
libexecdir='/opt/ghc/lib/ghc-6.0'
datadir='/opt/ghc/share/ghc-6.0'
SED='/usr/bin/sed'
DEFAULT_TMPDIR='/tmp'
#!/bin/sh
GHCBIN=/opt/ghc;
TOPDIROPT=-B/opt/ghc;
# Mini-driver for GHC
exec $GHCBIN $TOPDIROPT ${1+$@}

Here's how it looked prior to my changes, when it had the references to Hal Daume's 
personal directories on his machine at some other institution:

#! /bin/sh
bindir='/opt/ghc/bin'
libdir='/opt/ghc/lib/ghc-6.0'
libexecdir='/opt/ghc/lib/ghc-6.0'
datadir='/opt/ghc/share/ghc-6.0'
SED='/usr/bin/sed'
DEFAULT_TMPDIR='/tmp'
#!/bin/sh
GHCBIN=/nfs/moussor/hdaume/lib/ghc-6.0/ghc-6.0;
TOPDIROPT=-B/nfs/moussor/hdaume/lib/ghc-6.0;
# Mini-driver for GHC
exec $GHCBIN $TOPDIROPT ${1+$@}

I don't think I forgot any changes, and I'm not sure why it refuses to run.

Any ideas?

--Jack Stecher
[EMAIL PROTECTED]

___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[ ghc-Bugs-755726 ] mutiparameter classes problem

2003-06-20 Thread SourceForge.net
Bugs item #755726, was opened at 2003-06-17 06:24
Message generated for change (Comment added) made by simonpj
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=108032aid=755726group_id=8032

Category: Compiler (Type checker)
Group: 6.0
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: mutiparameter classes problem

Initial Comment:
hello,
i have run into something that looks like a bug in ghc 6.0.
here is an example:

 module A where
 class C a b where f :: a - b
 g x = fst (f x)

for this program hugs reports that g has an ambiguous
type:
  C a (b,c) = a - b
which seems reasonable.
however ghc does not report an error, and infers the
following type:
  C a (b, ()) = a - b
(i have changed the formatting for easier comparing).
it seems that somehow the second component of the tuple
became (),
but i don't see why.

bye
iavor


--

Comment By: Simon Peyton Jones (simonpj)
Date: 2003-06-20 10:03

Message:
Logged In: YES 
user_id=50165

Quite right.  A bug in TcSimplify which I have now fixed.  
Thank you

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=108032aid=755726group_id=8032
___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Problems installing ghc 6.0 on freebsd

2003-06-20 Thread Alastair Reid
We've been trying to install ghc 6.0 on our freebsd boxes using the port at 
freshports:

 http://www.freshports.org/lang/ghc6/

And following the advice on the ghc download page
(http://www.haskell.org/ghc/download_ghc_600.html).

Sadly, it dies when it tries to build the libraries (partial transcript 
attached)

The existing ghc version seems fresh enough and seems to work.
Any thoughts on what might be going wrong?

--
Alastair

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 5.04.2
$ uname -a
FreeBSD paria 4.8-STABLE FreeBSD 4.8-STABLE #0: Thu Jun 12 14:35:51 MDT 2003 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/UTAHSMP-MANYBPF  i386
$ ghc-pkg -l
rts, base, haskell98, network, haskell-src, lang, concurrent,
posix, util, data, text, net, hssource
$ echo 'module Main(main) where { main = putStrLn HelloWorld }'  /tmp/A.hs
$ ghc /tmp/A.hs -o /tmp/ghctest
$ /tmp/ghctest
HelloWorld

--  Forwarded Message  --

Subject: Re: Please install ghc 6.0
Date: Thursday 19 June 2003 10:18 pm
From: Kirk R Webb [EMAIL PROTECTED]
To: Alastair Reid [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]

I can't seem to get it compile correctly.  Any suggestions?

Some context:


Data/Tree.hs:17rm -f Data/Maybe.o; if [ ! -d Data/Maybe_split ]; then
mkdir Data/Maybe_split; else /usr/bin/find Data/Maybe_split -name '*.o'
-print | xargs rm -f __rm_food; fi;

  rm -f Data/Tuple.o; if [ ! -d Data/Tuple_split ]; then mkdir
Data/Tuple_split; else /usr/bin/find Data/Tuple_split -name '*.o' -print |
xargs rm -f __rm_food; fi;

../../ghc/compiler/ghc-inplace -H16m -O -fglasgow-exts -cpp -Iinclude
 -#include HsBase.h -funbox-strict-fields -package-name base -O -Rghc-timing 
 -split-objs -c Data/Maybe.hs -o Data/Maybe.o  -ohi Data/Maybe.hi
Failed to load interface for `Prelude':
Could not find interface file for
Text/ParserCombinators/Parsec/Pos.hs:15:
Failed to load interface for `Prelude':
Could not find interface file for `Prelude'
`Prelud (use -v to see a list of the files searched fore)
../../ghc/compiler/ghc-inplace -H16m -O -fglasgow-exts -cpp -Iinclude
 -#include HsBase.h -funbox-strict-fields -package-name base -O -Rghc-timing 
 -split-objs -c Data/Tuple.hs -o Data/Tuple.o  -ohi Data/Tuple.hi
ghc: 4438040 bytes, 2 GCs, 7972/7972 avg/max bytes residency (1 samples),
5M in use, 0.00 INIT (0.00 elapsed), 0.06 MUT (0.21 elapsed),
0.02 GC (0.02 elapsed) :ghc
'
(use -v to see a list of the files searched for)
ghc: 4216448 bytes, 2 GCs, 7096/7096 avg/max bytes residency (1
samples), 5M in use, 0.00 INIT (0.00 elapsed), 0.08 MUT (0.27 elapsed),
0.02 GC (0.02 elapsed) :ghc
gmake[2]: *** [Text/ParserCombinators/Parsec/Pos.o] Error 1
gmake[2]: *** Waiting for unfinished jobs
gmake[2]: *** [Data/Tree.o] Error 1
ghc: 29359056 bytes, 5 GCs, 7168/7168 avg/max bytes residency (1
samples), 18M in use, 0.00 INIT (0.00 elapsed), 0.71 MUT (2.88 elapsed),
0.13 GC (0.12 elapsed) :ghc
(cd Data/  /usr/bin/ld -r -x -o Maybe.o Maybe_split/*.o);
ghc: 554193256 bytes, 300 GCs, 5592297/9565616 avg/max bytes residency
(10 samples), 28M in use, 0.01 INIT (0.00 elapsed), 12.34 MUT (65.09
elapsed), 7.27 GC (7.40 elapsed) :ghc
(cd Data/  /usr/bin/ld -r -x -o Tuple.o Tuple_split/*.o);
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/usr/ports/lang/ghc6/work/ghc-6.0/libraries'
gmake: *** [build] Error 1
*** Error code 2

---

___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs