Open barracuda156 opened 2 years ago
UPD. No, in fact fenv.h
is there for PPC: https://opensource.apple.com/source/Libm/Libm-287.1/Source/PowerPC/fenv.h.auto.html
And some implementations:
https://opensource.apple.com/source/AppleOnboardAudio/AppleOnboardAudio-200.2.6/AppleOnboardAudio/fp/fenv.c.auto.html
I was trying to update
ibex-lib
for Macports, and fixing build for PPC turned a problem:ibex-lib
build system makes wrong settings, assuming x86 arch, which obviously is wrong: endianness is detected wrong, Intel intrinsics is invoked etc. This applies to CMake and Waf alike. Passing-DCMAKE_SYSTEM_PROCESSOR="ppc"
fails to help. Waf cannot understand--build=powerpc-apple-darwin10
.So with Waf it fails like:
__control
is defined here:Notice the arch. Then, intrinsics headers are used sometimes conditional on SSE2, sometimes unconditionally:
So it is completely broken atm.