[erlang-questions] Erlang RB12-1 Mac OS X Leopard on ppc HiPE problems

Vlad Balin <>
Thu Feb 28 22:11:12 CET 2008


HiPE is not working under Leopard/ppc.

I've patched erts/configure script to force HiPE under ppc Leopard. It
didn't help. I've got following errors. Well, that are the same errors as in
FPE test program. I can't fix it. Please, help.
gcc -mdynamic-no-pic -g -O2 -I/Users/gaperton/otp_src_R12B-1/erts/powerpc-
apple-darwin9.2.0  -no-cpp-precomp   -DERTS_SMP -DHAVE_CONFIG_H -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement
-DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT  -Ibeam -Isys/unix -Isys/common -
Ipowerpc-apple-darwin9.2.0/opt/smp -Ipowerpc-apple-darwin9.2.0 -Izlib -Ihipe
-I../include/internal -I../include/internal/powerpc-apple-darwin9.2.0 -c
sys/unix/sys_float.c -o obj/powerpc-apple-darwin9.2.0/opt/smp/sys_float.o
sys/unix/sys_float.c: In function 'fpu_fpe_enable':
sys/unix/sys_float.c:274: error: storage size of 'state' isn't known
sys/unix/sys_float.c:274: warning: unused variable 'state'
sys/unix/sys_float.c: In function 'fpe_sig_action':
sys/unix/sys_float.c:558: error: 'struct __darwin_mcontext' has no member
named 'ss'
sys/unix/sys_float.c:559: error: 'struct __darwin_mcontext' has no member
named 'fs'


2008/2/28, Mikael Pettersson <>:
>
> Vlad Balin writes:
>   > Hello,
>   > I've got a bit different problem with last OTP release on MacOS 10.5Leopard
>   > (iMac G5, ppc, 32-bit mode).
>   >
>   > I can't build HiPE for some reason. Configure script says that there
>   > floating point exceptions are unreliable and this is the reason to
> disable
>   > HiPE on ppc. However, I've got no problems with HiPE on MacOS 10.4 on
> the
>   > same machine. Is there any specific reasons that HiPE is disabled, or
> this
>   > is bug?
>
>
> The configure script reporting unreliable floating-point exceptions
> most probably means that the FPE test program couldn't be compiled
> on OSX 10.5, which in turn is probably because Apple has seen fit to
> make incompatible changes between 10.4 and 10.5.
>
> Someone with access to 10.5 will need to update the FPE test program
> embedded in erts/configure.in to work also on 10.5.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080229/4a2cb5bf/attachment.html>


More information about the erlang-questions mailing list