LDC for PowerPC64 on FreeBSD

kinke noone at nowhere.com
Mon Sep 25 19:01:24 UTC 2017


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).


More information about the digitalmars-d-ldc mailing list