XenonHD unofficial PIE build errors.

Rondeau79

Senior Member
Jun 19, 2016
305
286
63
Merging my source for XenonHD Oreo to Pie. Building is 85% complete but fails with an error about Hidden API situation? Below will be text of my terminal output about this situation.
Hidden API: /home/rondeau79/xenon/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar
FAILED: /home/rondeau79/xenon/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar
/bin/bash -c "(rm -f /home/rondeau79/xenon/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar ) && (cp "/home/rondeau79/xenon/out/soong/.intermediates/frameworks/base/test-base/android.test.base/android_common/dex/android.test.base.jar" "/home/rondeau79/xenon/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar" ) && (rm -rf /home/rondeau79/xenon/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (mkdir -p /home/rondeau79/xenon/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (unzip -q /home/rondeau79/xenon/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar 'classes*.dex' -d /home/rondeau79/xenon/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (find /home/rondeau79/xenon/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi -name "classes*.dex" | sort | sed 's/^/--dex=/' | xargs /home/rondeau79/xenon/out/host/linux-x86/bin/hiddenapi --light-greylist=/home/rondeau79/xenon/out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt --dark-greylist=/home/rondeau79/xenon/out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt --blacklist=/home/rondeau79/xenon/out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt ) && (/home/rondeau79/xenon/out/soong/host/linux-x86/bin/soong_zip -o /home/rondeau79/xenon/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi/classes.dex.jar -C /home/rondeau79/xenon/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi -D /home/rondeau79/xenon/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (/home/rondeau79/xenon/out/soong/host/linux-x86/bin/merge_zips -D -zipToNotStrip /home/rondeau79/xenon/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi/classes.dex.jar -stripFile "classes*.dex" /home/rondeau79/xenon/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar /home/rondeau79/xenon/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi/classes.dex.jar /home/rondeau79/xenon/out/soong/.intermediates/frameworks/base/test-base/android.test.base/android_common/dex/android.test.base.jar )"
xargs: /home/rondeau79/xenon/out/host/linux-x86/bin/hiddenapi: terminated by signal 4
[ 1% 125/12346] Building Kernel Config
make: Entering directory '/home/rondeau79/xenon/kernel/moto/shamu'
My build environment is all up to date something seems to missing from a.) my build environment b.) the source code from Git or c.) etc.
 

runekock

Senior Member
Apr 24, 2012
821
479
83
Signal 4 (SIGILL) means that the hiddenapi binary is corrupt.

Sometimes corruption is random, so a good test is to clean build from scratch, and see if you get the same error again.

Other times corruption is from a compiler bug. Is your gcc the recommended version? - and not newer, because newer can mean new bugs.