<div dir="ltr">So I got it compiling and running on the iPhone.  Unfortunately it aborts when I call cl_boot().  I get a console error:<br>Internal or unrecoverable error in:<br><br>Lisp initialization error.<br><br>I cannot inspect init_lib_LSP (which appears to be generated cod?) to get closer to the problem.  A stack trace follows.<br>
<br>(gdb) backtrace<br>#0  0x31439134 in __kill ()<br>#1  0x31439110 in kill ()<br>#2  0x31439104 in raise ()<br>#3  0x314538ea in abort ()<br>#4  0x00068ec0 in ecl_internal_error (s=0x10b358 "\nLisp initialization error.\n") at error.d:50<br>
#5  0x000695b2 in universal_error_handler (narg=3, c=0x1, err=0x135be4, args=0x411d41) at error.d:228<br>#6  0x0000c518 in APPLY (n=3, fn=0x69581 <universal_error_handler+1>, x=0x14980c) at apply.d:28<br>#7  0x0004208a in ecl_apply_from_stack_frame (frame=0x2ffff270, x=0x137474) at eval.d:76<br>
#8  0x000425f2 in cl_funcall (narg=4, function=0x137474) at eval.d:202<br>#9  0x000697b0 in cl_error (narg=3, eformat=0x135be4) at error.d:301<br>#10 0x00069374 in FEundefined_function (fname=0x1391b4) at error.d:167<br>#11 0x00041fb6 in ecl_apply_from_stack_frame (frame=0x2ffff318, x=0x1391b4) at eval.d:69<br>
#12 0x000425f2 in cl_funcall (narg=3, function=0x1391b4) at eval.d:202<br>#13 0x0004b5e0 in compile_form (stmt=0x40f071, flags=2) at compiler.d:1961<br>#14 0x0004fad2 in si_eval_with_env (narg=1, form=0x40f071) at compiler.d:2742<br>
#15 0x00042826 in cl_eval (form=0x40f071) at eval.d:242<br>#16 0x000998fc in _eclbh4KmYm8_5T6h0Oy (flag=0x0) at /Users/red/Projects/ecl/ecl-iphone/build/clos/combin.c:954<br>#17 0x00062fd2 in read_VV (block=0x3c79f0, entry_point=0x997c9 <_eclbh4KmYm8_5T6h0Oy+1>) at read.d:2142<br>
#18 0x0009206a in init_lib_LSP (cblock=<value temporarily unavailable, due to optimizations>) at /private/var/folders/bZ/bZzxCBiyF0ec7xuYjNmSMk+++TI/-Tmp-/ECLINITYuwCKo.c:113<br>#19 0x00062fd2 in read_VV (block=0x3c7fc0, entry_point=0x91e5d <init_lib_LSP+1>) at read.d:2142<br>
#20 0x0000300c in cl_boot (argc=1, argv=0x2ffff5ac) at main.d:521<br>#21 0x0000208a in main (argc=1, argv=0x2ffff5ac) at /Users/red/Projects/ecl/trivial-test/main.m:15<br><br>Your insights are appreciated!<br><br>Red<br><br>
<div class="gmail_quote">On Tue, Sep 9, 2008 at 2:12 PM, Red Daly <span dir="ltr"><<a href="mailto:reddaly@gmail.com">reddaly@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">This message just bounced:<div class="Ih2E3d"><br><br>I have amended my configuration command to include LDFLAGS, not just
CFLAGS.  I also disabled profiling and added a LIBRAN env variable. Now I'm breaking
with these errors...<br><br><br></div><div class="Ih2E3d">;;; Finished compiling ext:sockets;sockets.lisp.<br></div><div dir="ltr"><div class="Ih2E3d"><div>;;; Note: Scanning #P"build:ext;sockets.o.NEWEST"<br></div>
</div>;;; Note: Found tag: "_ecl3HaOXjm8_TY2iyNy"<br>
;;; Note: Invoking external command:<br>;;;   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.0 
-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 -Ddarwin -I"/Users/red/Projects/ecl/ecl-iphone/src/c"  "-I/Users/red/Projects/ecl/ecl-iphone/build/" -w -c "/private/var/folders/bZ/bZzxCBiyF0ec7xuYjNmSMk+++TI/-Tmp-/ECLINITu3lxs7.c" -o "/private/var/folders/bZ/bZzxCBiyF0ec7xuYjNmSMk+++TI/-Tmp-/ECLINITu3lxs7.o"<br>


