[Openmp-dev] Trying to cross-compile the runtime for Android

Peyton, Jonathan L jonathan.l.peyton at intel.com
Thu Jul 16 18:50:55 PDT 2015


> Is it possible to cross-compile the OpenMP runtime for Android (running on armhf)?
>
> By "is it possible", I mean: has anyone ever done it and could help me with an overview of the process? Or, if not, I'm also trying to >figure out if it's worth trying at all, or if I'm going to hit a wall somewhere down the path that you may already be aware of, but I'm not.

I have no idea.  You’re the first person to bring it up on this forum ☺.  If compiling it for Android is as simple as compiling it for ARM then maybe, but I honestly am not sure what obstacles exist.

The libffi dependency is a relic from the first port of the runtime to the arm architecture.  Since then, there has been a contribution by Carlo Bertolli from IBM that eliminated this dependency for non-x86 architectures, but the ARM architecture builds were never changed to use it.  I can change this for you since it needs to be done anyways.

-- Johnny

From: openmp-dev-bounces at cs.uiuc.edu [mailto:openmp-dev-bounces at cs.uiuc.edu] On Behalf Of Débora Setton Sanches
Sent: Thursday, July 16, 2015 8:17 PM
To: openmp-dev at dcs-maillist2.engr.illinois.edu
Subject: [Openmp-dev] Trying to cross-compile the runtime for Android

Hi,

Is it possible to cross-compile the OpenMP runtime for Android (running on armhf)?

By "is it possible", I mean: has anyone ever done it and could help me with an overview of the process? Or, if not, I'm also trying to figure out if it's worth trying at all, or if I'm going to hit a wall somewhere down the path that you may already be aware of, but I'm not.

This is what I have so far:

I have successfully cross-compiled the RTL for the same hardware but with Ubuntu as OS. For that, I used arm-linux-gnueabihf toolchain for Debian (my host OS), but I also had to install libffi-dev:armhf, as it's a dependency. In the end, it worked great.

For Android, I was thinking of trying something similar. I already have a cross-compiler for Android (the toolchain provided with Android NDK), but there is no "libffi-dev:android-eabi" or something like that. I could try building ffi, but I'm wondering if I won't end up having a lot of similar dependencies to build (assuming I get ffi to even build).

Any thoughts on what I'm trying to accomplish are welcome -- any thoughts at all :)

Thanks.

--
Débora.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20150717/ed524021/attachment.html>


More information about the Openmp-dev mailing list