compilation error while building kitkat...No rule to make target `out/host/linux-x86/bin/dx

Bug #1291211 reported by rajkumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro
New
Undecided
Unassigned

Bug Description

HI ,
 I am building android kitkat ...build script was taken from linaro...
after complete repo sync when it starts conliling after few min...it throws an error

Notice file: frameworks/base/tools/aidl/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//bin/aidl.txt
cat out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.hpp >> out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.h
make: *** No rule to make target `out/host/linux-x86/bin/dx', needed by `out/target/common/obj/APPS/BasicDreams_intermediates/classes-with-local.dex'. Stop.
make: *** Waiting for unfinished jobs....
echo '#endif' >> out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.h
rm -f out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.hpp
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

what could be the possible solution?

Revision history for this message
Christopher Latham (sudosurootdev) wrote :

What variant of KitKat are you building? Plain AOSP or CM-11.0 or what? Also, for what device?

The problem is most likely that you need the following line in your platform/external/dexmaker/Android.mk file.

LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java src/dx/java)

If not that, than you probably do not have the platform_external_dexmaker project in your manifest and will need to add it and then repo sync again, or git clone it into platform/external/dexmaker.

If building AOSP here is a list of the projects: https://android.googlesource.com/?format=HTML

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.