[Q] Help with CM11 - Verizon HTC One (M7)

As the title states I need help building cm11. My problem is more like a problem building than it is with the code I think. Here's the last part of my build:
target SharedLib: libdl (/home/user/android/system/out/target/product/m7vzw/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so)
/home/user/android/system/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/user/android/system/out/target/product/m7vzw/obj/ETC/sepolicy_intermediates/policy.conf
device/htc/m7-common/sepolicy/property.te":2:ERROR 'duplicate declaration of type/attribute' at token ';' on line 8222:
type bluetooth_prop, property_type;
#line 1 "device/htc/m7-common/sepolicy/property.te"
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/user/android/system/out/target/product/m7vzw/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
make: *** Waiting for unfinished jobs....
GEN /home/user/android/system/out/target/product/m7vzw/obj/KERNEL_OBJ/Makefile
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
#
make[1]: Leaving directory `/home/user/android/system/kernel/htc/m7'
Can anyone help me out?

That error is related to sepolicy. The device either needs to be updated or selinux repo needed modification. Birdman's git might have an answer for you. https://github.com/gwe
Sent from my One using Tapatalk

Alright got the first one figured out but now I am getting this
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:353:12: warning: 'int snd_ucm_parse_verb(snd_use_case_mgr_t**, const char*, int)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:354:12: warning: 'int get_verb_count(const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:358:12: warning: 'int get_usecase_type(snd_use_case_mgr_t*, const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:359:12: warning: 'int parse_single_config_format(snd_use_case_mgr_t**, char*, int)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:360:12: warning: 'int get_num_verbs_config_format(const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:361:12: warning: 'int get_num_device_config_format(const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:362:12: warning: 'int get_num_mod_config_format(const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:363:12: warning: 'int is_single_config_format(const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:365:12: warning: 'int snd_ucm_parse(snd_use_case_mgr_t**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:366:12: warning: 'int snd_ucm_parse_section(snd_use_case_mgr_t**, char**, char**, int, int)' declared 'static' but never defined [-Wunused-function]
In file included from hardware/qcom/audio-caf/alsa_sound/AudioUsbALSA.h:57:0,
from hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:32,
from hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.cpp:42:
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:367:12: warning: 'int snd_ucm_extract_name(char*, char**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:368:12: warning: 'int snd_ucm_extract_acdb(char*, int*, int*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:369:12: warning: 'int snd_ucm_extract_effects_mixer_ctl(char*, char**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:370:12: warning: 'int snd_ucm_extract_ec_ref_rx_mixer_ctl(char*, char**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:371:12: warning: 'int snd_ucm_extract_dev_name(char*, char**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:372:12: warning: 'int snd_ucm_extract_controls(char*, mixer_control_t**, int)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:373:12: warning: 'int snd_ucm_extract_volume_mixer_ctl(char*, char**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:374:12: warning: 'int snd_ucm_print(snd_use_case_mgr_t*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:375:13: warning: 'void snd_ucm_free_mixer_list(snd_use_case_mgr_t**)' declared 'static' but never defined [-Wunused-function]
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.cpp:66:19: warning: 'acdb_send_audio_cal' defined but not used [-Wunused-variable]
In file included from hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.cpp:42:0:
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:137:12: warning: 'android_audio_legacy::USBPLAYBACKBIT_MUSIC' defined but not used [-Wunused-variable]
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:144:12: warning: 'android_audio_legacy::USBRECBIT_REC' defined but not used [-Wunused-variable]
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:147:12: warning: 'android_audio_legacy::USBRECBIT_FM' defined but not used [-Wunused-variable]
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:216:17: warning: 'android_audio_legacy::FLUENCE_MODE_ENDFIRE' defined but not used [-Wunused-variable]
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:217:17: warning: 'android_audio_legacy::FLUENCE_MODE_BROADSIDE' defined but not used [-Wunused-variable]
make: *** [/home/user/android/system/out/target/product/m7vzw/obj/SHARED_LIBRARIES/audio.primary.msm8960_intermediates/AudioHardwareALSA.o] Error 1

skiman10 said:
Alright got the first one figured out but now I am getting this
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:353:12: warning: 'int snd_ucm_parse_verb(snd_use_case_mgr_t**, const char*, int)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:354:12: warning: 'int get_verb_count(const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:358:12: warning: 'int get_usecase_type(snd_use_case_mgr_t*, const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:359:12: warning: 'int parse_single_config_format(snd_use_case_mgr_t**, char*, int)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:360:12: warning: 'int get_num_verbs_config_format(const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:361:12: warning: 'int get_num_device_config_format(const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:362:12: warning: 'int get_num_mod_config_format(const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:363:12: warning: 'int is_single_config_format(const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:365:12: warning: 'int snd_ucm_parse(snd_use_case_mgr_t**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:366:12: warning: 'int snd_ucm_parse_section(snd_use_case_mgr_t**, char**, char**, int, int)' declared 'static' but never defined [-Wunused-function]
In file included from hardware/qcom/audio-caf/alsa_sound/AudioUsbALSA.h:57:0,
from hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:32,
from hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.cpp:42:
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:367:12: warning: 'int snd_ucm_extract_name(char*, char**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:368:12: warning: 'int snd_ucm_extract_acdb(char*, int*, int*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:369:12: warning: 'int snd_ucm_extract_effects_mixer_ctl(char*, char**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:370:12: warning: 'int snd_ucm_extract_ec_ref_rx_mixer_ctl(char*, char**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:371:12: warning: 'int snd_ucm_extract_dev_name(char*, char**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:372:12: warning: 'int snd_ucm_extract_controls(char*, mixer_control_t**, int)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:373:12: warning: 'int snd_ucm_extract_volume_mixer_ctl(char*, char**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:374:12: warning: 'int snd_ucm_print(snd_use_case_mgr_t*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:375:13: warning: 'void snd_ucm_free_mixer_list(snd_use_case_mgr_t**)' declared 'static' but never defined [-Wunused-function]
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.cpp:66:19: warning: 'acdb_send_audio_cal' defined but not used [-Wunused-variable]
In file included from hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.cpp:42:0:
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:137:12: warning: 'android_audio_legacy::USBPLAYBACKBIT_MUSIC' defined but not used [-Wunused-variable]
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:144:12: warning: 'android_audio_legacy::USBRECBIT_REC' defined but not used [-Wunused-variable]
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:147:12: warning: 'android_audio_legacy::USBRECBIT_FM' defined but not used [-Wunused-variable]
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:216:17: warning: 'android_audio_legacy::FLUENCE_MODE_ENDFIRE' defined but not used [-Wunused-variable]
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:217:17: warning: 'android_audio_legacy::FLUENCE_MODE_BROADSIDE' defined but not used [-Wunused-variable]
make: *** [/home/user/android/system/out/target/product/m7vzw/obj/SHARED_LIBRARIES/audio.primary.msm8960_intermediates/AudioHardwareALSA.o] Error 1
Click to expand...
Click to collapse
try this. sets low power audio to false. https://github.com/GWe/msm8960-common/commit/fe0ea8912e5e1e789fa10a715d53bbbaa43ba2aa
im not sure if the binaries it is compiling are related to LPA but alsa is sound.

I believe they have an unofficial for m7tmo so might work

coldconfession13 said:
I believe they have an unofficial for m7tmo so might work
Click to expand...
Click to collapse
You believe they have what for m7tmo?

buckmarble said:
try this. sets low power audio to false. https://github.com/GWe/msm8960-common/commit/fe0ea8912e5e1e789fa10a715d53bbbaa43ba2aa
im not sure if the binaries it is compiling are related to LPA but alsa is sound.
Click to expand...
Click to collapse
it didn't help. any other suggestions?

This is a hack, but you could turn off the warning in your build file.
Sent from my Oney Bone.

brymaster5000 said:
This is a hack, but you could turn off the warning in your build file.
Sent from my Oney Bone.
Click to expand...
Click to collapse
where and how exactly?

golcheck said:
where and how exactly?
Click to expand...
Click to collapse
Search Wunused-function:
http://stackoverflow.com/questions/15053776/how-do-you-disable-the-unused-variable-warnings-coming-out-of-gcc

golcheck said:
where and how exactly?
Click to expand...
Click to collapse
Wondering, were you able to figure this out? I getting the same build error.
---------- Post added at 12:10 AM ---------- Previous post was at 12:06 AM ----------
skiman10 said:
Alright got the first one figured out but now I am getting this
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:353:12: warning: 'int snd_ucm_parse_verb(snd_use_case_mgr_t**, const char*, int)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:354:12: warning: 'int get_verb_count(const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:358:12: warning: 'int get_usecase_type(snd_use_case_mgr_t*, const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:359:12: warning: 'int parse_single_config_format(snd_use_case_mgr_t**, char*, int)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:360:12: warning: 'int get_num_verbs_config_format(const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:361:12: warning: 'int get_num_device_config_format(const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:362:12: warning: 'int get_num_mod_config_format(const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:363:12: warning: 'int is_single_config_format(const char*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:365:12: warning: 'int snd_ucm_parse(snd_use_case_mgr_t**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:366:12: warning: 'int snd_ucm_parse_section(snd_use_case_mgr_t**, char**, char**, int, int)' declared 'static' but never defined [-Wunused-function]
In file included from hardware/qcom/audio-caf/alsa_sound/AudioUsbALSA.h:57:0,
from hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:32,
from hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.cpp:42:
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:367:12: warning: 'int snd_ucm_extract_name(char*, char**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:368:12: warning: 'int snd_ucm_extract_acdb(char*, int*, int*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:369:12: warning: 'int snd_ucm_extract_effects_mixer_ctl(char*, char**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:370:12: warning: 'int snd_ucm_extract_ec_ref_rx_mixer_ctl(char*, char**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:371:12: warning: 'int snd_ucm_extract_dev_name(char*, char**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:372:12: warning: 'int snd_ucm_extract_controls(char*, mixer_control_t**, int)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:373:12: warning: 'int snd_ucm_extract_volume_mixer_ctl(char*, char**)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:374:12: warning: 'int snd_ucm_print(snd_use_case_mgr_t*)' declared 'static' but never defined [-Wunused-function]
/home/user/android/system/out/target/product/m7vzw/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h:375:13: warning: 'void snd_ucm_free_mixer_list(snd_use_case_mgr_t**)' declared 'static' but never defined [-Wunused-function]
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.cpp:66:19: warning: 'acdb_send_audio_cal' defined but not used [-Wunused-variable]
In file included from hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.cpp:42:0:
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:137:12: warning: 'android_audio_legacy::USBPLAYBACKBIT_MUSIC' defined but not used [-Wunused-variable]
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:144:12: warning: 'android_audio_legacy::USBRECBIT_REC' defined but not used [-Wunused-variable]
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:147:12: warning: 'android_audio_legacy::USBRECBIT_FM' defined but not used [-Wunused-variable]
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:216:17: warning: 'android_audio_legacy::FLUENCE_MODE_ENDFIRE' defined but not used [-Wunused-variable]
hardware/qcom/audio-caf/alsa_sound/AudioHardwareALSA.h:217:17: warning: 'android_audio_legacy::FLUENCE_MODE_BROADSIDE' defined but not used [-Wunused-variable]
make: *** [/home/user/android/system/out/target/product/m7vzw/obj/SHARED_LIBRARIES/audio.primary.msm8960_intermediates/AudioHardwareALSA.o] Error 1
Click to expand...
Click to collapse
skiman10, were you able to get past this build error?

I don't know how roms are set up, but with kernels, there is a makefile (the main one) that has cflags in it. These can control your warnings.
Sent from my Oney Bone.

ackmke said:
Wondering, were you able to figure this out? I getting the same build error.
---------- Post added at 12:10 AM ---------- Previous post was at 12:06 AM ----------
skiman10, were you able to get past this build error?
Click to expand...
Click to collapse
No I have not been able to fix this and it is frustrating me. Anyone got a fix so I can get this build out?

Related

Can't compile original kernel

Hello and welcome,
I have a HTC wildfire, Kernel 2.6.29-something.
I downloaded the offical NDK and the offical kernel version from htcdev.
I set the path variable for CROSS_COMPILE and started doing a make.
There are tons of errors ...
The original kernel does not seem to compile - I may post some errors:
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CALL scripts/checksyscalls.sh
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
CHK include/linux/compile.h
dnsdomainname: Name or service not known
CC drivers/i2c/chips/mt9t013.o
drivers/i2c/chips/mt9t013.c:33:28: error: mach/msm_iomap.h: No such file or directory
drivers/i2c/chips/mt9t013.c:34:32: error: mach/msm_rpcrouter.h: No such file or directory
drivers/i2c/chips/mt9t013.c:35:23: error: mach/vreg.h: No such file or directory
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_sensor_init':
drivers/i2c/chips/mt9t013.c:459: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:461: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:465: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:469: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:471: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:473: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:474: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:490: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:495: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:497: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:498: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_sensor_suspend':
drivers/i2c/chips/mt9t013.c:529: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_open':
drivers/i2c/chips/mt9t013.c:541: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_release':
drivers/i2c/chips/mt9t013.c:567: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_camif_pad_reg_reset':
drivers/i2c/chips/mt9t013.c:600: error: 'MSM_MDC_BASE' undeclared (first use in this function)
drivers/i2c/chips/mt9t013.c:600: error: (Each undeclared identifier is reported only once
drivers/i2c/chips/mt9t013.c:600: error: for each function it appears in.)
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_ioctl':
drivers/i2c/chips/mt9t013.c:689: error: 'MSM_MDC_BASE' undeclared (first use in this function)
drivers/i2c/chips/mt9t013.c:709: error: 'MSM_CLK_CTL_BASE' undeclared (first use in this function)
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_lens_power':
drivers/i2c/chips/mt9t013.c:821: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:823: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:825: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:826: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_remove':
drivers/i2c/chips/mt9t013.c:1301: warning: 'i2c_detach_client' is deprecated (declared at include/linux/i2c.h:435)
drivers/i2c/chips/mt9t013.c: At top level:
drivers/i2c/chips/mt9t013.c:1322: warning: 'struct platform_device' declared inside parameter list
drivers/i2c/chips/mt9t013.c:1322: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_plat_probe':
drivers/i2c/chips/mt9t013.c:1326: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:1329: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c: At top level:
drivers/i2c/chips/mt9t013.c:1335: error: variable 'mt9t013_plat_driver' has initializer but incomplete type
drivers/i2c/chips/mt9t013.c:1336: error: unknown field 'probe' specified in initializer
drivers/i2c/chips/mt9t013.c:1336: warning: excess elements in struct initializer
drivers/i2c/chips/mt9t013.c:1336: warning: (near initialization for 'mt9t013_plat_driver')
drivers/i2c/chips/mt9t013.c:1337: error: unknown field 'driver' specified in initializer
drivers/i2c/chips/mt9t013.c:1337: error: extra brace group at end of initializer
drivers/i2c/chips/mt9t013.c:1337: error: (near initialization for 'mt9t013_plat_driver')
drivers/i2c/chips/mt9t013.c:1340: warning: excess elements in struct initializer
drivers/i2c/chips/mt9t013.c:1340: warning: (near initialization for 'mt9t013_plat_driver')
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_init':
drivers/i2c/chips/mt9t013.c:1345: error: implicit declaration of function 'platform_driver_register'
make[3]: *** [drivers/i2c/chips/mt9t013.o] Error 1
make[2]: *** [drivers/i2c/chips] Error 2
make[1]: *** [drivers/i2c] Error 2
make: *** [drivers] Error 2
Click to expand...
Click to collapse
Could someone please tell me how to get this kernel to work?
To be honest I only need the kernel to be compiled, so that my C-module can get compiled for this kernel.
Thanks for your help.
Kind regards
post this thing to androidstack website. may be there u can get better answers.
Sent from my HTC Wildfire using xda app-developers app
make 100% sure you have installed all the files needed to compile kernels. Look at a few kernel compiling guides and install everything.
Otherwise try a different cross compiler, such as GCC 4.4.3 as this is the safest option

compile cm11 error

Checking build tools versions...
/home/blackcat/cm11/out/target/product/ancora/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit_priv.h'
error help me
Import includes file: /home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/vim_intermediates/import_includes
make: *** No rule to make target `vendor/cm/proprietary/Term.apk', needed by `/home/blackcat/cm11/out/target/product/ancora/system/app/Term.apk'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: external/vim/src/Android.mk -- /home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/vim_intermediates/export_includes
blackcat67 said:
Checking build tools versions...
/home/blackcat/cm11/out/target/product/ancora/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit_priv.h'
error help me
Import includes file: /home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/vim_intermediates/import_includes
make: *** No rule to make target `vendor/cm/proprietary/Term.apk', needed by `/home/blackcat/cm11/out/target/product/ancora/system/app/Term.apk'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: external/vim/src/Android.mk -- /home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/vim_intermediates/export_includes
Click to expand...
Click to collapse
Code:
cd vendor/cm
./get-prebuilts
then start your build again
Vendor:
git clone git://github.com/arco/android_vendor_samsung_ancora.git -b cm-10.2 ancora
Device :
git clone git://github.com/hadidjapri/android_device_samsung_ancora.git -b cm-11 ancora
Display Legacy
git clone git://github.com/alviteri/android_hardware_qcom_display-legacy -b
display-legacy
Media Legacy
git clone git://github.com/alviteri/android_hardware_qcom_media-legacy -b
media-legacy
Is it true source _?
lunch
- cm_ancora-userdebug
make -j4
target thumb C: tc <= external/iproute2/tc/q_prio.c
external/iproute2/tc/q_prio.c: In function 'prio_parse_opt':
external/iproute2/tc/q_prio.c:35:9: warning: excess elements in struct initializer [enabled by default]
external/iproute2/tc/q_prio.c:35:9: warning: (near initialization for 'opt') [enabled by default]
external/iproute2/tc/q_prio.c:60:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:64:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:85:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/iproute2/tc/q_prio.c:31:46: warning: unused parameter 'qu' [-Wunused-parameter]
external/iproute2/tc/q_prio.c: In function 'prio_print_opt':
external/iproute2/tc/q_prio.c:133:30: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
make: *** [/home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/tc_intermediates/q_prio.o] Error 1
make: *** Waiting for unfinished jobs....
blackcat67 said:
target thumb C: tc <= external/iproute2/tc/q_prio.c
external/iproute2/tc/q_prio.c: In function 'prio_parse_opt':
external/iproute2/tc/q_prio.c:35:9: warning: excess elements in struct initializer [enabled by default]
external/iproute2/tc/q_prio.c:35:9: warning: (near initialization for 'opt') [enabled by default]
external/iproute2/tc/q_prio.c:60:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:64:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:85:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/iproute2/tc/q_prio.c:31:46: warning: unused parameter 'qu' [-Wunused-parameter]
external/iproute2/tc/q_prio.c: In function 'prio_print_opt':
external/iproute2/tc/q_prio.c:133:30: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
make: *** [/home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/tc_intermediates/q_prio.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Same error did you fix it? and how?
Thank you
Which repos should i use for arco cm11 ?
Can some one help?
I get error
device/samsung/ancora/camerahal/cameraHAL.cpp:38:31: fatal error: ui/legacy/Overlay.h: No such file or directory
compilation terminated.
make: *** [/home/acc/cm11/out/target/product/ancora/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Madridii said:
Same error did you fix it? and how?
Thank you
Click to expand...
Click to collapse
Any fixes yet?
blackcat67 said:
target thumb C: tc <= external/iproute2/tc/q_prio.c
external/iproute2/tc/q_prio.c: In function 'prio_parse_opt':
external/iproute2/tc/q_prio.c:35:9: warning: excess elements in struct initializer [enabled by default]
external/iproute2/tc/q_prio.c:35:9: warning: (near initialization for 'opt') [enabled by default]
external/iproute2/tc/q_prio.c:60:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:64:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:85:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/iproute2/tc/q_prio.c:31:46: warning: unused parameter 'qu' [-Wunused-parameter]
external/iproute2/tc/q_prio.c: In function 'prio_print_opt':
external/iproute2/tc/q_prio.c:133:30: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
make: *** [/home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/tc_intermediates/q_prio.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Same error also how did you fix
Edit
I found way to fix by git revert to a earlier commit type this in terminal
Code:
cd ~/your/build/dir/external/iproute2
git revert 4c48963517f1569ce909ad2f8a4b7a675de5a1f6

Need help compiling kernel

So I am brand new at all of this and figured I would toy around with this older phone to see what I can learn. I am using directions from this link:
"htcevohacks.com/htc-evo-hacks/how-to-build-your-own-htc-evo-4g-android-kernel/"
I'm trying to make a custom kernel so I can put ubuntu on my phone following the directions from these two links:
"htcevohacks.com/htc-evo-hacks/ubuntu-evo-4g/"
"nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-android/"
So while trying to compile on step 13 off the first link this is what I get when I use the command "make":
:/kernel# make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CALL scripts/checksyscalls.sh
<stdin>:1097: warning: #warning syscall fadvise64 not implemented
<stdin>:1265: warning: #warning syscall migrate_pages not implemented
<stdin>:1321: warning: #warning syscall pselect6 not implemented
<stdin>:1325: warning: #warning syscall ppoll not implemented
<stdin>:1365: warning: #warning syscall epoll_pwait not implemented
CHK include/linux/compile.h
CC arch/arm/mach-msm/devices.o
arch/arm/mach-msm/devices.c:391: error: variable 'android_usb_pdata' has initializer but incomplete type
arch/arm/mach-msm/devices.c:392: error: unknown field 'vendor_id' specified in initializer
arch/arm/mach-msm/devices.c:392: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:392: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:393: error: unknown field 'product_id' specified in initializer
arch/arm/mach-msm/devices.c:393: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:393: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:394: error: unknown field 'adb_product_id' specified in initializer
arch/arm/mach-msm/devices.c:394: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:394: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:395: error: unknown field 'version' specified in initializer
arch/arm/mach-msm/devices.c:395: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:395: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:396: error: unknown field 'product_name' specified in initializer
arch/arm/mach-msm/devices.c:396: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:396: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:397: error: unknown field 'manufacturer_name' specified in initializer
arch/arm/mach-msm/devices.c:397: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:397: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:398: error: unknown field 'nluns' specified in initializer
arch/arm/mach-msm/devices.c:398: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:398: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c: In function 'msm_set_ums_device_id':
arch/arm/mach-msm/devices.c:452: error: 'usb_mass_storage_device' undeclared (first use in this function)
arch/arm/mach-msm/devices.c:452: error: (Each undeclared identifier is reported only once
arch/arm/mach-msm/devices.c:452: error: for each function it appears in.)
arch/arm/mach-msm/devices.c: In function 'msm_enable_car_kit_detect':
arch/arm/mach-msm/devices.c:463: error: 'struct msm_hsusb_platform_data' has no member named 'enable_car_kit_detect'
arch/arm/mach-msm/devices.c: In function 'msm_init_ums_lun':
arch/arm/mach-msm/devices.c:469: error: 'mass_storage_pdata' undeclared (first use in this function)
arch/arm/mach-msm/devices.c: In function 'msm_add_usb_id_pin_gpio':
arch/arm/mach-msm/devices.c:486: error: 'struct msm_hsusb_platform_data' has no member named 'usb_id_pin_gpio'
arch/arm/mach-msm/devices.c: At top level:
arch/arm/mach-msm/devices.c:490: warning: 'struct msm_hsusb_product' declared inside parameter list
arch/arm/mach-msm/devices.c:490: warning: its scope is only this definition or declaration, which is probably not what you want
arch/arm/mach-msm/devices.c: In function 'msm_hsusb_set_product':
arch/arm/mach-msm/devices.c:491: error: 'struct msm_hsusb_platform_data' has no member named 'products'
arch/arm/mach-msm/devices.c:492: error: 'struct msm_hsusb_platform_data' has no member named 'num_products'
arch/arm/mach-msm/devices.c: In function 'board_serialno_setup':
arch/arm/mach-msm/devices.c:1159: error: invalid use of undefined type 'struct android_usb_platform_data'
make[1]: *** [arch/arm/mach-msm/devices.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
Click to expand...
Click to collapse
Like I said, I'm new to this so I don't really know what any of that means. The lines should be all correct but I did have to separate them manually after copying it. I'm using Lubuntu and my phone is running CyanogenMod 7
yep
So, I also am having this problem... does anyone have an answer? My issue is exactly the same, and I tried it a second time with the same results, even though I tried different options prior to it starting to compile. Or does anyone have a ready made kernel for this that they would be willing to post?
thanks

Compiling Recovery E5-SM500 BUG TWRP

Hello Guys.
I am new at developing for android.
Have some problems compiling the TWRP for this device. I know that the recovery is already compiled, but I am doing this for learning purpose.
Device Tree: https://github.com/E5-CyanogenMod/android_device_samsung_e5ltexx
Kenel: https://github.com/E5-CyanogenMod/android_kernel_samsung_e5ltexx
The problem is when i use TWRP. I am using branch "android-5.1"
This is the error message:
Code:
bootable/recovery/minui/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minui/graphics_overlay.c:151:17: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask =
^
bootable/recovery/minuitwrp/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minuitwrp/graphics_overlay.c:163:17: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask =
^
bootable/recovery/minuitwrp/graphics_overlay.c: In function 'allocate_overlay':
bootable/recovery/minuitwrp/graphics_overlay.c:205:5: warning: implicit declaration of function 'isDisplaySplit' [-Wimplicit-function-declaration]
if (!isDisplaySplit()) {
^
bootable/recovery/minuitwrp/graphics_overlay.c:231:9: warning: implicit declaration of function 'getFbXres' [-Wimplicit-function-declaration]
float xres = getFbXres();
^
bootable/recovery/minuitwrp/graphics_overlay.c:232:9: warning: implicit declaration of function 'getLeftSplit' [-Wimplicit-function-declaration]
int lSplit = getLeftSplit();
^
target Executable: erase_image (/home/eabz/cm12/out/target/product/e5lte/obj/RECOVERY_EXECUTABLES/erase_image_intermediates/LINKED/erase_image)
make: *** [/home/eabz/cm12/out/target/product/e5lte/obj/STATIC_LIBRARIES/libminui_intermediates/graphics_overlay.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/eabz/cm12/out/target/product/e5lte/obj/SHARED_LIBRARIES/libminuitwrp_intermediates/graphics_overlay.o] Error 1
If someone knows how to fix?
eabz2000 said:
Hello Guys.
I am new at developing for android.
Have some problems compiling the TWRP for this device. I know that the recovery is already compiled, but I am doing this for learning purpose.
Device Tree: https://github.com/E5-CyanogenMod/android_device_samsung_e5ltexx
Kenel: https://github.com/E5-CyanogenMod/android_kernel_samsung_e5ltexx
The problem is when i use TWRP. I am using branch "android-5.1"
This is the error message:
Code:
bootable/recovery/minui/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minui/graphics_overlay.c:151:17: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask =
^
bootable/recovery/minuitwrp/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minuitwrp/graphics_overlay.c:163:17: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask =
^
bootable/recovery/minuitwrp/graphics_overlay.c: In function 'allocate_overlay':
bootable/recovery/minuitwrp/graphics_overlay.c:205:5: warning: implicit declaration of function 'isDisplaySplit' [-Wimplicit-function-declaration]
if (!isDisplaySplit()) {
^
bootable/recovery/minuitwrp/graphics_overlay.c:231:9: warning: implicit declaration of function 'getFbXres' [-Wimplicit-function-declaration]
float xres = getFbXres();
^
bootable/recovery/minuitwrp/graphics_overlay.c:232:9: warning: implicit declaration of function 'getLeftSplit' [-Wimplicit-function-declaration]
int lSplit = getLeftSplit();
^
target Executable: erase_image (/home/eabz/cm12/out/target/product/e5lte/obj/RECOVERY_EXECUTABLES/erase_image_intermediates/LINKED/erase_image)
make: *** [/home/eabz/cm12/out/target/product/e5lte/obj/STATIC_LIBRARIES/libminui_intermediates/graphics_overlay.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/eabz/cm12/out/target/product/e5lte/obj/SHARED_LIBRARIES/libminuitwrp_intermediates/graphics_overlay.o] Error 1
If someone knows how to fix?
Click to expand...
Click to collapse
Enrique change TW_NEW_ION_HEAP to Flag to false ??

Error when trying to build

I am having a problem building MoKee ROM for the asus zenfone 2 Z00A.
This is what I get:
Code:
target C++: libhealthd.mofd_v1 <= device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp: In function 'int mapBatteryStatusString(const char*)':
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:26:12: error: 'HEALTHD_MAP_CONTINUE_SEARCH' was not declared in this scope
return HEALTHD_MAP_CONTINUE_SEARCH;
^
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp: In function 'int mapChargeTypeString(const char*)':
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:32:16: error: 'BATTERY_CHARGE_TYPE_FAST_CHARGING' is not a member of 'android'
return android::BATTERY_CHARGE_TYPE_FAST_CHARGING;
^
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:34:16: error: 'BATTERY_CHARGE_TYPE_UNKNOWN' is not a member of 'android'
return android::BATTERY_CHARGE_TYPE_UNKNOWN;
^
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp: In function 'void healthd_board_init(healthd_config*)':
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:39:13: error: 'struct healthd_config' has no member named 'batteryChargeTypePath'
config->batteryChargeTypePath = "/sys/class/power_supply/battery/status";
^
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:40:13: error: 'struct healthd_config' has no member named 'mapBatteryStatusString'
config->mapBatteryStatusString = mapBatteryStatusString;
^
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:41:13: error: 'struct healthd_config' has no member named 'mapChargeTypeString'
config->mapChargeTypeString = mapChargeTypeString;
hint: I am new to building.

Categories

Resources