Error Compilation : make: *** No rule to make target

5,146 views
Skip to first unread message

Yalong Xiong

unread,
Jun 9, 2014, 3:02:29 AM6/9/14
to android-...@googlegroups.com
I've attached my customized networking settings to SE Android 4.2.2 code on Ubuntu 12.04 64bit.The compilation was failed, partial results were as follows:


    Export includes file: external/e2fsprogs/lib/ext2fs/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2fs_intermediates/export_includes
    Export includes file: external/e2fsprogs/lib/blkid/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_blkid_intermediates/export_includes
    Export includes file: external/e2fsprogs/lib/uuid/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_uuid_intermediates/export_includes
    Export includes file: external/e2fsprogs/e2fsck/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_profile_intermediates/export_includes
    Export includes file: external/e2fsprogs/lib/et/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_com_err_intermediates/export_includes
    Export includes file: external/e2fsprogs/lib/e2p/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_e2p_intermediates/export_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libfs_mgr_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libc_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libz_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libe2fsck_static_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2fs_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_blkid_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_uuid_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_profile_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_com_err_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_e2p_intermediates/import_includes
    Export includes file: system/core/init/Android.mk -- out/target/product/g18ref/obj/EXECUTABLES/init_intermediates/export_includes
    Notice file: system/core/init/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//root/init.txt
    Notice file: bionic/libc/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libc.a.txt
    Notice file: external/zlib/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libz.a.txt
    Export includes file: system/core/libmincrypt/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libmincrypt_intermediates/export_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libmincrypt_intermediates/import_includes
    Export includes file: system/core/adb/Android.mk -- out/target/product/g18ref/obj/EXECUTABLES/adbd_intermediates/export_includes
    Notice file: system/core/adb/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//root/sbin/adbd.txt
    Notice file: system/core/libmincrypt/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libmincrypt.a.txt
    Notice file: packages/providers/ApplicationsProvider/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/app/ApplicationsProvider.apk.txt
    Export includes file: frameworks/base/core/jni/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/export_includes
    Export includes file: frameworks/base/libs/androidfw/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libandroidfw_intermediates/export_includes
    Export includes file: system/core/libnetutils/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libnetutils_intermediates/export_includes
    Export includes file: frameworks/av/camera/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libcamera_client_intermediates/export_includes
    Export includes file: frameworks/native/opengl/libs/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libETC1_intermediates/export_includes
    Export includes file: hardware/libhardware_legacy/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/export_includes
    Export includes file: external/skia/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libskia_intermediates/export_includes
    Export includes file: external/sonivox/arm-wt-22k/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libsonivox_intermediates/export_includes
    Export includes file: frameworks/av/media/libmedia/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libmedia_intermediates/export_includes
    Export includes file: frameworks/av/media/libmedia_native/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libmedia_native_intermediates/export_includes
    Export includes file: external/wpa_supplicant_8/wpa_supplicant/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libwpa_client_intermediates/export_includes
    Export includes file: external/jpeg/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libjpeg_intermediates/export_includes
    Export includes file: system/core/libusbhost/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libusbhost_intermediates/export_includes
    Export includes file: external/harfbuzz/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libharfbuzz_intermediates/export_includes
    Export includes file: frameworks/base/libs/hwui/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libhwui_intermediates/export_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libandroidfw_intermediates/import_includes
    Export includes file: frameworks/opt/emoji/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libemoji_intermediates/export_includes
    Export includes file: external/libpng/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libpng_intermediates/export_includes
    Export includes file: external/giflib/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libgif_intermediates/export_includes
    Export includes file: external/webp/src/dec/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libwebp-decode_intermediates/export_includes
    Export includes file: external/webp/src/enc/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libwebp-encode_intermediates/export_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libemoji_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libjpeg_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libpng_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libgif_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libwebp-decode_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libwebp-encode_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libnetutils_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libcamera_client_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libETC1_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libwpa_client_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libsonivox_intermediates/import_includes
    Export includes file: frameworks/av/media/libstagefright/foundation/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libstagefright_foundation_intermediates/export_includes
    Export includes file: system/media/audio_utils/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libaudioutils_intermediates/export_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libstagefright_foundation_intermediates/import_includes
    Export includes file: external/speex/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libspeexresampler_intermediates/export_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libspeexresampler_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libusbhost_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libharfbuzz_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libhwui_intermediates/import_includes
    Export includes file: packages/apps/Bluetooth/jni/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libbluetooth_jni_intermediates/export_includes
    Notice file: frameworks/base/core/jni/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libandroid_runtime.so.txt
    Notice file: frameworks/base/libs/androidfw/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libandroidfw.so.txt
    Notice file: external/skia/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libskia.so.txt
    Notice file: external/freetype/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libft2.a.txt
    Notice file: external/libpng/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libpng.a.txt
    Notice file: external/giflib/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libgif.a.txt
    Notice file: external/jpeg/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libjpeg.so.txt
    Notice file: system/core/libnetutils/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libnetutils.so.txt
    Notice file: frameworks/native/libs/ui/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libui.so.txt
    Notice file: hardware/libhardware/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libhardware.so.txt
    Notice file: external/liblzf/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/liblzf.a.txt
    Notice file: frameworks/av/camera/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libcamera_client.so.txt
    Notice file: hardware/libhardware_legacy/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libhardware_legacy.so.txt
    Notice file: external/sonivox/arm-wt-22k/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libsonivox.so.txt
    Notice file: frameworks/av/media/libstagefright/foundation/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libstagefright_foundation.so.txt
    Notice file: frameworks/av/media/libmedia/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libmedia.so.txt
    Notice file: external/speex/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libspeexresampler.so.txt
    Notice file: external/harfbuzz/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libharfbuzz.so.txt
    Notice file: frameworks/base/libs/hwui/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libhwui.so.txt
    Export includes file: external/bluetooth/bluedroid/hci/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libbt-hci_intermediates/export_includes
    Export includes file: hardware/libhardware_legacy/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libpower_intermediates/export_includes
    Export includes file: external/bluetooth/bluedroid/utils/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libbt-utils_intermediates/export_includes
    Export includes file: external/bluetooth/bluedroid/gki/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libbt-brcm_gki_intermediates/export_includes
    Export includes file: external/bluetooth/bluedroid/bta/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libbt-brcm_bta_intermediates/export_includes
    Export includes file: external/bluetooth/bluedroid/stack/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libbt-brcm_stack_intermediates/export_includes
    Export includes file: external/tinyxml2/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libtinyxml2_intermediates/export_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libpower_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libbt-hci_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libbt-utils_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libbt-brcm_gki_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libbt-brcm_bta_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libbt-brcm_stack_intermediates/import_includes
    Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libtinyxml2_intermediates/import_includes
    Export includes file: external/bluetooth/bluedroid/main/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/export_includes
    Notice file: hardware/libhardware_legacy/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libpower.so.txt
    Notice file: packages/apps/Browser/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/app/Browser.apk.txt
    logtags: out/target/common/obj/APPS/Browser_intermediates/src/src/com/android/browser/EventLogTags.java <= packages/apps/Browser/src/com/android/browser/EventLogTags.logtags
    make: *** No rule to make target 'out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/javalib.jar', needed by 'out/target/common/obj/APPS/CTNetworkSettings_intermediates/classes-full-debug.jar'. Stop.
    make: *** Waiting for unfinished jobs....
    Notice file: packages/apps/SoundRecorder/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/app/SoundRecorder.apk.txt

