Ok, I see why.  I had 2.046 and the beta installed concurrently, and I
forgot to point my path variable at the beta before building Phobos.  Now I
can reproduce this, both using the Phobos build scripts and compiling the
file individually with unittests turned on from Codeblocks.  It still works
fine on 2.046, though I did notice that DMD does take a while to
(successfully) compile it and uses ~60 MB of memory.  It looks like a
compiler regression, or else CustomFloat was relying on a bug that got
fixed.

On Fri, Jun 11, 2010 at 12:29 PM, Andrei Alexandrescu <[email protected]>wrote:

> Indeed that error indicates an older dmd. Make sure running dmd shows
> version 2.047.
>
> Andrei
>
> David Simcha wrote:
>
>> I assume the second beta, I downloaded it today from ftp.digitalmars.com<
>> http://ftp.digitalmars.com> and it was called 'dmd2beta.zip'.  From
>> looking though the dmd-beta list, I can't find any other beta, though Walter
>> did post an updated version a few days after the original version.
>>
>>
>> On Fri, Jun 11, 2010 at 12:15 PM, Don Clugston 
>> <[email protected]<mailto:
>> [email protected]>> wrote:
>>
>>    On 11 June 2010 17:18, David Simcha <[email protected]
>>    <mailto:[email protected]>> wrote:
>>     > I had only tried to compile the individual std.numeric module and
>>    run the
>>     > unittests.  This definitely works fine.  I had never tried to
>>    compile Phobos
>>     > as a whole because compiling Phobos on Windows is somewhat of a
>>    PITA and I
>>     > didn't anticipate such strange problems as these.
>>     >
>>     > At any rate, I just tried it now and it works for me on Windows
>>    with 2.046.
>>     > It looks like the oddities that had made building Phobos on
>>    Windows such a
>>     > PITA (stuff related to minit.o) have been fixed recently, too.
>> On the beta,
>>     > it fails with completely unrelated error messages related to CTFE
>>    of sqrt in
>>     > std.math:
>>     >
>>     > std\math.d(1611): Error: sqrt cannot be interpreted at compile
>>    time, because
>>     > it
>>     > has no available source code
>>     > std\math.d(1614): Error: static assert  (2L * (1L / (0.5L *
>>     > sqrt(0x1p-16382L)) /
>>     >  2L) * (1L / (0.5L * sqrt(0x1p-16382L)) / 2L) <=
>>     > 0x1.fffffffffffffffep+16383L) i
>>     > s not evaluatable at compile time
>>     >
>>     > What OS were you trying to build on?
>>
>>    Windows XP. Are you using the second beta? I've seen those error
>>    messages before, but they got fixed ages ago. Sounds to me like beta
>>    1.
>>    _______________________________________________
>>    phobos mailing list
>>    [email protected] <mailto:[email protected]>
>>
>>    http://lists.puremagic.com/mailman/listinfo/phobos
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> phobos mailing list
>> [email protected]
>> http://lists.puremagic.com/mailman/listinfo/phobos
>>
> _______________________________________________
> phobos mailing list
> [email protected]
> http://lists.puremagic.com/mailman/listinfo/phobos
>
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to