LDC for PowerPC64 on FreeBSD
Curtis
clhamilto at gmail.com
Mon Sep 25 20:27:53 UTC 2017
On Monday, 25 September 2017 at 19:01:24 UTC, kinke wrote:
> On Monday, 25 September 2017 at 14:37:56 UTC, Curtis wrote:
>> Any ideas?
>
> Yep, I suspect it has something to do with the 2x64-bit
> doubledouble floating point format, as your segfault seems to
> happen in `llrintl()`. We compile the C++ parts of LDC with
> `-mlong-double-64` (double-precision long double) and use
> 64-bit D reals (at least with LDC master, not sure about
> ltsmaster/0.17.x). If your `libm.so` expects doubledoubles, the
> D real needs to be adapted. IIRC, it might even work out of the
> box for LDC master. See
> https://github.com/ldc-developers/ldc/blob/master/CMakeLists.txt#L213 for how to enable 'normal' C long doubles (=> D reals).
Thanks! I'd noticed that code in CMakeLists.txt, but thought it
was only appropriate for powerpc vice powerpc64. I'll give it a
try and report back.
More information about the digitalmars-d-ldc
mailing list