I suspect my android.mk must be wrong strongly. The file's content is as follows:


    LOCAL_PATH:= $(call my-dir)
    include $(CLEAR_VARS)
    
    LOCAL_JAVA_LIBRARIES := bouncycastle conscrypt telephony-common
    LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4 android-support-v13 jsr305
    
    LOCAL_MODULE_TAGS := optional
    
    LOCAL_SRC_FILES := $(call all-java-files-under, src)
    
    LOCAL_PACKAGE_NAME := CTNetworkSettings
    LOCAL_CERTIFICATE := platform
    
    LOCAL_PROGUARD_FLAG_FILES := proguard.flags
    
    include $(BUILD_PACKAGE)
    
    # Use the folloing include to make our test apk.
    include $(call all-makefiles-under,$(LOCAL_PATH))

shridutt kothari

unread,
Jun 10, 2014, 6:47:27 AM6/10/14
to android-...@googlegroups.com
Hi Yalong,

I guess your local java library conscrypt  is missing.

Thanks,
Shridutt kothari
Impetus Infotech India Ltd.

shridutt kothari

unread,
Jun 10, 2014, 6:47:30 AM6/10/14
to android-...@googlegroups.com

Atul Kumar

unread,
Jun 24, 2014, 10:18:08 AM6/24/14
to android-...@googlegroups.com
Hi 

     I am also facing same issue. Can you suggest what needs to be done here..
