[Openmcl-devel] clozure ccl on android
Cyrille Duret
cduret at gmail.com
Thu Feb 28 07:48:42 PST 2013
hello,
I finally compiled fine aarmcl and libaarmcl.so with a linux virtual image.
But now when I try to run ccl on my android phone I get :
Heap image is too old for this kernel.
Couldn't load lisp heap image from /sd-ext/local/ccl/aarmcl.image
My phone :
$ uname -a
Linux localhost 2.6.38.8-tiamat-ics+ #1 PREMPT Fri May 25 21:49:58 CDT 2012
armv71 GNU/Linux
On Mon, Feb 25, 2013 at 2:51 PM, Cyrille Duret <cduret at gmail.com> wrote:
> I tried to compile with ur ndk but the androidarm Makefile is configured
> for arm-linux-androideabi/4.6 so I take the one from
> the android-ndk-r8d-windows
>
> Basically the compilation failed. The stdint.h cannot be found, I don't
> know what's going on.
>
> compilation logs : http://pastie.org/6333751
>
> On Mon, Feb 25, 2013 at 1:40 PM, Gary Byers <gb at clozure.com> wrote:
>
>> I've never tried to cross-compile the android CCL kernel using a Windows
>> version of the Android NDK, but I (naively ?) would expect it work if the
>> Makefile (ccl/lisp-kernel/androidarm/**Makefile) is edited a bit. You
>> say
>> that you tried to compile from Windows/cygwin but don't say what you
>> changed
>> or how it failed; you may have already tried some of this.
>>
>> 1) download http://dl.google.com/android/**ndk/android-ndk-r7c-windows.**
>> zip <http://dl.google.com/android/ndk/android-ndk-r7c-windows.zip>;
>> extract that on the Windows box, ideally somewhere that'd have the Cygwin
>> pathname "/usr/local/android-ndk-r8c". If you uave to up it somewhere
>> else, change the definition of NDK in the Makefile.
>>
>> 2) In a Cygwin shell, not what the command "uname -s" prints (probably
>> the string "Windows" .) Look at the NDK directory and see if you can
>> determine what string is used to name host-specific parts of the NDK
>> distribution; that may also be "Windows" or something like that. Edit
>> the Makefile (the part near the top that uses "uname -s" output to set
>> the variable HOST.)
>>
>> 3) cd to the ccl/lisp-kernel/androidarm directory and do "make". If NDK
>> or HOST aren't set right, you'll get lots of error messages.
>>
>> If things go well, one thing that'll happen is that a program named
>> "fixlib"
>> will get built and run on the host system (the Windows box) to tweak the
>> "aarmcls.so" library. It's possible that that needs to be referred to
>> as "fixlib.exe"
>>
>> If the make completes, you can move the "aarmcl" and "aarmcl.so" files
>> over
>> to some directory (/data/local/ or /data/local/tmp, iirc) on the Android
>> device
>> and try to run aarmcl in the shell. If that compilains that it can't
>> find a
>> heap image, build one ...
>>
>>
>> On Mon, 25 Feb 2013, Cyrille Duret wrote:
>>
>> hello,I try to setup a running ccl instance on android and followed this
>>>
>>> thread
>>>
>>> http://clozure.com/pipermail/**openmcl-devel/2011-November/**013183.html<http://clozure.com/pipermail/openmcl-devel/2011-November/013183.html>
>>>
>>> I tried to compile the kernel but without success since I am running
>>> freeBSD, I tried to compile from Windows/cygwin (I don't have linux nor
>>> MAC
>>> OS)
>>>
>>> I tried to upload the prebuild image (aarmcl, aarmcl.image and?aarmcl.so)
>>>
>>> from svn but I got an exception :
>>>
>>> unhandled exception 11 at 0x50066b68, context->regs at #xbef113d8
>>> received signal 11; faulting address: 0x1
>>> address not mapped to object
>>> ? for help
>>> [24515] Clozure CL kernel debugger:
>>>
>>>
>>> My phone's CPU is
>>>
>>> # cat /proc/cpuinfo
>>> Processor ? : ARMv7 Processor rev (v71)
>>>
>>> BogoMIPS : 509.54
>>> Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3
>>> ..
>>> ..
>>> Hardware : bravo
>>>
>>> Is there any way to cross compile the lisp kernel with windows OS ?
>>>
>>> thanks
>>> Cyrille
>>>
>>>
>>>
>>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20130228/ad1be87d/attachment.htm>
More information about the Openmcl-devel
mailing list