[erlang-patches] Detect reliable floating point exceptions on Mac OS X Tiger
Trannie Carter
tranniec@REDACTED
Tue Dec 8 23:28:44 CET 2009
Hi Björn,
On Sun, Dec 06, 2009 at 01:05:50PM +0100, Björn Gustavsson wrote:
> On Fri, Dec 4, 2009 at 6:03 PM, Trannie Carter <tranniec@REDACTED> wrote:
> > git fetch git://github.com/nottwo/otp.git premodern-fpe
>
> Unfortunately, the test fails on my Mac (a Mac Pro from 2008 running 10.6.2).
> I have attached the relevant part of config.log.
Thanks for testing the patch on 10.6. Apparently, Apple has deprecated
some of the ucontext functions with Snow Leopard, and including
<ucontext.h> triggers a preprocessor error.
Because of this, I'm assuming that reliable floating point exceptions
are also not being detected on 10.6. Do you have time to verify that in
your config.log? The search string "unreliable" will find the test.
>From my reading of the source, HiPE will never be enabled on 10.6
because of its inclusion of <ucontext.h> & the breaking of the reliable
fpe test.
I've updated the premodern-fpe branch to add -D_XOPEN_SOURCE to CPPFLAGS
if configure is run on a darwin platform, as the #error suggests.
git fetch git://github.com/nottwo/otp.git premodern-fpe
thanks,
trannie
More information about the erlang-patches
mailing list