[Haskell-beginners] timer_create: Invalid argument

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Sun Jun 14 17:23:20 EDT 2009


On Jun 8, 2009, at 10:35 , Thomas Friedrich wrote:
> However, when I run the program on a different computer, I get the  
> following:
>
> ~ $ scp count count.hs thomas\@...:~
> thomas at ...'s password:
> count                100%  492KB 492.2KB/s   00:00    
> count.hs             100%  125     0.1KB/s   00:00   ~ $ ssh  
> thomas at ...
> [thomas at ... ~] $ ./count count.hs
> count: timer_create: Invalid argument

Yep. This is due to differences between the installed glibc on the two  
systems; the Haskell runtime uses the appropriate timer_create code  
(necessary for threading) for the system it was built for, on other  
systems you can get the above error.  I see this a lot with local  
supported ghc builds, especially when trying to bootstrap from an  
existing binary.

All you can realistically do is relink the program on each system,  
which must have the appropriate compatible ghc runtime installed  
already.

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/beginners/attachments/20090614/2e183c7b/PGP.bin


More information about the Beginners mailing list