Re: problems with ghc-6.8.2-powerpc-apple-darwin.tar.bz2 from GHC home page

2008-02-13 Thread Christian Maeder
Chris Kuklewicz wrote:
 The ./setup build causes a segmentation fault.  This is for every
 project I try (including ones with very default Setup.hs contents).

I can at least reproduce the segmentation fault by running my PPC-Tiger
binary on an i386-Leopard, by compiling with additional options
-optc-arch -optcppc -opta-arch -optappc -optl-arch -optlppc.

m29:fastcgi-3001.0.1 maeder$ ghc -opta-arch -optappc -optl-arch -optlppc
--make Setup.lhs
Linking Setup ...
m29:fastcgi-3001.0.1 maeder$ ./Setup configure
Configuring fastcgi-3001.0.1...
Warning: No license-file field.
m29:fastcgi-3001.0.1 maeder$ ./Setup build
Segmentation fault

and even (after adding the above options to the bin/ghc-6.8.2 script)

m29:fastcgi-3001.0.1 maeder$ runghc Setup.lhs build
Preprocessing library fastcgi-3001.0.1...
Building fastcgi-3001.0.1...
[1 of 1] Compiling Network.FastCGI  ( dist/build/Network/FastCGI.hs,
dist/build/Network/FastCGI.o )
ar: creating archive dist/build/libHSfastcgi-3001.0.1.a
ld: atom sorting error for
_fastcgizm3001zi0zi1_NetworkziFastCGI_FCGXzuStream_closure_tbl and
_fastcgizm3001zi0zi1_NetworkziFastCGI_FCGXzuRequest_closure_tbl in
dist/build/Network/FastCGI.o
ld: atom sorting error for
_fastcgizm3001zi0zi1_NetworkziFastCGI_FCGXzuStream_closure_tbl and
_fastcgizm3001zi0zi1_NetworkziFastCGI_FCGXzuRequest_closure_tbl in
dist/build/Network/FastCGI.o

Cheers Christian
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Some problems writing a threaded program

2008-02-13 Thread Simon Marlow

John Vogel wrote:

Thankyou both Don Stewart and Simon Marlow for your responses.



By adding yield and threadDelay in certain spots I have at least prevented
some of the threads from being starved of CPU time.

The only issue now is that terminateProcess doesn't always terminate
netstat.exe in the cmd.exe so I don't get an exit condition.


Windows doesn't have the same concept of process groups that Unix has, so 
killing a shell doesn't necessarily kill its children.  Have a look at the 
hoops Ian had to jump through to get this working for our timeout program 
in the GHC testsuite:


http://darcs.haskell.org/testsuite/timeout/

Cheers,
Simon
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: slightly modified hasktags version / Who can commit it?

2008-02-13 Thread Simon Marlow

Marc Weber wrote:

I've hacked on hasktags again
http://mawercer.de/hasktags.hs
I'd like to merge changes into the ghc distribution or ask someone to do
so.

changes:
  a)  full qualified module names are added as well now
  b)  hack: removed empty tokens so that getcons finds
[..]   rqBody:: RqBody, [..]
  c)  ctag files are sorted now 


Have you fixed this?

http://hackage.haskell.org/trac/ghc/ticket/1184

Would you mind opening a ticket, or using 'darcs send' to send us a patch?

Cheers,
Simon
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Some problems writing a threaded program

2008-02-13 Thread Krasimir Angelov
2008/2/11 John Vogel [EMAIL PROTECTED]:
 The only issue now is that terminateProcess doesn't always terminate
 netstat.exe in the cmd.exe so I don't get an exit condition.

A simple way is to use runInteractiveProcess instead of
runInteractiveCommand. The former doesn't start a new cmd.exe but
starts netstat.exe directly. There isn't point of using
runInteractiveCommand unless you want to execute some shell commands
or batch files.

Regards,
   Krasimir
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Tiger installer [was: Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)]

2008-02-13 Thread Yitzchak Gale
Manuel M T Chakravarty wrote:
 Try this
http://www.cse.unsw.edu.au/~chak/haskell/GHC-6.9.20080213-i386.dmg

I got it, but there were some download problems. I hope the
file is intact. It has exactly 44740924 bytes. Perhaps you
could send me an md5sum to be certain.

 Have a look whether that installs on Tiger
 (I am pretty sure it will)

It did.

 and whether you can run /usr/bin/ghci (not so sure about that).

It didn't.

$ /usr/bin/ghci
Bus error

In the readme, you say that I require Xcode 3.0. Tiger came with
Xcode 2.4.1, and I have not updated it. (I tried once, but the
download was so huge that I decided to forget it unless there
was some real need.) Could that be part of the problem?

Thanks,
Yitz
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users