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

Mikael Pettersson <>
Thu Feb 28 23:55:09 CET 2008


Vlad Balin writes:
 > 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'

See my earlier comment:

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

I don't have OSX 10.5, but if you give me temporary access to an OSX 10.5/ppc
machine I'm willing to attempt to do the update. (This temporary access thing
has been done before to develop the support for FreeBSD and OpenBSD on x86 and
x86-64, but it's clearly not a decision to take lightly.)



More information about the erlang-questions mailing list