_______________________________________________________________________________
host Java: android-mock-generatorlib (out/host/common/obj/JAVA_LIBRARIES/android-mock-generatorlib_intermediates/classes)
external/webkit/Tools/android/webkitmerge/webkitmerge.cpp:450:66: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
external/webkit/Tools/android/webkitmerge/webkitmerge.cpp: In function 'void UpdateMake(char const*)':
external/webkit/Tools/android/webkitmerge/webkitmerge.cpp:998:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/webkit/Tools/android/webkitmerge/webkitmerge.cpp: In function 'void CompareDirs(char const*, bool)':
external/webkit/Tools/android/webkitmerge/webkitmerge.cpp:1107:52: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
external/webkit/Tools/android/webkitmerge/webkitmerge.cpp:1108:52: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
external/webkit/Tools/android/webkitmerge/webkitmerge.cpp:1109:61: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
make: *** No rule to make target `out/host/common/obj/JAVA_LIBRARIES/mockwebserver-host_intermediates/javalib.jar', needed by `out/host/common/obj/JAVA_LIBRARIES/core-tests-hostdex_intermediates/classes-full-debug.jar'.  Stop.
make: *** Waiting for unfinished jobs....
Note: external/android-mock/src/com/google/android/testing/mocking/AndroidMock.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

______________________________________________________

   I have tried linking with other stack but that did not work..

Thanks & Regards
Atul Kumar

shridutt kothari

unread,
Jun 24, 2014, 2:02:14 PM6/24/14
to android-...@googlegroups.com
mockwebserver java library is missing i guess.

--
Thanks & Regards,
Shridutt Kothari.

Atul Kumar

unread,
Jun 25, 2014, 4:48:43 AM6/25/14
to android-...@googlegroups.com
Hi Shri,

      any idea, how to solve this..

Thanks & Regards
Atul Kumar

Naveen Shreevatsa

unread,
Sep 19, 2014, 1:38:03 PM9/19/14
to android-...@googlegroups.com
Hi All,

I am having same issue

awk: cmd. line:1: fatal: cannot open file `sdk/files/tools_source.properties' for reading (No such file or directory)

 build/core/Makefile:32: warning: overriding commands for target `out/target/product/tcXX/system/etc/permissions/com.motorolasolutions.buttonremap.xml'

build/core/base_rules.mk:529: warning: ignoring old commands for target `out/target/product/tcXX/system/etc/permissions/com.motorolasolutions.buttonremap.xml'

No private recovery resources for TARGET_DEVICE tcXX

make -C kernel O=../out/target/product/tcXX/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=arm-eabi- tcXX_defconfig

make[1]: Entering directory `../builds/tcXX/LINUX/android/kernel'

make: *** No rule to make target `out/target/product/tcXX/obj/SHARED_LIBRARIES/libwpa_client_intermediates/export_includes', needed by `out/target/product/tcXX/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/import_includes'.  Stop.

make: *** Waiting for unfinished jobs....

can you please let me know what could be issue here.

Thanks,

Naveen

Wasd Henry

unread,
Nov 16, 2014, 6:54:37 AM11/16/14
to android-...@googlegroups.com
make: *** No rule to make target `/home/henry/android/system/out/target/product/aries/obj/SHARED_LIBRARIES/libqminvapi_intermediates/export_includes', needed by `/home/henry/android/system/out/target/product/aries/obj/EXECUTABLES/bdAddrLoader_intermediates/import_includes'.  Stop.

Please help!!

Yalong Xiong於 2014年6月9日星期一UTC+8下午3時02分29秒寫道:
Reply all
Reply to author
Forward
0 new messages