<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Elliott Slaughter wrote:
<blockquote
cite="mid:42c0ab790912121640j33c087ebwee820a8786cdc9ec@mail.gmail.com"
type="cite">On Sat, Dec 12, 2009 at 9:01 AM, Ram Krishnan <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:kriyative@gmail.com">kriyative@gmail.com</a>></span>
wrote:
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">Hi Elliott,<br>
<br>
I started with Red Daly's work (which you referenced), cleaned up a few
dependencies, and got ECL running in both the simulator and device. You
can checkout a copy from github:<br>
<br>
<a moz-do-not-send="true"
href="http://github.com/kriyative/ecl-iphone-builder" target="_blank">http://github.com/kriyative/ecl-iphone-builder</a><br>
<br>
It's based on ecl-9.8.4, and requires a newer Boehm-GC (gc-7.2alpha2).<br>
<br>
I still have some changes to the UIKit ffi code, which I've not checked
in yet (mostly to do with Autorelease pools etc.). Other than that you
should be able to build, and connect to ECL via SLIME. Let me know if
you run into any issues.<br>
</div>
</blockquote>
</div>
<div><br>
</div>
<div>I cloned your repo and tried the instructions in the README, but
the build still failed. For a while it looked like it was doing
something, and it even loaded ECL and started compiling something, but
after a while it ended with the following:</div>
<br>
<div>./configure
--prefix=/Users/elliott/Programming/Lisp/ecl-iphone-builder/iphone/device
--host=arm-apple-darwin --target=arm-apple-darwin --disable-c99complex
--disable-longdouble --disable-soname --disable-unicode
--disable-shared --enable-threads --with-asdf=no --with-bytecmp=builtin
--with-cmp=no --with-clx=no --with-defsystem=no --with-fpe=yes
--with-profile=no --with-rt=no --with-serve-event=builtin
--with-tcp=builtin --with-x=no</div>
<div>Switching to directory `build' to continue configuration.</div>
<div>configure: WARNING: If you wanted to set the --build type, don't
use --host.</div>
<div> If a cross compiler is detected then cross compile mode will
be used.</div>
<div>checking build system type... pentium3-apple-darwin9.8.0</div>
<div>checking host system type... arm-apple-darwin</div>
<div>checking for arm-apple-darwin-gcc...
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2</div>
<div>checking for C compiler default output file name... a.out</div>
<div>checking whether the C compiler works... yes</div>
<div>checking whether we are cross compiling... yes</div>
<div>checking for suffix of executables... </div>
<div>checking for suffix of object files... o</div>
<div>checking whether we are using the GNU C compiler... yes</div>
<div>checking whether
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2
accepts -g... yes</div>
<div>checking for
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 option
to accept ISO C89... none needed</div>
<div>checking for arm-apple-darwin-g++... no</div>
<div>checking for arm-apple-darwin-c++... no</div>
<div>checking for arm-apple-darwin-gpp... no</div>
<div>checking for arm-apple-darwin-aCC... no</div>
<div>checking for arm-apple-darwin-CC... no</div>
<div>checking for arm-apple-darwin-cxx... no</div>
<div>checking for arm-apple-darwin-cc++... no</div>
<div>checking for arm-apple-darwin-cl.exe... no</div>
<div>checking for arm-apple-darwin-FCC... no</div>
<div>checking for arm-apple-darwin-KCC... no</div>
<div>checking for arm-apple-darwin-RCC... no</div>
<div>checking for arm-apple-darwin-xlC_r... no</div>
<div>checking for arm-apple-darwin-xlC... no</div>
<div>checking for g++... g++</div>
<div>configure: WARNING: using cross tools not prefixed with host
triplet</div>
<div>checking whether we are using the GNU C++ compiler... yes</div>
<div>checking whether g++ accepts -g... yes</div>
<div>checking how to run the C preprocessor...
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp</div>
<div>checking for arm-apple-darwin-ranlib... no</div>
<div>checking for ranlib... ranlib</div>
<div>checking for a BSD-compatible install... /usr/bin/install -c</div>
<div>checking whether ln -s works... yes</div>
<div>checking whether make sets $(MAKE)... yes</div>
<div>/Users/elliott/Programming/Lisp/ecl-iphone-builder/ecl-9.8.4/build/cross_config:
line 25: syntax error near unexpected token `)'</div>
<div>/Users/elliott/Programming/Lisp/ecl-iphone-builder/ecl-9.8.4/build/cross_config:
line 25: `)'</div>
<div>/Users/elliott/Programming/Lisp/ecl-iphone-builder/ecl-9.8.4/src/configure:
line 4336: -eval: command not found</div>
<div>configure: error: The program ECL-MIN is not installed in your
system</div>
</blockquote>
This is the error -- not sure why cross_config is malformed. I tried a
rebuild just to verify (on a MacBook Pro running Snow Leopard (10.6.2),
and it built correctly. You can look at the build output (from the link
below) to see if there's anything that stands out:<br>
<br>
<a class="moz-txt-link-freetext" href="http://kriyative.s3.amazonaws.com/misc/build-output.txt">http://kriyative.s3.amazonaws.com/misc/build-output.txt</a><br>
<br>
I've also attached a working `ecl-9.8.4/build/cross_config' file from
the build for reference. Hope that helps.<br>
<br>
-ram<br>
<br>
</body>
</html>