;;; Note: Invoking external command:<br>;;;   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar cr libsockets.a /private/var/folders/bZ/bZzxCBiyF0ec7xuYjNmSMk+++TI/-Tmp-/ECLINITu3lxs7.o /Users/red/Projects/ecl/ecl-iphone/build/ext/sockets.o <br>


;;; Note: Invoking external command:<br>;;;   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib libsockets.a<br>;;; Note: Invoking external command:<br>;;;   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.0 
-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 -Ddarwin -I"/Users/red/Projects/ecl/ecl-iphone/src/c"  "-I/Users/red/Projects/ecl/ecl-iphone/build/" -w -c "/private/var/folders/bZ/bZzxCBiyF0ec7xuYjNmSMk+++TI/-Tmp-/ECLINITqICIO4.c" -o "/private/var/folders/bZ/bZzxCBiyF0ec7xuYjNmSMk+++TI/-Tmp-/ECLINITqICIO4.o"<br>


;;; Note: Invoking external command:<div class="Ih2E3d"><br>Undefined symbols:<br>  "___data_start", referenced from:<br>      ___data_start$non_lazy_ptr in libeclgc.a(os_dep.o)<br>  "___stack_base__", referenced from:<br>


      ___stack_base__$non_lazy_ptr in libeclgc.a(os_dep.o)<br>  "_end", referenced from:<br>      _end$non_lazy_ptr in libeclgc.a(os_dep.o)<br>ld: symbol(s) not found<br>collect2: ld returned 1 exit status</div>
<div>
<br><div class="Ih2E3d">;;; Warning: Ignoring definition for class SIMPLE-PROGRAM-ERROR<br>
Not a condition type: SIMPLE-PROGRAM-ERROR<br></div></div>;;;   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.0 -o "/Users/red/Projects/ecl/ecl-iphone/build/bin/ecl" -L"/Users/red/Projects/ecl/ecl-iphone/build/" "/private/var/folders/bZ/bZzxCBiyF0ec7xuYjNmSMk+++TI/-Tmp-/ECLINITqICIO4.o"
"-lsockets" "-lcmp" "-L./"  -arch armv6 -pipe -std=c99 -gdwarf-2
-mthumb -I/Library/iPhone/include -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk libecl.a -leclgc    -lm  Broken at TOP-LEVEL. File: #P"/Users/red/Projects/ecl/ecl-iphone/src/lsp/top.lsp" (Form #26)No restarts available.<br>


Top level.<br>SI> <br><br><div class="Ih2E3d"><br>thanks for the help!  I'm sure this will be building soon :)<br><font color="#888888"><br>Red</font></div></div><br><br><div class="gmail_quote"><div class="Ih2E3d">
On Tue, Sep 9, 2008 at 1:33 PM, Juan Jose Garcia-Ripoll <span dir="ltr"><<a href="mailto:juanjose.garciaripoll@googlemail.com" target="_blank">juanjose.garciaripoll@googlemail.com</a>></span> wrote:<br>
</div><div><div></div><div class="Wj3C7c"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">On Tue, Sep 9, 2008 at 9:34 PM, Red Daly <span dir="ltr"><<a href="mailto:reddaly@gmail.com" target="_blank">reddaly@gmail.com</a>></span> wrote:<br>

<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 dir="ltr">Unfortunately, I am still having problems.  I believe I am getting through the configuration process without any warnings (at least when I compile without GMP). There are new problems in what appears to be the lisp phase of the build. [...]<div>

<br>
;;; Compiling (DEFVAR *PROFILED-FUN-NAME->INFO* ...).<br>
;;; Warning: Ignoring definition for class PROFILE-INFO<br>;;; No class named PROFILE-INFO.</div></div></blockquote><div><br>This is a contributed module which sometimes causes problems. You can deactivate it with --without-profile</div>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><br>From what I can tell, one problem is that not all the GCC flags I specified in the configuration stage are preserved in this latter stage of the build.[...]<div>

<br>
does not contain the -arch arm etc. flags specified in my call to configure.  However, many other calls to gcc do have those flags.</div></div></blockquote><div><br>That is because that last phase is not compiling anything: it is linking. So, the appropriate flags are LDFLAGS. Seems you should add -arch arm and similar to that variable as well.<br>


 <br></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">The AR value I specify also does not make it all the way to the lisp stage</div>


</blockquote></div><div><br>My fault. I have not included this as a configurable command. I will search the code and see what I can change. Momentarily, could you edit cmpmain.lsp and add the right commands?<br> <br>Juanjo<br>

</div>
</div><div><br>-- <br>Instituto de Física Fundamental<br>CSIC, Serrano, 113, Madrid 28040 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>


</div></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>