Making a kernel....NEED HELP>>>> - Nexus 4 Q&A, Help & Troubleshooting

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

Related

[Q] Get kernel framebuffer console

Hello XDA users!
I'm so confused with this thing. I've been trying to do that nearly a month. After a billion google queries and phone reboots (if my N4 could throw up, it would) I got nothing.
First of all, I can't compile the kernel.
Sys info: I'm on Arch Linux 3.12.1-3-ARCH 64 bit.
I have all the three google toolchains (arm-linux-androideabi-4.{6,7,8}) and currently I'm trying with 4.8.
With default config (I stress that) I get this: http://showterm.io/1a41b9af919653f53a890
I use google's repo (https://android.googlesource.com/kernel/msm.git) on the android-msm-mako-3.4-kitkat-mr0 branch (I use occam-krt16o build on my N4).
I know this must be noobish problem, but I have no idea what's the problem...
Thanks in advance!
I've got some news!
First of all, you need to edit scripts/gcc-wrapper.py to use python2.7 and not 3.
However, 4.8 toolchain spits some errors and I'm not really into casting spells just to compile with 4.8 instead of 4.7. If there is a major difference between them (performance improvements etc.) I'll look into it.
Now it's time to implement the framebuffer changes to the .config
for more info:
http://forum.xda-developers.com/showpost.php?p=10075806&postcount=3
http://forum.xda-developers.com/showpost.php?p=18256605&postcount=1
UPDATE: Well, I applied this patch (https://github.com/Tasssadar/kernel...a9d#diff-94babbe85a910bf17f882465a760c431R608), I can only get blank screen. Any ideas?
Bump.
Hi does anyone know how to get this to work.
I have an Alcatel OT918D ANDROID 2.3.5.
I have managed to compile my own kernel and boot it. But for adding the frame buffer option in the makefile I get this error during compilation:
**************************************************************************************************************
drivers/video/console/fbcon.c:638: note: expected 'struct file *' but argument is of type 'struct fb_info *'
drivers/video/console/fbcon.c:638: error: too few arguments to function 'info->fbops->fb_open'
drivers/video/console/fbcon.c: In function 'con2fb_release_oldinfo':
drivers/video/console/fbcon.c:670: warning: passing argument 1 of 'oldinfo->fbops->fb_release' from incompatible pointer type
drivers/video/console/fbcon.c:670: note: expected 'struct file *' but argument is of type 'struct fb_info *'
drivers/video/console/fbcon.c:670: error: too few arguments to function 'oldinfo->fbops->fb_release'
drivers/video/console/fbcon.c:673: warning: passing argument 1 of 'newinfo->fbops->fb_release' from incompatible pointer type
drivers/video/console/fbcon.c:673: note: expected 'struct file *' but argument is of type 'struct fb_info *'
drivers/video/console/fbcon.c:673: error: too few arguments to function 'newinfo->fbops->fb_release'
drivers/video/console/fbcon.c: In function 'fbcon_startup':
drivers/video/console/fbcon.c:868: warning: passing argument 1 of 'info->fbops->fb_open' from incompatible pointer type
drivers/video/console/fbcon.c:868: note: expected 'struct file *' but argument is of type 'struct fb_info *'
drivers/video/console/fbcon.c:868: error: too few arguments to function 'info->fbops->fb_open'
drivers/video/console/fbcon.c: In function 'fbcon_exit':
drivers/video/console/fbcon.c:3388: warning: passing argument 1 of 'info->fbops->fb_release' from incompatible pointer type
drivers/video/console/fbcon.c:3388: note: expected 'struct file *' but argument is of type 'struct fb_info *'
drivers/video/console/fbcon.c:3388: error: too few arguments to function 'info->fbops->fb_release'
make[3]: *** [drivers/video/console/fbcon.o] Error 1
make[2]: *** [drivers/video/console] Error 2
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
CC [M] ../mediatek/source/kernel/drivers/lttng/probes/net-extended-trace.o
CC [M] ../mediatek/source/kernel/drivers/lttng/probes/block-trace.o
CC ../mediatek/source/kernel/kernel/trace_mt65xx_mon.o
LD [M] ../mediatek/source/kernel/drivers/lttng/ltt-relay.o
CC ../mediatek/source/kernel/drivers/m4u/m4u_kernel.o
../mediatek/source/kernel/drivers/m4u/m4u_kernel.c: In function 'm4u_user_v2p':
../mediatek/source/kernel/drivers/m4u/m4u_kernel.c:66: warning: format '%d' expects type 'int', but argument 3 has type 'struct task_struct *'
************************************************************************************************************

Help regarding compiling Omnirom for CM source for htc msm8960.

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

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

Varios issues porting AOSP/CyanogenMod/Any other such ROM(s)...

Hey everyone!
As the title says, but more exactly I kinda lost my mind trying to port custom firmware for Asus A500CG. And all of it end up with errors with "hardware/intel/img/psb_video/src/android/psb_android_glue.cpp".
I've used the master branch of the device tree here by quanganh2627. I'm trying to build Android M currently . I've disabled SELinux things. And to solve the psb_video error I removed the folder itself. I get a successful build but ends up with building the one for medfield. I'll post the error in the next post. And could someone guide me properly to build the ROM and for the right device.
Also I'm building it on Ubuntu 14.04.02.
I get the Medfield info because it literally gets stuck in the splash screen, so I used adb devices & I used adb logcat.
I see that most of the services fail to start & to be more precise a bootloop without boot animation.
I'd appreciate help from anyone with more experience working with custom firmware.
frameworks/native/include/binder/IInterface.h:42:22: note: template argument deduction/substitution failed:
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:124:21: error: NULL used in arithmetic [-Werror=pointer-arith]
if (imds == NULL)
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:12: error: 'IMultiDisplayInfoProvider' was not declared in this scope
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:37: error: template argument 1 is invalid
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:43: error: invalid type in declaration before '=' token
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:49: error: base operand of '->' is not a pointer
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:127:20: error: NULL used in arithmetic [-Werror=pointer-arith]
if (mds != NULL) {
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:128:22: error: base operand of '->' is not a pointer
ret = mds->getVppState();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:130:13: error: converting to non-pointer type 'int' from NULL [-Werror=conversion-null]
mds = NULL;
^
cc1plus: all warnings being treated as errors
make: *** [/home/paletrox-z/euphoria/out/target/product/a500cg/obj/SHARED_LIBRARIES/pvr_drv_video_intermediates/android/psb_android_glue.o] Error 1
Next set of errors:
hardware/intel/img/psb_video/src/android/psb_gralloc.cpp:38:25: fatal error: ufo/gralloc.h: No such file or directory
#include <ufo/gralloc.h>
^
compilation terminated.
make: *** [/home/paletrox-z/euphoria/out/target/product/a500cg/obj/SHARED_LIBRARIES/pvr_drv_video_intermediates/android/psb_gralloc.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:45:0:
hardware/intel/img/psb_video/src/android/psb_mds.h:51:8: error: 'IMDService' was not declared in this scope
sp<IMDService> mMds;
^
hardware/intel/img/psb_video/src/android/psb_mds.h:51:18: error: template argument 1 is invalid
sp<IMDService> mMds;
^
hardware/intel/img/psb_video/src/android/psb_mds.h:52:8: error: 'IMultiDisplayInfoProvider' was not declared in this scope
sp<IMultiDisplayInfoProvider> mListener;
^
hardware/intel/img/psb_video/src/android/psb_mds.h:52:33: error: template argument 1 is invalid
sp<IMultiDisplayInfoProvider> mListener;
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp: In function 'int psb_android_get_mds_vpp_state(void*)':
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:122:12: error: 'IMDService' was not declared in this scope
sp<IMDService> imds = interface_cast<IMDService>(
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:122:22: error: template argument 1 is invalid
sp<IMDService> imds = interface_cast<IMDService>(
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:122:29: error: invalid type in declaration before '=' token
sp<IMDService> imds = interface_cast<IMDService>(
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:122:46: error: the value of 'IMDService' is not usable in a constant expression
sp<IMDService> imds = interface_cast<IMDService>(
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:122:12: note: 'IMDService' was not declared 'constexpr'
sp<IMDService> imds = interface_cast<IMDService>(
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:123:65: error: no matching function for call to 'interface_cast(android::sp<android::IBinder>)'
sm->getService(String16(INTEL_MDS_SERVICE_NAME)));
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:123:65: note: candidate is:
In file included from frameworks/native/include/binder/IServiceManager.h:21:0,
from hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:33:
frameworks/native/include/binder/IInterface.h:42:22: note: template<class INTERFACE> android::sp<T> android::interface_cast(const android::sp<android::IBinder>&)
inline sp<INTERFACE> interface_cast(const sp<IBinder>& obj)
^
frameworks/native/include/binder/IInterface.h:42:22: note: template argument deduction/substitution failed:
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:12: error: 'IMultiDisplayInfoProvider' was not declared in this scope
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:37: error: template argument 1 is invalid
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:43: error: invalid type in declaration before '=' token
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:49: error: base operand of '->' is not a pointer
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:128:22: error: base operand of '->' is not a pointer
ret = mds->getVppState();
^
make: *** [/home/paletrox-z/euphoria/out/target/product/a500cg/obj/SHARED_LIBRARIES/pvr_drv_video_intermediates/android/psb_android_glue.o] Error 1
#### make failed to build some targets (03:04 (mm:ss)) ####
Go to psb_video folder and delete all files here apart all folders and Android.mk file.
Open Android.mk file and comment all strings there using # symbol.
My CM12.1 is booted without this folder. You should compile Lollipop rom and only after that you should compile Marshmallow.
But mate it creates pvr_drv_video.so module. So would it be right to do so?
Just try.
I tried and it built it again for medfield mate....

Error when compiling kernel Sony to load proprietary modules.

The default kernel is compiled without errors for TWRP.
By default, the config of the kernel disabled the download of proprietary modules. To enable the proprietary kernel module I added a couple of lines in config suzuran.
Code:
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
Sources: kernel Sony; device profile: suzuran, kitakami platform, common.
Same problem for platform devices loire.
After adding the lines, the compilation of the kernel occurs with an error:
/home/samavar/omni/kernel/Makefile:807: the recipe is a mistake for the purpose of «vmlinux»
[ 97% 6416/6603] build /home/samavar/o.../target/product/suzuran/root/init.real
/init /home/samavar/omni/out/target/product/suzuran/root/init isn't a symlink
[ 99% 6589/6603] build /home/samavar/o...covery_intermediates/sepolicy.recovery
/home/samavar/omni/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/samavar/omni/out/target/product/suzuran/obj/ETC/sepolicy.recovery_intermediates/policy_recovery.conf
/home/samavar/omni/out/host/linux-x86/bin/checkpolicy: policy configuration loaded
/home/samavar/omni/out/host/linux-x86/bin/checkpolicy: writing binary representation (version 30) to /home/samavar/omni/out/target/product/suzuran/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.tmp
[ 99% 6589/6603] host Java: bouncycast...uncycastle-host_intermediates/classes)
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
[ 99% 6596/6603] build TARGET_KERNEL_BINARIES
FAILED: /bin/bash -c "(make -j1 CFLAGS_MODULE="-fno-pic" -C kernel O=/home/samavar/omni/out/target/product/suzuran/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=" aarch64-linux-android-" Image.gz-dtb ) && (if grep -q 'CONFIG_OF=y' /home/samavar/omni/out/target/product/suzuran/obj/KERNEL_OBJ/.config ; then echo -e "Building DTBs" ; make -j1 CFLAGS_MODULE="-fno-pic" -C kernel O=/home/samavar/omni/out/target/product/suzuran/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=" aarch64-linux-android-" dtbs ; else echo "DTBs not enabled" ; fi ) && (if grep -q 'CONFIG_MODULES=y' /home/samavar/omni/out/target/product/suzuran/obj/KERNEL_OBJ/.config ; then echo -e "Building Kernel Modules" ; make -j1 CFLAGS_MODULE="-fno-pic" -C kernel O=/home/samavar/omni/out/target/product/suzuran/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=" aarch64-linux-android-" modules && make -j1 CFLAGS_MODULE="-fno-pic" -C kernel O=/home/samavar/omni/out/target/product/suzuran/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm64 CROSS_COMPILE=" aarch64-linux-android-" modules_install && mdpath=\`find /home/samavar/omni/out/target/product/suzuran/system/lib/modules -type f -name modules.order\`; if [ "\$mdpath" != "" ];then mpath=\`dirname \$mdpath\`; ko=\`find \$mpath/kernel -type f -name *.ko\`; for i in \$ko; do aarch64-linux-android-strip --strip-unneeded \$i; mv \$i /home/samavar/omni/out/target/product/suzuran/system/lib/modules/; done; fi && mdpath=\`find /home/samavar/omni/out/target/product/suzuran/system/lib/modules -type f -name modules.order\`; if [ "\$mdpath" != "" ];then mpath=\`dirname \$mdpath\`; rm -rf \$mpath; fi ; else echo "Kernel Modules not enabled" ; fi )"
make: вход в каталог «/home/samavar/omni/kernel»
GEN /home/samavar/omni/out/target/product/suzuran/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Using /home/samavar/omni/kernel as source for kernel
GEN /home/samavar/omni/out/target/product/suzuran/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC kernel/bounds.s
GEN include/generated/bounds.h
*****
*****
LD arch/arm64/crypto/aes-neon-blk.o
LD arch/arm64/crypto/built-in.o
/home/samavar/omni/kernel/kernel/Makefile:144: *** No X.509 certificates found ***
CC kernel/fork.o
*****
*****
CC drivers/net/wireless/bcmdhd/wl_roam.o
CC drivers/net/wireless/bcmdhd/wl_cfg80211.o
/home/samavar/omni/kernel/drivers/net/wireless/bcmdhd/wl_cfg80211.c:7723:2: warning: initialization from incompatible pointer type
.del_station = wl_cfg80211_del_station,
^
/home/samavar/omni/kernel/drivers/net/wireless/bcmdhd/wl_cfg80211.c:7723:2: warning: (near initialization for 'wl_cfg80211_ops.del_station')
CC drivers/net/wireless/bcmdhd/wl_cfgp2p.o
CC drivers/net/wireless/bcmdhd/wl_cfg_btcoex.o
CC drivers/net/wireless/bcmdhd/wldev_common.o
CC drivers/net/wireless/bcmdhd/wl_linux_mon.o
CC drivers/net/wireless/bcmdhd/dhd_linux_platdev.o
/home/samavar/omni/kernel/drivers/net/wireless/bcmdhd/dhd_linux_platdev.c:62:13: warning: 'dts_enabled' defined but not used [-Wunused-variable]
static bool dts_enabled = FALSE;
^
CC drivers/net/wireless/bcmdhd/dhd_rtt.o
*****
*****
CC drivers/pci/of.o
CC drivers/pci/host/pci-msm.o
/home/samavar/omni/kernel/drivers/pci/host/pci-msm.c: In function 'pcie_init':
/home/samavar/omni/kernel/drivers/pci/host/pci-msm.c:4897:7: warning: unused variable 'rc_name' [-Wunused-variable]
char rc_name[MAX_RC_NAME_LEN];
^
LD drivers/pci/host/built-in.o
*****
*****
CC drivers/platform/msm/sps/sps_bam.o
CC drivers/platform/msm/sps/sps.o
/home/samavar/omni/kernel/drivers/platform/msm/sps/sps.c: In function 'sps_register_bam_device':
/home/samavar/omni/kernel/drivers/platform/msm/sps/sps.c:2074:7: warning: unused variable 'bam_name' [-Wunused-variable]
char bam_name[MAX_MSG_LEN];
^
CC drivers/platform/msm/sps/sps_dma.o
*****
*****
CC drivers/platform/msm/pft.o
In file included from /home/samavar/omni/kernel/include/linux/kernel.h:14:0,
from /home/samavar/omni/kernel/drivers/platform/msm/pft.c:48:
/home/samavar/omni/kernel/drivers/platform/msm/pft.c: In function 'pft_inode_create':
/home/samavar/omni/kernel/include/linux/dynamic_debug.h:64:16: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'kuid_t' [-Wformat=]
static struct _ddebug __aligned(8) \
^
/home/samavar/omni/kernel/include/linux/dynamic_debug.h:76:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
/home/samavar/omni/kernel/include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^
/home/samavar/omni/kernel/drivers/platform/msm/pft.c:867:4: note: in expansion of macro 'pr_debug'
pr_debug("key removed, registered uid %u is denied from creating new file %s\n",
^
/home/samavar/omni/kernel/drivers/platform/msm/pft.c: In function 'pft_inode_post_create':
/home/samavar/omni/kernel/include/linux/dynamic_debug.h:64:16: warning: format '%d' expects argument of type 'int', but argument 5 has type 'kuid_t' [-Wformat=]
static struct _ddebug __aligned(8) \
^
/home/samavar/omni/kernel/include/linux/dynamic_debug.h:76:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
/home/samavar/omni/kernel/include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^
/home/samavar/omni/kernel/drivers/platform/msm/pft.c:920:5: note: in expansion of macro 'pr_debug'
pr_debug("key loaded, pid [%u] uid [%d] is creating file %s\n",
^
/home/samavar/omni/kernel/drivers/platform/msm/pft.c: In function 'pft_inode_rename':
/home/samavar/omni/kernel/drivers/platform/msm/pft.c:992:3: warning: format '%d' expects argument of type 'int', but argument 4 has type 'kuid_t' [-Wformat=]
pr_err("access in-place-encryption file %s by uid [%d] pid [%d] is blocked.\n",
^
/home/samavar/omni/kernel/drivers/platform/msm/pft.c:998:3: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'kuid_t' [-Wformat=]
pr_err("unregistered app (uid %u pid %u) is trying to access encrypted file %s\n",
^
/home/samavar/omni/kernel/drivers/platform/msm/pft.c: In function 'pft_file_open':
/home/samavar/omni/kernel/drivers/platform/msm/pft.c:1044:3: warning: format '%d' expects argument of type 'int', but argument 4 has type 'kuid_t' [-Wformat=]
pr_err("Access in-place-encryption file %s by uid %d pid %d is blocked.\n",
^
In file included from /home/samavar/omni/kernel/include/linux/kernel.h:14:0,
from /home/samavar/omni/kernel/drivers/platform/msm/pft.c:48:
/home/samavar/omni/kernel/include/linux/dynamic_debug.h:64:16: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'kuid_t' [-Wformat=]
static struct _ddebug __aligned(8) \
^
/home/samavar/omni/kernel/include/linux/dynamic_debug.h:76:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
/home/samavar/omni/kernel/include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^
/home/samavar/omni/kernel/drivers/platform/msm/pft.c:1055:3: note: in expansion of macro 'pr_debug'
pr_debug("key not loaded. uid (%u) can not access file %s\n",
^
/home/samavar/omni/kernel/drivers/platform/msm/pft.c:1061:4: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'kuid_t' [-Wformat=]
pr_err("unregistered app (uid %u pid %u) is trying to access encrypted file %s\n",
^
In file included from /home/samavar/omni/kernel/include/linux/kernel.h:14:0,
from /home/samavar/omni/kernel/drivers/platform/msm/pft.c:48:
/home/samavar/omni/kernel/drivers/platform/msm/pft.c: In function 'pft_file_permission':
/home/samavar/omni/kernel/include/linux/dynamic_debug.h:64:16: warning: format '%d' expects argument of type 'int', but argument 6 has type 'kuid_t' [-Wformat=]
static struct _ddebug __aligned(8) \
^
/home/samavar/omni/kernel/include/linux/dynamic_debug.h:76:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
/home/samavar/omni/kernel/include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^
/home/samavar/omni/kernel/drivers/platform/msm/pft.c:1116:4: note: in expansion of macro 'pr_debug'
pr_debug("r/w [mask 0x%x] in-place-encryption file %s by PFM (UID %d, PID %d).\n",
^
/home/samavar/omni/kernel/drivers/platform/msm/pft.c:1121:4: warning: format '%d' expects argument of type 'int', but argument 4 has type 'kuid_t' [-Wformat=]
pr_err("Access in-place-encryption file %s by App (UID %d, PID %d) is blocked.\n",
^
In file included from /home/samavar/omni/kernel/include/linux/kernel.h:14:0,
from /home/samavar/omni/kernel/drivers/platform/msm/pft.c:48:
/home/samavar/omni/kernel/include/linux/dynamic_debug.h:64:16: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'kuid_t' [-Wformat=]
static struct _ddebug __aligned(8) \
^
/home/samavar/omni/kernel/include/linux/dynamic_debug.h:76:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
/home/samavar/omni/kernel/include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^
/home/samavar/omni/kernel/drivers/platform/msm/pft.c:1134:3: note: in expansion of macro 'pr_debug'
pr_debug("key not loaded. uid (%u) can not access file %s\n",
^
/home/samavar/omni/kernel/drivers/platform/msm/pft.c:1140:4: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'kuid_t' [-Wformat=]
pr_err("unregistered app (uid %u pid %u) is trying to access encrypted file %s\n",
^
In file included from /home/samavar/omni/kernel/include/linux/kernel.h:14:0,
from /home/samavar/omni/kernel/drivers/platform/msm/pft.c:48:
/home/samavar/omni/kernel/drivers/platform/msm/pft.c: In function 'pft_file_close':
/home/samavar/omni/kernel/include/linux/dynamic_debug.h:64:16: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'kuid_t' [-Wformat=]
static struct _ddebug __aligned(8) \
^
/home/samavar/omni/kernel/include/linux/dynamic_debug.h:76:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
/home/samavar/omni/kernel/include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^
/home/samavar/omni/kernel/drivers/platform/msm/pft.c:1199:3: note: in expansion of macro 'pr_debug'
pr_debug("pid [%u] uid [%u] is closing in-place-encryption file %s\n",
^
/home/samavar/omni/kernel/drivers/platform/msm/pft.c: In function 'pft_inode_unlink':
/home/samavar/omni/kernel/drivers/platform/msm/pft.c:1259:3: warning: format '%d' expects argument of type 'int', but argument 4 has type 'kuid_t' [-Wformat=]
pr_err("block delete in-place-encryption file %s by uid [%d] pid [%d], while encryption in progress.\n",
^
/home/samavar/omni/kernel/drivers/platform/msm/pft.c:1265:3: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'kuid_t' [-Wformat=]
pr_err("unregistered app (uid %u pid %u) is trying to access encrypted file %s\n",
^
LD drivers/platform/msm/built-in.o
LD drivers/platform/built-in.o
CC drivers/power/power_supply_core.o
*****
*****
LD drivers/soc/built-in.o
CC drivers/spi/spi.o
CC drivers/spi/spi_qsd.o
LD drivers/spi/built-in.o
CC drivers/spmi/spmi.o
/home/samavar/omni/kernel/drivers/spmi/spmi.c: In function 'spmi_add_device':
/home/samavar/omni/kernel/drivers/spmi/spmi.c:240:3: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t' [-Wformat=]
dev_set_name(dev, "%02x-%s-%04x", spmidev->sid, spmidev->dev.of_node->name, spmidev->res.resource[0].start);
^
CC drivers/spmi/spmi-resources.o
CC drivers/spmi/spmi-pmic-arb.o
CC drivers/spmi/qpnp-int.o
CC drivers/spmi/spmi-dbgfs.o
LD drivers/spmi/built-in.o
CC drivers/staging/staging.o
CC drivers/staging/android/ion/ion.o
*****
*****
LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD vmlinux
net/built-in.o: In function `qtaguid_mt':
ipc_router_security.c.text+0x6839c): undefined reference to `xt_socket_put_sk'
ipc_router_security.c.text+0x68440): undefined reference to `xt_socket_get6_sk'
ipc_router_security.c.text+0x68450): undefined reference to `xt_socket_get4_sk'
ipc_router_security.c.text+0x684ac): undefined reference to `xt_socket_put_sk'
net/built-in.o: In function `tcp_nuke_addr':
ipc_router_security.c.text+0x7ee60): undefined reference to `in6addr_any'
ipc_router_security.c.text+0x7ee70): undefined reference to `in6addr_any'
ipc_router_security.c.text+0x7efc8): undefined reference to `rt6_lookup'
/home/samavar/omni/kernel/Makefile:807: the recipe is a mistake for the purpose of «vmlinux»
make[1]: *** [vmlinux] error 1
Makefile:130: the recipe is a mistake for the purpose of «sub-make»
make: *** [sub-make] error 2
make: выход из каталога «/home/samavar/omni/kernel»
ninja: build stopped: subcommand failed.
build/core/ninja.mk:157: the recipe is a mistake for the purpose of «ninja_wrapper»
make: *** [ninja_wrapper] error 1
#### make failed to build some targets (25:00 (mm:ss)) ####
Repeat
#
# configuration written to .config
#
make: Exit from the catalog «/home/samavar/omni/kernel»
make: Entrance to the catalog «/home/samavar/omni/kernel»
CHK include/generated/uapi/linux/version.h
make: Exit from the catalog «/home/samavar/omni/kernel»
[ 83% 35/42] build TARGET_KERNEL_BINARIES
FAILED: /bin/bash -c "(make -j1 CFLAGS_MODULE=\"-fno-pic\" -C kernel O=/home/samavar/omni/out/target/product/suzuran/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-android-\" Image.gz-dtb ) && (if grep -q 'CONFIG_OF=y' /home/samavar/omni/out/target/product/suzuran/obj/KERNEL_OBJ/.config ; then echo -e \"Building DTBs\" ; make -j1 CFLAGS_MODULE=\"-fno-pic\" -C kernel O=/home/samavar/omni/out/target/product/suzuran/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-android-\" dtbs ; else echo \"DTBs not enabled\" ; fi ) && (if grep -q 'CONFIG_MODULES=y' /home/samavar/omni/out/target/product/suzuran/obj/KERNEL_OBJ/.config ; then echo -e \"Building Kernel Modules\" ; make -j1 CFLAGS_MODULE=\"-fno-pic\" -C kernel O=/home/samavar/omni/out/target/product/suzuran/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-android-\" modules && make -j1 CFLAGS_MODULE=\"-fno-pic\" -C kernel O=/home/samavar/omni/out/target/product/suzuran/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-android-\" modules_install && mdpath=\`find /home/samavar/omni/out/target/product/suzuran/system/lib/modules -type f -name modules.order\`; if [ \"\$mdpath\" != \"\" ];then mpath=\`dirname \$mdpath\`; ko=\`find \$mpath/kernel -type f -name *.ko\`; for i in \$ko; do aarch64-linux-android-strip --strip-unneeded \$i; mv \$i /home/samavar/omni/out/target/product/suzuran/system/lib/modules/; done; fi && mdpath=\`find /home/samavar/omni/out/target/product/suzuran/system/lib/modules -type f -name modules.order\`; if [ \"\$mdpath\" != \"\" ];then mpath=\`dirname \$mdpath\`; rm -rf \$mpath; fi ; else echo \"Kernel Modules not enabled\" ; fi )"
make: Entrance to the catalog «/home/samavar/omni/kernel»
GEN /home/samavar/omni/out/target/product/suzuran/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Using /home/samavar/omni/kernel as source for kernel
GEN /home/samavar/omni/out/target/product/suzuran/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CALL /home/samavar/omni/kernel/scripts/checksyscalls.sh
<stdin>:1226:2: warning: #warning syscall sched_setattr not implemented [-Wcpp]
<stdin>:1229:2: warning: #warning syscall sched_getattr not implemented [-Wcpp]
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
/home/samavar/omni/kernel/kernel/Makefile:144: *** No X.509 certificates found ***
LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD vmlinux
net/built-in.o: In function `qtaguid_mt':
ipc_router_security.c.text+0x6839c): undefined reference to `xt_socket_put_sk'
ipc_router_security.c.text+0x68440): undefined reference to `xt_socket_get6_sk'
ipc_router_security.c.text+0x68450): undefined reference to `xt_socket_get4_sk'
ipc_router_security.c.text+0x684ac): undefined reference to `xt_socket_put_sk'
net/built-in.o: In function `tcp_nuke_addr':
ipc_router_security.c.text+0x7ee60): undefined reference to `in6addr_any'
ipc_router_security.c.text+0x7ee70): undefined reference to `in6addr_any'
ipc_router_security.c.text+0x7efc8): undefined reference to `rt6_lookup'
/home/samavar/omni/kernel/Makefile:807: the recipe is a mistake for the purpose of «vmlinux»
make[1]: *** [vmlinux] error 1
Makefile:130: the recipe is a mistake for the purpose of «sub-make»
make: *** [sub-make] error 2
make: выход из каталога «/home/samavar/omni/kernel»
ninja: build stopped: subcommand failed.
build/core/ninja.mk:157: the recipe is a mistake for the purpose of «ninja_wrapper»
make: *** [ninja_wrapper] error 1
#### make failed to build some targets (03:21 (mm:ss)) ####
Please help to solve this problem.

Categories

Resources