AOSP v10 Compilation Error

2,254 views
Skip to first unread message

Agostinho Carvalho

unread,
Dec 30, 2019, 1:15:53 PM12/30/19
to Android Building
Hello.

While trying to compile AOSP v10, the following output error is displayed:

00:06:00 Build sandboxing disabled due to nsjail error. This may become fatal in the future.
00:06:00 Please let us know why nsjail doesn't work in your environment at:
00:06:00   https://groups.google.com/forum/#!forum/android-building
00:06:00   https://issuetracker.google.com/issues/new?component=381517
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=aosp_x86
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86
TARGET_ARCH_VARIANT=x86
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.3.0-1-amd64-x86_64-Debian-GNU/Linux-bullseye/sid
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ1C.191205.016.A1
OUT_DIR=out
============================================
[  0% 1/750] hiddenapi stub flags
FAILED: out/soong/hiddenapi/hiddenapi-stub-flags.txt
out/soong/host/linux-x86/bin/hiddenapi list --boot-dex=out/soong/.intermediates/frameworks/base/test-base/android.test.base/android_common/aligned/android.test.base.jar --boot-dex=out/soong/.intermediates/external/apache-xml/apache-xml/android_common/aligned/apache-xml.jar --boot-dex=out/soong/.intermediates/external/bouncycastle/bouncycastle/android_common/aligned/bouncycastle.jar --boot-dex=out/soong/.intermediates/external/conscrypt/conscrypt/android_common/aligned/conscrypt.jar --boot-dex=out/soong/.intermediates/libcore/core-libart/android_common/aligned/core-libart.jar --boot-dex=out/soong/.intermediates/libcore/core-oj/android_common/aligned/core-oj.jar --boot-dex=out/soong/.intermediates/frameworks/base/ext/android_common/aligned/ext.jar --boot-dex=out/soong/.intermediates/frameworks/base/framework/android_common/aligned/framework.jar --boot-dex=out/soong/.intermediates/frameworks/opt/net/ims/ims-common/android_common/aligned/ims-common.jar --boot-dex=out/soong/.intermediates/external/okhttp/okhttp/android_common/aligned/okhttp.jar --boot-dex=out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/aligned/telephony-common.jar --boot-dex=out/soong/.intermediates/frameworks/base/media/updatable-media/android_common/aligned/updatable-media.jar --boot-dex=out/soong/.intermediates/frameworks/opt/net/voip/voip-common/android_common/aligned/voip-common.jar --public-stub-classpath=out/soong/.intermediates/development/build/android_stubs_current/android_common/dex-withres/android_stubs_current.jar:out/soong/.intermediates/frameworks/base/test-base/android.test.base.stubs/android_common/dex/android.test.base.stubs.jar --system-stub-classpath=out/soong/.intermediates/development/build/android_system_stubs_current/android_common/dex-withres/android_system_stubs_current.jar --test-stub-classpath=out/soong/.intermediates/development/build/android_test_stubs_current/android_common/dex-withres/android_test_stubs_current.jar --core-platform-stub-classpath=out/soong/.intermediates/libcore/mmodules/core_platform_api/core.platform.api.stubs/android_common/dex/core.platform.api.stubs.jar --out-api-flags=out/soong/hiddenapi/hiddenapi-stub-flags.txt.tmp && ( if cmp -s out/soong/hiddenapi/hiddenapi-stub-flags.txt.tmp out/soong/hiddenapi/hiddenapi-stub-flags.txt ; then rm out/soong/hiddenapi/hiddenapi-stub-flags.txt.tmp ; else mv out/soong/hiddenapi/hiddenapi-stub-flags.txt.tmp out/soong/hiddenapi/hiddenapi-stub-flags.txt ; fi )
Illegal instruction
00:06:44 ninja failed with: exit status 1

#### failed to build some targets (46 seconds) ####




I have a Debian 10 amd64 based system (not vitualized), with the following characteristics:

