HI, everybody,i am a new guy about this topic,
Recently i want to add some feature into android code,and i using cm10.1 source code;
i have add some code into Build.java in /system/frameworks/base/core/java/android/os,But buding false.
Does any body want how to solve this? Thanks.
frameworks/base/core/java/android/os/Build.java:471: cannot find symbol
symbol : class Properties
location: class android.os.Build
private static Properties p;
^
frameworks/base/core/java/android/os/Build.java:473: cannot find symbol
symbol : class File
location: class android.os.Build
File f=new File("/system/build.prop");
^
frameworks/base/core/java/android/os/Build.java:473: cannot find symbol
symbol : class File
location: class android.os.Build
File f=new File("/system/build.prop");
^
frameworks/base/core/java/android/os/Build.java:475: cannot find symbol
symbol : class FileInputStream
location: class android.os.Build
FileInputStream fis=new FileInputStream(f);
^
frameworks/base/core/java/android/os/Build.java:475: cannot find symbol
symbol : class FileInputStream
location: class android.os.Build
FileInputStream fis=new FileInputStream(f);
^
frameworks/base/core/java/android/os/Build.java:483: cannot find symbol
symbol : class Properties
location: class android.os.Build
p = new Properties();
^
frameworks/base/core/java/android/os/Build.java:492: cannot find symbol
symbol : class FileNotFoundException
location: class android.os.Build
} catch (FileNotFoundException e) {
^
frameworks/base/core/java/android/os/Build.java:495: cannot find symbol
symbol : class IOException
location: class android.os.Build
} catch (IOException e) {
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
8 errors
make: *** [/home/admini/android/system/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
GEN /home/admini/android/system/out/target/product/maguro/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
Using /home/admini/android/system/kernel/samsung/tuna as source for kernel
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/admini/android/system/kernel/samsung/tuna/scripts/checksyscalls.sh
CHK include/generated/compile.h
Kernel: arch/arm/boot/Image is ready
SHIPPED arch/arm/boot/compressed/lib1funcs.S
AS arch/arm/boot/compressed/lib1funcs.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: Leaving directory `/home/admini/android/system/kernel/samsung/tuna'
make -C kernel/samsung/tuna O=/home/admini/android/system/out/target/product/maguro/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/admini/android/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" modules
make[1]: Entering directory `/home/admini/android/system/kernel/samsung/tuna'
GEN /home/admini/android/system/out/target/product/maguro/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
Using /home/admini/android/system/kernel/samsung/tuna as source for kernel
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/admini/android/system/kernel/samsung/tuna/scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 4 modules
make[1]: Leaving directory `/home/admini/android/system/kernel/samsung/tuna'
make -C kernel/samsung/tuna O=/home/admini/android/system/out/target/product/maguro/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm CROSS_COMPILE=" /home/admini/android/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" modules_install
make[1]: Entering directory `/home/admini/android/system/kernel/samsung/tuna'
INSTALL crypto/ansi_cprng.ko
INSTALL drivers/rpmsg/rpmsg_client_sample.ko
INSTALL drivers/rpmsg/rpmsg_server_sample.ko
INSTALL drivers/scsi/scsi_wait_scan.ko
DEPMOD 3.0.31-cyanogenmod-g9c74909
make[1]: Leaving directory `/home/admini/android/system/kernel/samsung/tuna'
mdpath=`find /home/admini/android/system/out/target/product/maguro/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 /home/admini/android/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-strip --strip-unneeded $i; mv $i /home/admini/android/system/out/target/product/maguro/system/lib/modules/; done; fi
mdpath=`find /home/admini/android/system/out/target/product/maguro/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
[email protected]:~/android/system$
Click to expand...
Click to collapse
Related
Hello!
This is development thread of 3.0.101 kernel for Xperia Sola.
Latest release: building.
Credits:
Macław
marcin1147
Gava97
munjeni
other guys, who contributed to kernel when it was 3.0.8
If you appreciate our work, please, use thanks button or consider donating to me
Sources are available at:
http://opensource.maclaw.pl/ (direct link)
Kernel haven't been tested on Xperia Sola yet. If you want to compile it, you're using it on your own!
Binary to download is not available yet.
More info about our project: http://maclaw.pl/2013/11/17/xperia-u-kernel-development/
My site: http://maclaw.pl/
Work this Kernel with jb .100?
vom Xperia Sola 4.1.2
shadowfler said:
Work this Kernel with jb .100?
vom Xperia Sola 4.1.2
Click to expand...
Click to collapse
r u blind?
"Kernel haven't been tested on Xperia Sola yet"
"Latest release: building."
"This is development thread"
MEHRDAD595 said:
r u blind?
"Kernel haven't been tested on Xperia Sola yet"
"Latest release: building."
"This is development thread"
Click to expand...
Click to collapse
sorry it got skipped
Dzieki za wsparcie dla lekko wysluzonej juz Soli, wyczekuję dalszych postępów Will this kernel work on CM?
Tapatalk
wohow!! then i can compile it by myself and try it whether it's working or not.
Sry for my question is. This source can work with kitkat so we can compile and port kitkat to our sola
great work
wow this is awsome so the dev can make cm11 for out device
Ok. now the source code of kernal is here.
Waiting patiently for Munjeni to port it on Xperia Sola :highfive:
kacangajaib said:
Ok. now the source code of kernal is here.
Waiting patiently for Munjeni to port it on Xperia Sola :highfive:
Click to expand...
Click to collapse
then the kernel will try to solve those problems that are on the Xsole? Munjeni big boys are waiting for Xsole
thanks
itachilinux said:
wohow!! then i can compile it by myself and try it whether it's working or not.
Click to expand...
Click to collapse
If its compiled and boots on 4.4....please pm me the link....I will try it out too
Kernel
dwaipayanray95 said:
If its compiled and boots on 4.4....please pm me the link....I will try it out too
Click to expand...
Click to collapse
Why not share here then? I'm willing to try aswell...
according to maclaw's web site, WIFI got fixed on xperia U, is this means that we can also fix ours ??
but there is someone who is compiling a kernel for sola???
[email protected]:~/android/kernel$ make ARCH=arm CROSS_COMPILE=/home/garynych/linaro/android-toolchain-eabi/bin/arm-eabi- clean
CLEAN .
CLEAN usr
CLEAN .tmp_versions
[email protected]:~/android/kernel$ make ARCH=arm CROSS_COMPILE=/home/garynych/linaro/android-toolchain-eabi/bin/arm-eabi- menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
scripts/kconfig/lxdialog/textbox.c: В функции «print_line»:
scripts/kconfig/lxdialog/textbox.c:323:9: предупреждение: variable «x» set but not used [-Wunused-but-set-variable]
scripts/kconfig/lxdialog/textbox.c:323:6: предупреждение: variable «y» set but not used [-Wunused-but-set-variable]
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
[email protected]:~/android/kernel$ make ARCH=arm CROSS_COMPILE=/home/garynych/linaro/android-toolchain-eabi/bin/arm-eabi-
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' не требует обновления.
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/kallsyms
HOSTCC scripts/bin2c
HOSTCC scripts/recordmcount
CC init/main.o
CHK include/generated/compile.h
CC init/version.o
CC init/do_mounts.o
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
LD init/mounts.o
CC init/initramfs.o
CC init/calibrate.o
CC init/boottime.o
LD init/built-in.o
HOSTCC usr/gen_init_cpio
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/arm/vfp/vfpmodule.o
arch/arm/vfp/vfpmodule.c: In function 'vfp_init':
arch/arm/vfp/vfpmodule.c:595:18: error: 'HWCAP_VFPD32' undeclared (first use in this function)
elf_hwcap |= HWCAP_VFPD32;
^
arch/arm/vfp/vfpmodule.c:595:18: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [arch/arm/vfp/vfpmodule.o] Ошибка 1
make: *** [arch/arm/vfp] Ошибка 2
[email protected]:~/android/kernel$
that it does not come out, anyone have thought ...?
PS if i`m make from 3.0.8 ,all ok...tell me what the problem is and how to fix
try build with GCC 4.8 2013-10 & xperiasola_defconfig
UPD ok... another problem
CC arch/arm/mm/cache-l2x0.o
arch/arm/mm/cache-l2x0.c:323:20: warning: 'l2x0_unlock' defined but not used [-Wunused-function]
static void __init l2x0_unlock(__u32 cache_id)
^
LD arch/arm/mm/built-in.o
CC arch/arm/common/gic.o
CC arch/arm/common/boottime.o
LD arch/arm/common/built-in.o
CC arch/arm/mach-ux500/clock.o
CC arch/arm/mach-ux500/cpu.o
In file included from /home/garynych/android/kernel/arch/arm/include/asm/byteorder.h:21:0,
from include/asm-generic/bitops/le.h:5,
from /home/garynych/android/kernel/arch/arm/include/asm/bitops.h:308,
from include/linux/bitops.h:22,
from include/linux/thread_info.h:52,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/kobject.h:23,
from include/linux/device.h:17,
from include/linux/platform_device.h:14,
from arch/arm/mach-ux500/cpu.c:8:
arch/arm/mach-ux500/cpu.c: In function 'ux500_init_devices':
arch/arm/mach-ux500/cpu.c:51:32: error: 'L2X0_LOCKDOWN_WAY_D' undeclared (first use in this function)
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_D) & 0xFF)
^
include/linux/byteorder/little_endian.h:33:51: note: in definition of macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:6: note: in expansion of macro '__raw_readl'
__raw_readl(__mem_pci(c))); __v; })
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:18: note: in expansion of macro '__mem_pci'
__raw_readl(__mem_pci(c))); __v; })
^
arch/arm/mach-ux500/cpu.c:51:6: note: in expansion of macro 'readl_relaxed'
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_D) & 0xFF)
^
arch/arm/mach-ux500/cpu.c:51:32: note: each undeclared identifier is reported only once for each function it appears in
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_D) & 0xFF)
^
include/linux/byteorder/little_endian.h:33:51: note: in definition of macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:6: note: in expansion of macro '__raw_readl'
__raw_readl(__mem_pci(c))); __v; })
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:18: note: in expansion of macro '__mem_pci'
__raw_readl(__mem_pci(c))); __v; })
^
arch/arm/mach-ux500/cpu.c:51:6: note: in expansion of macro 'readl_relaxed'
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_D) & 0xFF)
^
arch/arm/mach-ux500/cpu.c:54:32: error: 'L2X0_LOCKDOWN_WAY_I' undeclared (first use in this function)
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_I) & 0xFF)
^
include/linux/byteorder/little_endian.h:33:51: note: in definition of macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:6: note: in expansion of macro '__raw_readl'
__raw_readl(__mem_pci(c))); __v; })
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:18: note: in expansion of macro '__mem_pci'
__raw_readl(__mem_pci(c))); __v; })
^
arch/arm/mach-ux500/cpu.c:54:6: note: in expansion of macro 'readl_relaxed'
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_I) & 0xFF)
^
make[1]: *** [arch/arm/mach-ux500/cpu.o] Ошибка 1
make: *** [arch/arm/mach-ux500] Ошибка 2
[email protected]:~/android/kernel$
Hoping that the kernel gets its first release for Sola next, since its out for XU now with a fix for Wifi.
Dev ur development for S3 mini was amazing,then why can't u do that same for Sony novathor devices?we are waiting....
Sent from my HTC Desire C using xda app-developers app
@New Macław
We really need help in OMX please help us and we will appreciate it and give you proper credits
so can you help us fix it
ok i have decided to make my own kernel.....but i dont know what is wrong everything is just good but at the end i dont get anything...
The guides i am using :-
http://forum.xda-developers.com/showthread.php?t=1748297
http://forum.xda-developers.com/showthread.php?t=2021202
I am using a prebuild ubuntu build it contains all the packages....
Using matrix kernel source :-https://github.com/mathkid95/linux_lg_kitkat
And google toolchain.
This is what i get:-
[email protected]:~/android/kernel/kitkat$ export ARCH=arm
[email protected]:~/android/kernel/kitkat$ export CROSS_COMPILE=/home/android/android/toolchain/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-
[email protected]:~/android/kernel/kitkat$ make mako_defconfig
init/Kconfig:1265:warning: defaults for choice values not supported
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
#
# configuration written to .config
#
[email protected]:~/android/kernel/kitkat$ make -j4
scripts/kconfig/conf --silentoldconfig Kconfig
init/Kconfig:1265:warning: defaults for choice values not supported
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm/mach-msm/cpufreq.o
arch/arm/mach-msm/cpufreq.c: In function 'msm_cpufreq_target':
arch/arm/mach-msm/cpufreq.c:103:2: error: implicit declaration of function 'cpufreq_frequency_get_table' [-Werror=implicit-function-declaration]
table = cpufreq_frequency_get_table(policy->cpu);
^
arch/arm/mach-msm/cpufreq.c:103:8: warning: assignment makes pointer from integer without a cast [enabled by default]
table = cpufreq_frequency_get_table(policy->cpu);
^
arch/arm/mach-msm/cpufreq.c:104:2: error: implicit declaration of function 'cpufreq_frequency_table_target' [-Werror=implicit-function-declaration]
if (cpufreq_frequency_table_target(policy, table, target_freq, relation,
^
arch/arm/mach-msm/cpufreq.c:111:2: error: invalid use of undefined type 'struct cpufreq_frequency_table'
pr_debug("CPU[%d] target %d relation %d (%d-%d) selected %d\n",
^
In file included from include/linux/kernel.h:22:0,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from arch/arm/mach-msm/cpufreq.c:22:
arch/arm/mach-msm/cpufreq.c:113:34: error: dereferencing pointer to incomplete type
policy->min, policy->max, table[index].frequency);
^
include/linux/printk.h:202:38: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
^
arch/arm/mach-msm/cpufreq.c:115:2: error: invalid use of undefined type 'struct cpufreq_frequency_table'
ret = set_cpu_freq(policy, table[index].frequency);
^
arch/arm/mach-msm/cpufreq.c:115:34: error: dereferencing pointer to incomplete type
ret = set_cpu_freq(policy, table[index].frequency);
^
arch/arm/mach-msm/cpufreq.c: In function 'msm_cpufreq_limits_init':
arch/arm/mach-msm/cpufreq.c:145:9: warning: assignment makes pointer from integer without a cast [enabled by default]
table = cpufreq_frequency_get_table(cpu);
^
arch/arm/mach-msm/cpufreq.c:151:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
for (i = 0; (table.frequency != CPUFREQ_TABLE_END); i++) {
^
arch/arm/mach-msm/cpufreq.c:151:21: error: dereferencing pointer to incomplete type
for (i = 0; (table.frequency != CPUFREQ_TABLE_END); i++) {
^
arch/arm/mach-msm/cpufreq.c:151:38: error: 'CPUFREQ_TABLE_END' undeclared (first use in this function)
for (i = 0; (table.frequency != CPUFREQ_TABLE_END); i++) {
^
arch/arm/mach-msm/cpufreq.c:151:38: note: each undeclared identifier is reported only once for each function it appears in
arch/arm/mach-msm/cpufreq.c:152:4: error: invalid use of undefined type 'struct cpufreq_frequency_table'
if (table.frequency > max)
^
arch/arm/mach-msm/cpufreq.c:152:13: error: dereferencing pointer to incomplete type
if (table.frequency > max)
^
arch/arm/mach-msm/cpufreq.c:153:5: error: invalid use of undefined type 'struct cpufreq_frequency_table'
max = table.frequency;
^
arch/arm/mach-msm/cpufreq.c:153:16: error: dereferencing pointer to incomplete type
max = table.frequency;
^
arch/arm/mach-msm/cpufreq.c:154:4: error: invalid use of undefined type 'struct cpufreq_frequency_table'
if (table.frequency < min)
^
arch/arm/mach-msm/cpufreq.c:154:13: error: dereferencing pointer to incomplete type
if (table.frequency < min)
^
arch/arm/mach-msm/cpufreq.c:155:5: error: invalid use of undefined type 'struct cpufreq_frequency_table'
min = table.frequency;
^
arch/arm/mach-msm/cpufreq.c:155:16: error: dereferencing pointer to incomplete type
min = table.frequency;
^
arch/arm/mach-msm/cpufreq.c: In function 'msm_cpufreq_init':
arch/arm/mach-msm/cpufreq.c:201:8: warning: assignment makes pointer from integer without a cast [enabled by default]
table = cpufreq_frequency_get_table(policy->cpu);
^
arch/arm/mach-msm/cpufreq.c:212:2: error: implicit declaration of function 'cpufreq_frequency_table_cpuinfo' [-Werror=implicit-function-declaration]
if (cpufreq_frequency_table_cpuinfo(policy, table)) {
^
arch/arm/mach-msm/cpufreq.c:233:2: error: invalid use of undefined type 'struct cpufreq_frequency_table'
if (cur_freq != table[index].frequency) {
^
arch/arm/mach-msm/cpufreq.c:233:23: error: dereferencing pointer to incomplete type
if (cur_freq != table[index].frequency) {
^
arch/arm/mach-msm/cpufreq.c:235:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
ret = acpuclk_set_rate(policy->cpu, table[index].frequency,
^
arch/arm/mach-msm/cpufreq.c:235:44: error: dereferencing pointer to incomplete type
ret = acpuclk_set_rate(policy->cpu, table[index].frequency,
^
arch/arm/mach-msm/cpufreq.c:239:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
pr_info("cpufreq: cpu%d init at %d switching to %d\n",
^
In file included from include/linux/kernel.h:22:0,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from arch/arm/mach-msm/cpufreq.c:22:
arch/arm/mach-msm/cpufreq.c:240:33: error: dereferencing pointer to incomplete type
policy->cpu, cur_freq, table[index].frequency);
^
include/linux/printk.h:179:34: note: in definition of macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^
arch/arm/mach-msm/cpufreq.c:241:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
cur_freq = table[index].frequency;
^
arch/arm/mach-msm/cpufreq.c:241:19: error: dereferencing pointer to incomplete type
cur_freq = table[index].frequency;
^
arch/arm/mach-msm/cpufreq.c: At top level:
arch/arm/mach-msm/cpufreq.c:310:3: error: 'cpufreq_freq_attr_scaling_available_freqs' undeclared here (not in a function)
&cpufreq_freq_attr_scaling_available_freqs,
^
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-msm/cpufreq.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
GZIP kernel/config_data.gz
CHK kernel/config_data.h
[email protected]:~/android/kernel/kitkat$
Click to expand...
Click to collapse
help me guys...im doing this for the first time.......
What should i do...
Also tell me how can i add other kernel features like faux sound...thank you..
can someone plzz help......and now i downloaded google sources the folder is empty 1 gb:silly:
It seems like I'm stuck in a different difficult situation now. I've been reading through 11 how-to guides on building/compiling a kernel, none of them are the same, but similar--some are missing steps, some have additional steps, some have modified steps, some do things in a different order. Not a single one gets me from start to finish, but picking parts from various guides seems to help me make progress, but I'm still stuck. I'm not a linux guy, I just get by with following directions and a few things I remember from my old job.
My goal is not to be told how to tweak things or change things or add 50 new governors. All I want is some help to successfully make a plain, boring, unmodified, OEM or Cyanogenmod kernel. I'll be happy to flash what I already have on there, the source from Cyanogenmod that I built from, and make no changes to my phone. I just want to be able to build it and flash it without my phone bricking so that I know I'm doing things correctly.
So, I need help at a 10 year old's level. I need to know the steps where I'm unable to read between the lines for things such as "if you make changes to .bashrc, they won't actually take effect until you
Code:
source .bashrc
, which I eventually remembered, fortunately, from the little linux I know. It's those "on Tuesdays, you have to ____ for android builds to work" presumed-knowledge things that are never mentioned in even the "noob-friendly" guides. That's the stuff I need help with, so that I can compile a kernel. Success with the Cyanogenmod build came primarily from the switch to dual-boot, because I may have actually gotten things correct after frankenstein rigging multiple guides/documentation, but VirtualBox completely froze at various hours into the compiling, so I never really knew.
I have the huge NDK source setup.
I have the huge kernel source from Samsung setup.
Everything has the highest level of permissions.
I've done ARCH=arm and export ARCH=arm, and the same for SUBARCH=arm
I've done the PATH stuff two ways for the toolchains, both in .bashrc and through the terminal
I've entered CROSS_COMPILE in two different ways
I've done about 8 or more different make commands (not including clean and mrproper)
I've moved the missing msm_rtb.h file from its other location, but stopped there because I don't want to cherry-pick things like I did with permissions (ended up chmod +777 -R because I got fed up with random permission denied errors)
Other things that I'm having a hard time remembering because I've been working on the kernel stuff for about five straight hours
I believe I'm supposed to only use jf_vzw_defconfig, but some guides mention additional defconfigs
One guide has a step that no others have, and that's the VARIANT_DEFCONFIG and VARIANT_SELINUX or whatever it is command...and it had two things listed for DEFCONFIG, so I got lost there as well
Here are the applicable, android contents of my .bashrc (if you read it and say to yourself "why did he..."--I had to because none of the guides worked for me and I had to follow step 1 from one guide C, step 2 from guide A, and so on):
Code:
# Android tools
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
export PATH=~/bin:$PATH
export PATH=$PATH:~/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/
PATH=$PATH:~/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
export USE_CCACHE=1
Warning, this is long stuff from the terminal, but it's mostly repetitive (and is a snippet of things I just recently did). I tried different things from different guides in different orders because I can't seem to get any guide to get me to the finish line. If it looks like I did things in the wrong order or things I shouldn't have, it's for two reasons--one is that some guides have things way out of order from others and some have instructions that others don't. I figured if none work, I'll frankenstein the instructions like I had to for the Cyanogenmod build.
Code:
[email protected]:~/android/NC5/Kernel$ ./make_defconfig.sh
Need defconfig file(j1v-perf_defconfig)!
[email protected]:~/android/NC5/Kernel$ make clean
[email protected]:~/android/NC5/Kernel$ make mrproper
[email protected]:~/android/NC5/Kernel$ make maker.config
HOSTCC scripts/basic/fixdep
make[1]: *** No rule to make target `maker.config'. Stop.
make: *** [maker.config] Error 2
[email protected]:~/android/NC5/Kernel$ cd arch/arm/configs/
[email protected]:~/android/NC5/Kernel/arch/arm/configs$ make maker.defconfig
make: Nothing to be done for `maker.defconfig'.
[email protected]:~/android/NC5/Kernel/arch/arm/configs$ cd ..
[email protected]:~/android/NC5/Kernel/arch/arm$ cd ..
[email protected]:~/android/NC5/Kernel/arch$ cd ..
[email protected]:~/android/NC5/Kernel$ make jf_vzw_defconfig
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ make menuconfig
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
#
# using defaults found in /boot/config-3.16.0-34-generic
#
/boot/config-3.16.0-34-generic:1647:warning: symbol value 'm' invalid for MTD_CMDLINE_PARTS
/boot/config-3.16.0-34-generic:3531:warning: symbol value 'm' invalid for SPI_PXA2XX_PCI
/boot/config-3.16.0-34-generic:3545:warning: symbol value 'm' invalid for SPMI
/boot/config-3.16.0-34-generic:3657:warning: symbol value 'm' invalid for GPIO_UCB1400
/boot/config-3.16.0-34-generic:4118:warning: symbol value 'm' invalid for REGULATOR_88PM8607
/boot/config-3.16.0-34-generic:4177:warning: symbol value 'm' invalid for REGULATOR_TWL4030
/boot/config-3.16.0-34-generic:4404:warning: symbol value 'm' invalid for VIDEO_EM28XX_RC
/boot/config-3.16.0-34-generic:5185:warning: symbol value 'm' invalid for SND_HDA_CODEC_REALTEK
/boot/config-3.16.0-34-generic:5186:warning: symbol value 'm' invalid for SND_HDA_CODEC_ANALOG
/boot/config-3.16.0-34-generic:5187:warning: symbol value 'm' invalid for SND_HDA_CODEC_SIGMATEL
/boot/config-3.16.0-34-generic:5188:warning: symbol value 'm' invalid for SND_HDA_CODEC_VIA
/boot/config-3.16.0-34-generic:5189:warning: symbol value 'm' invalid for SND_HDA_CODEC_HDMI
/boot/config-3.16.0-34-generic:5191:warning: symbol value 'm' invalid for SND_HDA_CODEC_CIRRUS
/boot/config-3.16.0-34-generic:5192:warning: symbol value 'm' invalid for SND_HDA_CODEC_CONEXANT
/boot/config-3.16.0-34-generic:5193:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0110
/boot/config-3.16.0-34-generic:5194:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0132
/boot/config-3.16.0-34-generic:5196:warning: symbol value 'm' invalid for SND_HDA_CODEC_CMEDIA
/boot/config-3.16.0-34-generic:5197:warning: symbol value 'm' invalid for SND_HDA_CODEC_SI3054
/boot/config-3.16.0-34-generic:5198:warning: symbol value 'm' invalid for SND_HDA_GENERIC
/boot/config-3.16.0-34-generic:6098:warning: symbol value 'm' invalid for XEN_TMEM
/boot/config-3.16.0-34-generic:7067:warning: symbol value 'm' invalid for NFS_V3
/boot/config-3.16.0-34-generic:7069:warning: symbol value 'm' invalid for NFS_V4
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
#
# configuration written to .config
#
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
[email protected]:~/android/NC5/Kernel$ make -j5 ARCH=arm
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
WRAP arch/arm/include/generated/asm/auxvec.h
WRAP arch/arm/include/generated/asm/cputime.h
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/ioctl.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/irq_regs.h
WRAP arch/arm/include/generated/asm/local64.h
WRAP arch/arm/include/generated/asm/percpu.h
WRAP arch/arm/include/generated/asm/poll.h
WRAP arch/arm/include/generated/asm/resource.h
WRAP arch/arm/include/generated/asm/sections.h
WRAP arch/arm/include/generated/asm/siginfo.h
WRAP arch/arm/include/generated/asm/sizes.h
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
UPD include/generated/utsrelease.h
CC scripts/mod/empty.o
HOSTCC scripts/selinux/genheaders/genheaders
Generating include/generated/mach-types.h
HOSTCC scripts/mod/mk_elfconfig
CC kernel/bounds.s
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
SHIPPED scripts/genksyms/parse.tab.c
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/genksyms/lex.lex.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/kallsyms
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/scatterlist.h:10:0,
from include/linux/dma-mapping.h:9,
from arch/arm/kernel/asm-offsets.c:15:
/home/jon8rfc/android/NC5/Kernel/arch/arm/include/asm/io.h:30:26: fatal error: mach/msm_rtb.h: No such file or directory
#include <mach/msm_rtb.h>
^
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTCC scripts/conmakehash
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/genksyms/parse.tab.o
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/recordmcount
HOSTLD scripts/genksyms/genksyms
HOSTLD scripts/mod/modpost
[email protected]:~/android/NC5/Kernel$ chmod +777 -R android-ndk-r10d*
chmod: cannot access ‘android-ndk-r10d*’: No such file or directory
[email protected]:~/android/NC5/Kernel$ chmod +777 -R android-ndk-r10d/* -R
chmod: cannot access ‘android-ndk-r10d/*’: No such file or directory
[email protected]:~/android/NC5/Kernel$ cd ..
[email protected]:~/android/NC5$ chmod +777 -R Kernel/*
[email protected]:~/android/NC5$ chmod +777 -R Kernel*
[email protected]:~/android/NC5$ make clean
make: *** No rule to make target `clean'. Stop.
[email protected]:~/android/NC5$ cd Kernel/
[email protected]:~/android/NC5/Kernel$ make clean
CLEAN .
CLEAN .tmp_versions
[email protected]:~/android/NC5/Kernel$ make mrproper
CLEAN scripts/basic
CLEAN scripts/genksyms
CLEAN scripts/kconfig
CLEAN scripts/mod
CLEAN scripts/selinux/genheaders
CLEAN scripts/selinux/mdp
CLEAN scripts
CLEAN include/config include/generated arch/arm/include/generated
CLEAN .config include/linux/version.h
[email protected]:~/android/NC5/Kernel$ make -j5 ARCH=arm
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
[email protected]:~/android/NC5/Kernel$ export CROSS_COMPILE=/home/jon8rfc/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-^C
[email protected]:~/android/NC5/Kernel$ make clean
[email protected]:~/android/NC5/Kernel$ make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated
[email protected]:~/android/NC5/Kernel$ export ARCH=arm
[email protected]:~/android/NC5/Kernel$ sudo make jf_vzw_defconfig
[sudo] password for jon8rfc:
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ sudo make VARIANT_DEFCONFIG=jf_vzw_defconfig SELINUX_DEFCONFIG=selinux_defconfigscripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
[email protected]:~/android/NC5/Kernel$ make clean
[email protected]:~/android/NC5/Kernel$ make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated
[email protected]:~/android/NC5/Kernel$ make mrproper
[email protected]:~/android/NC5/Kernel$ make jf_vzw_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ make VARIANT_DEFCONFIG=jf_vzw_defconfig
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
[email protected]:~/android/NC5/Kernel$ make clean
[email protected]:~/android/NC5/Kernel$ make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated
[email protected]:~/android/NC5/Kernel$ export ARCH=arm
[email protected]:~/android/NC5/Kernel$ export SUBARCH=arm
[email protected]:~/android/NC5/Kernel$ export CROSS_COMPILE=/home/jon8rfc/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
[email protected]:~/android/NC5/Kernel$ make jf_vzw_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ make menuconfig
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
#
# using defaults found in /boot/config-3.16.0-34-generic
#
/boot/config-3.16.0-34-generic:1647:warning: symbol value 'm' invalid for MTD_CMDLINE_PARTS
/boot/config-3.16.0-34-generic:3531:warning: symbol value 'm' invalid for SPI_PXA2XX_PCI
/boot/config-3.16.0-34-generic:3545:warning: symbol value 'm' invalid for SPMI
/boot/config-3.16.0-34-generic:3657:warning: symbol value 'm' invalid for GPIO_UCB1400
/boot/config-3.16.0-34-generic:4118:warning: symbol value 'm' invalid for REGULATOR_88PM8607
/boot/config-3.16.0-34-generic:4177:warning: symbol value 'm' invalid for REGULATOR_TWL4030
/boot/config-3.16.0-34-generic:4404:warning: symbol value 'm' invalid for VIDEO_EM28XX_RC
/boot/config-3.16.0-34-generic:5185:warning: symbol value 'm' invalid for SND_HDA_CODEC_REALTEK
/boot/config-3.16.0-34-generic:5186:warning: symbol value 'm' invalid for SND_HDA_CODEC_ANALOG
/boot/config-3.16.0-34-generic:5187:warning: symbol value 'm' invalid for SND_HDA_CODEC_SIGMATEL
/boot/config-3.16.0-34-generic:5188:warning: symbol value 'm' invalid for SND_HDA_CODEC_VIA
/boot/config-3.16.0-34-generic:5189:warning: symbol value 'm' invalid for SND_HDA_CODEC_HDMI
/boot/config-3.16.0-34-generic:5191:warning: symbol value 'm' invalid for SND_HDA_CODEC_CIRRUS
/boot/config-3.16.0-34-generic:5192:warning: symbol value 'm' invalid for SND_HDA_CODEC_CONEXANT
/boot/config-3.16.0-34-generic:5193:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0110
/boot/config-3.16.0-34-generic:5194:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0132
/boot/config-3.16.0-34-generic:5196:warning: symbol value 'm' invalid for SND_HDA_CODEC_CMEDIA
/boot/config-3.16.0-34-generic:5197:warning: symbol value 'm' invalid for SND_HDA_CODEC_SI3054
/boot/config-3.16.0-34-generic:5198:warning: symbol value 'm' invalid for SND_HDA_GENERIC
/boot/config-3.16.0-34-generic:6098:warning: symbol value 'm' invalid for XEN_TMEM
/boot/config-3.16.0-34-generic:7067:warning: symbol value 'm' invalid for NFS_V3
/boot/config-3.16.0-34-generic:7069:warning: symbol value 'm' invalid for NFS_V4
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
#
# configuration written to .config
#
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
[email protected]:~/android/NC5/Kernel$ make jf_vzw_defconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ make VARIANT_DEFCONFIG=jf_vzw_defconfig
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
WRAP arch/arm/include/generated/asm/auxvec.h
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/cputime.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/ioctl.h
WRAP arch/arm/include/generated/asm/irq_regs.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/local64.h
WRAP arch/arm/include/generated/asm/percpu.h
WRAP arch/arm/include/generated/asm/poll.h
WRAP arch/arm/include/generated/asm/resource.h
WRAP arch/arm/include/generated/asm/sections.h
WRAP arch/arm/include/generated/asm/siginfo.h
WRAP arch/arm/include/generated/asm/sizes.h
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/scatterlist.h:10:0,
from include/linux/dma-mapping.h:9,
from arch/arm/kernel/asm-offsets.c:15:
/home/jon8rfc/android/NC5/Kernel/arch/arm/include/asm/io.h:30:26: fatal error: mach/msm_rtb.h: No such file or directory
#include <mach/msm_rtb.h>
^
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
[email protected]:~/android/NC5/Kernel$ make -j4
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
CC scripts/mod/empty.o
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/selinux/mdp/mdp
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
SHIPPED scripts/genksyms/parse.tab.c
HOSTCC scripts/genksyms/lex.lex.o
HOSTCC scripts/kallsyms
HOSTCC scripts/genksyms/parse.tab.o
HOSTCC scripts/mod/modpost.o
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/conmakehash
In file included from include/linux/scatterlist.h:10:0,
from include/linux/dma-mapping.h:9,
from arch/arm/kernel/asm-offsets.c:15:
/home/jon8rfc/android/NC5/Kernel/arch/arm/include/asm/io.h:30:26: fatal error: mach/msm_rtb.h: No such file or directory
#include <mach/msm_rtb.h>
^
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTCC scripts/recordmcount
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
[email protected]:~/android/NC5/Kernel$
Any ideas on what I'm doing wrong, or do you know of a guide that will actually get me from start to finish?
Jon8RFC said:
Any ideas on what I'm doing wrong, or do you know of a guide that will actually get me from start to finish?
Click to expand...
Click to collapse
From the log output it seems you're not defining variant defconfig. Here's one I used for nc5 or maybe it's for mj7 either way you get the picture. Also in the kernel source zip there's a text file that should help you define these.
export PATH=$PATH:~/android/arm-eabi-4.7/bin
export ARCH=arm
export CROSS_COMPILE=arm-eabi-
export PATH=${PATH}:/opt/android-sdk/tools
export PATH=${PATH}:/opt/android-sdk/platform-tools
export PATH=${PATH}:~/bin
#export JAVA_HOME=/usr/lib/jvm/jdk1.7.0
export KERNEL_DIR=`pwd`
export KERNELDIR=$KERNEL_DIR
make ARCH=arm VARIANT_DEFCONFIG=jf_vzw_defconfig SELINUX_DEFCONFIG=selinux_defconfig SELINUX_LOG_DEFCONFIG=selinux_log_defconfig jf_defconfig
make -j8 ARCH=arm zImage
make -j8 ARCH=arm modules
There's likely not a guide on doing this that in depth Samsung Galaxy only, but hope this helps.
Oh and you need to arm-eabi-4.7 or atleast some recent toolchain that you will also need to add to your path for cross compiling
P.S. Nice job with recent questions in Q&A, yours are the first in a long time that one can't find the answer to via googling and/or reading. (thus why I'm answering/trying to help)
Awesome, thanks! I'm getting it to come along now, and I'm just making corrections (fixes, maybe?) as errors come up, because I still can't reach the finish line. I've begun doing make -j1 to see each thing as it pops up and I'm fixing each thing as it happens. I'm stuck with this particular one though, and I've been hunting for a couple of hours to no avail:
Code:
sound/soc/codecs/wcd9310.c: In function 'tabla_codec_remove':
sound/soc/codecs/wcd9310.c:9109:22: warning: iteration 6u invokes undefined behavior [-Waggressive-loop-optimizations]
error, forbidden warning: wcd9310.c:9109
make[3]: *** [sound/soc/codecs/wcd9310.o] Error 1
make[2]: *** [sound/soc/codecs] Error 2
make[1]: *** [sound/soc] Error 2
make: *** [sound] Error 2
I couldn't find anyone with code corrections, just slightly different code which didn't seem to apply. The code which did seem to apply (although it wasn't for the s4), didn't have changes and people just used the same source. I also looked at the MDK source, and it's the same as NC5 (I thought it was an i9505 issue at first from one repository I found, but MDK is the same). Apparently, I need to enable -fno-aggressive-loop-optimizations, I believe. I think? It's supposed to be enabled by default, according to GCC 4.8 documentation as a "new feature" to avoid these issues, but maybe it's not in my case. From the error shown, it looks like -Wno-aggressive-loop-optimizations is in effect, right? I can't figure out how to make GCC use the -fno option though. I'm barely understanding myself, heh, please keep that in mind.
https://android.googlesource.com/toolchain/gcc/+/325a57a9cceb570741de8b68c40f4a72136cc35d/gcc-4.8/NEWS said:
GCC now uses a more aggressive analysis to derive an upper bound for
the number of iterations of loops using constraints imposed by language
standards. This may cause non-conforming programs to no longer work as
expected, such as SPEC CPU 2006 464.h264ref and 416.gamess. A new
option, -fno-aggressive-loop-optimizations, was added to disable this
aggressive analysis. In some loops that have known constant number of
iterations, but undefined behavior is known to occur in the loop before
reaching or during the last iteration, GCC will warn about the
undefined behavior in the loop instead of deriving lower upper bound of
the number of iterations for the loop. The warning can be disabled with
-Wno-aggressive-loop-optimizations.
Click to expand...
Click to collapse
Whew...finally found it, here:
http://forum.xda-developers.com/showpost.php?p=51966700&postcount=5529
I'm still going to post this in the event it's helpful for anyone else. Thanks a lot Surge...I was going crazy until you gave me those new things to put into .bashrc and what commands to actually use. Hopefully I'll get through and zImage will compile and if I can do it without errors, all the better. Thanks again. I really do appreciate it =)
Woohoo! Thanks, Surge =)
Code:
OBJCOPY arch/arm/boot/zImage
/home/jon8rfc/android/Kernel/scripts/mk_fipsbinary.sh arch/arm/boot/zImage
Make kernel fips binary..
Done.
Kernel: arch/arm/boot/zImage is ready
Now, on to modules...
Hey all,
I am trying to build CM12.1 from source for Samsung Galaxy Grand Duos i9082..
I've downloaded the source, set up device tree, kernel and the required compatibility patches (required for this device)
Steps I perform:
source build/envsetup.sh
add_lunch_combo cm_i9082-userdebug
lunch (and the select the device)
mka
It starts the building process but after some time I get the following error which I'm unable to resolve:
frameworks/testing/runner/src/main/java/android/support/test/internal/runner/intent/IntentMonitorImpl.java:21: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:21: error: cannot find symbol
import android.app.Fragment;
^
symbol: class Fragment
location: package android.app
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:32: error: package android.support.test.internal.runner.hidden does not exist
import android.support.test.internal.runner.hidden.ExposedInstrumentationApi;
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:83: error: cannot find symbol
public class MonitoringInstrumentation extends ExposedInstrumentationApi {
^
symbol: class ExposedInstrumentationApi
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:344: error: cannot find symbol
public ActivityResult execStartActivity(
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:361: error: cannot find symbol
public ActivityResult execStartActivity(
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:398: error: cannot find symbol
Context who, IBinder contextThread, IBinder token, Fragment target,
^
symbol: class Fragment
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:397: error: cannot find symbol
public ActivityResult execStartActivity(
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:423: error: cannot find symbol
private ActivityResult stubResultFor(Intent intent) {
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:410: error: cannot find symbol
private static class StubResultCallable implements Callable<ActivityResult> {
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:418: error: cannot find symbol
public ActivityResult call() {
^
symbol: class ActivityResult
location: class StubResultCallable
frameworks/testing/runner/src/main/java/android/support/test/internal/runner/intent/IntentMonitorImpl.java:54: error: cannot find symbol
public void addIntentCallback(@NonNull IntentCallback callback) {
^
symbol: class NonNull
location: class IntentMonitorImpl
frameworks/testing/runner/src/main/java/android/support/test/internal/runner/intent/IntentMonitorImpl.java:77: error: cannot find symbol
public void removeIntentCallback(@NonNull IntentCallback callback) {
^
symbol: class NonNull
location: class IntentMonitorImpl
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:125: error: method registerInstance in class InstrumentationRegistry cannot be applied to given types;
InstrumentationRegistry.registerInstance(this, arguments);
^
required: Instrumentation,Bundle
found: MonitoringInstrumentation,Bundle
reason: actual argument MonitoringInstrumentation cannot be converted to Instrumentation by method invocation conversion
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:137: error: cannot find symbol
super.onCreate(arguments);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:120: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:148: error: cannot find symbol
File dexCache = getTargetContext().getDir("dxmaker_cache", Context.MODE_PRIVATE);
^
symbol: method getTargetContext()
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:156: error: cannot find symbol
ClassLoader newClassLoader = this.getClass().getClassLoader();
^
symbol: method getClass()
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:186: error: cannot find symbol
super.onStart();
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:204: error: cannot find symbol
waitForIdleSync();
^
symbol: method waitForIdleSync()
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:184: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:232: error: cannot find symbol
super.finish(resultCode, results);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:216: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:272: error: cannot find symbol
super.onDestroy();
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:268: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:278: error: cannot find symbol
super.callApplicationOnCreate(app);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:275: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:306: error: not an enclosing class: MonitoringInstrumentation
return MonitoringInstrumentation.super.startActivitySync(intent);
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:282: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:349: error: cannot find symbol
ActivityResult ar = stubResultFor(intent);
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:354: error: cannot find symbol
return super.execStartActivity(who, contextThread, token, target, intent, requestCode);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:343: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:366: error: cannot find symbol
ActivityResult ar = stubResultFor(intent);
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:371: error: cannot find symbol
return super.execStartActivity(who, contextThread, token, target, intent, requestCode, options);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:360: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:377: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:402: error: cannot find symbol
ActivityResult ar = stubResultFor(intent);
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:407: error: cannot find symbol
return super.execStartActivity(who, contextThread, token, target, intent, requestCode, options);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:396: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:428: error: cannot find symbol
FutureTask<ActivityResult> task = new FutureTask<ActivityResult>(
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:428: error: cannot find symbol
FutureTask<ActivityResult> task = new FutureTask<ActivityResult>(
^
symbol: class ActivityResult
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:454: error: cannot find symbol
return super.onException(obj, e);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:447: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:481: error: cannot find symbol
super.callActivityOnDestroy(activity);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:479: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:487: error: cannot find symbol
super.callActivityOnRestart(activity);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:485: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:494: error: cannot find symbol
super.callActivityOnCreate(activity, bundle);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:491: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:506: error: cannot find symbol
super.callActivityOnStart(activity);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:502: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:517: error: cannot find symbol
super.callActivityOnStop(activity);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:514: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:526: error: cannot find symbol
super.callActivityOnResume(activity);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:524: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:532: error: cannot find symbol
super.callActivityOnPause(activity);
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:530: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:563: error: cannot find symbol
return super.newActivity(clazz,
^
symbol: variable super
location: class MonitoringInstrumentation
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:542: error: method does not override or implement a method from a supertype
@override
^
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:189: error: method fromManifest in class Builder cannot be applied to given types;
.fromManifest(this)
^
required: Instrumentation
found: AndroidJUnitRunner
reason: actual argument AndroidJUnitRunner cannot be converted to Instrumentation by method invocation conversion
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:196: error: cannot find symbol
start();
^
symbol: method start()
location: class AndroidJUnitRunner
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:219: error: constructor Builder in class Builder cannot be applied to given types;
TestExecutor.Builder executorBuilder = new TestExecutor.Builder(this);
^
required: Instrumentation
found: AndroidJUnitRunner
reason: actual argument AndroidJUnitRunner cannot be converted to Instrumentation by method invocation conversion
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:258: error: constructor ActivityFinisherRunListener in class ActivityFinisherRunListener cannot be applied to given types;
builder.addRunListener(new ActivityFinisherRunListener(this,
^
required: Instrumentation,MonitoringInstrumentation.ActivityFinisher
found: AndroidJUnitRunner,MonitoringInstrumentation.ActivityFinisher
reason: actual argument AndroidJUnitRunner cannot be converted to Instrumentation by method invocation conversion
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:309: error: method createTestRequestBuilder in class AndroidJUnitRunner cannot be applied to given types;
TestRequestBuilder builder = createTestRequestBuilder(this, bundleArgs);
^
required: Instrumentation,Bundle
found: AndroidJUnitRunner,Bundle
reason: actual argument AndroidJUnitRunner cannot be converted to Instrumentation by method invocation conversion
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:314: error: cannot find symbol
builder.addApkToScan(getContext().getPackageCodePath());
^
symbol: method getContext()
location: class AndroidJUnitRunner
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:319: error: cannot find symbol
if (null != getTargetContext()) {
^
symbol: method getTargetContext()
location: class AndroidJUnitRunner
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:321: error: cannot find symbol
getTargetContext()).buildIfPossible();
^
symbol: method getTargetContext()
location: class AndroidJUnitRunner
Note: frameworks/testing/runner/src/main/java/android/support/test/internal/runner/junit4/AndroidJUnit4ClassRunner.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
67 errors
make: *** [/home/raghav/source/cm/system/out/target/common/obj/JAVA_LIBRARIES/android-support-test-src_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1414: warning: overriding commands for target `clean'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1180: warning: ignoring old commands for target `clean'
GEN /home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
arch/arm/mach-capri/custom_boards/Kconfig:19:warning: defaults for choice values not supported
arch/arm/mach-capri/custom_boards/Kconfig:25:warning: defaults for choice values not supported
arch/arm/mach-capri/custom_boards/Kconfig:31:warning: defaults for choice values not supported
arch/arm/mach-capri/custom_boards/Kconfig:37:warning: defaults for choice values not supported
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1414: warning: overriding commands for target `clean'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1180: warning: ignoring old commands for target `clean'
GEN /home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
Using /home/raghav/source/cm/system/kernel/samsung/i9082 as source for kernel
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/raghav/source/cm/system/kernel/samsung/i9082/scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
IKCFG kernel/config_data.h
CC kernel/configs.o
LD kernel/built-in.o
++++++++++++++++++++++
CONFIG_ISP = n
obj = drivers/char/broadcom/isp
++++++++++++++++++++++
CONFIG_UNICAM = n
obj = drivers/char/broadcom/unicam
++++++++++++++++++++++
CONFIG_V3D = n
obj = drivers/char/broadcom/v3d
++++++++++++++++++++++
CONFIG_VCE = n
obj = drivers/char/broadcom/vce
VCHIQ_PLATFORM_CONFIG = capri-bi
Building for MAP build system
CONFIG_ARCH_KONA = y
echo "(new) Generating drivers/misc/vc04_services/interface/vchiq_arm/vchiq_version.c ..."
(new) Generating drivers/misc/vc04_services/interface/vchiq_arm/vchiq_version.c ...
perl /home/raghav/source/cm/system/kernel/samsung/i9082/drivers/misc/vc04_services/interface/vchiq_arm/vchiq_genversion vchiq /home/raghav/source/cm/system/kernel/samsung/i9082 > drivers/misc/vc04_services/interface/vchiq_arm/vchiq_version.c
Version cad4731a5459c8d522881166c8315b9e3418c687 (tainted)
CC drivers/misc/vc04_services/interface/vchiq_arm/vchiq_version.o
LD drivers/misc/vc04_services/vc-vchiq.o
LD drivers/misc/vc04_services/vc-vchiq-memdrv-kona.o
LD drivers/misc/vc04_services/built-in.o
LD drivers/misc/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
WARNING: modpost: Found 4 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
GZIP arch/arm/boot/compressed/piggy.gzip
SHIPPED arch/arm/boot/compressed/lib1funcs.S
SHIPPED arch/arm/boot/compressed/longlong.h
AS arch/arm/boot/compressed/lib1funcs.o
SHIPPED arch/arm/boot/compressed/divdi3.c
CC arch/arm/boot/compressed/divdi3.o
AS arch/arm/boot/compressed/piggy.gzip.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: Leaving directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
make -C kernel/samsung/i9082 O=/home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/raghav/source/cm/system/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" dtbs
make[1]: Entering directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1414: warning: overriding commands for target `clean'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1180: warning: ignoring old commands for target `clean'
make[3]: Nothing to be done for `arch/arm/boot/dtbs'.
make[1]: Leaving directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
make -C kernel/samsung/i9082 O=/home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/raghav/source/cm/system/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" modules
make[1]: Entering directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1414: warning: overriding commands for target `clean'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1180: warning: ignoring old commands for target `clean'
GEN /home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
++++++++++++++++++++++
CONFIG_ISP = n
obj = drivers/char/broadcom/isp
Using /home/raghav/source/cm/system/kernel/samsung/i9082 as source for kernel
++++++++++++++++++++++
CONFIG_UNICAM = n
obj = drivers/char/broadcom/unicam
++++++++++++++++++++++
CONFIG_V3D = n
obj = drivers/char/broadcom/v3d
CHK include/generated/utsrelease.h
++++++++++++++++++++++
CONFIG_VCE = n
obj = drivers/char/broadcom/vce
make[3]: `include/generated/mach-types.h' is up to date.
VCHIQ_PLATFORM_CONFIG = capri-bi
Building for MAP build system
CONFIG_ARCH_KONA = y
CALL /home/raghav/source/cm/system/kernel/samsung/i9082/scripts/checksyscalls.sh
++++++++++++++++++++++
CONFIG_ISP = n
obj = drivers/char/broadcom/isp
++++++++++++++++++++++
CONFIG_UNICAM = n
obj = drivers/char/broadcom/unicam
++++++++++++++++++++++
CONFIG_V3D = n
obj = drivers/char/broadcom/v3d
++++++++++++++++++++++
CONFIG_VCE = n
obj = drivers/char/broadcom/vce
VCHIQ_PLATFORM_CONFIG = capri-bi
Building for MAP build system
CONFIG_ARCH_KONA = y
Building modules, stage 2.
MODPOST 6 modules
make[1]: Leaving directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
make -C kernel/samsung/i9082 O=/home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm CROSS_COMPILE="/home/raghav/source/cm/system/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" modules_install
make[1]: Entering directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1414: warning: overriding commands for target `clean'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1180: warning: ignoring old commands for target `clean'
INSTALL crypto/md4.ko
INSTALL drivers/char/broadcom/gist.ko
INSTALL drivers/char/broadcom/sigmorph.ko
INSTALL drivers/net/wireless/bcmdhd/dhd.ko
INSTALL drivers/scsi/scsi_wait_scan.ko
INSTALL fs/cifs/cifs.ko
DEPMOD 3.0.101+
Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt
make[1]: Leaving directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
mdpath=`find /home/raghav/source/cm/system/out/target/product/i9082/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do arm-eabi-strip --strip-unneeded $i; mv $i /home/raghav/source/cm/system/out/target/product/i9082/system/lib/modules/; done; fi
mdpath=`find /home/raghav/source/cm/system/out/target/product/i9082/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
#### make failed to build some targets (14:12 (mm:ss)) ####
Can someone please help me resolve this issue? This problem is giving me a headache
Also what does this mean?
"ebtables is disabled on this build"
Temporary Fix Found:
This commit was causing the problem: Check
Deleted folder: frameworks/testing
Deleted line from default.xml: <project path="frameworks/testing" name="platform/frameworks/testing" remote="aosp" revision="android-support-test" />
Build again and this time that error would be gone..
Thanks in Advance
There are multiple people running into this issue:
https://github.com/CyanogenMod/android/commit/ddd855bbe76f07dfee1d25baf2e8eea4cef492f2
http://review.cyanogenmod.org/#/c/106886/3
I guess we will have to wait until it is fixed Unless someone here knows how to get it to build. I asked at the CyanogenMod-dev IRC and no one ran into this issue.
ebtables is a Linux firewall, and that apparantly is disabled for your build.
Hi guys i want make a kernel but when i compile, by an error :
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
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
CHK kernel/config_data.h
CC mm/page_alloc.o
mm/page_alloc.c: In function '__rmqueue_cma':
mm/page_alloc.c:1162:12: error: 'struct zone' has no member named 'cma_alloc'
if (!zone->cma_alloc = 0)
^
mm/page_alloc.c:1163:43: error: 'MIGRATE_CMA' undeclared (first use in this function)
page = __rmqueue_smallest(zone, order, MIGRATE_CMA);
^
mm/page_alloc.c:1163:43: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:308: recipe for target 'mm/page_alloc.o' failed
make[1]: *** [mm/page_alloc.o] Error 1
Makefile:825: recipe for target 'mm' failed
make: *** [mm] Error 2
in the file source the fuction __rmqueue_cma is :
static struct page *__rmqueue_cma(struct zone *zone, unsigned int order)
{
struct page *page = 0;
if (IS_ENABLED(CONFIG_CMA))
if (!zone->cma_alloc)
page = __rmqueue_smallest(zone, order, MIGRATE_CMA);
return page;
}
why ?My command to build is:
export ARCH=arm64
export SUBARCH=arm64
export CROSS_COMPILE= "mypwd"/toolchain64/bin/aarch64-linux-android-
Help my please
Up
Up up
Up