Android P Preview 2 AOSP build issue (Pixel/sailfish)

2,134 views
Skip to first unread message

Jean-Marc GRIMAUD

unread,
May 15, 2018, 11:24:05 AM5/15/18
to Android Building
Hello,
I try to build from source AOSP image for Pixel phone (sailfish) but the build fails.

Here what I did:
1 - download AOSP branch android-p-preview-2
2 - extract binaries from https://developers.google.com/android/blobs-preview (google_devices-sailfish-4765711-7e716b19.tgz and qcom-sailfish-4765711-a8c5bf86.tgz)
3 - source build/envsetup.sh
4 - lunch aosp_sailifish-userdebug
5 - make -j24

And the build issue:
ninja: error: 'out/host/common/obj/JAVA_LIBRARIES/javapoet-prebuilt-jar_intermediates/classes.jar', needed by 'out/target/common/obj/APPS/Dialer_intermediates/classes-full-debug.jar', missing and no known rule to make it
16:31:57 ninja failed with: exit status 1

Does anybody knows how to solve this issue ?

thanks


abhishekku...@gmail.com

unread,
May 15, 2018, 3:06:08 PM5/15/18
to android-...@googlegroups.com
Make sure there is no error upon repo sync. This is kind of common error due to some fetch error during sync. And also, delete entire out folder and try rebuilding again.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscribe@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-building+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

PeterK

unread,
May 16, 2018, 11:16:42 AM5/16/18
to Android Building
android-p-preview-2 is not buildable. It only contains GPL components and is for reference only. It will be buildable once the final release to AOSP is done in Q3: https://developer.android.com/preview/overview

Pete.

Jean-Marc GRIMAUD

unread,
May 16, 2018, 11:16:42 AM5/16/18
to Android Building
Hello,
thank you for your answer.
I restarted everything from scratch, and checked that I do not have any error during the repo sync.

But I still have the same issue.

Jean-Marc GRIMAUD

unread,
May 17, 2018, 10:31:50 AM5/17/18
to Android Building
Ok thank you, that's very clear.

Satish Patel

unread,
May 24, 2018, 11:20:47 AM5/24/18
to Android Building
Hi Jean,

need to apply 3 fix for build, reference at#

prebuilts/tools:
git fetch https://android.googlesource.com/platform/prebuilts/tools refs/changes/02/682002/1 && git cherry-pick FETCH_HEAD

external/e2fsprogs/
git fetch https://android.googlesource.com/platform/external/e2fsprogs refs/changes/05/683305/1 && git cherry-pick FETCH_HEAD

external/f2fs-tools
git fetch https://android.googlesource.com/platform/external/f2fs-tools refs/changes/06/683306/1 && git cherry-pick FETCH_HEAD

--
satish

Antonio Jesús Rivas Berral

unread,
May 25, 2018, 10:49:46 AM5/25/18
to Android Building
Thanks for the answer. +1

Jean-Marc GRIMAUD

unread,
Jun 18, 2018, 11:16:39 AM6/18/18
to Android Building
Hi Satish,
Many thanks for your support.
I am now able to build android-p-preview 3 for marlin, and it works fine.

Jean-Marc


Mordy Shahar

unread,
Jul 2, 2018, 10:25:26 AM7/2/18
to Android Building
Hi,

where did you got the vendor binaries from ?

I need to build it for pixel2 and add my changes and wonder where to get the vendor direcotry from.

Thanks
 mordy.

Jean-Marc GRIMAUD

unread,
Jul 6, 2018, 11:30:41 AM7/6/18
to Android Building
Hi Mordy, the binaries for the previews are here:

Jean-Marc GRIMAUD

unread,
Jul 6, 2018, 11:30:41 AM7/6/18
to Android Building
Hi guys,
I'm now working on android-p-preview-4

 New errors I never seen before...

============================================
PLATFORM_VERSION_CODENAME=Q
PLATFORM_VERSION=Q
TARGET_PRODUCT=aosp_marlin
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-104-generic-x86_64-Ubuntu-16.04.4-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OC-MR1
OUT_DIR=out
============================================
[1/1] out/soong/.minibootstrap/minibp out/soong/.bootstrap/build.ninja
[58/59] glob prebuilts/ndk/stl.bp
[83/83] 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 -o out/soong/build.ninja Android.bp
error: system/core/fs_mgr/Android.bp:33:1: dependency "libfec_rs" of "libfs_mgr" missing variant:
  arch:android_arm64_armv8-a_kryo, image:recovery, link:static
