Compile the following error CM-kernel, how to solve? - Android Q&A, Help & Troubleshooting

CC arch/arm/mach-msm/display/villec2-panel.o
arch/arm/mach-msm/display/villec2-panel.c:80: error: unknown field 'autobl_enable' specified in initializer
arch/arm/mach-msm/display/villec2-panel.c:80: warning: initialization from incompatible pointer type
error, forbidden warning: villec2-panel.c:80
make[2]: *** [arch/arm/mach-msm/display/villec2-panel.o] error 1
make[1]: *** [arch/arm/mach-msm/display] error 2
make: *** [arch/arm/mach-msm] error 2

Related

[Q] Compiling CM kernel error

Im trying to compile a CM kernel for my device using this guide:
http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source
I run into this error:
[email protected]:~/android/kernel/cm-kernel$ make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
cc1: error: unrecognized command line option ‘-mlittle-endian’
cc1: error: unrecognized command line option ‘-mapcs’
cc1: error: unrecognized command line option ‘-mno-sched-prolog’
scripts/mod/empty.c:1:0: error: unknown ABI (apcs-gnu) for -mabi= switch
scripts/mod/empty.c:1:0: error: bad value (armv4t) for -march= switch
scripts/mod/empty.c:1:0: error: bad value (arm9tdmi) for -mtune= switch
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/android/kernel/cm-kernel$
I did have a look in the scripts/mod/empty.c file. Only line of txt in there is:
/* empty file to figure out endianness / word size */
my config file: http://www.mediafire.com/?5kq9m6vecl22rzx
Someone a idee how to fix this problem?

[Q] On Compile Kernel Error?

