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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 22 18:57:39 UTC 2023


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

kinke <kinke at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke at gmx.net

--- Comment #2 from kinke <kinke at gmx.net> ---
(In reply to Caleb Xu from comment #1)
> We were able to build DMD 2.103.0 when it was initially released (~3 weeks
> ago) but it looks like it doesn't build anymore. My initial guess is that
> this may be related to Xcode 14.3 which was released recently and has been
> updated in Homebrew CI machines.

Thanks for this insight. DMD uses the C runtime's `strto{f,d}` to check for
over/underflows of float/double literals (in
`Port.isFloat{32,64}LiteralOutOfRange()`). So an Apple libc change might indeed
be the culprit. - LDC isn't affected, it uses LLVM functionality to parse
floating-point literals.

--


More information about the Digitalmars-d-bugs mailing list