[Moto G 2015 Q&A, Help & Troubleshooting] himavanth.reddy925:
now im getting this error ..

device/motorola/msm8916-common/power/power_8939.c:168:10: error: use of undeclared identifier 'POWER_HINT_SET_PROFILE'

case POWER_HINT_SET_PROFILE:

^

device/motorola/msm8916-common/power/power_8939.c:187:20: error: use of undeclared identifier 'POWER_FEATURE_SUPPORTED_PROFILES'

if (feature == POWER_FEATURE_SUPPORTED_PROFILES) {

^

device/motorola/msm8916-common/power/power_8939.c:207:6: error: field designator 'getFeature' does not refer to any field in type 'struct power_module'; did you mean 'setFeature'?

.getFeature = get_feature

^~~~~~~~~~

setFeature

hardware/libhardware/include/hardware/power.h:293:12: note: 'setFeature' declared here

void (*setFeature)(struct power_module *module, feature_t feature, int state);

^

device/motorola/msm8916-common/power/power_8939.c:207:19: warning: incompatible pointer types initializing 'void (*)(struct power_module *, feature_t, int)' with an expression of type 'int (struct power_module *, feature_t)' [-Wincompatible-pointer-types]

.getFeature = get_feature

^~~~~~~~~~~

1 warning and 3 errors generated.

[ 24% 1827/7350] target Package: framework-res (out/target/product/merlin/obj/APPS/framework-res_intermediates/package.apk)

warning: string 'candidates_style' has no default translation.

warning: string 'candidates_style' is missing 41 required localizations: az_AZ be_BY bn_BD bs_BA en_AU en_CA en_GB en_IN en_NZ en_SG en_US eo_EU et_EE eu_ES gl_ES gu_IN hy_AM is_IS ka_GE kk_KZ km_KH kn_IN ky_KG lo_LA mk_MK ml_IN mn_MN mr_IN ms_MY my_MM ne_NP pa_IN si_LK sq_AL ta_IN te_IN ur_PK uz_UZ zh_CN zh_HK zh_TW

warning: string 'global_action_reboot' has no default translation.

warning: string 'global_action_reboot' is missing 60 required localizations: af_ZA am_ET az_AZ be_BY bg_BG bn_BD bs_BA ca_ES cs_CZ da_DK el_GR en_AU en_CA en_GB en_IN en_NZ en_SG en_US eo_EU et_EE eu_ES fi_FI gl_ES gu_IN hr_HR hu_HU hy_AM is_IS iw_IL ja_JP ka_GE kk_KZ km_KH kn_IN ky_KG lo_LA lt_LT lv_LV mk_MK ml_IN mn_MN mr_IN ms_MY my_MM nb_NO ne_NP nl_BE nl_NL pa_IN si_LK sq_AL sv_SE ta_IN te_IN ur_PK uz_UZ zh_CN zh_HK zh_TW zu_ZA

warning: string 'gsm_alphabet_default_charset' has no default translation.

warning: string 'gsm_alphabet_default_charset' is missing 90 required localizations: af_ZA am_ET ar_EG az_AZ be_BY bg_BG bn_BD bs_BA ca_ES cs_CZ da_DK de_AT de_CH de_DE de_LI el_GR en_AU en_CA en_GB en_IN en_NZ en_SG en_US eo_EU es_ES es_US et_EE eu_ES fa_IR fi_FI fr_BE fr_CA fr_CH fr_FR gl_ES gu_IN hi_IN hr_HR hu_HU hy_AM in_ID is_IS it_CH it_IT iw_IL ja_JP ka_GE kk_KZ km_KH kn_IN ky_KG lo_LA lt_LT lv_LV mk_MK ml_IN mn_MN mr_IN ms_MY my_MM nb_NO ne_NP nl_BE nl_NL pa_IN pl_PL pt_BR pt_PT ro_RO ru_RU si_LK sk_SK sl_SI sq_AL sr_RS sv_SE sw_TZ ta_IN te_IN th_TH tl_PH tr_TR uk_UA ur_PK uz_UZ vi_VN zh_CN zh_HK zh_TW zu_ZA

warning: string 'wfcSpnFormat' has no default translation.

warning: string 'wfcSpnFormat' is missing 41 required localizations: az_AZ be_BY bn_BD bs_BA en_AU en_CA en_GB en_IN en_NZ en_SG en_US eo_EU et_EE eu_ES gl_ES gu_IN hy_AM is_IS ka_GE kk_KZ km_KH kn_IN ky_KG lo_LA mk_MK ml_IN mn_MN mr_IN ms_MY my_MM ne_NP pa_IN si_LK sq_AL ta_IN te_IN ur_PK uz_UZ zh_CN zh_HK zh_TW

warning: no entries written for dimen/password_keyboard_height (0x010500cb)

[ 24% 1827/7350] Docs droiddoc: out/target/common/docs/api-stubs

DroidDoc took 162 sec. to write docs to out/target/common/docs/api-stubs

[ 24% 1827/7350] Building with Jack: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex

ninja: build stopped: subcommand failed.

build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed

make: *** [ninja_wrapper] Error 1

Total time elapsed: 15 minutes (931.505903683 seconds)