Re: [android-building] missing and no known rule to make it

657 views
Skip to first unread message
Message has been deleted

Dan Willemsen

unread,
Feb 14, 2019, 3:49:50 PM2/14/19
to Android Building
This forum is for discussing building AOSP, not custom ROMs, so I can't help you with what missing. But decoding the error message:

ninja: error: '/home/vamsi/ctos/out/target/common/obj/JAVA_LIBRARIES/sap-api-java-static_intermediates/classes-header.jar', needed by '/home/vamsi/ctos/out/target/common/obj/APPS/Bluetooth_intermediates/classes-full-debug.jar', missing and no known rule to make it

is the same error as:

packages/apps/Bluetooth/Android.mk: error: Bluetooth (APPS android-arm64) missing sap-api-java-static (JAVA_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.

ALLOW_MISSING_DEPENDENCIES does not completely ignore missing dependencies, it just allows you to continue building things that do have all of their dependencies satisfied. Your build is attempting to build the Bluetooth app, so you need to fix that missing dependency.

- Dan


On Thu, Feb 14, 2019 at 7:19 AM Vamsee Krishnaa <vamsikris...@gmail.com> wrote:


vamsi@vamsi:~/ctos$ mka bacon -j8
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
CUSTOM_VERSION=ctosp_hydrogen-9.0-20190209-0450-UNOFFICIAL
TARGET_PRODUCT=ctosp_hydrogen
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-45-generic-x86_64-Ubuntu-18.04.1-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ1A.190105.004
OUT_DIR=/home/vamsi/ctos/out
PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8952 hardware/qcom/display-caf/msm8952 hardware/qcom/media-caf/msm8952
============================================
ninja: no work to do.
ninja: no work to do.
Environment variable BUILD_NUMBER was modified (ed118bb6ca => 745dddd17f), regenerating...
/home/vamsi/ctos/out/build-ctosp_hydrogen.ninja is missing, regenerating...
[535/951] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:88: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
[951/951] including vendor/xiaomi/msm8956-common/Android.mk ...
device/xiaomi/msm8956-common/camera/QCamera2/Android.mk: error: camera.msm8952 (SHARED_LIBRARIES android-arm) missing libqdMetaData (SHARED_LIBRARIES android-arm) 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
device/xiaomi/msm8956-common/camera/QCamera2/Android.mk: error: camera.msm8952 (SHARED_LIBRARIES android-arm) missing libqservice (SHARED_LIBRARIES android-arm) 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
external/wpa_supplicant_8/hostapd/Android.mk: error: hostapd (EXECUTABLES android-arm64) missing lib_driver_cmd_qcwcn (STATIC_LIBRARIES android-arm64) 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
external/wpa_supplicant_8/hostapd/Android.mk: error: hostapd_nohidl (EXECUTABLES android-arm64) missing lib_driver_cmd_qcwcn (STATIC_LIBRARIES android-arm64) 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
external/wpa_supplicant_8/wpa_supplicant/Android.mk: error: wpa_supplicant (EXECUTABLES android-arm64) missing lib_driver_cmd_qcwcn (STATIC_LIBRARIES android-arm64) 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
frameworks/opt/net/wifi/libwifi_hal/Android.mk: error: libwifi-hal (SHARED_LIBRARIES android-arm64) missing libwifi-hal-qcom (STATIC_LIBRARIES android-arm64) 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
frameworks/opt/net/wifi/libwifi_hal/Android.mk: error: libwifi-hal (SHARED_LIBRARIES android-arm64) missing libcld80211 (SHARED_LIBRARIES android-arm64) 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
frameworks/opt/net/wifi/libwifi_hal/Android.mk: error: libwifi-hal (SHARED_LIBRARIES android-arm) missing libwifi-hal-qcom (STATIC_LIBRARIES android-arm) 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
frameworks/opt/net/wifi/libwifi_hal/Android.mk: error: libwifi-hal (SHARED_LIBRARIES android-arm) missing libcld80211 (SHARED_LIBRARIES android-arm) 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
packages/apps/Bluetooth/Android.mk: error: Bluetooth (APPS android-arm64) missing sap-api-java-static (JAVA_LIBRARIES android-arm64) 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:844: error: exiting from previous errors.
10:22:16 ckati failed with: exit status 1

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


i having some missing dependencies which i have allowed true for test the my new rom 
and after allowing missing dependencies true but missing sap-api-java-static_intermediates/classes-header.jar
how can i fix it


vamsi@vamsi:~/ctos$ mka bacon -j8 ALLOW_MISSING_DEPENDENCIES=true
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
CUSTOM_VERSION=ctosp_hydrogen-9.0-20190209-0518-UNOFFICIAL
TARGET_PRODUCT=ctosp_hydrogen
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-45-generic-x86_64-Ubuntu-18.04.1-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ1A.190105.004
OUT_DIR=/home/vamsi/ctos/out
PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8952 hardware/qcom/display-caf/msm8952 hardware/qcom/media-caf/msm8952
============================================
[1/1] /home/vamsi/ctos/out/soong/.minibootstrap/minibp /home/vamsi/ctos/out/soong/.bootstrap/build.ninja
[1/1] /home/vamsi/ctos/out/soong/.bootstrap/bin/soong_build /home/vamsi/ctos/out/soong/build.ninja
packages/apps/Bluetooth/CleanSpec.mk was modified, regenerating...
packages/apps/Bluetooth/tests/Android.mk was modified, regenerating...
[535/951] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:88: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
[951/951] including vendor/xiaomi/msm8956-common/Android.mk ...
build/make/core/Makefile:28: warning: overriding commands for target `/home/vamsi/ctos/out/target/product/hydrogen/system/framework/qcrilhook.jar'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/vamsi/ctos/out/target/product/hydrogen/system/framework/qcrilhook.jar'
[ 50% 1/2] glob frameworks/base/services/core/src
ninja: error: '/home/vamsi/ctos/out/target/common/obj/JAVA_LIBRARIES/sap-api-java-static_intermediates/classes-header.jar', needed by '/home/vamsi/ctos/out/target/common/obj/APPS/Bluetooth_intermediates/classes-full-debug.jar', missing and no known rule to make it
10:50:29 ninja failed with: exit status 1

#### failed to build some targets (02:18 (mm:ss)) ####

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

krishna venkatesh

unread,
Feb 19, 2019, 12:33:42 PM2/19/19
to Android Building
Looks to be your newly added code not conform to sepolicies never allow rues.
So please apply proper sepolicies rules.
If fissible, please share your code.

Mutyala N V Durga Ashok

unread,
Mar 3, 2023, 2:08:28 PM3/3/23
to Android Building
Hi Dan / Krishna,

ninja: error: '/home/vamsi/ctos/out/target/common/obj/JAVA_LIBRARIES/sap-api-java-static_intermediates/classes-header.jar', needed by '/home/vamsi/ctos/out/target/common/obj/APPS/Bluetooth_intermediates/classes-full-debug.jar', missing and no known rule to make it

We are trying to search this log under build directory in AOSP and couldn't able to find it. Tried with "missing" , "no known rule ", "needed by" but nothing works

Could you help me to point to the code where you are printing this log  ?

Dan Willemsen

unread,
Mar 3, 2023, 2:25:21 PM3/3/23
to android-...@googlegroups.com
The code that prints that out is in ninja, but it really won't help to debug it from there -- it has printed everything it knows.

ninja: error: '/home/vamsi/ctos/out/target/common/obj/JAVA_LIBRARIES/sap-api-java-static_intermediates/classes-header.jar', needed by '/home/vamsi/ctos/out/target/common/obj/APPS/Bluetooth_intermediates/classes-full-debug.jar', missing and no known rule to make it

This error message would be far better using Android.bp (the Bluetooth app here was migrated in Android 11). It's very hard to get the makefiles to produce a better error, so you have to work backwards from the files being referenced. In this case the Bluetooth(*_intermediates) app(APPS) is depending on something from the sap-api-java-static library, but that doesn't exist. Usually that means that the sap-api-java-static library is missing or not configured correctly.

- 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.
Reply all
Reply to author
Forward
0 new messages