Hi Kunal You can build ART for host with the master-art manifest using:
$ cd $ANDROID_BUILD_TOP $ . build/envsetup.sh $ lunch silvermont-eng $ art/tools/buildbot-build.sh --host You can check your changes don't break existing tests unexpectedly running: $ art/test.py --host -r -g Good luck Orion On Thu, 3 Nov 2022 at 20:36, Kunal Sareen <[email protected]> wrote: > Hi all, > > I'm trying to build and run the Android Runtime (ART) standalone (i.e. > natively) on a Linux (Ubuntu 22.04) system. I'm trying to do this to have a > faster turn-around time for development (I'm planning on working on ART for > a research project). > > My understanding is that I need to use the `silvermont-eng` target, which > I set using `lunch`. However, if I try to build ART as an APEX package (as > is mentioned in the ART build README), then the built executables expect > the runtime linker to be at `/system/bin/linker` so fail to run natively on > the Linux machine. > > Here's how I've built the above (I'm using the `master-art` manifest in > order to only build ART): > ``` > repo init -b master-art -u > https://android.googlesource.com/platform/manifest > source build/envsetup.sh > export SOONG_ALLOW_MISSING_DEPENDENCIES=true > lunch silvermont-eng > TARGET_BUILD_APPS="com.android.art" TARGET_BUILD_UNBUNDLED=true m > ``` > > I presume the issues are related to building an APEX package for ART. Is > there a way to not build an APEX package then? > > Any help you can offer will be much appreciated. > > Sincerely, > Kunal > > -- > -- > You received this message because you are subscribed to the "Android > Building" mailing list. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-building?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Android Building" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-building/04804340-d186-4ec7-87fb-8dde31f9381en%40googlegroups.com > <https://groups.google.com/d/msgid/android-building/04804340-d186-4ec7-87fb-8dde31f9381en%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CAAttue0TgF-nXR9F4QjX%3DALFRp272KnZ5jWYN-8Z5GMOY1PmxQ%40mail.gmail.com.
