Help regarding compiling Omnirom for CM source for htc msm8960. - Omni Q&A

I am trying to compile Omni for Ville but I am not able to over come the following hurdle. Can some one suggest me where I missed something. This is what I get.
target thumb C: mkexfatfs <= bootable/recovery/exfat/mkfs/uctc.c
target thumb C: mkexfatfs <= bootable/recovery/exfat/mkfs/vbr.c
make: *** No rule to make target '/home/ace/android/omni/out/target/product/ville/system/lib/libcryptfslollipop.so', needed by '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libbmlutils_intermediates/teamwin'. Stop.
make: *** Waiting for unfinished jobs....
target StaticLib: libfusetwrp (/home/ace/android/omni/out/target/product/ville/obj/STATIC_LIBRARIES/libfusetwrp_intermediates/libfusetwrp.a)
real 2m23.315s
user 2m48.614s
sys 2m2.250s
[email protected]:~/android/omni$
Click to expand...
Click to collapse

letsurock said:
I am trying to compile Omni for Ville but I am not able to over come the following hurdle. Can some one suggest me where I missed something. This is what I get.
Click to expand...
Click to collapse
Set TW_INCLUDE_CRYPTO := false for now, Dees-Troy added a commit to use that .so but did not include it in the prebuilts. I have not found the file anywhere on the net.

ktoonsez said:
Set TW_INCLUDE_CRYPTO := false for now, Dees-Troy added a commit to use that .so but did not include it in the prebuilts. I have not found the file anywhere on the net.
Click to expand...
Click to collapse
Thanks:good: it did the trick, but now I have this problem.
Notice file: external/scrypt/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libscrypt_static.a.txt
make: *** No rule to make target '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libqcci_legacy_intermediates/export_includes', needed by '/home/ace/android/omni/out/target/product/ville/obj/EXECUTABLES/wcnss_service_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: system/extras/f2fs_utils/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libf2fs_sparseblock.so.txt
real 4m51.854s
user 4m14.897s
Click to expand...
Click to collapse

