<div dir="ltr">ECLispers,<br><br>I am trying to cross-compile ECL to work on the iPhone, which uses an ARM v6 architecture, little endian.<br><br>I have successfully built and tested ECL, with all the default features enabled, for my Darwin i686 Intel Mac.  I can use it within the iPhone Simulator (which does not simulate the architecture).. pretty cool<br>
<br>However, the hard part is getting ECL to cross-compile correctly for an ARM processor.  I have run into bugs with fenv.h<br><br>Here is my ./configure command with tons of arguments to work correctly for the iPhone.  (I have inserted some line spaces to make it readable<br>
<br>./configure<br>
  --prefix=/Users/red/lib/iphoneos-ecl/<br>  --host=arm-apple-darwin<br>  --without-gmp<br>
  CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1<br>  CFLAGS="-arch armv6 -pipe -std=c99 -miphoneos-version-min=2.0 -gdwarf-2 -I/Library/iPhone/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk"<br>
   CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar<br><br>When I run configure, it accurately predicts trouble with fenv.h:<br>configure: WARNING: fenv.h: present but cannot be compiled<br>
configure: WARNING: fenv.h:     check for missing prerequisite headers?<br>configure: WARNING: fenv.h: see the Autoconf documentation<br>configure: WARNING: fenv.h:     section "Present But Cannot Be Compiled"<br>
configure: WARNING: fenv.h: proceeding with the preprocessor's result<br>configure: WARNING: fenv.h: in the future, the compiler will take precedence<br><br>the offending section in fenv.h is:<br>/*  We require VFP for this set of interfaces to work  */<br>
#if !defined(__VFP_FP__) || defined(__SOFTFP__)<br>    #error  This fenv header and set of APIs is intended for the ARM (with VFP) architecture only. <br>#endif<br><br>Unfortunately I don't know what VFP_FP means.  I am guessing that I am not including some necessary headers, but I don't know what they are.<br>
<br><br>As you can see, I am compiling without support for GMP.  When I enable it, I get the following error during configure:<br><br>checking compiler /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1 -fPIC -fno-common -arch armv6 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=2.0 -gdwarf-2 -mthumb -miphoneos-version-min=2.0 -I/Library/iPhone/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk -fPIC -fno-common  ... no, long long reliability test 1<br>
configure: error: could not find a working compiler, see config.log for details<br><br><br>I would appreciate any help you can give regarding these two issues.<br><br>Red<br><br>
</div>