Trying to build a standard AOSP on Ubuntu 14.04, target aosp_arm-eng. The build works fine until the metalava and the use of kotlin, when it fails with:
WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by > org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreApplicationEnvironment > (file:/aosp/soong/host/linux-x86/framework/metalava.jar) to field > java.lang.reflect.Field.modifiers > WARNING: Please consider reporting this to the maintainers of > org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreApplicationEnvironment > WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations > WARNING: All illegal access operations will be denied in a future release > Exception in thread "main" java.lang.OutOfMemoryError: Java heap space > at > java.base/java.util.LinkedHashMap$LinkedKeySet.iterator(LinkedHashMap.java:543) > at java.base/java.util.HashSet.iterator(HashSet.java:173) > at > kotlin.collections.CollectionsKt___CollectionsKt.toList(_Collections.kt:1220) > at kotlin.collections.ArraysKt___ArraysKt.distinct(_Arrays.kt:9836) > at > com.android.tools.metalava.model.psi.PsiModifierItem$Companion.create(PsiModifierItem.kt:188) > at > com.android.tools.metalava.model.psi.PsiModifierItem$Companion.create(PsiModifierItem.kt:58) > at > com.android.tools.metalava.model.psi.PsiItem$Companion.modifiers(PsiItem.kt:264) > at > com.android.tools.metalava.model.psi.PsiMethodItem$Companion.create(PsiMethodItem.kt:355) > at > com.android.tools.metalava.model.psi.PsiClassItem$Companion.create(PsiClassItem.kt:466) > at > com.android.tools.metalava.model.psi.PsiBasedCodebase.createClass(PsiBasedCodebase.kt:441) > at > com.android.tools.metalava.model.psi.PsiBasedCodebase.findOrCreateClass(PsiBasedCodebase.kt:559) > at > com.android.tools.metalava.model.psi.PsiClassItem$Companion$create$result$1.invoke(PsiClassItem.kt:534) > at > com.android.tools.metalava.model.psi.PsiClassItem$Companion$create$result$1.invoke(PsiClassItem.kt:391) > at > kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:172) > at > kotlin.sequences.SequencesKt___SequencesKt.toCollection(_Sequences.kt:716) > at > kotlin.sequences.SequencesKt___SequencesKt.toMutableList(_Sequences.kt:746) > at > com.android.tools.metalava.model.psi.PsiClassItem$Companion.create(PsiClassItem.kt:538) > at > com.android.tools.metalava.model.psi.PsiBasedCodebase.createClass(PsiBasedCodebase.kt:441) > at > com.android.tools.metalava.model.psi.PsiBasedCodebase.initialize(PsiBasedCodebase.kt:180) > at com.android.tools.metalava.Driver.parseSources(Driver.kt:876) > at > com.android.tools.metalava.Driver.parseSources$default(Driver.kt:847) > at com.android.tools.metalava.Driver.loadFromSources(Driver.kt:773) > at com.android.tools.metalava.Driver.processFlags(Driver.kt:182) > at com.android.tools.metalava.Driver.run(Driver.kt:115) > at com.android.tools.metalava.Driver.run$default(Driver.kt:98) > at com.android.tools.metalava.Driver.main(Driver.kt:86) > 12:35:03 ninja failed with: exit status 1 > >> >> Following the AOSP environment instructions and build instructions, and have re-installed everything several times. Same problem with the latest version of Ubuntu and the LTS 14.04 version. Also with the aosp_arm64-eng target as well. Any suggestions? Steve -- -- 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/f7bd0bc0-b3b3-4c04-bb6f-2f2fb4e96a52%40googlegroups.com.
