Android 8.0 source code build error “xxx” depends on undefined module “libxxx”

2,426 views
Skip to first unread message

jieta...@gmail.com

unread,
Jul 20, 2017, 4:53:52 AM7/20/17
to Android Building

I have downloaded the Android O preview version with the following steps:

  1. repo init -u https://android.googlesource.com/platform/manifest -b refs/heads/android-o-preview-2

  2. repo sync

And then,start to build the source code:

source build/envsetup.sh

  1. lunch 1
  2. make -j8

When the building is running ,after some seconds, this build error happened:


$make
============================================
PLATFORM_VERSION_CODENAME=O
PLATFORM_VERSION=O
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-77-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NYC
OUT_DIR=out
============================================
[2/2] bootstrap out/soong/.minibootstrap/build.ninja.in
[1/2] out/soong/.bootstrap/bin/minibp out/soong/.minibootstrap/build.ninja.in
ninja: no work to do.
[1/2] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build  -t -b out/soong -d out/soong/build.ninja.d -o out/soong/build.ninja Android.bp
error: frameworks/rs/cpu_ref/Android.bp:1:1: "libRSCpuRef" depends on undefined module "libblas"
error: frameworks/base/media/jni/Android.bp:1:1: "libmedia_jni" depends on undefined module "libexif"
[2/2] soong_build docs out/soong/.bootstrap/docs/soong_build.html
FAILED: out/soong/.bootstrap/docs/soong_build.html
out/soong/.bootstrap/bin/soong_build  -t -b out/soong --docs out/soong/.bootstrap/docs/soong_build.html ./Android.bp
error: frameworks/base/media/jni/Android.bp:1:1: "libmedia_jni" depends on undefined module "libexif"
error: frameworks/rs/cpu_ref/Android.bp:1:1: "libRSCpuRef" depends on undefined module "libblas"
ninja: build stopped: subcommand failed.
14:57:38 soong failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

#### make failed to build some targets (19 seconds) ####


I don't know why, I tried to fix the dependency for system libs, but it does not work yet.

Glenn Kasten

unread,
Jul 20, 2017, 4:58:18 AM7/20/17
to Android Building
android-o-preview-2 is not a full release and is not buildable. 
From the announcement "This preview is not a full platform update and only for reference."
Reply all
Reply to author
Forward
0 new messages