[Issue 23846] std.math can't compile under macos rosetta

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 9 05:59:35 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23846

Scot <thinkunix at zoho.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|pull                        |
                 CC|                            |thinkunix at zoho.com

--- Comment #14 from Scot <thinkunix at zoho.com> ---
I wanted to comment that I saw this same issue when trying to compile
dmd-2.102.2 on an older Linux x86_64 system.  I originally posted on
the dlang forum here:

https://forum.dlang.org/post/mailman.9077.1678347256.31357.digitalmars-d-learn@puremagic.com

My post received no responses.  I guess people don't compile dmd themselves.
dmd-2.102.2 through anything before dmd-2.104.0-beta.1 would not compile
phobos, ending with these errors:

std/math/exponential.d(3782): Error: number `0x0.8p-126f` is not representable
as a `float`
std/math/exponential.d(3784): Error: number `0x0.555556p-126f` is not
representable as a `float`
std/math/exponential.d(3795): Error: number `0x0.8p-1022` is not representable
as a `double`
std/math/exponential.d(3797): Error: number `0x0.5555555555555p-1022` is not
representable as a `double`

I just tested dmd-2.104.0-beta.1 and it now builds successfully on my older
system, using and installed dmd-2.102.1 to do the build.  Thanks for the fix!

--


More information about the Digitalmars-d-bugs mailing list