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.<br>
<br><div class="gmail_quote">On Fri, Jun 11, 2010 at 12:29 PM, Andrei Alexandrescu <span dir="ltr"><<a href="mailto:andrei@erdani.com">andrei@erdani.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Indeed that error indicates an older dmd. Make sure running dmd shows version 2.047.<br>
<br>
Andrei<br>
<br>
David Simcha wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I assume the second beta, I downloaded it today from <a href="http://ftp.digitalmars.com" target="_blank">ftp.digitalmars.com</a> <<a href="http://ftp.digitalmars.com" target="_blank">http://ftp.digitalmars.com</a>> 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.<div class="im">
<br>
<br>
On Fri, Jun 11, 2010 at 12:15 PM, Don Clugston <<a href="mailto:dclugston@googlemail.com" target="_blank">dclugston@googlemail.com</a> <mailto:<a href="mailto:dclugston@googlemail.com" target="_blank">dclugston@googlemail.com</a>>> wrote:<br>
<br>
On 11 June 2010 17:18, David Simcha <<a href="mailto:dsimcha@gmail.com" target="_blank">dsimcha@gmail.com</a><br></div><div><div></div><div class="h5">
<mailto:<a href="mailto:dsimcha@gmail.com" target="_blank">dsimcha@gmail.com</a>>> wrote:<br>
> I had only tried to compile the individual std.numeric module and<br>
run the<br>
> unittests. This definitely works fine. I had never tried to<br>
compile Phobos<br>
> as a whole because compiling Phobos on Windows is somewhat of a<br>
PITA and I<br>
> didn't anticipate such strange problems as these.<br>
><br>
> At any rate, I just tried it now and it works for me on Windows<br>
with 2.046.<br>
> It looks like the oddities that had made building Phobos on<br>
Windows such a<br>
> PITA (stuff related to minit.o) have been fixed recently, too. On the beta,<br>
> it fails with completely unrelated error messages related to CTFE<br>
of sqrt in<br>
> std.math:<br>
><br>
> std\math.d(1611): Error: sqrt cannot be interpreted at compile<br>
time, because<br>
> it<br>
> has no available source code<br>
> std\math.d(1614): Error: static assert (2L * (1L / (0.5L *<br>
> sqrt(0x1p-16382L)) /<br>
> 2L) * (1L / (0.5L * sqrt(0x1p-16382L)) / 2L) <=<br>
> 0x1.fffffffffffffffep+16383L) i<br>
> s not evaluatable at compile time<br>
><br>
> What OS were you trying to build on?<br>
<br>
Windows XP. Are you using the second beta? I've seen those error<br>
messages before, but they got fixed ages ago. Sounds to me like beta<br>
1.<br>
_______________________________________________<br>
phobos mailing list<br></div></div>
<a href="mailto:phobos@puremagic.com" target="_blank">phobos@puremagic.com</a> <mailto:<a href="mailto:phobos@puremagic.com" target="_blank">phobos@puremagic.com</a>><div class="im"><br>
<a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br>
<br>
<br>
<br></div>
------------------------------------------------------------------------<div class="im"><br>
<br>
_______________________________________________<br>
phobos mailing list<br>
<a href="mailto:phobos@puremagic.com" target="_blank">phobos@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br>
</div></blockquote><div><div></div><div class="h5">
_______________________________________________<br>
phobos mailing list<br>
<a href="mailto:phobos@puremagic.com" target="_blank">phobos@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br>
</div></div></blockquote></div><br>