<p>(forwarding to the list)</p>
<div class="gmail_quote">---------- Forwarded message ----------<br>From: "Rob Arthan" <<a href="mailto:rda@lemma-one.com">rda@lemma-one.com</a>><br>Date: Aug 17, 2012 8:25 AM<br>Subject: Re: cannot build opentheory<br>
To: "Ramana Kumar" <<a href="mailto:ramana.kumar@gmail.com">ramana.kumar@gmail.com</a>><br><br type="attribution">Ramana,<br>
<br>
Thanks. I think this is the same problem but I think it might not have been explained properly to David Matthews. The problem is clearly an unintended loop at compile time and if you make minor adjustments to the source it compiles. I have pinpointed the exact function binding that causes the problem and have sent a slightly cut-down version of the source to David.<br>
<br>
Regards,<br>
<br>
Rob.<br>
<div class="elided-text"><br>
On 16 Aug 2012, at 15:20, Ramana Kumar wrote:<br>
<br>
> Rob, the forwarded conversations below from last year may be of<br>
> interest for your Poly/ML problem. I thought they were in the list<br>
> archive, but apparently not (until now).<br>
><br>
> ---------- Forwarded message ----------<br>
> From: Ramana Kumar <<a href="mailto:ramana.kumar@gmail.com">ramana.kumar@gmail.com</a>><br>
> Date: Mon, Sep 19, 2011 at 11:47 AM<br>
> Subject: Re: cannot build opentheory<br>
> To: David Matthews <<a href="mailto:David.Matthews@prolingua.co.uk">David.Matthews@prolingua.co.uk</a>><br>
> Cc: Joe Hurd <<a href="mailto:joe@gilith.com">joe@gilith.com</a>><br>
><br>
><br>
> On Mon, Sep 19, 2011 at 4:34 PM, David Matthews<br>
> <<a href="mailto:David.Matthews@prolingua.co.uk">David.Matthews@prolingua.co.uk</a>> wrote:<br>
>> An infinite loop could be a problem with the compiler but I have seen this<br>
>> with storage allocator. Is this on 32-bit or 64-bit? You could try a<br>
>> larger value of -H. This sets the initial heap size and also controls the<br>
>> step-size when it needs to increase the heap. The debug settings are quite<br>
>> limited in 5.4.1. I've extended them quite a bit in SVN HEAD.<br>
><br>
> I am using SVN r1324 at the moment. I am on 64-bit. I'll happily try<br>
> any debug or other options you think would be helpful. In fact I'll<br>
> try a larger -H1000 now... it still appears to be stopping at the same<br>
> point. (I'll leave it running for another 10 minutes...)<br>
><br>
><br>
>><br>
>> David<br>
>><br>
>> On 19/09/2011 16:24, Ramana Kumar wrote:<br>
>>><br>
>>> On Mon, Sep 19, 2011 at 3:26 PM, David Matthews<br>
>>> <<a href="mailto:David.Matthews@prolingua.co.uk">David.Matthews@prolingua.co.uk</a>> wrote:<br>
>>>><br>
>>>> It may be a problem with the garbage-collector especially if you're using<br>
>>>> the SVN version. Try giving an explicit heap size (e.g. -H500) on the<br>
>>>> poly<br>
>>>> line and see if that makes a difference.<br>
>>><br>
>>> Adding -H500 appears not to make any difference. Is that supposed to<br>
>>> limit the heap size, or just set its initial size? Are the debug<br>
>>> options listed anywhere?<br>
>>><br>
>>>><br>
>>>> David<br>
>>>><br>
>>>> On 16/09/2011 12:39, Ramana Kumar wrote:<br>
>>>>><br>
>>>>> After seeing your timings I wanted to try polyml again, and<br>
>>>>> unfortunately it still appears to go into an infinite loop while<br>
>>>>> building opentheory.<br>
>>>>> This could be a bug in polyml. In fact, I you say it definitely is,<br>
>>>>> since you can get it to build with a different version?<br>
>>>>> I am using version 5.4.1 (svn r1324).<br>
>>>>> It goes into the loop when trying to interpret the code starting at<br>
>>>>> line 56548 in bin/polyml/selftest.sml (the definition of ppTerm in the<br>
>>>>> Haskell structure).<br>
>>>>> Do you have any ideas on how to isolate the problem? Maybe I should<br>
>>>>> also leave it running for longer to see if it's really a loop (I've<br>
>>>>> only left it for about 15 minutes - how long does it take to build<br>
>>>>> with your working version of poly?)<br>
>>>>> I am CC'ing Dave Matthews in case he has any questions or ideas..<br>
>>>>><br>
>>>>> On Thu, Sep 15, 2011 at 11:09 PM, Ramana Kumar<<a href="mailto:ramana.kumar@gmail.com">ramana.kumar@gmail.com</a>><br>
>>>>> wrote:<br>
>>>>>><br>
>>>>>> On Thu, Sep 15, 2011 at 11:01 PM, Joe Hurd<<a href="mailto:joe@gilith.com">joe@gilith.com</a>> wrote:<br>
>>>>>>><br>
>>>>>>> Hi Ramana,<br>
>>>>>>><br>
>>>>>>>>> With polyml, gilith/basic appears to fail one of it selftests and<br>
>>>>>>>>> building opentheory appears to go into an infinite loop.<br>
>>>>>>>><br>
>>>>>>>> Poly/ML seems to be misbehaving in ways I don't understand right now.<br>
>>>>>>>> I'm investigating this, and will let you know what I find out.<br>
>>>>>>><br>
>>>>>>> I installed the Hombrew<br>
>>>>>>><br>
>>>>>>> <a href="http://mxcl.github.com/homebrew/" target="_blank">http://mxcl.github.com/homebrew/</a><br>
>>>>>>><br>
>>>>>>> version of Poly/ML for my Mac, and basic and opentheory seem to work<br>
>>>>>>> fine now. I was seeing the same behaviour as you before I did that, so<br>
>>>>>>> perhaps there's a dodgy version of Poly/ML in circulation?<br>
>>>>>><br>
>>>>>> Maybe. I usually use a pretty bleeding edge poly too (i.e. svn rather<br>
>>>>>> than a release, although I don't svn up that often).<br>
>>>>>><br>
>>>>>>><br>
>>>>>>> Is this problem blocking you?<br>
>>>>>><br>
>>>>>> I have both mosml and mlton too so it's not a major problem.<br>
>>>>>><br>
>>>>>>><br>
>>>>>>> Cheers,<br>
>>>>>>><br>
>>>>>>> Joe<br>
>>>>>>><br>
>>>>>><br>
>>>><br>
>><br>
<br>
</div></div>