sonyxperiadev / bug_tracker

Empty repository that is used as a bugtracker for Open Devices project
52 stars 13 forks source link

[loire] [suzu] - Android 9 - Build error #207

Closed mehakimz closed 6 years ago

mehakimz commented 6 years ago

Platform: loire Device: suzu (dsds variant) Kernel version: 4.9 Android version: 9.0.0_r10

Description I get this error during build. Any idea?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=aosp_f5122
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.9.0-8-amd64-x86_64-Debian-GNU/Linux-9-(stretch)
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PPR2.181005.003
OUT_DIR=out
============================================
[  0% 11/16579] Generating out/target/product/suzu/module-info.json
[  0% 12/16579] build out/target/product/suzu/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf
[  0% 13/16579] Install: out/target/product/suzu/root/verity_key
[  0% 14/16579] 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
[  0% 15/16579] build out/target/product/suzu/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
out/host/linux-x86/bin/checkpolicy:  loading policy configuration from out/target/product/suzu/obj/ETC/sepolicy_neverallows_intermediates/policy.conf
out/host/linux-x86/bin/checkpolicy:  policy configuration loaded
out/host/linux-x86/bin/checkpolicy:  writing binary representation (version 30) to out/target/product/suzu/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
[  0% 16/16579] build out/target/product/suzu/obj/ETC/sepolicy.recovery_intermediates/sepolicy
out/host/linux-x86/bin/checkpolicy:  loading policy configuration from out/target/product/suzu/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf
out/host/linux-x86/bin/checkpolicy:  policy configuration loaded
out/host/linux-x86/bin/checkpolicy:  writing binary representation (version 30) to out/target/product/suzu/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp
[  0% 17/16579] //prebuilts/sdk/current/support:android-support-animatedvectordrawable javac [common]
ninja: build stopped: subcommand failed.
20:31:36 ninja failed with: exit status 1
jerpelea commented 6 years ago

please run repo_update.sh

mehakimz commented 6 years ago

All the patches from repo_update.sh are applied! but still build error.

jerpelea commented 6 years ago

you have to manually fix media and gps

mehakimz commented 6 years ago

I do that by copy those repo (tar.gz) directly from media/sdm845 and gps/sdm845 and comment out related patches in repo_update.sh

mehakimz commented 6 years ago

I'm afraid is "terminated by signal 4" related to my aged desktop hardware base on some similar error:

Perhaps your code was compiled assuming some of these instructions were available, but your CPU does not support them.

Is "Intel(R) Pentium(R) D CPU 2.80GHz" still capable of compiling android Pie? There was some pain but no problem on android Ore.

And do you guys have any plan to publish like weekly or monthly, compiled version of AOSP source?

MartinX3 commented 6 years ago

Intel® Pentium® D Processor 820 No SSE4/SSE4a No AVX No SSE4.1 No SSE4.2 No SSSE3 (SSE3 available) No AES No AVX 2.0

Maybe you want to buy a new, cheap CPU? https://cpu.userbenchmark.com/Compare/Intel-Pentium-D-280GHz-vs-AMD-Ryzen-3-2200G/m267vsm441832 Even the Ryzen 3 2200G (AMD's smallest CPU) is 559% faster and supports every CPU instruction set available. (Price 100$/€)

There will be never published compiled ROM images. :(

klabit87 commented 5 years ago

Was a solution ever found besides new processor?

maurossi commented 5 years ago

Hi, I have bypassed the unnecessary constraint by doing the following:

cd ~/pie-x86/art
git revert f60525793a1fd784ce7de82f18e7ad9de242c431

[detached HEAD 7fe3078139] Revert "Assume all x86/x86_64 hosts support
at least sse4.x/popcount."
 1 file changed, 9 deletions(-)
frantisheq commented 5 years ago

on lineage there is now an option to export CPU_SSE42=false https://review.lineageos.org/c/LineageOS/android_art/+/242869