AOSP libselinux build error for android-q-preview-1

1,383 views
Skip to first unread message

Jacob Abrams

unread,
Mar 14, 2019, 2:01:56 AM3/14/19
to Android Building
Getting the following error when trying to build Q preview aosp generic aosp_arm:

============================================
PLATFORM_VERSION_CODENAME=Q
PLATFORM_VERSION=Q
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-45-generic-x86_64-Ubuntu-16.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PI
OUT_DIR=out
============================================
[100% 134/134] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
error: frameworks/native/libs/gui/Android.bp:20:1: module "libgui" variant "android_arm_armv7-a-neon_core_shared_asan": links a library "libselinux" which is not LL-NDK, VNDK-SP, or explicitly marked as 'double_loadable:true'. (dependency: libgui -> libbufferhubqueue -> libpdx_default_transport -> libselinux)

I went to external/selinux/libselinux/Android.bp and added "double_loadable: true" to that particular module and the build is continuing now. Not sure what effect that has, but likely needs a fix?

Best,
Jacob

shahul hameed

unread,
Mar 14, 2019, 11:29:47 AM3/14/19
to android-...@googlegroups.com
Hi Jacob,

Is Android Q source available? can you share me link to download source.

Regards,
SkShahul.

--
--
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.
For more options, visit https://groups.google.com/d/optout.

Glenn Kasten

unread,
Mar 14, 2019, 11:33:27 AM3/14/19
to Android Building
Please read this part of the post:
  

   GPL projects for Android Q Beta 1

   https://groups.google.com/forum/#!topic/android-building/alh5sZHhEtU


   ... "This preview is not a full platform update and only for reference."


Thank you

To post to this group, send email to android-building@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-building+unsubscribe@googlegroups.com.

Jacob Abrams

unread,
Mar 18, 2019, 3:18:59 PM3/18/19
to Android Building
Google pushed a tag to AOSP named "android-q-preview-1" a few days ago but it is unclear what exactly makes it "Q" since the API level didn't change and it appears to be missing new APIs like Activity#onTopResumedActivityChanged()

Would be nice if someone could explain what exactly the "android-q-preview-1" tag is.

I guess Google won't actually be releasing the source code for Q until after they go through several preview releases? It appears that is what they did last time with Pie.

Jacob


On Thursday, March 14, 2019 at 8:29:47 AM UTC-7, shahul hameed wrote:

Glenn Kasten

unread,
Mar 18, 2019, 3:24:12 PM3/18/19
to Android Building
The "android-q-preview-1" tag refers to the sources published as part of this post:

Please note that it is not a complete release, and only includes GPL projects.

jean-mar...@st.com

unread,
Mar 20, 2019, 11:49:21 AM3/20/19
to Android Building

Hi,
I have the same issue when I try to build for taimen (Pixel-2XL) device.
Any new package to be installed ?

============================================
PLATFORM_VERSION_CODENAME=Q
PLATFORM_VERSION=Q
TARGET_PRODUCT=aosp_taimen
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-141-generic-x86_64-Ubuntu-16.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PI
OUT_DIR=out
============================================
[100% 134/134] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
error: frameworks/native/libs/gui/Android.bp:20:1: module "libgui" variant "android_arm_armv8-a_cortex-a73_core_shared_asan": links a library "libselinux" which is not LL-NDK, VNDK-SP, or explicitly marked as 'double_loadable:true'. (dependency: libgui -> libbufferhubqueue -> libpdx_default_transport -> libselinux)
13:31:50 soong bootstrap failed with: exit status 1
build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

abhishekku...@gmail.com

unread,
Mar 22, 2019, 9:49:40 AM3/22/19
to android-...@googlegroups.com
Just adding double_loadable:true in libselinux bp solves this issue, as in the error report suggestion. And there was no issue in bootup upon this build image.

--

贺帅

unread,
Mar 25, 2019, 11:22:25 AM3/25/19
to Android Building
https://android-review.googlesource.com/c/platform/external/selinux/+/897339

在 2019年3月14日星期四 UTC+8下午2:01:56,Jacob Abrams写道:

Jean-Marc GRIMAUD

unread,
May 20, 2019, 11:30:07 AM5/20/19
to Android Building
Hi,
I now try to build android-q-preview-2.5, and have the following error:
error: cts/hostsidetests/jdwptunnel/Android.bp:15:1: "CtsJdwpTunnelHostTestCases" depends on undefined module "jdi-support"

Any idea how to solve it ?
thanks in advance !

Paulo Costa

unread,
Jun 6, 2019, 5:41:09 PM6/6/19
to Android Building
Same problem here building Beta 4 (And beta 2.5 before)

Did you ever figure it out?

Glenn Kasten

unread,
Jun 6, 2019, 5:50:41 PM6/6/19
to Android Building
Reminder: see March 14 post. It still applies:

"This preview is not a full platform update and only for reference."

Varun Kumar

unread,
Jun 10, 2019, 10:30:01 AM6/10/19
to Android Building
Hi,

I have resolved this issue by deleting this module from CTS directory. cts/hostsidetests/jdwptunnel/ . My module is not dependent on this test module that's why I have deleted this, My build completed like a charm.

I don't know this is really logical solution but above approach resolve my problem.

Varun Kumar

unread,
Jun 10, 2019, 10:30:01 AM6/10/19
to Android Building
Hi It's working with preview-1 but not preview 2 and preview 4.

While building zndroid-q-preview-2.5 getting below error

FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
error: cts/hostsidetests/jdwptunnel/Android.bp:15:1: "CtsJdwpTunnelHostTestCases" depends on undefined module "jdi-support"
21:27:19 soong bootstrap failed with: exit status 1

Roman Stratiienko

unread,
Jul 15, 2019, 3:22:15 PM7/15/19
to Android Building
Hello,

I have done some tricks to make build successful, let me share it with you guys.

# Step 1. Fetch Android

repo init -u https://android.googlesource.com/platform/manifest -b android-q-preview-5
repo sync -cq

# Step 2. Fix Android

rm -rf cts/hostsidetests/jdwptunnel/

pushd frameworks/base
git revert b39d83ebf002 --no-edit
git revert 62af80f9c81d --no-edit
popd

pushd art
git checkout android-o-mr1-iot-release-1.0.12
git revert 1389dd450eb --no-edit
popd

pushd external/f2fs-tools
patch -p1 <<EOF
--- a/Android.bp
+++ b/Android.bp
@@ -17,4 +17,5 @@ cc_defaults {
         "-Wno-sign-compare",
         "-Wno-unused-function",
+        "-Wno-string-plus-int",
     ],
     local_include_dirs: [
EOF
popd

# Step 3. Prepare environment

source build/envsetup.sh
lunch 1

# Step 4. Update API information

make core-platform-api-stubs-update-current-api
make api-stubs-docs-update-current-api

# Step 5. Build

make -j

#### build completed successfully (44:05 (mm:ss)) ####
Reply all
Reply to author
Forward
0 new messages