Tried to recompile and that error disappreared. Now, this problem.
target thumb C: amix <= hardware/qcom/audio/legacy/libalsa-intf/amix.c
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:33:23: fatal error: sound/tlv.h: No such file or directory
#include <sound/tlv.h>
^
compilation terminated.
build/core/binary.mk:698: recipe for target '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o' failed
make: *** [/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse

letsurock said:
Tried to recompile and that error disappreared. Now, this problem.
Click to expand...
Click to collapse
You got some problems in your device tree, as the error says you missing a header file, nothing to do with recovery though

ktoonsez said:
You got some problems in your device tree, as the error says you missing a header file, nothing to do with recovery though
Click to expand...
Click to collapse
Will look at it at this weekend. Thanks for your advices.

Ok, dug deeper on the crypto part and found that there is a config that needs changing:
Change this:
TW_INCLUDE_CRYPTO
To this:
TW_INCLUDE_L_CRYPTO

Something with Wifi?
Can some one guide me to overcome this error?
Import includes file: /home/ace/android/omni/out/target/product/ville/obj/EXECUTABLES/dumpstate_intermediates/import_includes
target thumb C: libdumpstate.default <= frameworks/native/cmds/dumpstate/libdumpstate_default.c
target thumb C++: dumpsys <= frameworks/native/cmds/dumpsys/dumpsys.cpp
target thumb C: mount.exfat <= external/exfat/main.c
target thumb C: gzip <= external/zlib/src/test/minigzip.c
make: *** No rule to make target '/home/ace/android/omni/out/target/product/ville/obj/STATIC_LIBRARIES/lib_driver_cmd_qcwcn_intermediates/export_includes', needed by '/home/ace/android/omni/out/target/product/ville/obj/EXECUTABLES/hostapd_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
real 25m14.641s
user 65m59.889s
sys 18m12.959s
Click to expand...
Click to collapse
Thank you.

letsurock said:
Thanks:good: it did the trick, but now I have this problem.
Click to expand...
Click to collapse
Quote:
Notice file: external/scrypt/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libscrypt_static.a.txt
make: *** No rule to make target '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libqcci_legacy_intermediates/export_includes', needed by '/home/ace/android/omni/out/target/product/ville/obj/EXECUTABLES/wcnss_service_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: system/extras/f2fs_utils/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libf2fs_sparseblock.so.txt
got the same error , someone fix it ????
i build for lg msm8226 device.
Thx in advance..............

shoxxy said:
Quote:
Notice file: external/scrypt/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libscrypt_static.a.txt
make: *** No rule to make target '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libqcci_legacy_intermediates/export_includes', needed by '/home/ace/android/omni/out/target/product/ville/obj/EXECUTABLES/wcnss_service_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: system/extras/f2fs_utils/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libf2fs_sparseblock.so.txt
got the same error , someone fix it ????
i build for lg msm8226 device.
Thx in advance..............
Click to expand...
Click to collapse
No, not yet fixed.

letsurock said:
No, not yet fixed.
Click to expand...
Click to collapse
Thx for reply.................
set
TARGET_USES_QCOM_WCNSS_QMI := true
to false or remove it , works for me but i dont know if its used by your device. saw this ijn a opo repo, and tryed it out

shoxxy said:
Thx for reply.................
set
TARGET_USES_QCOM_WCNSS_QMI := true
to false or remove it , works for me but i dont know if its used by your device. saw this ijn a opo repo, and tryed it out
Click to expand...
Click to collapse
Thanks it worked.
But now I have this problem
frameworks/base/core/jni/android_view_Surface.cpp: In function 'void android::nativeSetDirtyRect(JNIEnv*, jclass, jlong, jobject)':
frameworks/base/core/jni/android_view_Surface.cpp:206:14: error: 'class android::Surface' has no member named 'setDirtyRect'
surface->setDirtyRect(&rect);
^
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_view_InputChannel.cpp
build/core/binary.mk:618: recipe for target '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_view_Surface.o' failed
make: *** [/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_view_Surface.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse

It wants CAF code not yet implimented in OmniROM it seems, you're building for 5.0?
Edit: You're for sure using CM12 as a base, dirtyrect is a hallmark of 'MSM8960', Repo sync CM12 or just the surface.cpp file and diff it against Omni to add the needed support.
As someone who built for moto_MSM8960 which is basically the same thing; expect to have to change a LOT in Omni source in order to achieve that compatibility
Edit: You could also try to specify 'legacy' instead of 'caf' in your configurations too..

Thanks:good:

ktoonsez said:
You got some problems in your device tree, as the error says you missing a header file, nothing to do with recovery though
Click to expand...
Click to collapse
Hey @ktoonsez,
I'm currently working through the the same set of issues trying to build Lollipop Omni on the motorola mb886, which is also msm8960 based in this thread
and I'm kinda stuck.
I initially got the Surface.cpp errors outlined later in this thread. Just tweaked that one file to match the Cyanogenmod source (commit here) based on what @Tqr said.
Now I'm also dealing with the sound/tlv.h fatal error. I'm not really sure where exactly I could go in the device tree to start debugging this? My device source that I'm working with is here.
A tlv.h header file exists in my ~/omni2/kernel/motorola/msm8960-common/include/sound directory, which is the same place it did for cm12 which built fine.

ssuds said:
Hey @ktoonsez,
I'm currently working through the the same set of issues trying to build Lollipop Omni on the motorola mb886, which is also msm8960 based in this thread
and I'm kinda stuck.
I initially got the Surface.cpp errors outlined later in this thread. Just tweaked that one file to match the Cyanogenmod source (commit here) based on what @Tqr said.
Now I'm also dealing with the sound/tlv.h fatal error. I'm not really sure where exactly I could go in the device tree to start debugging this? My device source that I'm working with is here.
A tlv.h header file exists in my ~/omni2/kernel/motorola/msm8960-common/include/sound directory, which is the same place it did for cm12 which built fine.
Click to expand...
Click to collapse
Please give me your full error log, off-hand I want to say this is an issue in GCCprebuilts where two lines of code must be removed for some reason
Edit: You have a MSM8960 based device, It's most likely an error in prebuilts

Tqr said:
Please give me your full error log, off-hand I want to say this is an issue in GCCprebuilts where two lines of code must be removed for some reason
Edit: You have a MSM8960 based device, It's most likely an error in prebuilts
Click to expand...
Click to collapse
Gotcha, below is the error, hopefully this is what you wanted. Also, was I on the right track with that change in the android_view_Surface.cpp?
Thanks!
ssuds said:
Edit2: now it builds further but breaks on an audio blob
Code:
target thumb C: libalsa-intf <= hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c
hardware/qcom/audio/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/shreyas/omni2/out/target/product/mb886/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_avail':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:401: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/legacy/libalsa-intf/alsa_pcm.c:401:9: warning: format '%d' expects argument of type 'int', but argument 6 has type 'snd_pcm_uframes_t' [-Wformat=]
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'dst_address':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:467:22: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
return pcm->addr + pcm_offset;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'mmap_transfer':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:471:57: warning: unused parameter 'offset' [-Wunused-parameter]
int mmap_transfer(struct pcm *pcm, void *data, unsigned offset,
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'mmap_transfer_capture':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:505:26: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
src_addr = pcm->addr + pcm_offset;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:492:65: warning: unused parameter 'offset' [-Wunused-parameter]
int mmap_transfer_capture(struct pcm *pcm, void *data, unsigned offset,
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_write_mmap':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:555:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((bytes_written >= pcm->sw_p->start_threshold) && (!pcm->start)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:526:50: warning: unused parameter 'data' [-Wunused-parameter]
static int pcm_write_mmap(struct pcm *pcm, void *data, unsigned count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'enable_timer':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:668:8: warning: return makes integer from pointer without a cast [enabled by default]
return &bad_pcm;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:697:11: warning: return makes integer from pointer without a cast [enabled by default]
return &bad_pcm;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_open':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:780:9: warning: return makes pointer from integer without a cast [enabled by default]
return -EINVAL;
^
real 25m34.029s
user 66m21.505s
sys 16m39.325s
[email protected]:~/omni2$
tlv.h exists in my ~/omni2/kernel/motorola/msm8960-common/include/sound directory, same place it did for cm12 which built fine.
Edit3: Think I'm getting closer... Now I'm getting this
Code:
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_view_TextureView.cpp
frameworks/base/core/jni/android_view_Surface.cpp: In function 'void android::nativeSetDirtyRect(JNIEnv*, jclass, jlong, jobject)':
frameworks/base/core/jni/android_view_Surface.cpp:206:14: error: 'class android::Surface' has no member named 'setDirtyRect'
surface->setDirtyRect(&rect);
^
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_view_Surface.o] Error 1
make: *** Waiting for unfinished jobs....
real 4m8.158s
user 4m55.351s
sys 2m13.800s
[email protected]:~/omni2$
Edit4: Found some very relevant stuff in this thread: http://forum.xda-developers.com/omni/general/help-regarding-compiling-omnirom-cm-t2964759/page2
Edit5: Tweaked the surface.cpp as that thread recommended, see https://github.com/ssuds/android_frameworks_base/commit/84c26243dcfcba9aee824dfddd11b2a3405c006b
Now the tlv.h: No such file or directory error is back:
Code:
target thumb C: libalsa-intf <= hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c
target Prebuilt: am (/home/shreyas/omni2/out/target/product/mb886/obj/EXECUTABLES/am_intermediates/am)
hardware/qcom/audio/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/shreyas/omni2/out/target/product/mb886/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o] Error 1
make: *** Waiting for unfinished jobs....
Notice file: frameworks/base/cmds/am/NOTICE -- /home/shreyas/omni2/out/target/product/mb886/obj/NOTICE_FILES/src//system/bin/am.txt
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_identifier':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:77:43: warning: unused parameter 'fmt' [-Wunused-parameter]
char *snd_use_case_identifier(const char *fmt, ...)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_free_list':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:89: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/legacy/libalsa-intf/alsa_ucm.c:89:52: warning: unused parameter 'items' [-Wunused-parameter]
int snd_use_case_free_list(const char *list[], int items)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_get_list':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:132:15: warning: assignment from incompatible pointer type [enabled by default]
*list = (char ***)uc_mgr->card_ctxt_ptr->verb_list;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:156:15: warning: assignment from incompatible pointer type [enabled by default]
*list = verb_list[verb_index].device_list;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:180:15: warning: assignment from incompatible pointer type [enabled by default]
*list = verb_list[verb_index].modifier_list;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_apply_mixer_controls':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:792:65: warning: comparison between pointer and integer [enabled by default]
(check_devices_for_voice_call(uc_mgr, use_case) != NULL))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_mgr_reload':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:1986:49: warning: unused parameter 'uc_mgr' [-Wunused-parameter]
int snd_use_case_mgr_reload(snd_use_case_mgr_t *uc_mgr) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'print_list':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:3102:47: warning: unused parameter 'verb_index' [-Wunused-parameter]
static int print_list(card_mctrl_t *list, int verb_index, int count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_ucm_parse_section':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:3303:13: warning: format '%d' expects a matching 'int' argument [-Wformat=]
ALOGV("Effects mixer ctl: %s: %d\n", list->effects_mixer_ctl);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'free_list':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:3597:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mindex < list[case_index].ena_mixer_list[index].value;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:3615:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mindex < list[case_index].dis_mixer_list[index].value;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:3583:40: warning: unused parameter 'verb_index' [-Wunused-parameter]
void free_list(card_mctrl_t *list, int verb_index, int count)
^
real 12m37.998s
user 27m33.618s
sys 6m41.232s
[email protected]:~/omni2$
Click to expand...
Click to collapse

ssuds said:
Gotcha, below is the error, hopefully this is what you wanted. Also, was I on the right track with that change in the android_view_Surface.cpp?
Thanks!
Click to expand...
Click to collapse
sound/tlv.h may be specified in more than one location; you only need a single tlv.h make sure there is not another one causing conflict
Edit: Yes you were on the right track chanigng surface.cpp
It's exactly like smali editing in some regards, and you're really close to building it

Tqr said:
sound/tlv.h may be specified in more than one location; you only need a single tlv.h make sure there is not another one causing conflict
Edit: Yes you were on the right track chanigng surface.cpp
It's exactly like smali editing in some regards, and you're really close to building it
Click to expand...
Click to collapse
Awesome, thanks and that's great to hear that I'm getting close.
So if I'm understanding you correctly, I would be safe in just removing the 'include tlv.h' line in alsa_mixer.c? It's kinda curious that it didn't cause any conflicts while compiling CM12 vs Omni, but I guess the source might be different enough to cause conflicts?
EDIT: It initially looked like removing the 'include tlv.h' line let me get past that, I then ran into
Code:
DumpPublicKey: /home/shreyas/omni2/out/target/product/mb886/obj/PACKAGING/ota_keys_intermediates/keys <= build/target/product/security/testkey.x509.pem
java -jar /home/shreyas/omni2/out/host/linux-x86/framework/dumpkey.jar build/target/product/security/testkey.x509.pem > /home/shreyas/omni2/out/target/product/mb886/obj/PACKAGING/ota_keys_intermediates/keys
device/motorola/msm8960_jbbl-common/sepolicy/sysinit.te:2:ERROR 'unknown type userinit_exec' at token ';' on line 18238:
#line 1 "device/motorola/msm8960_jbbl-common/sepolicy/sysinit.te"
allow sysinit userinit_exec:file { getattr execute read open execute_no_trans };
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Error 1
make: *** Waiting for unfinished jobs....
target StaticLib: libc (/home/shreyas/omni2/out/target/product/mb886/obj/STATIC_LIBRARIES/libc_intermediates/libc.a)
target StaticLib: libc_nomalloc (/home/shreyas/omni2/out/target/product/mb886/obj/STATIC_LIBRARIES/libc_nomalloc_intermediates/libc_nomalloc.a)
real 3m19.468s
user 1m34.553s
sys 1m0.526s
[email protected]:~/omni2$
The code in sysinit.te is:
Code:
allow sysinit userinit_exec:file { getattr execute read open execute_no_trans };
allow sysinit property_socket:sock_file write;
allow sysinit system_data_file:file { open };
allow sysinit init:unix_stream_socket connectto;
allow sysinit sysfs:file write;
I just deleted out the first line referring to sysinit userinit_exec
Tried the build again, at which point seems like everything broke on the libalsa-intf stuff:
Code:
Install: /home/shreyas/omni2/out/target/product/mb886/system/bin/am
Import includes file: /home/shreyas/omni2/out/target/product/mb886/obj/EXECUTABLES/amix_intermediates/import_includes
target thumb C: aplay <= hardware/qcom/audio/legacy/libalsa-intf/aplay.c
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_dump':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:240:9: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
ALOGV("%4d %5s %3d %3d %3d %3d %c%c%c%c%c%c%c%c%c %-6s %8d %s",
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_read_tlv':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:345:14: error: 'SNDRV_CTL_TLVT_DB_SCALE' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_SCALE: {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:345:14: note: each undeclared identifier is reported only once for each function it appears in
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:368:14: error: 'SNDRV_CTL_TLVT_DB_LINEAR' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_LINEAR: {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_get':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:403:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:409:5: warning: passing argument 5 of 'mixer_ctl_read_tlv' from incompatible pointer type [enabled by default]
mixer_ctl_read_tlv(ctl, tlv, &min, &max, &tlv_type);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:311:5: note: expected 'unsigned int *' but argument is of type 'unsigned int **'
int mixer_ctl_read_tlv(struct mixer_ctl *ctl,
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_mulvalues':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:488:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:488:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_set':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:537:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:544:18: error: 'SNDRV_CTL_TLVT_DB_LINEAR' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_LINEAR:
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:53: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:31: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:552:17: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=]
ALOGV("tlv db linear: %d %d %d\n", percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:552:17: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:53: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:31: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'set_volume_simple':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:645:5: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat=]
ALOGV("val = %x", val);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:651:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:651:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_set_value':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:701:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:707:13: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat=]
ALOGV("min = %x max = %x", min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:707:13: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long int' [-Wformat=]
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:44:8: warning: type defaults to 'int' in declaration of 'pcm_flag' [-Wimplicit-int]
static pcm_flag = 1;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:45:8: warning: type defaults to 'int' in declaration of 'debug' [-Wimplicit-int]
static debug = 0;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c: In function 'play_file':
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:196:5: warning: passing argument 2 of 'pcm_open' discards 'const' qualifier from pointer target type [enabled by default]
pcm = pcm_open(flags, device);
^
In file included from hardware/qcom/audio/legacy/libalsa-intf/aplay.c:30:0:
hardware/qcom/audio/legacy/libalsa-intf/alsa_audio.h:137:13: note: expected 'char *' but argument is of type 'const char *'
struct pcm *pcm_open(unsigned flags, char *device);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:197:13: warning: ordered comparison of pointer with integer zero [-Wextra]
if (pcm < 0)
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:198:9: warning: return makes integer from pointer without a cast [enabled by default]
return pcm;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:312:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (avail < pcm->sw_p->avail_min) {
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:324:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'u_int8_t *' [-Wformat=]
fprintf(stderr, "dst_addr = 0x%08x\n", dst_addr);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:325:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
fprintf(stderr, "Aplay:avail = %d frames = %d\n",avail, frames);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:325:18: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:339:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize) {
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:444:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize)
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:461:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize)
^
real 6m36.672s
user 15m25.977s
sys 2m42.391s
[email protected]:~/omni2$
I'm not really sure where to go from here... So far I've just deleted out those two lines (one in tlv.h and one in sysinit.te), but with so much stuff seemingly broken here I don't even know where to start

ssuds said:
Awesome, thanks and that's great to hear that I'm getting close.
So if I'm understanding you correctly, I would be safe in just removing the 'include tlv.h' line in alsa_mixer.c? It's kinda curious that it didn't cause any conflicts while compiling CM12 vs Omni, but I guess the source might be different enough to cause conflicts?
EDIT: It initially looked like removing the 'include tlv.h' line let me get past that, I then ran into
Code:
DumpPublicKey: /home/shreyas/omni2/out/target/product/mb886/obj/PACKAGING/ota_keys_intermediates/keys <= build/target/product/security/testkey.x509.pem
java -jar /home/shreyas/omni2/out/host/linux-x86/framework/dumpkey.jar build/target/product/security/testkey.x509.pem > /home/shreyas/omni2/out/target/product/mb886/obj/PACKAGING/ota_keys_intermediates/keys
device/motorola/msm8960_jbbl-common/sepolicy/sysinit.te:2:ERROR 'unknown type userinit_exec' at token ';' on line 18238:
#line 1 "device/motorola/msm8960_jbbl-common/sepolicy/sysinit.te"
allow sysinit userinit_exec:file { getattr execute read open execute_no_trans };
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Error 1
make: *** Waiting for unfinished jobs....
target StaticLib: libc (/home/shreyas/omni2/out/target/product/mb886/obj/STATIC_LIBRARIES/libc_intermediates/libc.a)
target StaticLib: libc_nomalloc (/home/shreyas/omni2/out/target/product/mb886/obj/STATIC_LIBRARIES/libc_nomalloc_intermediates/libc_nomalloc.a)
real 3m19.468s
user 1m34.553s
sys 1m0.526s
[email protected]:~/omni2$
The code in sysinit.te is:
Code:
allow sysinit userinit_exec:file { getattr execute read open execute_no_trans };
allow sysinit property_socket:sock_file write;
allow sysinit system_data_file:file { open };
allow sysinit init:unix_stream_socket connectto;
allow sysinit sysfs:file write;
I just deleted out the first line referring to sysinit userinit_exec
Tried the build again, at which point seems like everything broke on the libalsa-intf stuff:
Code:
Install: /home/shreyas/omni2/out/target/product/mb886/system/bin/am
Import includes file: /home/shreyas/omni2/out/target/product/mb886/obj/EXECUTABLES/amix_intermediates/import_includes
target thumb C: aplay <= hardware/qcom/audio/legacy/libalsa-intf/aplay.c
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_dump':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:240:9: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
ALOGV("%4d %5s %3d %3d %3d %3d %c%c%c%c%c%c%c%c%c %-6s %8d %s",
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_read_tlv':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:345:14: error: 'SNDRV_CTL_TLVT_DB_SCALE' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_SCALE: {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:345:14: note: each undeclared identifier is reported only once for each function it appears in
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:368:14: error: 'SNDRV_CTL_TLVT_DB_LINEAR' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_LINEAR: {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_get':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:403:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:409:5: warning: passing argument 5 of 'mixer_ctl_read_tlv' from incompatible pointer type [enabled by default]
mixer_ctl_read_tlv(ctl, tlv, &min, &max, &tlv_type);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:311:5: note: expected 'unsigned int *' but argument is of type 'unsigned int **'
int mixer_ctl_read_tlv(struct mixer_ctl *ctl,
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_mulvalues':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:488:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:488:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_set':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:537:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:544:18: error: 'SNDRV_CTL_TLVT_DB_LINEAR' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_LINEAR:
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:53: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:31: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:552:17: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=]
ALOGV("tlv db linear: %d %d %d\n", percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:552:17: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:53: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:31: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'set_volume_simple':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:645:5: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat=]
ALOGV("val = %x", val);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:651:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:651:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_set_value':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:701:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:707:13: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat=]
ALOGV("min = %x max = %x", min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:707:13: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long int' [-Wformat=]
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:44:8: warning: type defaults to 'int' in declaration of 'pcm_flag' [-Wimplicit-int]
static pcm_flag = 1;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:45:8: warning: type defaults to 'int' in declaration of 'debug' [-Wimplicit-int]
static debug = 0;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c: In function 'play_file':
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:196:5: warning: passing argument 2 of 'pcm_open' discards 'const' qualifier from pointer target type [enabled by default]
pcm = pcm_open(flags, device);
^
In file included from hardware/qcom/audio/legacy/libalsa-intf/aplay.c:30:0:
hardware/qcom/audio/legacy/libalsa-intf/alsa_audio.h:137:13: note: expected 'char *' but argument is of type 'const char *'
struct pcm *pcm_open(unsigned flags, char *device);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:197:13: warning: ordered comparison of pointer with integer zero [-Wextra]
if (pcm < 0)
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:198:9: warning: return makes integer from pointer without a cast [enabled by default]
return pcm;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:312:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (avail < pcm->sw_p->avail_min) {
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:324:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'u_int8_t *' [-Wformat=]
fprintf(stderr, "dst_addr = 0x%08x\n", dst_addr);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:325:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
fprintf(stderr, "Aplay:avail = %d frames = %d\n",avail, frames);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:325:18: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:339:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize) {
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:444:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize)
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:461:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize)
^
real 6m36.672s
user 15m25.977s
sys 2m42.391s
[email protected]:~/omni2$
I'm not really sure where to go from here... So far I've just deleted out those two lines (one in tlv.h and one in sysinit.te), but with so much stuff seemingly broken here I don't even know where to start
Click to expand...
Click to collapse
Hey man, Do you remeber how do you get that problem solved? Iam currently trying to build SimpleAosp for the HTC One S (ville), also a msm8960 device
I got the exact same error after removing the 'include tlv.h' line in alsa_mixer.c..

Related

Building ICS AOSP!

So i have synced the sources n device related files from github.
All is good here!
now when i make -j1 otapackage it shows me this.
Code:
build/core/Makefile:25: warning: overriding commands for target `out/target/product/p500/obj/lib/libril.so'
build/core/dynamic_binary.mk:112: warning: ignoring old commands for target `out/target/product/p500/obj/lib/libril.so'
build/core/Makefile:25: warning: overriding commands for target `out/target/product/p500/system/lib/libril.so'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/p500/system/lib/libril.so'
No private recovery resources for TARGET_DEVICE p500
Header: out/target/product/p500/obj/include/libloc_api-rpc/inc/loc_api_cb.h
Header: out/target/product/p500/obj/include/libloc_api-rpc/inc/loc_api_common.h
Header: out/target/product/p500/obj/include/libloc_api-rpc/inc/loc_api.h
Header: out/target/product/p500/obj/include/libloc_api-rpc/inc/loc_api_fixup.h
Header: out/target/product/p500/obj/include/libloc_api-rpc/inc/loc_apicb_appinit.h
Header: out/target/product/p500/obj/include/libloc_api-rpc/inc/debug.h
Header: out/target/product/p500/obj/include/libloc_api-rpc/inc/loc_api_rpc_glue.h
Header: out/target/product/p500/obj/include/libloc_api-rpc/inc/loc_api_sync_call.h
target thumb C++: audio.primary.msm7x27 <= device/lge/msm7x27-common/libaudio/AudioHardware.cpp
In file included from device/lge/msm7x27-common/libaudio/AudioHardware.cpp:39:
device/lge/msm7x27-common/libaudio/AudioHardware.h:31:39: error: linux/msm_audio_voicememo.h: No such file or directory
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:186: error: 'SND_AVC_CTL' was not declared in this scope
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:187: error: 'SND_AGC_CTL' was not declared in this scope
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In function 'int android_audio_legacy::msm72xx_enable_postproc(bool)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:908: warning: comparison between signed and unsigned integer expressions
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:913: warning: comparison between signed and unsigned integer expressions
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:918: warning: comparison between signed and unsigned integer expressions
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:943: error: 'AUDIO_SET_MBADRC' was not declared in this scope
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1121: warning: comparison between signed and unsigned integer expressions
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1121: warning: comparison between signed and unsigned integer expressions
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1314: warning: comparison between signed and unsigned integer expressions
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1317: warning: comparison between signed and unsigned integer expressions
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::set(android_audio_legacy::AudioHardware*, uint32_t, int*, uint32_t*, uint32_t*, android_audio_legacy::AudioSystem::audio_in_acoustics)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1675: error: aggregate 'android_audio_legacy::msm_audio_voicememo_config gcfg' has incomplete type and cannot be defined
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::read(void*, ssize_t)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1954: warning: format '%d' expects type 'int', but argument 4 has type 'ssize_t'
make: *** [out/target/product/p500/obj/SHARED_LIBRARIES/audio.primary.msm7x27_intermediates/AudioHardware.o] Error 1
What is the prob n how to fix it?
Thnx

[CM11][UNOFFICIAL][GIT BUILDS]Help and troubleshooting CM-11.0

I started this thread as a addition to this thread: [GUIDE CM11] How to build your own CyanogenMod 11.0 ROM from sources for the Nexus 4.
Since that thread should focus on build issues and not general help and troubleshooting with the ROM i thought we could take i here.
Discuss glitches, errors, solutions and general tips and tricks to get our CM11 powered mako into tiptop working condition.
First order of business:
The glitches that flicker all over the screen on builds made yesterday. Any one else experiencing this? Any one found out whats causing it?
I get the screen glitch too but that doesn't make it unusable.
I'm also running into an issue causing people not hearing me and me not hearing anything during calls. It happens every time so it's basically unusable as a phone (still not a big deal since I text a lot more than I call).
These happen on a self build from monday, but it started several days before with the same build.
Today I tried building again and I get this error :
Code:
target thumb C++: libOmxVenc <= hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp
In file included from hardware/qcom/media/mm-video-legacy/vidc/venc/inc/omx_video_encoder.h:32:0,
from hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:34:
hardware/qcom/media/mm-video-legacy/vidc/venc/inc/omx_video_base.h:76:0: warning: "LOG_TAG" redefined [enabled by default]
In file included from system/core/include/cutils/log.h:1:0,
from system/core/include/utils/Vector.h:24,
from frameworks/native/include/binder/IBinder.h:23,
from frameworks/native/include/binder/Binder.h:20,
from frameworks/native/include/binder/IInterface.h:21,
from frameworks/native/include/binder/IMemory.h:26,
from frameworks/native/include/binder/MemoryHeapBase.h:23,
from hardware/qcom/media/mm-video-legacy/vidc/venc/inc/omx_video_base.h:48,
from hardware/qcom/media/mm-video-legacy/vidc/venc/inc/omx_video_encoder.h:32,
from hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:34:
system/core/include/log/log.h:68:0: note: this is the location of the previous definition
Protoc: /home/danelkouby/android/system/out/target/product/mako/obj/STATIC_LIBRARIES/libwebrtc_apm_intermediates/proto/external/webrtc/src/modules/audio_processing/debug.pb.cc <= external/webrtc/src/modules/audio_processing/debug.proto
target Prebuilt: CMUpdater (/home/danelkouby/android/system/out/target/common/obj/JAVA_LIBRARIES/dashclockapi_intermediates/classes.jar)
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_open(OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:206:28: warning: deprecated conversion from string constant to 'OMX_STRING {aka char*}' [-Wwrite-strings]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:210:19: warning: deprecated conversion from string constant to 'OMX_STRING {aka char*}' [-Wwrite-strings]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_get_seq_hdr(void*, unsigned int, unsigned int*)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:495:5: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'unsigned char*' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:495:5: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:495:5: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int' [-Wformat]
Protoc: /home/danelkouby/android/system/out/target/product/mako/obj/STATIC_LIBRARIES/libwebrtc_apm_intermediates/proto/external/webrtc/src/modules/audio_processing/test/unittest.pb.cc <= external/webrtc/src/modules/audio_processing/test/unittest.proto
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_param(void*, OMX_INDEXTYPE)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:630:13: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:630:13: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:986:10: warning: format '%d' expects argument of type 'int', but argument 4 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:960:3: warning: case value '2130706437' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:972:3: warning: case value '2130706463' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:992:3: warning: case value '2130706474' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1004:3: warning: case value '2130706475' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_config(void*, OMX_INDEXTYPE)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1078:3: warning: case value '2130706439' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'OMX_U32 venc_dev::pmem_allocate(OMX_U32, OMX_U32, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1362:3: warning: format '%d' expects argument of type 'int', but argument 7 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_use_buf(void*, unsigned int, unsigned int)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::sz' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::fd' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::offset' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::maped_size' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::filled_len' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::maxcount' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::actualcount' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::datasize' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::suffixsize' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::alignment' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::bufpoolid' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_free_buf(void*, unsigned int)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::sz' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::fd' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::offset' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::maped_size' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::filled_len' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_slice_delivery_mode(OMX_BOOL)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1775:5: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_profile_level(OMX_U32, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2058:7: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_intra_period(OMX_U32, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2151:3: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2151:3: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_entropy_config(OMX_BOOL, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2175:17: error: 'struct venc_entropycfg' has no member named 'longentropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2195:17: error: 'struct venc_entropycfg' has no member named 'longentropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2209:11: error: 'struct venc_entropycfg' has no member named 'longentropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2209:40: error: 'struct venc_entropycfg' has no member named 'longentropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_intra_refresh(OMX_VIDEO_INTRAREFRESHTYPE, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2267:5: warning: format '%d' expects argument of type 'int', but argument 4 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_validate_profile_level(OMX_U32*, OMX_U32*)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2880:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2882:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2884:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_max_allowed_bitrate_check(OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2932:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2953:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2965:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2975:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
build/core/binary.mk:432: recipe for target '/home/danelkouby/android/system/out/target/product/mako/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/src/video_encoder_device.o' failed
Streetwalker said:
Today I tried building again and I get this error
Click to expand...
Click to collapse
Same here!
Likely not your error
Code:
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2175:17: error: 'struct venc_entropycfg' has no member named 'longentropysel'
The Screen flickering keeps me from using CM11 already, maybe it takes some time until it is fully usable.
Greetings,
I'm running the latest CM 10.2 nightly on my Nexus 4, everything works fine.
Can I simply flash the latest CM 11 over it?
Thanks.
diehard2013 said:
Greetings,
I'm running the latest CM 10.2 nightly on my Nexus 4, everything works fine.
Can I simply flash the latest CM 11 over it?
Thanks.
Click to expand...
Click to collapse
Yes, but be aware that not every CM specific function is implemented yet. And also there is serveral bugs, like the screen flicker and no audio during call.
The audio bug can be fixed as Raum1807 describes here:
http://forum.xda-developers.com/showpost.php?p=47871899&postcount=219
Streetwalker said:
I get the screen glitch too but that doesn't make it unusable.
I'm also running into an issue causing people not hearing me and me not hearing anything during calls. It happens every time so it's basically unusable as a phone (still not a big deal since I text a lot more than I call).
These happen on a self build from monday, but it started several days before with the same build.
Today I tried building again and I get this error :
Code:
target thumb C++: libOmxVenc <= hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp
In file included from hardware/qcom/media/mm-video-legacy/vidc/venc/inc/omx_video_encoder.h:32:0,
from hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:34:
hardware/qcom/media/mm-video-legacy/vidc/venc/inc/omx_video_base.h:76:0: warning: "LOG_TAG" redefined [enabled by default]
In file included from system/core/include/cutils/log.h:1:0,
from system/core/include/utils/Vector.h:24,
from frameworks/native/include/binder/IBinder.h:23,
from frameworks/native/include/binder/Binder.h:20,
from frameworks/native/include/binder/IInterface.h:21,
from frameworks/native/include/binder/IMemory.h:26,
from frameworks/native/include/binder/MemoryHeapBase.h:23,
from hardware/qcom/media/mm-video-legacy/vidc/venc/inc/omx_video_base.h:48,
from hardware/qcom/media/mm-video-legacy/vidc/venc/inc/omx_video_encoder.h:32,
from hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:34:
system/core/include/log/log.h:68:0: note: this is the location of the previous definition
Protoc: /home/danelkouby/android/system/out/target/product/mako/obj/STATIC_LIBRARIES/libwebrtc_apm_intermediates/proto/external/webrtc/src/modules/audio_processing/debug.pb.cc <= external/webrtc/src/modules/audio_processing/debug.proto
target Prebuilt: CMUpdater (/home/danelkouby/android/system/out/target/common/obj/JAVA_LIBRARIES/dashclockapi_intermediates/classes.jar)
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_open(OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:206:28: warning: deprecated conversion from string constant to 'OMX_STRING {aka char*}' [-Wwrite-strings]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:210:19: warning: deprecated conversion from string constant to 'OMX_STRING {aka char*}' [-Wwrite-strings]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_get_seq_hdr(void*, unsigned int, unsigned int*)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:495:5: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'unsigned char*' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:495:5: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:495:5: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int' [-Wformat]
Protoc: /home/danelkouby/android/system/out/target/product/mako/obj/STATIC_LIBRARIES/libwebrtc_apm_intermediates/proto/external/webrtc/src/modules/audio_processing/test/unittest.pb.cc <= external/webrtc/src/modules/audio_processing/test/unittest.proto
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_param(void*, OMX_INDEXTYPE)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:630:13: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:630:13: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:986:10: warning: format '%d' expects argument of type 'int', but argument 4 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:960:3: warning: case value '2130706437' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:972:3: warning: case value '2130706463' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:992:3: warning: case value '2130706474' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1004:3: warning: case value '2130706475' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_config(void*, OMX_INDEXTYPE)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1078:3: warning: case value '2130706439' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'OMX_U32 venc_dev::pmem_allocate(OMX_U32, OMX_U32, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1362:3: warning: format '%d' expects argument of type 'int', but argument 7 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_use_buf(void*, unsigned int, unsigned int)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::sz' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::fd' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::offset' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::maped_size' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::filled_len' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::maxcount' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::actualcount' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::datasize' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::suffixsize' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::alignment' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::bufpoolid' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_free_buf(void*, unsigned int)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::sz' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::fd' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::offset' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::maped_size' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::filled_len' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_slice_delivery_mode(OMX_BOOL)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1775:5: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_profile_level(OMX_U32, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2058:7: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_intra_period(OMX_U32, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2151:3: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2151:3: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_entropy_config(OMX_BOOL, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2175:17: error: 'struct venc_entropycfg' has no member named 'longentropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2195:17: error: 'struct venc_entropycfg' has no member named 'longentropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2209:11: error: 'struct venc_entropycfg' has no member named 'longentropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2209:40: error: 'struct venc_entropycfg' has no member named 'longentropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_intra_refresh(OMX_VIDEO_INTRAREFRESHTYPE, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2267:5: warning: format '%d' expects argument of type 'int', but argument 4 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_validate_profile_level(OMX_U32*, OMX_U32*)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2880:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2882:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2884:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_max_allowed_bitrate_check(OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2932:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2953:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2965:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2975:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
build/core/binary.mk:432: recipe for target '/home/danelkouby/android/system/out/target/product/mako/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/src/video_encoder_device.o' failed
Click to expand...
Click to collapse
Please post build errors in this thread: http://forum.xda-developers.com/showthread.php?t=2515305

Making a kernel....NEED HELP>>>>

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..

[Q] BtMacReader Errors on Compile

Hi I'm getting
Code:
make: *** No rule to make target `vendor/asus/grouper/proprietary/btmacreader', needed by `/home/boncey/android/bonceyrom/out/target/product/grouper/obj/EXECUTABLES/btmacreader_intermediates/btmacreader'. Stop.
make: *** Waiting for unfinished jobs....
external/e2fsprogs/lib/e2p/ls.c: In function 'list_super2':
external/e2fsprogs/lib/e2p/ls.c:354:4: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign]
In file included from bionic/libc/include/stdlib.h:34:0,
from external/e2fsprogs/lib/e2p/ls.c:17:
bionic/libc/include/string.h:124:7: note: expected 'const char * __restrict__' but argument is of type '__u8 *'
external/e2fsprogs/lib/e2p/ls.c:368:4: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign]
In file included from bionic/libc/include/stdlib.h:34:0,
from external/e2fsprogs/lib/e2p/ls.c:17:
bionic/libc/include/string.h:124:7: note: expected 'const char * __restrict__' but argument is of type '__u8 *'
target thumb C++: bootanimation <= frameworks/base/cmds/bootanimation/BootAnimation.cpp
frameworks/base/cmds/bootanimation/BootAnimation.cpp: In member function 'bool android::BootAnimation::movie()':
frameworks/base/cmds/bootanimation/BootAnimation.cpp:541:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
frameworks/base/cmds/bootanimation/BootAnimation.cpp:560:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Any ideas guys? I extracted the blobs from my Nexus 7 2012 and I get this error. Any help would be appreciated!
I think I fixed it, will tell you when I get in.
Boncey said:
I think I fixed it, will tell you when I get in.
Click to expand...
Click to collapse
how did you fix it? did you do this?
http://www.reddit.com/r/cyanogenmod/comments/1qsvul/error_building_cyanogenmod_102_for_grouper/

Please help me to bulid CM12 it stop to build

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)
^
--------------------------------------------------------------------------------------------------------------------------------------------------------
who can hellp me x(
QweJay said:
who can hellp me x(
Click to expand...
Click to collapse
@AntaresOne @frapeti can only help you
thinks! wen i download msm8960-common it can finish my build,but,i can not phone to everyone! because i can not find the base band.....

Categories

Resources