uname -a
Linux TOSHIBA-U400 5.3.0-1-amd64 #1 SMP Debian 5.3.7-1 (2019-10-19) x86_64 GNU/Linux


lshw -short
H/W path         Device      Class       Description
====================================================
                             system      Satellite U400
/0                           bus         Satellite U400
/0/0                         memory      109KiB BIOS
/0/4                         processor   Intel(R) Core(TM)2 Duo CPU     T5800  @ 2.00GHz
/0/4/5                       memory      64KiB L1 cache
/0/4/6                       memory      2MiB L2 cache
/0/c                         memory      3GiB System Memory
/0/c/0                       memory      2GiB SODIMM Synchronous 800 MHz (1.2 ns)
/0/c/1                       memory      1GiB SODIMM Synchronous 800 MHz (1.2 ns)
/0/100                       bridge      Mobile 4 Series Chipset Memory Controller Hub
/0/100/2                     display     Mobile 4 Series Chipset Integrated Graphics Controller
/0/100/2.1                   display     Mobile 4 Series Chipset Integrated Graphics Controller
/0/100/1a                    bus         82801I (ICH9 Family) USB UHCI Controller #4
/0/100/1a.1                  bus         82801I (ICH9 Family) USB UHCI Controller #5
/0/100/1a.2                  bus         82801I (ICH9 Family) USB UHCI Controller #6
/0/100/1a.7                  bus         82801I (ICH9 Family) USB2 EHCI Controller #2
/0/100/1b                    multimedia  82801I (ICH9 Family) HD Audio Controller
/0/100/1c                    bridge      82801I (ICH9 Family) PCI Express Port 1
/0/100/1c.4                  bridge      82801I (ICH9 Family) PCI Express Port 5
/0/100/1c.4/0    eth0        network     88E8040T PCI-E Fast Ethernet Controller
/0/100/1c.5                  bridge      82801I (ICH9 Family) PCI Express Port 6
/0/100/1c.5/0    wlan0       network     WiFi Link 5100
/0/100/1d                    bus         82801I (ICH9 Family) USB UHCI Controller #1
/0/100/1d.1                  bus         82801I (ICH9 Family) USB UHCI Controller #2
/0/100/1d.2                  bus         82801I (ICH9 Family) USB UHCI Controller #3
/0/100/1d.7                  bus         82801I (ICH9 Family) USB2 EHCI Controller #1
/0/100/1e                    bridge      82801 Mobile PCI Bridge
/0/100/1e/1                  bus         Firewire (IEEE 1394)
/0/100/1e/1.2                generic     Integrated MMC/SD Controller
/0/100/1e/1.3                storage     Integrated MS/xD Controller
/0/100/1f                    bridge      ICH9M LPC Interface Controller
/0/100/1f.2      scsi0       storage     82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode]
/0/100/1f.2/0    /dev/sda    disk        500GB Samsung SSD 860
/0/100/1f.2/0/1  /dev/sda1   volume      445GiB EXT4 volume
/0/100/1f.2/0/2  /dev/sda2   volume      20GiB Linux swap volume
/0/100/1f.2/1    /dev/cdrom  disk        DVDRAM GSA-U20N
/0/100/1f.3                  bus         82801I (ICH9 Family) SMBus Controller


Thank you.

Agostinho Carvalho

unread,
Jan 5, 2020, 5:58:06 PM1/5/20
to Android Building
Hello.

After some research, it seems that the problem is related with my CPU - Intel Core2 Duo T5800.
My CPU doesn't support SSE4.2 instructions, which are required by "hiddenapi".

To fix this I edited the file "art\build\Android.bp"
Comment the lines:
"-msse4.2"
"-mpopcnt"
Save the file and recompile.

I'm not sure if there will be any usage consequence, but at least the compilation process finishes successfully.

Source:
https://stackoverflow.com/questions/55348861/aosp9-0-build-failed-for-sigill-on-hiddenapi

Regards
Agostinho Carvalho
Reply all
Reply to author
Forward
0 new messages