It sounds like these would be needed to run LLVM+clang on Android in
general (not emscripten-specific)? Upstream LLVM sounds like the right
place to push those fixes. Nice work!

- Alon



On Fri, Aug 22, 2014 at 9:20 AM, jrbrusseau via emscripten-discuss <
[email protected]> wrote:

> Here's an update to my progress with this:
>
> I only ran into a two problems compiling fastcomp (llvm & clang). The fix
> for them required minor changes to two files. I attached a diff with the
> changes I made. Though I haven't tested it on a new build.
>
>    - The first was caused by Process.inc looking for unistd.h in sys
>    which at least on android platform 9 it not.
>       -
>        /home/bobajeff/Downloads/emscripten-fastcomp-1.22.1/lib/Support/
>       Unix/Process.inc:39:24: fatal error: sys/unistd.h: No such file or
>       directory
>
>
>
>    - The second was cause by JITMemoryManager.cpp trying to use the
>    open64 function which isn't available in Bionic (at least not platform 9).
>       -  /home/bobajeff/Downloads/emscripten-fastcomp-1.22.1/lib/
>       ExecutionEngine/JIT/JITMemoryManager.cpp:831:66: error: 'open64'
>       was not declared in this scope
>
>
> The first error was easy enough to fix. For the second error I studied
> Sean Childs' patch
> <http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120409/140837.html>.
> Only the JITMemoryManager.cpp related bit though. I didn't yet know if I'd
> need the rest so I left those changes out (which turns out I didn't). I
> would probably still work if I reduced the coverage of the ifndef to only
> the open64 line.
>
> Some how I have to test it on Android to see if it runs. I'll probably
> need to make JNI wrapper for it and package it as a apk. Other things I
> have yet to do is build python, node.js and emscripten. I expect I'll
> probably run into permissions issues with one more of those.
>
>
> On Thursday, July 17, 2014 7:47:42 AM UTC-5, [email protected] wrote:
>>
>> I fascinated with the idea of using Android code editor/IDE (like
>> DroidEdit or AIDE) to program C++ applications while on a phone.
>>
>> I was wondering if there is a way to run emscripten on Android. Can I
>> compile emscripten to android? Has anyone tried it?
>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to