PHP:
CHK include/generated/compile.h
target SharedLib: libaudioflinger (out/target/product/galaxysmtd/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/LINKED/libaudioflinger.so)
/home/mehmet/android/slim/kernel/samsung/samsung-kernel-aries/scripts/gen_initramfs_list.sh: Cannot open '../ics-ramdisk/jb_combo/'
make[3]: *** [usr/initramfs_data.cpio.lzma] Error 1
make[2]: *** [usr] Error 2
make[1]: *** [sub-make] Error 2
make[1]: `/home/mehmet/android/slim/kernel/samsung/samsung-kernel-aries' exiting the directory
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs ....
what is the problem and how i can fix ?
Bump

[PORTING]Have log when trying to port ubuntu touch...

Hello guys, I have never ported something like this, or used this method. I have a log with a couple errors, probably something as easy as a typo, but I cannot seem to fix this. anyone like to assist?
Code:
In file included from external/gpg/g10/options.h:25:0,
from external/gpg/g10/passphrase.c:47:
external/gpg/g10/main.h:126:7: note: expected 'const unsigned char *' but argument is of type 'const char *'
external/gpg/g10/passphrase.c: In function 'hash_passphrase':
external/gpg/g10/passphrase.c:1033:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/gpg/g10/passphrase.c:1056:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/gpg/g10/passphrase.c:1060:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/gpg/g10/passphrase.c:1062:3: warning: pointer targets in passing argument 2 of 'md_write' differ in signedness [-Wpointer-sign]
In file included from external/gpg/g10/main.h:25:0,
from external/gpg/g10/options.h:25,
from external/gpg/g10/passphrase.c:47:
external/gpg/g10/../include/cipher.h:139:6: note: expected 'const byte *' but argument is of type 'char *'
external/gpg/g10/passphrase.c:1070:17: warning: pointer targets in passing argument 2 of 'md_write' differ in signedness [-Wpointer-sign]
In file included from external/gpg/g10/main.h:25:0,
from external/gpg/g10/options.h:25,
from external/gpg/g10/passphrase.c:47:
external/gpg/g10/../include/cipher.h:139:6: note: expected 'const byte *' but argument is of type 'char *'
external/gpg/g10/passphrase.c:1074:6: warning: pointer targets in passing argument 2 of 'md_write' differ in signedness [-Wpointer-sign]
In file included from external/gpg/g10/main.h:25:0,
from external/gpg/g10/options.h:25,
from external/gpg/g10/passphrase.c:47:
external/gpg/g10/../include/cipher.h:139:6: note: expected 'const byte *' but argument is of type 'char *'
Downloading ubuntu-touch-generic-initrd version 0.16
make: *** No rule to make target `/home/mitchell/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp', needed by `/home/mitchell/out/target/common/obj/APPS/GalaxyS3Settings_intermediates/src/R.stamp'. Stop.
make: *** Waiting for unfinished jobs....
drivers/media/video/msm/Kconfig:123:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:128:warning: choice value used outside its choice group
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[3]: *** [cyanogen_d2_defconfig] Error 1
make[2]: *** [cyanogen_d2_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/mitchell/kernel/samsung/d2'
make: *** [/home/mitchell/out/target/product/d2usc/obj/KERNEL_OBJ/.config] Error 2
Couple questions:
1. This part:
Code:
Downloading ubuntu-touch-generic-initrd version 0.16
make: *** No rule to make target `/home/mitchell/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp', needed by `/home/mitchell/out/target/common/obj/APPS/GalaxyS3Settings_intermediates/src/R.stamp'. Stop.
This is the first error I can see, I have no idea how to fix it, and ideas?
============================================================
2. This:
Code:
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[3]: *** [cyanogen_d2_defconfig] Error 1
make[2]: *** [cyanogen_d2_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/mitchell/kernel/samsung/d2'
make: *** [/home/mitchell/out/target/product/d2usc/obj/KERNEL_OBJ/.config] Error 2
What does this even mean?
Any type of help is appriciated. Thank you.
error 1
sandix said:
Hello guys, I have never ported something like this, or used this method. I have a log with a couple errors, probably something as easy as a typo, but I cannot seem to fix this. anyone like to assist?
Code:
In file included from external/gpg/g10/options.h:25:0,
from external/gpg/g10/passphrase.c:47:
external/gpg/g10/main.h:126:7: note: expected 'const unsigned char *' but argument is of type 'const char *'
external/gpg/g10/passphrase.c: In function 'hash_passphrase':
external/gpg/g10/passphrase.c:1033:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/gpg/g10/passphrase.c:1056:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/gpg/g10/passphrase.c:1060:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/gpg/g10/passphrase.c:1062:3: warning: pointer targets in passing argument 2 of 'md_write' differ in signedness [-Wpointer-sign]
In file included from external/gpg/g10/main.h:25:0,
from external/gpg/g10/options.h:25,
from external/gpg/g10/passphrase.c:47:
external/gpg/g10/../include/cipher.h:139:6: note: expected 'const byte *' but argument is of type 'char *'
external/gpg/g10/passphrase.c:1070:17: warning: pointer targets in passing argument 2 of 'md_write' differ in signedness [-Wpointer-sign]
In file included from external/gpg/g10/main.h:25:0,
from external/gpg/g10/options.h:25,
from external/gpg/g10/passphrase.c:47:
external/gpg/g10/../include/cipher.h:139:6: note: expected 'const byte *' but argument is of type 'char *'
external/gpg/g10/passphrase.c:1074:6: warning: pointer targets in passing argument 2 of 'md_write' differ in signedness [-Wpointer-sign]
In file included from external/gpg/g10/main.h:25:0,
from external/gpg/g10/options.h:25,
from external/gpg/g10/passphrase.c:47:
external/gpg/g10/../include/cipher.h:139:6: note: expected 'const byte *' but argument is of type 'char *'
Downloading ubuntu-touch-generic-initrd version 0.16
make: *** No rule to make target `/home/mitchell/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp', needed by `/home/mitchell/out/target/common/obj/APPS/GalaxyS3Settings_intermediates/src/R.stamp'. Stop.
make: *** Waiting for unfinished jobs....
drivers/media/video/msm/Kconfig:123:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:128:warning: choice value used outside its choice group
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[3]: *** [cyanogen_d2_defconfig] Error 1
make[2]: *** [cyanogen_d2_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/mitchell/kernel/samsung/d2'
make: *** [/home/mitchell/out/target/product/d2usc/obj/KERNEL_OBJ/.config] Error 2
Couple questions:
1. This part:
Code:
Downloading ubuntu-touch-generic-initrd version 0.16
make: *** No rule to make target `/home/mitchell/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp', needed by `/home/mitchell/out/target/common/obj/APPS/GalaxyS3Settings_intermediates/src/R.stamp'. Stop.
This is the first error I can see, I have no idea how to fix it, and ideas?
============================================================
2. This:
Code:
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[3]: *** [cyanogen_d2_defconfig] Error 1
make[2]: *** [cyanogen_d2_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/mitchell/kernel/samsung/d2'
make: *** [/home/mitchell/out/target/product/d2usc/obj/KERNEL_OBJ/.config] Error 2
What does this even mean?
Any type of help is appriciated. Thank you.
Click to expand...
Click to collapse
You can fix error number one by removing the sgs3setting section in "{}{}your directory{}{}/device/samsung/msm8960-common/msm8960.mk"
Or device specific alternative of this file.

Trying to build a kernel

I am trying to build a kernel for moto g 2014 based on cm source.
Code:
[email protected]:~/kernelmoto$ export ARCH=arm
[email protected]:~/kernelmoto$ export CROSS_COMPILER=~/android/arm-cortex_a7-linux/arm-cortex_a7-linux-gnueabihf-
[email protected]:~/kernelmoto$ make titan_defconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
#
# configuration written to .config
#
[email protected]:~/kernelmoto$ make -j6
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
CHK include/linux/version.h
CC scripts/mod/empty.o
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:515: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/kernelmoto$
what am I missing, I am using the linaro toolchain. How do I fix these errors?

Error While Making CyanogenMod Recovery

So, I was trying to do the command:
Code:
make recoveryimage -j5
And got this error:
Code:
CC arch/arm/mach-msm/hotplug.o
CC arch/arm/mach-msm/board-8916.o
CC arch/arm/mach-msm/ext-buck-control.o
CC arch/arm/mach-msm/msm_mem_hole.o
LD arch/arm/mach-msm/built-in.o
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/tanuj/android/cyanogenmod/kernel/xolo/black'
build/core/tasks/kernel.mk:286: recipe for target 'TARGET_KERNEL_BINARIES' failed
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
target thumb C++: recovery <= bootable/recovery/adb_install.cpp
make: *** wait: No child processes. Stop.
#### make failed to build some targets (06:35 (mm:ss)) ####
Can somebody tell me how to get rid of this?

Categories

Resources