Encountering error while building

1,565 views
Skip to first unread message

Vincent Victor

unread,
Oct 23, 2018, 1:10:09 PM10/23/18
to Android Building
I am a novice and trying to build master branch for Google Pixel since few days. Every time I am encountering error, such as 

[ 58% 572/975] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[100% 975/975] writing build rules ...
FAILED: 
build/make/core/Makefile:28: error: overriding commands for target `out/target/product/sailfish/system/lib/libclcore_neon.bc', previously defined at build/make/core/base_rules.mk:414
20:51:27 ckati failed with: exit status 1

Following are the steps I have used in latest build attempt:
  1. Downloaded the source code using following command: repo init -u https://android.googlesource.com/platform/manifest
  2. Downloaded following binaries: Pixel binaries for Android (PPR2.181005.003) from https://developers.google.com/android/drivers
  3. Extracted the binaries in working directory
  4. source build/envsetup.sh
  5. lunch aosp_sailfish-user
  6. time make -j24
Since I have new working directory and downloaded the source code in it, therefore I did not run make clobber command. I have also used make clobber during previous build attempts. I have also tried with make -j4, however, same error remains. 

 Android documentation says "You can download official binaries for the supported devices running tagged AOSP release branches from Google's drivers. These binaries add access to additional hardware capabilities with non-open source code. To build the AOSP master branch, use the Binaries Preview instead. When building the master branch for a device, use the binaries for the most recent numbered release or with the most recent date.". Therefore, I have also tried with preview binaries also. 

Am I doing anything wrong here? I am not sure about my choice of binaries. Pleas help!

Vincent Victor

unread,
Oct 24, 2018, 10:49:50 AM10/24/18
to Android Building
And now when I am building android-9.0.0_r10 with Pixel binaries for Android (PPR2.181005.003) , I am getting this error:

[1/1] out/soong/.minibootstrap/minibp out/soong/.bootstrap/build.ninja
[55/56] glob prebuilts/ndk/stl.bp
[77/77] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
out/build-aosp_sailfish-cleanspec.ninja is missing, regenerating...
out/build-aosp_sailfish.ninja is missing, regenerating...
[382/935] including hardware/qcom/sdm845/Android.mk ...
hardware/qcom/power/Android.mk:3: error: hardware/qcom/sdm845/Android.mk: No such file or directory
19:58:12 ckati failed with: exit status 1

#### failed to build some targets (01:01 (mm:ss)) ####

Brian Moore

unread,
Oct 29, 2018, 10:33:39 AM10/29/18
to Android Building
I've never built from the master branch. I always build with the latest branch for my device.

Since you're building for Pixel (sailfish), try repo init with the 9.0.0_r10 branch, which is the most recent according to this link: https://source.android.com/setup/start/build-numbers
This branch will also match with the version on binaries that you already downloaded.

Note: Even if you successfully build, there seems to be a bug with the current binaries supplied by Google for AOSP 9.0 for Sailfish. Some files are missing and the SIM is not found. There is another thread in this group right now that addresses this issue and a workaround.

Dan Willemsen

unread,
Oct 29, 2018, 1:38:53 PM10/29/18
to android-...@googlegroups.com
For the master branch on AOSP, you need the preview blobs, not the ones from PPR2: https://source.android.com/setup/build/requirements#binaries

For your 9.0.0_r10 build, why do you have a hardware/qcom/sdm845.mk file? Is it left over from a previous checkout?

- Dan

--
--
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.

Vincent Victor

unread,
Oct 30, 2018, 10:48:44 AM10/30/18
to Android Building
Hi Dan,

Thank you for your response.

Yes, looks like so. I downloaded 9.0.0_r10 branch in new working directory and able to build successfully. But now i getting boot loops after flashing using following command:

fastboot flashall -w in ~/working_directory/out/target/product/sailfish
Am I doing anything wrong here? Please suggest!
-Vincent

Vincent Victor

unread,
Oct 30, 2018, 10:48:44 AM10/30/18
to Android Building
Hi Brian,

Please suggest latest branch which do not have any problem for sailfish. I am getting bootloops with 9.0.0_r10 branch...

Thanks!

American Justice Corp

unread,
Dec 29, 2018, 12:28:07 PM12/29/18
to Android Building

Try deleting the sdm845 directory. Under it are two symbolic links to files under a non-existent data/ directory, therein.

After I did that, an re-ran the build, the build continued from where it left off, and made it to 994/994, whereas before it choked
at 493/995. (note that the total is now 994, not 995, since we deleted one folder). 

This was during a "make adb" command, and ultimately it got made successfully.

The branch I had checked out was  android-8.1.0_r52 for bullhead.
Reply all
Reply to author
Forward
0 new messages