
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@...'s password: count 100% 492KB 492.2KB/s 00:00 count.hs 100% 125 0.1KB/s 00:00 ~ $ ssh thomas@... [thomas@... ~] $ ./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@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH