For a quiet some time I'm trying to build Android 11 for Sony Xperia XZ2 H8266. Everytime process comes to build org.apache.http.legacy package it gets an error.
[ 99% 263/264] //external/apache-http:org.apache.http.legacy dexpreopt [common]
FAILED: out/soong/.intermediates/external/apache-http/org.apache.http.legacy/and
roid_common/dexpreopt/profile.prof
ANDROID_LOG_TAGS="*:e" out/soong/host/linux-x86/bin/profman --create-profile-fro
m=external/apache-http/art-profile --apk=out/soong/.intermediates/external/apach
e-http/org.apache.http.legacy/android_common/aligned/org.apache.http.legacy.jar
--dex-location=/system/framework/org.apache.http.legacy.jar --reference-profile-
file=out/soong/.intermediates/external/apache-http/org.apache.http.legacy/androi
d_common/dexpreopt/profile.prof
Illegal instruction (core dumped)
18:31:01 ninja failed with: exit status 1
I'm using old PowerEdge 2950 with 2 quad-core Xeon CPUs with 32 Gb RAM running with Debian 11 and Ubuntu 20.04. Both systems give me same output. I've read that org.apache.http.legacy is deprecated package. I would appreciate same hint where to look for the core of the problem.
Thanks in advance. DoomRider