[Solved] CM12.1 Compilation Error (package doesn't exist) - Android Q&A, Help & Troubleshooting

Hey all,
I am trying to build CM12.1 from source for Samsung Galaxy Grand Duos i9082..
I've downloaded the source, set up device tree, kernel and the required compatibility patches (required for this device)
Steps I perform:
source build/envsetup.sh
add_lunch_combo cm_i9082-userdebug
lunch (and the select the device)
mka
It starts the building process but after some time I get the following error which I'm unable to resolve:
frameworks/testing/runner/src/main/java/android/support/test/internal/runner/intent/IntentMonitorImpl.java:21: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:21: error: cannot find symbol
import android.app.Fragment;
^
symbol: class Fragment
location: package android.app
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:32: error: package android.support.test.internal.runner.hidden does not exist
import android.support.test.internal.runner.hidden.ExposedInstrumentationApi;
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:83: error: cannot find symbol
public class MonitoringInstrumentation extends ExposedInstrumentationApi {
^
symbol: class ExposedInstrumentationApi
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:344: error: cannot find symbol
public ActivityResult execStartActivity(
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:361: error: cannot find symbol
public ActivityResult execStartActivity(
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:398: error: cannot find symbol
Context who, IBinder contextThread, IBinder token, Fragment target,
^
symbol: class Fragment
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:397: error: cannot find symbol
public ActivityResult execStartActivity(
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:423: error: cannot find symbol
private ActivityResult stubResultFor(Intent intent) {
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:410: error: cannot find symbol
private static class StubResultCallable implements Callable<ActivityResult> {
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:418: error: cannot find symbol
public ActivityResult call() {
^
symbol: class ActivityResult
location: class StubResultCallable
frameworks/testing/runner/src/main/java/android/support/test/internal/runner/intent/IntentMonitorImpl.java:54: error: cannot find symbol
public void addIntentCallback(@NonNull IntentCallback callback) {
^
symbol: class NonNull
location: class IntentMonitorImpl
frameworks/testing/runner/src/main/java/android/support/test/internal/runner/intent/IntentMonitorImpl.java:77: error: cannot find symbol
public void removeIntentCallback(@NonNull IntentCallback callback) {
^
symbol: class NonNull
location: class IntentMonitorImpl
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:125: error: method registerInstance in class InstrumentationRegistry cannot be applied to given types;
InstrumentationRegistry.registerInstance(this, arguments);
^
required: Instrumentation,Bundle
found: MonitoringInstrumentation,Bundle
reason: actual argument MonitoringInstrumentation cannot be converted to Instrumentation by method invocation conversion
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:137: error: cannot find symbol
super.onCreate(arguments);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:120: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:148: error: cannot find symbol
File dexCache = getTargetContext().getDir("dxmaker_cache", Context.MODE_PRIVATE);
^
symbol: method getTargetContext()
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:156: error: cannot find symbol
ClassLoader newClassLoader = this.getClass().getClassLoader();
^
symbol: method getClass()
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:186: error: cannot find symbol
super.onStart();
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:204: error: cannot find symbol
waitForIdleSync();
^
symbol: method waitForIdleSync()
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:184: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:232: error: cannot find symbol
super.finish(resultCode, results);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:216: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:272: error: cannot find symbol
super.onDestroy();
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:268: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:278: error: cannot find symbol
super.callApplicationOnCreate(app);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:275: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:306: error: not an enclosing class: MonitoringInstrumentation
return MonitoringInstrumentation.super.startActivitySync(intent);
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:282: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:349: error: cannot find symbol
ActivityResult ar = stubResultFor(intent);
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:354: error: cannot find symbol
return super.execStartActivity(who, contextThread, token, target, intent, requestCode);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:343: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:366: error: cannot find symbol
ActivityResult ar = stubResultFor(intent);
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:371: error: cannot find symbol
return super.execStartActivity(who, contextThread, token, target, intent, requestCode, options);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:360: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:377: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:402: error: cannot find symbol
ActivityResult ar = stubResultFor(intent);
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:407: error: cannot find symbol
return super.execStartActivity(who, contextThread, token, target, intent, requestCode, options);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:396: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:428: error: cannot find symbol
FutureTask<ActivityResult> task = new FutureTask<ActivityResult>(
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:428: error: cannot find symbol
FutureTask<ActivityResult> task = new FutureTask<ActivityResult>(
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:454: error: cannot find symbol
return super.onException(obj, e);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:447: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:481: error: cannot find symbol
super.callActivityOnDestroy(activity);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:479: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:487: error: cannot find symbol
super.callActivityOnRestart(activity);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:485: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:494: error: cannot find symbol
super.callActivityOnCreate(activity, bundle);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:491: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:506: error: cannot find symbol
super.callActivityOnStart(activity);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:502: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:517: error: cannot find symbol
super.callActivityOnStop(activity);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:514: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:526: error: cannot find symbol
super.callActivityOnResume(activity);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:524: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:532: error: cannot find symbol
super.callActivityOnPause(activity);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:530: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:563: error: cannot find symbol
return super.newActivity(clazz,
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:542: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:189: error: method fromManifest in class Builder cannot be applied to given types;
.fromManifest(this)
^
required: Instrumentation
found: AndroidJUnitRunner
reason: actual argument AndroidJUnitRunner cannot be converted to Instrumentation by method invocation conversion
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:196: error: cannot find symbol
start();
^
symbol: method start()
location: class AndroidJUnitRunner
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:219: error: constructor Builder in class Builder cannot be applied to given types;
TestExecutor.Builder executorBuilder = new TestExecutor.Builder(this);
^
required: Instrumentation
found: AndroidJUnitRunner
reason: actual argument AndroidJUnitRunner cannot be converted to Instrumentation by method invocation conversion
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:258: error: constructor ActivityFinisherRunListener in class ActivityFinisherRunListener cannot be applied to given types;
builder.addRunListener(new ActivityFinisherRunListener(this,
^
required: Instrumentation,MonitoringInstrumentation.ActivityFinisher
found: AndroidJUnitRunner,MonitoringInstrumentation.ActivityFinisher
reason: actual argument AndroidJUnitRunner cannot be converted to Instrumentation by method invocation conversion
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:309: error: method createTestRequestBuilder in class AndroidJUnitRunner cannot be applied to given types;
TestRequestBuilder builder = createTestRequestBuilder(this, bundleArgs);
^
required: Instrumentation,Bundle
found: AndroidJUnitRunner,Bundle
reason: actual argument AndroidJUnitRunner cannot be converted to Instrumentation by method invocation conversion
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:314: error: cannot find symbol
builder.addApkToScan(getContext().getPackageCodePath());
^
symbol: method getContext()
location: class AndroidJUnitRunner
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:319: error: cannot find symbol
if (null != getTargetContext()) {
^
symbol: method getTargetContext()
location: class AndroidJUnitRunner
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:321: error: cannot find symbol
getTargetContext()).buildIfPossible();
^
symbol: method getTargetContext()
location: class AndroidJUnitRunner
Note: frameworks/testing/runner/src/main/java/android/support/test/internal/runner/junit4/AndroidJUnit4ClassRunner.java uses or overrides 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.
67 errors
make: *** [/home/raghav/source/cm/system/out/target/common/obj/JAVA_LIBRARIES/android-support-test-src_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1414: warning: overriding commands for target `clean'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1180: warning: ignoring old commands for target `clean'
GEN /home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
arch/arm/mach-capri/custom_boards/Kconfig:19:warning: defaults for choice values not supported
arch/arm/mach-capri/custom_boards/Kconfig:25:warning: defaults for choice values not supported
arch/arm/mach-capri/custom_boards/Kconfig:31:warning: defaults for choice values not supported
arch/arm/mach-capri/custom_boards/Kconfig:37:warning: defaults for choice values not supported
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1414: warning: overriding commands for target `clean'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1180: warning: ignoring old commands for target `clean'
GEN /home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
Using /home/raghav/source/cm/system/kernel/samsung/i9082 as source for kernel
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/raghav/source/cm/system/kernel/samsung/i9082/scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
IKCFG kernel/config_data.h
CC kernel/configs.o
LD kernel/built-in.o
++++++++++++++++++++++
CONFIG_ISP = n
obj = drivers/char/broadcom/isp
++++++++++++++++++++++
CONFIG_UNICAM = n
obj = drivers/char/broadcom/unicam
++++++++++++++++++++++
CONFIG_V3D = n
obj = drivers/char/broadcom/v3d
++++++++++++++++++++++
CONFIG_VCE = n
obj = drivers/char/broadcom/vce
VCHIQ_PLATFORM_CONFIG = capri-bi
Building for MAP build system
CONFIG_ARCH_KONA = y
echo "(new) Generating drivers/misc/vc04_services/interface/vchiq_arm/vchiq_version.c ..."
(new) Generating drivers/misc/vc04_services/interface/vchiq_arm/vchiq_version.c ...
perl /home/raghav/source/cm/system/kernel/samsung/i9082/drivers/misc/vc04_services/interface/vchiq_arm/vchiq_genversion vchiq /home/raghav/source/cm/system/kernel/samsung/i9082 > drivers/misc/vc04_services/interface/vchiq_arm/vchiq_version.c
Version cad4731a5459c8d522881166c8315b9e3418c687 (tainted)
CC drivers/misc/vc04_services/interface/vchiq_arm/vchiq_version.o
LD drivers/misc/vc04_services/vc-vchiq.o
LD drivers/misc/vc04_services/vc-vchiq-memdrv-kona.o
LD drivers/misc/vc04_services/built-in.o
LD drivers/misc/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
WARNING: modpost: Found 4 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
GZIP arch/arm/boot/compressed/piggy.gzip
SHIPPED arch/arm/boot/compressed/lib1funcs.S
SHIPPED arch/arm/boot/compressed/longlong.h
AS arch/arm/boot/compressed/lib1funcs.o
SHIPPED arch/arm/boot/compressed/divdi3.c
CC arch/arm/boot/compressed/divdi3.o
AS arch/arm/boot/compressed/piggy.gzip.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: Leaving directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
make -C kernel/samsung/i9082 O=/home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/raghav/source/cm/system/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" dtbs
make[1]: Entering directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1414: warning: overriding commands for target `clean'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1180: warning: ignoring old commands for target `clean'
make[3]: Nothing to be done for `arch/arm/boot/dtbs'.
make[1]: Leaving directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
make -C kernel/samsung/i9082 O=/home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/raghav/source/cm/system/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" modules
make[1]: Entering directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1414: warning: overriding commands for target `clean'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1180: warning: ignoring old commands for target `clean'
GEN /home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
++++++++++++++++++++++
CONFIG_ISP = n
obj = drivers/char/broadcom/isp
Using /home/raghav/source/cm/system/kernel/samsung/i9082 as source for kernel
++++++++++++++++++++++
CONFIG_UNICAM = n
obj = drivers/char/broadcom/unicam
++++++++++++++++++++++
CONFIG_V3D = n
obj = drivers/char/broadcom/v3d
CHK include/generated/utsrelease.h
++++++++++++++++++++++
CONFIG_VCE = n
obj = drivers/char/broadcom/vce
make[3]: `include/generated/mach-types.h' is up to date.
VCHIQ_PLATFORM_CONFIG = capri-bi
Building for MAP build system
CONFIG_ARCH_KONA = y
CALL /home/raghav/source/cm/system/kernel/samsung/i9082/scripts/checksyscalls.sh
++++++++++++++++++++++
CONFIG_ISP = n
obj = drivers/char/broadcom/isp
++++++++++++++++++++++
CONFIG_UNICAM = n
obj = drivers/char/broadcom/unicam
++++++++++++++++++++++
CONFIG_V3D = n
obj = drivers/char/broadcom/v3d
++++++++++++++++++++++
CONFIG_VCE = n
obj = drivers/char/broadcom/vce
VCHIQ_PLATFORM_CONFIG = capri-bi
Building for MAP build system
CONFIG_ARCH_KONA = y
Building modules, stage 2.
MODPOST 6 modules
make[1]: Leaving directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
make -C kernel/samsung/i9082 O=/home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm CROSS_COMPILE="/home/raghav/source/cm/system/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" modules_install
make[1]: Entering directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1414: warning: overriding commands for target `clean'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1180: warning: ignoring old commands for target `clean'
INSTALL crypto/md4.ko
INSTALL drivers/char/broadcom/gist.ko
INSTALL drivers/char/broadcom/sigmorph.ko
INSTALL drivers/net/wireless/bcmdhd/dhd.ko
INSTALL drivers/scsi/scsi_wait_scan.ko
INSTALL fs/cifs/cifs.ko
DEPMOD 3.0.101+
Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt
make[1]: Leaving directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
mdpath=`find /home/raghav/source/cm/system/out/target/product/i9082/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do arm-eabi-strip --strip-unneeded $i; mv $i /home/raghav/source/cm/system/out/target/product/i9082/system/lib/modules/; done; fi
mdpath=`find /home/raghav/source/cm/system/out/target/product/i9082/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
#### make failed to build some targets (14:12 (mm:ss)) ####
Can someone please help me resolve this issue? This problem is giving me a headache
Also what does this mean?
"ebtables is disabled on this build"
Temporary Fix Found:
This commit was causing the problem: Check
Deleted folder: frameworks/testing
Deleted line from default.xml: <project path="frameworks/testing" name="platform/frameworks/testing" remote="aosp" revision="android-support-test" />
Build again and this time that error would be gone..
Thanks in Advance

There are multiple people running into this issue:
https://github.com/CyanogenMod/android/commit/ddd855bbe76f07dfee1d25baf2e8eea4cef492f2
http://review.cyanogenmod.org/#/c/106886/3
I guess we will have to wait until it is fixed Unless someone here knows how to get it to build. I asked at the CyanogenMod-dev IRC and no one ran into this issue.
ebtables is a Linux firewall, and that apparantly is disabled for your build.

Related

CM10 Compile error

I have had many successful compiles of CM10 for my device, but all of a sudden I am getting java compile errors
Code:
frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/UsimDataDownloadTest.java:146: cannot find symbol
symbol : class Handler
location: class com.android.internal.telephony.gsm.UsimDataDownloadTest
public void setOnCatSendSmsResult(Handler h, int what, Object obj) {
^
frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/UsimDataDownloadTest.java:150: cannot find symbol
symbol : class Handler
location: class com.android.internal.telephony.gsm.UsimDataDownloadTest
public void unSetOnCatSendSmsResult(Handler h) {
^
frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/UsimDataDownloadCommands.java:35: com.android.internal.telephony.gsm.UsimDataDownloadCommands is not abstract and does not override abstract method unSetOnCatSendSmsResult(android.os.Handler) in com.android.internal.telephony.CommandsInterface
class UsimDataDownloadCommands extends BaseCommands {
^
frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/UsimDataDownloadTest.java:145: method does not override or implement a method from a supertype
@Override
^
frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/UsimDataDownloadTest.java:149: method does not override or implement a method from a supertype
@Override
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
target Java: ImfTestTests (out/target/common/obj/APPS/ImfTestTests_intermediates/classes)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
5 errors
target Java: KeyStoreTests (out/target/common/obj/APPS/KeyStoreTests_intermediates/classes)
make: *** [out/target/common/obj/APPS/FrameworksTelephonyTests_intermediates/classes-full-debug.jar] Error 41
This has put my work to a complete stop.

help building kernel for nexus 4...

ok i have decided to make my own kernel.....but i dont know what is wrong everything is just good but at the end i dont get anything...
The guides i am using :-
http://forum.xda-developers.com/showthread.php?t=1748297
http://forum.xda-developers.com/showthread.php?t=2021202
I am using a prebuild ubuntu build it contains all the packages....
Using matrix kernel source :-https://github.com/mathkid95/linux_lg_kitkat
And google toolchain.
This is what i get:-
[email protected]:~/android/kernel/kitkat$ export ARCH=arm
[email protected]:~/android/kernel/kitkat$ export CROSS_COMPILE=/home/android/android/toolchain/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-
[email protected]:~/android/kernel/kitkat$ make mako_defconfig
init/Kconfig:1265:warning: defaults for choice values not supported
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
#
# configuration written to .config
#
[email protected]:~/android/kernel/kitkat$ make -j4
scripts/kconfig/conf --silentoldconfig Kconfig
init/Kconfig:1265:warning: defaults for choice values not supported
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm/mach-msm/cpufreq.o
arch/arm/mach-msm/cpufreq.c: In function 'msm_cpufreq_target':
arch/arm/mach-msm/cpufreq.c:103:2: error: implicit declaration of function 'cpufreq_frequency_get_table' [-Werror=implicit-function-declaration]
table = cpufreq_frequency_get_table(policy->cpu);
^
arch/arm/mach-msm/cpufreq.c:103:8: warning: assignment makes pointer from integer without a cast [enabled by default]
table = cpufreq_frequency_get_table(policy->cpu);
^
arch/arm/mach-msm/cpufreq.c:104:2: error: implicit declaration of function 'cpufreq_frequency_table_target' [-Werror=implicit-function-declaration]
if (cpufreq_frequency_table_target(policy, table, target_freq, relation,
^
arch/arm/mach-msm/cpufreq.c:111:2: error: invalid use of undefined type 'struct cpufreq_frequency_table'
pr_debug("CPU[%d] target %d relation %d (%d-%d) selected %d\n",
^
In file included from include/linux/kernel.h:22:0,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from arch/arm/mach-msm/cpufreq.c:22:
arch/arm/mach-msm/cpufreq.c:113:34: error: dereferencing pointer to incomplete type
policy->min, policy->max, table[index].frequency);
^
include/linux/printk.h:202:38: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
^
arch/arm/mach-msm/cpufreq.c:115:2: error: invalid use of undefined type 'struct cpufreq_frequency_table'
ret = set_cpu_freq(policy, table[index].frequency);
^
arch/arm/mach-msm/cpufreq.c:115:34: error: dereferencing pointer to incomplete type
ret = set_cpu_freq(policy, table[index].frequency);
^
arch/arm/mach-msm/cpufreq.c: In function 'msm_cpufreq_limits_init':
arch/arm/mach-msm/cpufreq.c:145:9: warning: assignment makes pointer from integer without a cast [enabled by default]
table = cpufreq_frequency_get_table(cpu);
^
arch/arm/mach-msm/cpufreq.c:151:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
for (i = 0; (table.frequency != CPUFREQ_TABLE_END); i++) {
^
arch/arm/mach-msm/cpufreq.c:151:21: error: dereferencing pointer to incomplete type
for (i = 0; (table.frequency != CPUFREQ_TABLE_END); i++) {
^
arch/arm/mach-msm/cpufreq.c:151:38: error: 'CPUFREQ_TABLE_END' undeclared (first use in this function)
for (i = 0; (table.frequency != CPUFREQ_TABLE_END); i++) {
^
arch/arm/mach-msm/cpufreq.c:151:38: note: each undeclared identifier is reported only once for each function it appears in
arch/arm/mach-msm/cpufreq.c:152:4: error: invalid use of undefined type 'struct cpufreq_frequency_table'
if (table.frequency > max)
^
arch/arm/mach-msm/cpufreq.c:152:13: error: dereferencing pointer to incomplete type
if (table.frequency > max)
^
arch/arm/mach-msm/cpufreq.c:153:5: error: invalid use of undefined type 'struct cpufreq_frequency_table'
max = table.frequency;
^
arch/arm/mach-msm/cpufreq.c:153:16: error: dereferencing pointer to incomplete type
max = table.frequency;
^
arch/arm/mach-msm/cpufreq.c:154:4: error: invalid use of undefined type 'struct cpufreq_frequency_table'
if (table.frequency < min)
^
arch/arm/mach-msm/cpufreq.c:154:13: error: dereferencing pointer to incomplete type
if (table.frequency < min)
^
arch/arm/mach-msm/cpufreq.c:155:5: error: invalid use of undefined type 'struct cpufreq_frequency_table'
min = table.frequency;
^
arch/arm/mach-msm/cpufreq.c:155:16: error: dereferencing pointer to incomplete type
min = table.frequency;
^
arch/arm/mach-msm/cpufreq.c: In function 'msm_cpufreq_init':
arch/arm/mach-msm/cpufreq.c:201:8: warning: assignment makes pointer from integer without a cast [enabled by default]
table = cpufreq_frequency_get_table(policy->cpu);
^
arch/arm/mach-msm/cpufreq.c:212:2: error: implicit declaration of function 'cpufreq_frequency_table_cpuinfo' [-Werror=implicit-function-declaration]
if (cpufreq_frequency_table_cpuinfo(policy, table)) {
^
arch/arm/mach-msm/cpufreq.c:233:2: error: invalid use of undefined type 'struct cpufreq_frequency_table'
if (cur_freq != table[index].frequency) {
^
arch/arm/mach-msm/cpufreq.c:233:23: error: dereferencing pointer to incomplete type
if (cur_freq != table[index].frequency) {
^
arch/arm/mach-msm/cpufreq.c:235:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
ret = acpuclk_set_rate(policy->cpu, table[index].frequency,
^
arch/arm/mach-msm/cpufreq.c:235:44: error: dereferencing pointer to incomplete type
ret = acpuclk_set_rate(policy->cpu, table[index].frequency,
^
arch/arm/mach-msm/cpufreq.c:239:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
pr_info("cpufreq: cpu%d init at %d switching to %d\n",
^
In file included from include/linux/kernel.h:22:0,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from arch/arm/mach-msm/cpufreq.c:22:
arch/arm/mach-msm/cpufreq.c:240:33: error: dereferencing pointer to incomplete type
policy->cpu, cur_freq, table[index].frequency);
^
include/linux/printk.h:179:34: note: in definition of macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^
arch/arm/mach-msm/cpufreq.c:241:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
cur_freq = table[index].frequency;
^
arch/arm/mach-msm/cpufreq.c:241:19: error: dereferencing pointer to incomplete type
cur_freq = table[index].frequency;
^
arch/arm/mach-msm/cpufreq.c: At top level:
arch/arm/mach-msm/cpufreq.c:310:3: error: 'cpufreq_freq_attr_scaling_available_freqs' undeclared here (not in a function)
&cpufreq_freq_attr_scaling_available_freqs,
^
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-msm/cpufreq.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
GZIP kernel/config_data.gz
CHK kernel/config_data.h
[email protected]:~/android/kernel/kitkat$
Click to expand...
Click to collapse
help me guys...im doing this for the first time.......
What should i do...
Also tell me how can i add other kernel features like faux sound...thank you..
can someone plzz help......and now i downloaded google sources the folder is empty 1 gb:silly:

CarbonRom build errors

I'm trying to build CarbonRom for my phone, and when its compiling i get these errors. I'm using java version 1.7 and i'm running Ubuntu 14.04
Code:
target Java: Camera2 (/home/seyi/carbon/out/target/common/obj/APPS/Camera2_intermediates/classes)
target Static Jar: android-opt-datetimepicker (/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/android-opt-datetimepicker_intermediates/javalib.jar)
ProGuard, version 4.4
Reading program jar [/home/seyi/carbon/out/target/common/obj/APPS/DocumentsUI_intermediates/classes.jar]
Reading library jar [/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar]
Reading library jar [/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar]
Reading library jar [/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar]
Reading library jar [/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar]
Reading library jar [/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/framework2_intermediates/classes.jar]
Note: com.google.common.base.FinalizableReferenceQueue accesses a method 'startFinalizer(java.lang.Class,java.lang.Object)' dynamically
Note: android.support.v4.text.ICUCompatIcs accesses a method 'getScript(java.lang.String)' dynamically
Maybe this is program method 'android.support.v4.text.ICUCompat { java.lang.String getScript(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImpl { java.lang.String getScript(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImplBase { java.lang.String getScript(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImplIcs { java.lang.String getScript(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompatIcs { java.lang.String getScript(java.lang.String); }'
Maybe this is library method 'libcore.icu.ICU { java.lang.String getScript(java.lang.String); }'
Note: android.support.v4.text.ICUCompatIcs accesses a method 'addLikelySubtags(java.lang.String)' dynamically
Maybe this is program method 'android.support.v4.text.ICUCompat { java.lang.String addLikelySubtags(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImpl { java.lang.String addLikelySubtags(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImplBase { java.lang.String addLikelySubtags(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImplIcs { java.lang.String addLikelySubtags(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompatIcs { java.lang.String addLikelySubtags(java.lang.String); }'
Maybe this is library method 'libcore.icu.ICU { java.lang.String addLikelySubtags(java.lang.String); }'
Note: com.google.common.base.internal.Finalizer accesses a method 'finalizeReferent()' dynamically
Maybe this is program method 'com.google.common.base.FinalizableReference { void finalizeReferent(); }'
Note: the configuration keeps the entry point 'com.google.common.cache.LocalCache { com.google.common.cache.LocalCache$ReferenceEntry newEntry(java.lang.Object,int,com.google.common.cache.LocalCache$ReferenceEntry); }', but not the descriptor class 'com.google.common.cache.LocalCache$ReferenceEntry'
Note: the configuration keeps the entry point 'com.google.common.cache.LocalCache { com.google.common.cache.LocalCache$ReferenceEntry copyEntry(com.google.common.cache.LocalCache$ReferenceEntry,com.google.common.cache.LocalCache$ReferenceEntry); }', but not the descriptor class 'com.google.common.cache.LocalCache$ReferenceEntry'
Note: the configuration keeps the entry point 'com.google.common.cache.LocalCache { com.google.common.cache.LocalCache$ReferenceEntry copyEntry(com.google.common.cache.LocalCache$ReferenceEntry,com.google.common.cache.LocalCache$ReferenceEntry); }', but not the descriptor class 'com.google.common.cache.LocalCache$ReferenceEntry'
Note: the configuration keeps the entry point 'com.google.common.cache.LocalCache { com.google.common.cache.LocalCache$ValueReference newValueReference(com.google.common.cache.LocalCache$ReferenceEntry,java.lang.Object,int); }', but not the descriptor class 'com.google.common.cache.LocalCache$ReferenceEntry'
Note: the configuration keeps the entry point 'com.google.common.collect.MapMakerInternalMap { com.google.common.collect.MapMakerInternalMap$ReferenceEntry newEntry(java.lang.Object,int,com.google.common.collect.MapMakerInternalMap$ReferenceEntry); }', but not the descriptor class 'com.google.common.collect.MapMakerInternalMap$ReferenceEntry'
Note: the configuration keeps the entry point 'com.google.common.collect.MapMakerInternalMap { com.google.common.collect.MapMakerInternalMap$ReferenceEntry copyEntry(com.google.common.collect.MapMakerInternalMap$ReferenceEntry,com.google.common.collect.MapMakerInternalMap$ReferenceEntry); }', but not the descriptor class 'com.google.common.collect.MapMakerInternalMap$ReferenceEntry'
Note: the configuration keeps the entry point 'com.google.common.collect.MapMakerInternalMap { com.google.common.collect.MapMakerInternalMap$ReferenceEntry copyEntry(com.google.common.collect.MapMakerInternalMap$ReferenceEntry,com.google.common.collect.MapMakerInternalMap$ReferenceEntry); }', but not the descriptor class 'com.google.common.collect.MapMakerInternalMap$ReferenceEntry'
Note: the configuration keeps the entry point 'com.google.common.collect.MapMakerInternalMap { com.google.common.collect.MapMakerInternalMap$ValueReference newValueReference(com.google.common.collect.MapMakerInternalMap$ReferenceEntry,java.lang.Object); }', but not the descriptor class 'com.google.common.collect.MapMakerInternalMap$ReferenceEntry'
Note: there were 8 unkept descriptor classes in kept class members.
You should consider explicitly keeping the mentioned classes
(using '-keep').
Note: there were 4 accesses to class members by means of introspection.
You should consider explicitly keeping the mentioned class members
(using '-keep' or '-keepclassmembers').
Preparing output jar [/home/seyi/carbon/out/target/common/obj/APPS/DocumentsUI_intermediates/proguard.classes.jar]
Copying resources from program jar [/home/seyi/carbon/out/target/common/obj/APPS/DocumentsUI_intermediates/classes.jar]
target Java: com.android.emailsync (/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/com.android.emailsync_intermediates/classes)
target Static Jar: android-common-chips (/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/android-common-chips_intermediates/javalib.jar)
target Static Jar: libphotoviewer (/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/libphotoviewer_intermediates/javalib.jar)
target Java: Gallery2 (/home/seyi/carbon/out/target/common/obj/APPS/Gallery2_intermediates/classes)
target Dex: LatinIME
target Java: Launcher3 (/home/seyi/carbon/out/target/common/obj/APPS/Launcher3_intermediates/classes)
target Dex: PackageInstaller
target Java: Contacts (/home/seyi/carbon/out/target/common/obj/APPS/Contacts_intermediates/classes)
target Java: Dialer (/home/seyi/carbon/out/target/common/obj/APPS/Dialer_intermediates/classes)
target Java: Mms (/home/seyi/carbon/out/target/common/obj/APPS/Mms_intermediates/classes)
target Java: Settings (/home/seyi/carbon/out/target/common/obj/APPS/Settings_intermediates/classes)
[COLOR="Red"]packages/apps/Settings/src/com/android/settings/profiles/ProfileAirplaneModePreference.java:42: error: cannot find symbol
private ProfileConfig.AirplaneModeItem mAirplaneModeItem;
^
symbol: class AirplaneModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileAirplaneModePreference.java:105: error: cannot find symbol
public void setAirplaneModeItem(ProfileConfig.AirplaneModeItem airplaneModeItem) {
^
symbol: class AirplaneModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileAirplaneModePreference.java:155: error: cannot find symbol
public ProfileConfig.AirplaneModeItem getAirplaneModeItem() {
^
symbol: class AirplaneModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileRingModePreference.java:42: error: cannot find symbol
private ProfileConfig.RingModeItem mRingModeItem;
^
symbol: class RingModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileRingModePreference.java:105: error: cannot find symbol
public void setRingModeItem(ProfileConfig.RingModeItem ringModeItem) {
^
symbol: class RingModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileRingModePreference.java:159: error: cannot find symbol
public ProfileConfig.RingModeItem getRingModeItem() {
^
symbol: class RingModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileConnectionPreference.java:126: error: cannot find symbol
final String[] connectionNames = getContext().getResources().getStringArray(mConnectionItem.mChoices);
^
symbol: variable mChoices
location: variable mConnectionItem of type ConnectionItem
packages/apps/Settings/src/com/android/settings/profiles/ProfileConnectionPreference.java:131: error: cannot find symbol
builder.setSingleChoiceItems(mConnectionItem.mChoices, currentChoice, new DialogInterface.OnClickListener() {
^
symbol: variable mChoices
location: variable mConnectionItem of type ConnectionItem
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.
8 errors[/COLOR]

[ GUIDE ] How to Setup Ubuntu 14.10 Utopic Unicorn to Compile Android ROMs

--- If you would rather use a ready-to-go Virtual Machine, check out my post here. ---
--- Copied with permission from http://nathanpfry.com ---
TLDR; if you don't care about an explanation of what your system is doing,
click here to check out XDA Senior Member Aaahh's sweet two-step method based on my guide below.
Otherwise, keep reading!​
With a new version of Ubuntu comes an update to my world-famous guide for setting up a build environment to compile Android ROMs. The aim of this guide is to simplify the configuration process for you.
Follow the directions step-by-step. All you have to do is copy and paste the code sections in order and you will be up and running in no time!
This guide applies to all variations of Ubuntu 14.10 Utopic Unicorn 64 bit. Do not use the 32 Bit version.
Also, PAY CLOSE ATTENTION when to use "sudo" and when to not. It can make things funky if you do something as root that you shouldn't.
Much thanks goes out to Google, ProTekk, Canonical, and everyone else that I read a random paragraph here and snippet there.
Ready to begin? Ok.
1) Unless it's a completely fresh Ubuntu installation, many of you may have the wrong version of Java installed. Let's fix that first.
The command below makes sure you're starting with a clean slate. Copy and paste it into a terminal (command prompt) window:
Code:
sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*
If necessary, follow the on-screen instructions to remove any previous versions. Otherwise, move on to the next step.
It's time to install Java, one of the core pieces for compiling Android ROMs. Depending on which version of Android you are building, you will need the corresponding version of the Java Development Kit.
*** IF YOU ARE BUILDING ANDROID GINGERBREAD THRU KITKAT (2.3 - 4.4.x) USE THESE INSTRUCTIONS FOR JDK 6***
2) Copy and paste the following into the terminal:
Code:
sudo add-apt-repository ppa:webupd8team/java
This will add the correct PPA to your system for updated builds of Java 6 JDK.
3) Now you need to install the package. More copy-paste:
Code:
sudo apt-get update && sudo apt-get install oracle-java6-installer
Follow the on-screen instructions. You must accept the Licensing Agreement to complete the install.
Press Enter to acknowledge the "OK", then tab over to "Yes" and press Enter again to accept the license. The installation will continue automatically.
4) Let's make sure the correct version of Java is activated. Run the terminal command:
Code:
java -version
You should see something like:
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
Continue to Step 5.
*** IF YOU ARE BUILDING ANDROID L AND ABOVE (CURRENT AOSP MASTER BRANCH) USE THESE INSTRUCTIONS FOR JDK 7***
2) Install Open-JDK 7 for the necessary Java development tools.
Code:
sudo apt-get update && sudo apt-get install openjdk-7-jdk
Follow the on-screen instructions.
3) Let's make sure the correct version of Java is activated. Run the terminal command:
Code:
java -version
You should see something like OpenJDK 1.7
Continue on to Step 5.
5) Back to a fresh terminal prompt. Install the main build tools with this command:
Code:
sudo apt-get install git gnupg ccache lzop flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z1-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc libreadline6-dev lib32readline-gplv2-dev libncurses5-dev bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev squashfs-tools pngcrush schedtool dpkg-dev
6) When those are done installing, run the next line in your terminal window:
Code:
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
That's it on the package side of things. You guessed it, time for more Terminal. This really is the easiest way, I promise.
7) A program called "repo" lets you communicate with git servers and download all that precious source code. The next command will install it:
Code:
mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo
8) Use your favorite text editor to open ~/.bashrc - I like nano:
Code:
sudo nano ~/.bashrc
9) At the very bottom (use the Page Down key) paste this code to a new (empty) line:
Code:
export PATH=~/bin:$PATH
10) Save it. In nano that would be Ctrl-O and then Enter. Then Ctrl-X to exit back to a prompt. Restart bash:
Code:
source ~/.bashrc
11) In the terminal, navigate to where you would like to download the Android source code. The commands below will make it in your home folder, but if you have limited space you may want to create it somewhere else. Faster is better, i.e. SSD would be best, USB external (even 3.0) will be comparatively slow. Here we go:
Code:
mkdir ~/android
cd ~/android
12) Now you're going to initialize the repo. This is where you decide the flavor of Android you want to build, i.e. AOKP, CyanogenMod, AOSP etc.
For the purposes of the tutorial, here's the command for AOKP KitKat:
Code:
repo init -u git://github.com/AOKP/platform_manifest.git -b kitkat
13) Almost there. Last step, it's a doozy. Time to get the source. Prepare yourself, 10+ GB of downloading await.
Don't worry, it's automated.
Hey everyone, it's the final terminal command:
Code:
repo sync
Check back periodically every hour or so. It all depends on how fast your connection is.
That should be everything. Now you're ready to build Android the right way. Good luck!
Feel free to buy me a coconut water (donate) if you like my work. It would be greatly appreciated!
Please hit the "Thanks" button if this post helped you out!​
Error while compiling in ubuntu 14.04
i am trying to build aosp_2.3.x using above instruction but facing problem
i am using ubuntu 14.04 64 bit
[email protected]:/home/hackjack/Desktop/aosp_2.3.x# . build/envsetup.sh
including device/htc/passion/vendorsetup.sh
including device/samsung/crespo4g/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
[email protected]:/home/hackjack/Desktop/aosp_2.3.x# lunch
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
2. full_x86-eng
3. simulator
4. full_passion-userdebug
5. full_crespo4g-userdebug
6. full_crespo-userdebug
Which would you like? [full-eng] 1
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
[email protected]:/home/hackjack/Desktop/aosp_2.3.x# make -j6
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
Install: out/host/linux-x86/framework/apicheck.jar
Install: out/host/linux-x86/framework/clearsilver.jar
Install: out/host/linux-x86/lib/libneo_util.so
Copying: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/emma_out/lib/classes-jarjar.jar
Install: out/host/linux-x86/framework/dx.jar
host C++: aapt <= frameworks/base/tools/aapt/AaptAssets.cpp
host C++: aapt <= frameworks/base/tools/aapt/Command.cpp
host C++: aapt <= frameworks/base/tools/aapt/Main.cpp
host C++: aapt <= frameworks/base/tools/aapt/Package.cpp
host C++: aapt <= frameworks/base/tools/aapt/StringPool.cpp
host C++: aapt <= frameworks/base/tools/aapt/XMLNode.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
frameworks/base/tools/aapt/StringPool.cpp:1:0: note: this is the location of the previous definition
//
^
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
frameworks/base/tools/aapt/Command.cpp:1:0: note: this is the location of the previous definition
//
^
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
frameworks/base/tools/aapt/Package.cpp:1:0: note: this is the location of the previous definition
//
^
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
frameworks/base/tools/aapt/AaptAssets.cpp:1:0: note: this is the location of the previous definition
//
^
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
frameworks/base/tools/aapt/Main.cpp:1:0: note: this is the location of the previous definition
//
^
frameworks/base/tools/aapt/XMLNode.cpp:1:0: note: this is the location of the previous definition
//
^
In file included from frameworks/base/tools/aapt/Main.h:10:0,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/StringPool.cpp:7:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
In file included from frameworks/base/tools/aapt/Main.h:10:0,
from frameworks/base/tools/aapt/Main.cpp:6:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
In file included from frameworks/base/include/utils/AssetManager.h:23:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
In file included from frameworks/base/include/utils/AssetManager.h:23:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Main.cpp:6:
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
In file included from frameworks/base/include/utils/AssetManager.h:23:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/StringPool.cpp:7:
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
In file included from frameworks/base/include/utils/ZipFileRO.h:35:0,
from frameworks/base/include/utils/AssetManager.h:29,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Main.cpp:6:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
};
^
In file included from frameworks/base/tools/aapt/Main.h:10:0,
from frameworks/base/tools/aapt/Package.cpp:6:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
In file included from frameworks/base/tools/aapt/Main.h:10:0,
from frameworks/base/tools/aapt/Command.cpp:6:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/StringPool.cpp:7:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
};
^
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
};
^
In file included from frameworks/base/include/utils/AssetManager.h:23:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Package.cpp:6:
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
In file included from frameworks/base/include/utils/AssetManager.h:25:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Main.cpp:6:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]’:
frameworks/base/tools/aapt/AaptAssets.h:419:59: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
ssize_t i = indexOfKey(key);
^
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptSymbols> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
In file included from frameworks/base/include/utils/AssetManager.h:23:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Command.cpp:6:
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
frameworks/base/tools/aapt/StringPool.cpp: In function ‘void printStringPool(const android::ResStringPool*)’:
frameworks/base/tools/aapt/StringPool.cpp:33:43: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘size_t {aka unsigned int}’ [-Wformat=]
printf("String #%ld: %s\n", s, str);
^
In file included from frameworks/base/tools/aapt/Main.h:10:0,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/XMLNode.h:10,
from frameworks/base/tools/aapt/XMLNode.cpp:7:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
In file included from frameworks/base/include/utils/AssetManager.h:25:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/StringPool.cpp:7:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]’:
frameworks/base/tools/aapt/AaptAssets.h:419:59: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
ssize_t i = indexOfKey(key);
^
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptSymbols> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16; VALUE = int]’:
frameworks/base/tools/aapt/StringPool.cpp:60:45: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Package.cpp:6:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
};
^
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String16, int>’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/Main.o] Error 1
make: *** Waiting for unfinished jobs....
frameworks/base/tools/aapt/AaptAssets.cpp:1877:1: warning: unused parameter ‘bundle’ [-Wunused-parameter]
AaptAssets::slurpResourceZip(Bundle* bundle, const char* filename)
^
In file included from frameworks/base/include/utils/AssetManager.h:23:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/XMLNode.h:10,
from frameworks/base/tools/aapt/XMLNode.cpp:7:
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
In file included from frameworks/base/include/utils/AssetManager.h:25:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]’:
frameworks/base/tools/aapt/AaptAssets.h:419:59: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
ssize_t i = indexOfKey(key);
^
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptSymbols> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Command.cpp:6:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
};
^
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptGroup>]’:
frameworks/base/tools/aapt/AaptAssets.cpp:1388:41: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptGroup> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptDir>]’:
frameworks/base/tools/aapt/AaptAssets.cpp:1447:53: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptDir> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/XMLNode.h:10,
from frameworks/base/tools/aapt/XMLNode.cpp:7:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
};
^
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/StringPool.o] Error 1
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/AaptAssets.o] Error 1
In file included from frameworks/base/include/utils/AssetManager.h:25:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Package.cpp:6:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]’:
frameworks/base/tools/aapt/AaptAssets.h:419:59: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
ssize_t i = indexOfKey(key);
^
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptSymbols> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16; VALUE = unsigned int]’:
frameworks/base/tools/aapt/ResourceTable.h:480:100: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String16, unsigned int>’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
In file included from frameworks/base/include/utils/AssetManager.h:25:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Command.cpp:6:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]’:
frameworks/base/tools/aapt/AaptAssets.h:419:59: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
ssize_t i = indexOfKey(key);
^
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptSymbols> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16; VALUE = unsigned int]’:
frameworks/base/tools/aapt/ResourceTable.h:480:100: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String16, unsigned int>’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
frameworks/base/tools/aapt/XMLNode.cpp:176:10: warning: unused parameter ‘bundle’ [-Wunused-parameter]
status_t parseStyledString(Bundle* bundle,
^
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/Package.o] Error 1
In file included from frameworks/base/include/utils/AssetManager.h:25:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/XMLNode.h:10,
from frameworks/base/tools/aapt/XMLNode.cpp:7:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]’:
frameworks/base/tools/aapt/AaptAssets.h:419:59: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
ssize_t i = indexOfKey(key);
^
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptSymbols> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16; VALUE = unsigned int]’:
frameworks/base/tools/aapt/ResourceTable.h:480:100: required from here
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String16, unsigned int>’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/Command.o] Error 1
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/XMLNode.o] Error 1
[email protected]:/home/hackjack/Desktop/aosp_2.3.x#
Click to expand...
Click to collapse
i have highligted the error message
i am using aosp as base rom
below is the command use to get the repo
repo init -u https // android [dot] googlesource [dot] com/platform/manifest.git -b gingerbread

