Error when building android 9 source (ubuntu 18.04)

924 views
Skip to first unread message

Eliane Fonseca

unread,
Dec 18, 2019, 2:35:05 PM12/18/19
to Android Building
The error message is attached below. It always fails at this point, with the same exact error message. The error is:

[ 4% 809/19992] Hidden API: out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar FAILED: out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar /bin/bash -c "(rm -f out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar ) && (cp \"out/soong/.intermediates/frameworks/base/test-base/android.test.base/android_common/dex/android.test.base.jar\" \"out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar\" ) && (rm -rf out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (mkdir -p out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (unzip -q out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar 'classes*.dex' -d out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (find out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi -name \"classes*.dex\" | sort | sed 's/^/--dex=/' | xargs out/host/linux-x86/bin/hiddenapi --light-greylist=out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt --dark-greylist=out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt --blacklist=out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt ) && (out/soong/host/linux-x86/bin/soong_zip -o out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi/classes.dex.jar -C out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi -D out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (out/soong/host/linux-x86/bin/merge_zips -D -zipToNotStrip out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi/classes.dex.jar -stripFile \"classes*.dex\" out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi/classes.dex.jar out/soong/.intermediates/frameworks/base/test-base/android.test.base/android_common/dex/android.test.base.jar )" xargs: out/host/linux-x86/bin/hiddenapi: terminated by signal 4

PS. I posted this isssue on Stack Overflow but they closed my thread and asked me to post here.

Colin Cross

unread,
Dec 18, 2019, 7:59:44 PM12/18/19
to android-...@googlegroups.com
Signal 4 is SIGILL, meaning the binary contained an illegal instruction.  Parts of the ART build assume that the host CPU supports at least SSE4.2 and POPCNT (https://cs.android.com/android/platform/superproject/+/master:art/build/Android.bp;l=188).  What CPU are you building on?

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
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 android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/3e4a52ba-a9bd-4fbb-805b-35e8ea56ae44%40googlegroups.com.

Eliane Fonseca

unread,
Dec 18, 2019, 8:58:36 PM12/18/19
to Android Building
The processor of the PC used to build the AOSP code is a AMD C-60, that uses the Bobcat microarchitecture.


Em quarta-feira, 18 de dezembro de 2019 21:59:44 UTC-3, Colin Cross escreveu:
Signal 4 is SIGILL, meaning the binary contained an illegal instruction.  Parts of the ART build assume that the host CPU supports at least SSE4.2 and POPCNT (https://cs.android.com/android/platform/superproject/+/master:art/build/Android.bp;l=188).  What CPU are you building on?

On Wed, Dec 18, 2019 at 11:35 AM Eliane Fonseca <fonseca...@gmail.com> wrote:
The error message is attached below. It always fails at this point, with the same exact error message. The error is:

[ 4% 809/19992] Hidden API: out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar FAILED: out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar /bin/bash -c "(rm -f out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar ) && (cp \"out/soong/.intermediates/frameworks/base/test-base/android.test.base/android_common/dex/android.test.base.jar\" \"out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar\" ) && (rm -rf out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (mkdir -p out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (unzip -q out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar 'classes*.dex' -d out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (find out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi -name \"classes*.dex\" | sort | sed 's/^/--dex=/' | xargs out/host/linux-x86/bin/hiddenapi --light-greylist=out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt --dark-greylist=out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt --blacklist=out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt ) && (out/soong/host/linux-x86/bin/soong_zip -o out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi/classes.dex.jar -C out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi -D out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (out/soong/host/linux-x86/bin/merge_zips -D -zipToNotStrip out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi/classes.dex.jar -stripFile \"classes*.dex\" out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi/classes.dex.jar out/soong/.intermediates/frameworks/base/test-base/android.test.base/android_common/dex/android.test.base.jar )" xargs: out/host/linux-x86/bin/hiddenapi: terminated by signal 4

PS. I posted this isssue on Stack Overflow but they closed my thread and asked me to post here.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to

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 android-...@googlegroups.com.

Eliane Fonseca

unread,
Dec 19, 2019, 11:31:43 AM12/19/19
to Android Building
Interestingly, some Java libs were compiled even through this one failed (most of them). Also it is possible to bypass ART compilation and build AOSP without these Java libs?

Eliane Fonseca

unread,
Jan 5, 2020, 11:10:21 PM1/5/20
to Android Building


I have solved the problem thanks to tis other topic: https://groups.google.com/forum/?fromgroups=#!topic/android-building/PiF49R2cheQ Edit that file and remove the  lines -msse4.2 and -mpopcnt. This will solve my problem until i can get a newer PC.

Manuel José M.

unread,
May 6, 2020, 10:58:14 AM5/6/20
to Android Building
Can you confirm if this has any impact on the final build? I'm in same situation as you... 

Xin Li

unread,
May 6, 2020, 6:42:06 PM5/6/20
to Android Building
Signal 4 is SIGILL, usually indicating the process in question was using an instruction that is not supported by the host processor.

The change that brings in this was https://android-review.googlesource.com/c/platform/art/+/441015 and according to the specification I have found for AMD C-60, it doesn't have SSE 4.2 support, but it does support POPCNT instruction, so I think removing -msse4.2 should actually be sufficient.  Newer AMD processors (Bulldozer, Piledriver, Steamroller, Excavator and all Zen and newer processors) supports all these instructions, and using these would result quite visible build performance improvements on the new CPUs.

This affects ART tools that runs on host, and they shouldn't affect the final build result.
Reply all
Reply to author
Forward
0 new messages