available variants:
  arch:android_arm64_armv8-a_kryo, image:core, link:static
  arch:android_arm_armv8-a_kryo, image:core, link:static
  arch:linux_glibc_x86, link:static
  arch:linux_glibc_x86_64, link:static
  arch:windows_x86, link:static
  arch:windows_x86_64, link:static
error: system/core/fs_mgr/Android.bp:33:1: dependency "libselinux" of "libfs_mgr" missing variant:
  arch:android_arm64_armv8-a_kryo, image:recovery, link:static
available variants:
  arch:android_arm64_armv8-a_kryo, image:core, link:shared
  arch:android_arm64_armv8-a_kryo, image:core, link:static
  arch:android_arm_armv8-a_kryo, image:core, link:shared
  arch:android_arm_armv8-a_kryo, image:core, link:static
  arch:linux_glibc_x86, link:shared
  arch:linux_glibc_x86, link:static
  arch:linux_glibc_x86_64, link:shared
  arch:linux_glibc_x86_64, link:static
  arch:windows_x86, link:shared
  arch:windows_x86, link:static
  arch:windows_x86_64, link:shared
  arch:windows_x86_64, link:static
ninja: build stopped: subcommand failed.
17:03:08 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

Satish Patel

unread,
Jul 6, 2018, 11:31:37 AM7/6/18
to android-...@googlegroups.com
On Mon, Jul 2, 2018 at 5:07 PM, Mordy Shahar <mor...@gmail.com> wrote:
Hi,

where did you got the vendor binaries from ?

I need to build it for pixel2 and add my changes and wonder where to get the vendor direcotry from.

Thanks
 mordy.

On Monday, June 18, 2018 at 6:16:39 PM UTC+3, Jean-Marc GRIMAUD wrote:
Hi Satish,
Many thanks for your support.
I am now able to build android-p-preview 3 for marlin, and it works fine.

Jean-Marc


--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscribe@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 a topic in the Google Groups "Android Building" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-building/JfgzeR_S9N4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-building+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Regards,
satish patel

Pol

unread,
Jul 15, 2018, 2:51:58 PM7/15/18
to Android Building
Hello Jean-Marc,
Did you succeed in building DP4?
I have the same error here.

vit...@1-family.net

unread,
Jul 16, 2018, 10:37:11 AM7/16/18
to Android Building
Hi!

I'm getting the same error -
-----------------------------------------------------------------------
system/core/fs_mgr/Android.bp:33:1: dependency "libfec_rs" of "libfs_mgr" missing variant:
  arch:android_arm64_armv8-a_cortex-a73, image:recovery, link:static
available variants:
  arch:android_arm64_armv8-a_cortex-a73, image:core, link:static
-----------------------------------------------------------------------
When building for Pixel 2
Has anyone succeeded building DP4 for pixel 2?

yue kindk

unread,
Jul 16, 2018, 10:37:11 AM7/16/18
to Android Building
I have met the same issue when building p-preview-4.

在 2018年7月16日星期一 UTC+8上午2:51:58,Pol写道:

Jean-Marc GRIMAUD

unread,
Jul 19, 2018, 6:22:52 PM7/19/18
to Android Building
Hi Pol,

no I did not progress unfortunately.
I am still in DP3. 

Huang Ye

unread,
Jul 26, 2018, 8:17:29 AM7/26/18
to Android Building
Still hit the same problem while building DP4 and DP5 ...

在 2018年7月20日星期五 UTC+8上午6:22:52,Jean-Marc GRIMAUD写道:

arunak...@gmail.com

unread,
Jan 22, 2019, 12:06:13 PM1/22/19
to Android Building
Hi Sathish
In spite of taking these 3 updates, am still getting the same build error

ninja: error: 'out/host/common/obj/JAVA_LIBRARIES/javapoet-prebuilt-jar_intermediates/classes.jar', needed by 'out/target/common/obj/APPS/Dialer_intermediates/classes-full-debug.jar', missing and no known rule to make it
16:31:57 ninja failed with: exit status 1

Can you please let me know if this has fixed in the latest P version?

Regards
Aruna
Reply all
Reply to author
Forward
0 new messages