[Haskell-beginners] Re: timer_create: Invalid argument

Maurí­cio briqueabraque at yahoo.com
Mon Jun 8 14:25:41 EDT 2009


It seems it's a know question:

http://thread.gmane.org/gmane.comp.lang.haskell.cafe/49337

One of the problems discussed in that thread is the timer_create
issue, but it seems upgrading is the sugested solution.

Did Daniel mean to open a bug report on Red Hat or GHC? If you
ever want to report a bug on GHC:

http://haskell.org/ghc

The ReportABug link do have nice instructions. But maybe
this is worth discussing in haskell-cafe first, so I posted
a message there:

http://thread.gmane.org/gmane.comp.lang.haskell.cafe/59643

Best,
Maurício

> Hi Mauricio,
> 
> yes it is a linking problem.  When I compile the program on my computer 
> with
> 
> ghc --make A.hs -threaded
> 
> the program will run on the Red Hat 3.  If I compile it with
> 
> ghc --make A.hs
> 
> it won't.  I don't know why though, and I don't think this is an 
> expected behavior.  Daniel suggested to file a bug report on this.  I've 
> never done that before.  Where would I do this?  Is there something I 
> should know about filing a bug?
> 
> I cannot compile the program on the Red Hat machine, as GHC is not 
> installed there and I only have user rights.
> 
> Cheers,
> Thomas
> 
> 
> 
> 
> Maurí­cio wrote:
>>> Now, when I invoke the program on my computer, it does what it should 
>>> do:
>> > (...)
>>> However, when I run the program on a different computer, I get the 
>>> following: (...)
>>> [thomas at ... ~] $ ./count count.hs
>>> count: timer_create: Invalid argument
>>
>> I don't know where time_create is exactly used here, however,
>> it seems like a linking problem. Have you tried rebuilding your
>> program in the remote machine? Actually, the fact that other
>> programs did succeed seems strange to me. You could show some
>> program that did work on both machines if you want to know why
>> it actually worked.
>>
>> If you don't want to rebuild, why not to use it as a script? You
>> can do it by just adding this first line to your file:
>>
>> #!/usr/bin/runhaskell
>>
>> and allowing it to be used as a script:
>>
>> chmod a+x count.hs
>>
>> I usually add such scripts to ~/bin so I can run then anywhere
>> (but check if your distribution do add ~/bin to path).
>>
>> Maurício
>>
>> _______________________________________________
>> Beginners mailing list
>> Beginners at haskell.org
>> http://www.haskell.org/mailman/listinfo/beginners



More information about the Beginners mailing list