Who can help me to finish my cm12 build? I am in truble!

I want to build cm12 on samsung jfltexx (S4) by Ubuntu 14.04,but it can not.
i follow this to build CM12 http://wiki.cyanogenmod.org/w/Build_for_jfltexx
That is my setp
1.repo sync cm12 codes (it takes me 3 days...):crying:
2.download samsung codes
https://github.com/CyanogenMod/android_device_samsung_jfltexx ---rename jfltexx and copy to device/samsung/
https://github.com/broodplank/samsung-kernel-jfltexx ---rename kernel and copy to out/target/product/jfltexx/
https://github.com/CyanogenMod/android_device_samsung_jf-common ---remane jf-common and copy to device/samsung/
https://github.com/CyanogenMod/android_device_samsung_qcom-common ---remane and copy to device/samsung/
3.
$ source build/envsetup.sh
$ breakfast jfltexx
$ cd device/samsung/jfltexx
--connect my phone to computer
$ ./extract-files.sh
--(but no files found)
--copy the system folder from "cm12-plus-5.0-Beta5.1-jfltexx.zip" to vendor/samsung/jfltexx/
--copy jf-common to vendor/samsung/jfltexx
$ croot
$ brunch jfltexx
--now build is start
but a few minutes later, it show that code and stop to build
i am new here and my english is bad sorry.
and i am new to build android source code,please help me to fix it,thank you!
--------------------------------------------------------------------------------------------------------------------------------------------------------
target arm C: libunz <= external/zlib/src/inftrees.c
target arm C: libunz <= external/zlib/src/inffast.c
target arm C: libunz <= external/zlib/src/trees.c
target arm C: libunz <= external/zlib/src/uncompr.c
target arm C: libunz <= external/zlib/src/zutil.c
Import includes file: /home/qwejay/android/cm/out/target/product/jfltexx/obj/EXECUTABLES/alsaucm_test_intermediates/import_includes
target thumb C: libalsa-intf <= hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_mixer.c
target thumb C: libalsa-intf <= hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c
target thumb C: libalsa-intf <= hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_mixer.c:33:23: fatal error: sound/tlv.h: No such file or directory
#include <sound/tlv.h>
^
compilation terminated.
make: *** [/home/qwejay/android/cm/out/target/product/jfltexx/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o] error 1
make: *** Waiting for the unfinished task....
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:139:31: error: 'SND_AUDIOCODEC_AC3_PASS_THROUGH' undeclared here (not in a function)
FORMAT_AC3_PASS_THROUGH = SND_AUDIOCODEC_AC3_PASS_THROUGH,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:141:31: error: 'SND_AUDIOCODEC_WMA_PRO' undeclared here (not in a function)
FORMAT_WMA_PRO = SND_AUDIOCODEC_WMA_PRO,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:142:31: error: 'SND_AUDIOCODEC_DTS' undeclared here (not in a function)
FORMAT_DTS = SND_AUDIOCODEC_DTS,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:143:31: error: 'SND_AUDIOCODEC_DTS_LBR' undeclared here (not in a function)
FORMAT_DTS_LBR = SND_AUDIOCODEC_DTS_LBR,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:144:31: error: 'SND_AUDIOCODEC_DTS_PASS_THROUGH' undeclared here (not in a function)
FORMAT_DTS_PASS_THROUGH = SND_AUDIOCODEC_DTS_PASS_THROUGH,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_avail':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:443:9: warning: format '%d' expects argument of type 'int', but argument 4 has type 'snd_pcm_uframes_t' [-Wformat=]
ALOGV("hw_ptr = %d buf_size = %d appl_ptr = %d\n",
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:443:9: warning: format '%d' expects argument of type 'int', but argument 6 has type 'snd_pcm_uframes_t' [-Wformat=]
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'appl_pt_forward':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:483:3: warning: too many arguments for format [-Wformat-extra-args]
ALOGE("appl_ptr %ld set to ld",
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'dst_address':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:561:22: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
return pcm->addr + pcm_offset;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'mmap_transfer':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:565:57: warning: unused parameter 'offset' [-Wunused-parameter]
int mmap_transfer(struct pcm *pcm, void *data, unsigned offset,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'mmap_transfer_capture':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:620:26: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
src_addr = pcm->addr + pcm_offset;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:596:65: warning: unused parameter 'offset' [-Wunused-parameter]
int mmap_transfer_capture(struct pcm *pcm, void *data, unsigned offset,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_write_mmap':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:682:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((bytes_written >= pcm->sw_p->start_threshold) && (!pcm->start)) {
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:643:50: warning: unused parameter 'data' [-Wunused-parameter]
static int pcm_write_mmap(struct pcm *pcm, void *data, unsigned count)
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'enable_timer':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:825:8: warning: return makes integer from pointer without a cast [enabled by default]
return &bad_pcm;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:854:11: warning: return makes integer from pointer without a cast [enabled by default]
return &bad_pcm;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_open':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:939:9: warning: return makes pointer from integer without a cast [enabled by default]
return -EINVAL;
^
make: *** [/home/qwejay/android/cm/out/target/product/jfltexx/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_pcm.o] error 1
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_identifier':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:78:43: warning: unused parameter 'fmt' [-Wunused-parameter]
char *snd_use_case_identifier(const char *fmt, ...)
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_free_list':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:90:40: warning: parameter 'list' set but not used [-Wunused-but-set-parameter]
int snd_use_case_free_list(const char *list[], int items)
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:90:52: warning: unused parameter 'items' [-Wunused-parameter]
int snd_use_case_free_list(const char *list[], int items)
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_get_list':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:133:15: warning: assignment from incompatible pointer type [enabled by default]
*list = (char ***)uc_mgr->card_ctxt_ptr->verb_list;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:157:15: warning: assignment from incompatible pointer type [enabled by default]
*list = verb_list[verb_index].device_list;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:181:15: warning: assignment from incompatible pointer type [enabled by default]
*list = verb_list[verb_index].modifier_list;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_apply_mixer_controls':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:936:65: warning: comparison between pointer and integer [enabled by default]
(check_devices_for_voice_call(uc_mgr, use_case) != NULL))
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_mgr_reload':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:2207:49: warning: unused parameter 'uc_mgr' [-Wunused-parameter]
int snd_use_case_mgr_reload(snd_use_case_mgr_t *uc_mgr) {
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'print_list':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:3324:47: warning: unused parameter 'verb_index' [-Wunused-parameter]
static int print_list(card_mctrl_t *list, int verb_index, int count)
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'free_list':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:3884:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mindex < list[case_index].ena_mixer_list[index].value;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:3902:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mindex < list[case_index].dis_mixer_list[index].value;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:3870:40: warning: unused parameter 'verb_index' [-Wunused-parameter]
void free_list(card_mctrl_t *list, int verb_index, int count)
^
--------------------------------------------------------------------------------------------------------------------------------------------------------
I can not fix it X(;
#include <sound/tlv.h>
It is strange. There is something very wrong with this source code. Technically the solution is finding that tlv.h and copying it into that "sound" directory. However, if a source code can't build because of an inclusion error, this means that either the repo is broken or the source code you downloaded is broken for some reason. Fixing that error will just throw another one, not worth trying.
By the way, I don't get all the downloading and renaming part, that's explained in a different way on the guide! In order to get the files specific to the device:
Breakfast jfltexx
./extract-files.sh
And then build it! If you are getting problems with the building of the vendor apps, look for "TheMuppets" github page.
Why are you building cm12? 12.1 is the latest.
Ciuffy's SM-G900F CM 12.1 spirit hath marked this way.

Categories

Resources