Re: ANN: C->Haskell 0.8.1

2001-02-14 Thread Manuel M. T. Chakravarty

[EMAIL PROTECTED] (Marcin 'Qrczak' Kowalczyk) wrote,

> 12 Feb 2001 14:48:09 GMT, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> pisze:
> 
> > It could be my fault: I ran ./configure before updating it with
> > autoconf, and perhaps did not clean afterwards.
> 
> Ok, it was my fault. But the error in CInfo is still
> there. 

That's strange.  Could you try this with either the release
of 0.8.2 that I put up yesterday or with the CVS version
again?  I don't have any trouble with CInfo with both 4.08
and 4.11.

> And
> C2HS does not export most of cast*Ptr functions, freeHaskellFunPtr
> and newStablePtr, which leads to errors in compilig gtk+hs. And
> GtkCList (from the CVS version of gtk+hs) does not import C2HS but
> uses newStablePtr etc. And ghc version check in gtk+hs fails for 4.11.

As noted on the Web page, 0.8.1 didn't work with gtk+hs.
You need c2hs 0.8.2 and the new version 0.10.2 of gtk+hs,
which I released yesterday.  (Alternatively, the versions of
both packages in CVS should work, too.)

Cheers,
Manuel

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



Confused about enabling parallel ghc

2001-02-14 Thread Albert Lai

I installed ghc 4.08.2 binaries for sparc solaris (and those for intel
linux, too), then tried compiling a sample program (the fibonacci one
in the user guide) with ghc -parallel.  The compiler complained:

Could not find interface file for `Prelude'
in the directories ./*.hi
   /u/trebla/lib/ghc-4.08.2/imports/lang/*.mp_hi
   /u/trebla/lib/ghc-4.08.2/imports/concurrent/*.mp_hi
   /u/trebla/lib/ghc-4.08.2/imports/lang/*.mp_hi
   /u/trebla/lib/ghc-4.08.2/imports/concurrent/*.mp_hi
   /u/trebla/lib/ghc-4.08.2/imports/std/*.mp_hi

(and similarly for Parallel.)

Does it mean I must build ghc myself from source?

The user guide promises a lot of binary bundles such as par.  Ever
since 4.0x, the ghc download page ceases to mention them.  Where
are they?

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



Re: ANN: C->Haskell 0.8.1

2001-02-14 Thread Marcin 'Qrczak' Kowalczyk

12 Feb 2001 14:48:09 GMT, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> pisze:

> It could be my fault: I ran ./configure before updating it with
> autoconf, and perhaps did not clean afterwards.

Ok, it was my fault. But the error in CInfo is still there. And
C2HS does not export most of cast*Ptr functions, freeHaskellFunPtr
and newStablePtr, which leads to errors in compilig gtk+hs. And
GtkCList (from the CVS version of gtk+hs) does not import C2HS but
uses newStablePtr etc. And ghc version check in gtk+hs fails for 4.11.

-- 
 __("<  Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/
 \__/
  ^^  SYGNATURA ZASTÊPCZA
QRCZAK


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



Re: questions about the installation instructions for WinNT andghc-4.08x

2001-02-14 Thread Reuben Thomas

> In the installation instruction is under 2.2.2.1 paragraph "Here's how to
> install Cygwin" written:
>   After installation, start up a Cygwin shell and issue the following
> command:
>   mount -f c: /
>   assuming you installed Cygwin at C:\cygwin; otherwise change the drive
> and directory as appropriate.
> (So it definitely says / is at c: not at c:\cygwin. But later, when setting the
> environment variables it seems like it is assumed
> that / is at c:\cygwin.)

There are two things going on here:

1. You're mounting C: at / so you can refer to the whole drive with
UNIX-style paths.

2. Cygwin automatically mounts parts of its directory tree under /usr.

> In "2.2.2.2 Environment variables" is a table that says I should add C:\usr\bin
> to PATH.
> That directory does not exist. the directory C:\cygwin\usr\bin exists (assuming
> you installed Cygwin at C:\cygwin) but is empty.
> The C:\cygwin\bin directory seems to be the one meant.
> Should I add C:\cygwin\bin to PATH?

No. Add /usr/bin. Cygwin mounts \cygwin\usr\bin at /usr/bin.

> The same table says that SHELL should be C:/usr/bin/bash. (Observe the '/'
> signs instead of '\'.)
> But bash is in C:\cygwin\bin (assuming you installed Cygwin at C:\cygwin).
> Should I set SHELL to C:\cygwin\bin\bash (does it matter if I write
> C:\cygwin\bin\bash or C:/cygwin/bin/bash?)?

As above.

I think these instructions have worked for other people; my own system is in
a slightly different configuration (which for various reasons we used to
recommend).

-- 
http://sc3d.org/rrt/ | humour, n.  unexpected recognition


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