[KERNEL]{ROM] Please help if your good at kernels - Android Q&A, Help & Troubleshooting

OK me and a couple devs have been working on a cyanogenmod 11 port now i stopped using a perbuilt kernel (woulden't flash) and since im not good at kernels heres my error
Code:
CC drivers/slimbus/slimbus.o
CC net/sched/sch_drr.o
CC drivers/net/wireless/bcmdhd/src/shared/bcmevent.o
CC drivers/media/video/v4l2-ioctl.o
../../../../../../kernel/lge/f6mt/net/sched/sch_drr.c: In function 'drr_enqueue':
../../../../../../kernel/lge/f6mt/net/sched/sch_drr.c:358:11: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized]
error, forbidden warning: sch_drr.c:358
make[4]: *** [net/sched/sch_drr.o] Error 1
make[3]: *** [net/sched] Error 2
make[2]: *** [net] Error 2
make[2]: *** Waiting for unfinished jobs....
CC drivers/scsi/hosts.o
CC drivers/net/wireless/bcmdhd/src/shared/bcmutils.o
CC drivers/slimbus/slim-msm-ctrl.o
CC drivers/net/wireless/bcmdhd/src/shared/bcmwifi/src/bcmwifi_channels.o
CC drivers/scsi/scsi_ioctl.o
CC drivers/net/wireless/bcmdhd/src/shared/hndpmu.o
CC drivers/scsi/constants.o
CC drivers/scsi/scsicam.o

Related

Error compiling stock kernel

I've tried to compile liquid mini kernel from acer sources... But when i try to compile i get some errors...
Code:
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
LD arch/arm/lib/built-in.o
AS arch/arm/lib/ashldi3.o
AS arch/arm/lib/ashrdi3.o
AS arch/arm/lib/backtrace.o
AS arch/arm/lib/changebit.o
AS arch/arm/lib/clear_user.o
AS arch/arm/lib/clearbit.o
AS arch/arm/lib/copy_from_user.o
AS arch/arm/lib/copy_page.o
AS arch/arm/lib/copy_to_user.o
AS arch/arm/lib/csumipv6.o
AS arch/arm/lib/csumpartial.o
AS arch/arm/lib/csumpartialcopy.o
AS arch/arm/lib/csumpartialcopyuser.o
CC arch/arm/lib/delay.o
AS arch/arm/lib/div64.o
AS arch/arm/lib/findbit.o
AS arch/arm/lib/getuser.o
AS arch/arm/lib/io-readsb.o
AS arch/arm/lib/io-readsl.o
AS arch/arm/lib/io-readsw-armv4.o
AS arch/arm/lib/io-writesb.o
AS arch/arm/lib/io-writesl.o
AS arch/arm/lib/io-writesw-armv4.o
AS arch/arm/lib/lib1funcs.o
AS arch/arm/lib/lshrdi3.o
AS arch/arm/lib/memchr.o
AS arch/arm/lib/memcpy.o
AS arch/arm/lib/memmove.o
AS arch/arm/lib/memset.o
AS arch/arm/lib/memzero.o
AS arch/arm/lib/muldi3.o
AS arch/arm/lib/putuser.o
AS arch/arm/lib/setbit.o
AS arch/arm/lib/sha1.o
AS arch/arm/lib/strchr.o
AS arch/arm/lib/strncpy_from_user.o
AS arch/arm/lib/strnlen_user.o
AS arch/arm/lib/strrchr.o
AS arch/arm/lib/testchangebit.o
AS arch/arm/lib/testclearbit.o
AS arch/arm/lib/testsetbit.o
AS arch/arm/lib/ucmpdi2.o
AR arch/arm/lib/lib.a
CC lib/bcd.o
CC lib/div64.o
CC lib/sort.o
LD drivers/platform/built-in.o
CC drivers/power/power_supply_core.o
CC drivers/rtc/rtc-lib.o
CC lib/parser.o
CC [M] drivers/net/wireless/bcm4329/dhd_linux.o
CC lib/halfmd4.o
CC drivers/rtc/hctosys.o
CC drivers/power/power_supply_sysfs.o
drivers/net/wireless/bcm4329/dhd_linux.c: In function 'dhd_rx_frame':
drivers/net/wireless/bcm4329/dhd_linux.c:1225:24: error: variable 'save_pktbuf' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[4]: *** [drivers/net/wireless/bcm4329/dhd_linux.o] Error 1
make[3]: *** [drivers/net/wireless/bcm4329] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make[1]: *** Waiting for unfinished jobs....
CC drivers/power/cci_battery.o
CC lib/debug_locks.o
CC drivers/rtc/class.o
CC lib/random32.o
CC lib/bust_spinlocks.o
CC lib/hexdump.o
LD drivers/power/power_supply.o
CC lib/kasprintf.o
CC drivers/rtc/interface.o
CC lib/bitmap.o
CC lib/scatterlist.o
CC drivers/rtc/rtc-dev.o
CC lib/string_helpers.o
CC drivers/rtc/rtc-proc.o
CC lib/gcd.o
LD drivers/power/built-in.o
CC drivers/rtc/rtc-sysfs.o
CC lib/lcm.o
CC lib/list_sort.o
CC lib/uuid.o
CC drivers/rtc/alarm.o
CC drivers/rtc/alarm-dev.o
CC lib/iomap_copy.o
CC drivers/rtc/rtc-msm.o
CC lib/devres.o
CC lib/find_last_bit.o
LD drivers/rtc/rtc-core.o
CC lib/hweight.o
CC lib/kernel_lock.o
LD drivers/rtc/built-in.o
CC lib/bitrev.o
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
CC lib/crc-ccitt.o
CC lib/crc16.o
HOSTCC lib/gen_crc32table
CC lib/libcrc32c.o
CC lib/genalloc.o
LD lib/lzo/built-in.o
CC [M] lib/lzo/lzo1x_compress.o
CC lib/zlib_deflate/deflate.o
CC lib/zlib_inflate/inffast.o
CC lib/textsearch.o
CC [M] lib/lzo/lzo1x_decompress.o
CC lib/zlib_inflate/inflate.o
CC lib/zlib_inflate/infutil.o
LD [M] lib/lzo/lzo_compress.o
LD [M] lib/lzo/lzo_decompress.o
CC lib/zlib_deflate/deftree.o
CC lib/zlib_deflate/deflate_syms.o
CC lib/zlib_inflate/inftrees.o
CC lib/ts_kmp.o
CC lib/zlib_inflate/inflate_syms.o
CC lib/ts_bm.o
CC lib/ts_fsm.o
LD lib/zlib_inflate/zlib_inflate.o
LD lib/zlib_inflate/built-in.o
CC lib/dynamic_debug.o
CC lib/nlattr.o
LD lib/zlib_deflate/zlib_deflate.o
CC lib/argv_split.o
LD lib/zlib_deflate/built-in.o
CC lib/cmdline.o
CC lib/ctype.o
CC lib/dec_and_lock.o
CC lib/decompress.o
CC lib/decompress_inflate.o
CC lib/dump_stack.o
CC lib/extable.o
CC lib/flex_array.o
CC lib/idr.o
CC lib/int_sqrt.o
CC lib/ioremap.o
CC lib/irq_regs.o
CC lib/is_single_threaded.o
CC lib/klist.o
CC lib/kobject.o
CC lib/kobject_uevent.o
CC lib/kref.o
CC lib/plist.o
CC lib/prio_heap.o
CC lib/prio_tree.o
CC lib/proportions.o
CC lib/radix-tree.o
CC lib/ratelimit.o
lib/radix-tree.c: In function 'radix_tree_tag_get':
lib/radix-tree.c:568:6: warning: variable 'saw_unset_tag' set but not used [-Wunused-but-set-variable]
CC lib/rbtree.o
CC lib/reciprocal_div.o
CC lib/rwsem.o
CC lib/sha1.o
CC lib/show_mem.o
CC lib/string.o
CC lib/vsprintf.o
GEN lib/crc32table.h
CC lib/crc32.o
LD lib/built-in.o
AR lib/lib.a
The problem is that some users managed to compile the kernel without problems and modifications so i don't know why it won't compile...
I tried with different toolchains but there's always an error.
Someone is able to give me an advice?
I was to say.....if u are using linaro you may get those driver errors...
Have you tried the stock toolchain?
If not maybe your config has an issue....what have you done so far?
_Zoom said:
I was to say.....if u are using linaro you may get those driver errors...
Have you tried the stock toolchain?
If not maybe your config has an issue....what have you done so far?
Click to expand...
Click to collapse
Yes, i also tried the stock toolchain and i get other problems... the config was extract from the device so the problem i think isn't that. The only addition i did is only the overclock... i will try again with stock toolchain, but i think the problem is somewhere else.
Maybe it's because I'm running Ubuntu 12.10?
Maybe....i doubt it....
The error is in your wireless bcm4329 or whatever driver shown above.....also make sure you clean ur build directory before compiling each time....and if still not working maybe pull that driver from another kernel for the device of on git
_Zoom said:
Maybe....i doubt it....
The error is in your wireless bcm4329 or whatever driver shown above.....also make sure you clean ur build directory before compiling each time....and if still not working maybe pull that driver from another kernel for the device of on git
Click to expand...
Click to collapse
Yes, i cleaned my build directory... i don't know why there is this error but i think that there's a problem with the toolchain, i will try again w/ another one... And then i will try again in another virtual machine with and elder version of ubuntu...
Yes....it could be you dont have all of your build tools for the machine...
Also when u do java -version in terminal what do you get?

[Q] [Question] First Android Kernel Building Errors

Hi,
today I started building my first android-kernel.
I set everything up and configured the kernel.
(I used this guide http://ohheyitslou.blogspot.de/2011/09/ohheyitslou-custom-android-kernel-guide.html [slightly modified for the newest ndk])
But I'm getting this error :
Code:
[email protected]:~/android-kernel/kernel$ make -j3 ARCH=arm
CHK include/linux/version.h
CHK include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC scripts/mod/empty.o
gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mapcs’
gcc: error: unrecognized command line option ‘-mno-sched-prolog’
make[2]: *** [scripts/mod/empty.o] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
make[1]: *** [scripts/mod] Fehler 2
make: *** [scripts] Fehler 2
make: *** Warte auf noch nicht beendete Prozesse...
Would be very pleased if anyone can help me.
Ok .. I got it, but I get other errors
Code:
[email protected]:~/android-kernel/linux$ make -j3 ARCH=arm CROSS_COMPILE=/home/damien/android-kernel/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/arm-linux-androideabi/bin/
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
make[1]: »include/generated/mach-types.h« ist bereits aktualisiert.
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
CHK include/generated/compile.h
CC init/main.o
HOSTCC usr/gen_init_cpio
UPD include/generated/compile.h
CC arch/arm/kernel/elf.o
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/arm/mm/dma-mapping.o
AS arch/arm/kernel/entry-armv.o
AS arch/arm/kernel/entry-common.o
CC arch/arm/kernel/irq.o
arch/arm/mm/dma-mapping.c: In function '__dma_alloc':
arch/arm/mm/dma-mapping.c:238:25: warning: array subscript is above array bounds [-Warray-bounds]
pte = consistent_pte[++idx];
^
arch/arm/mm/dma-mapping.c: In function 'dma_free_coherent':
arch/arm/mm/dma-mapping.c:284:25: warning: array subscript is above array bounds [-Warray-bounds]
ptep = consistent_pte[++idx];
^
CC arch/arm/mm/extable.o
CC arch/arm/mm/fault.o
CC arch/arm/kernel/process.o
CC arch/arm/mm/init.o
CC arch/arm/kernel/ptrace.o
CC arch/arm/mm/iomap.o
CC arch/arm/kernel/return_address.o
CC arch/arm/kernel/setup.o
CC arch/arm/mm/fault-armv.o
arch/arm/kernel/setup.c: In function 'get_cpu_name':
arch/arm/kernel/setup.c:141:5: warning: return makes integer from pointer without a cast [enabled by default]
return &cpu_name;
^
arch/arm/kernel/setup.c: In function 'get_machine_name':
arch/arm/kernel/setup.c:147:5: warning: return makes integer from pointer without a cast [enabled by default]
return &machine_name;
^
arch/arm/kernel/setup.c: In function 'c_show':
arch/arm/kernel/setup.c:1034:3: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=]
seq_printf(m, "BogoMIPS\t: %lu.%02lu\n\n", ucpufreq, 0);
^
CC arch/arm/mm/flush.o
CC init/do_mounts.o
CC arch/arm/kernel/signal.o
CC arch/arm/mm/idmap.o
CC arch/arm/mm/ioremap.o
CC arch/arm/kernel/sys_arm.o
CC arch/arm/mm/mmap.o
CC arch/arm/mm/pgd.o
CC arch/arm/kernel/stacktrace.o
CC arch/arm/mm/mmu.o
CC arch/arm/kernel/time.o
CC arch/arm/kernel/traps.o
CC arch/arm/mm/vmregion.o
CC arch/arm/mm/proc-syms.o
CC arch/arm/kernel/armksyms.o
CC arch/arm/mm/alignment.o
CC init/do_mounts_rd.o
CC arch/arm/kernel/module.o
arch/arm/mm/alignment.c: In function 'do_alignment_thumb_vldr':
arch/arm/mm/alignment.c:740:6: warning: unused variable 'tinstr' [-Wunused-variable]
u16 tinstr = 0;
^
arch/arm/mm/alignment.c:739:15: warning: unused variable 'fs' [-Wunused-variable]
mm_segment_t fs;
^
arch/arm/mm/alignment.c:738:16: warning: unused variable 'instrptr' [-Wunused-variable]
unsigned long instrptr;
^
arch/arm/mm/alignment.c: In function 'do_alignment':
arch/arm/mm/alignment.c:298:15: warning: 'offset.un' may be used uninitialized in this function [-Wmaybe-uninitialized]
offset.un = -offset.un;
^
arch/arm/mm/alignment.c:784:21: note: 'offset.un' was declared here
union offset_union offset;
^
CC arch/arm/mm/highmem.o
AS arch/arm/kernel/sleep.o
CC init/do_mounts_initrd.o
CC arch/arm/kernel/smp.o
AS arch/arm/mm/abort-ev7.o
AS arch/arm/mm/pabort-v7.o
CC init/initramfs.o
AS arch/arm/mm/cache-v7.o
CC arch/arm/mm/copypage-v6.o
CC arch/arm/kernel/smp_tlb.o
CC arch/arm/mm/context.o
CC arch/arm/kernel/smp_scu.o
arch/arm/kernel/smp_scu.c: In function 'scu_enable':
arch/arm/kernel/smp_scu.c:51:2: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
if (scu_ctrl & 0x69 == 0x69)
^
AS arch/arm/mm/tlb-v7.o
CC init/calibrate.o
CC arch/arm/kernel/smp_twd.o
AS arch/arm/mm/proc-v7.o
CC arch/arm/mm/cache-l2x0.o
CC init/version.o
CC arch/arm/kernel/swp_emulate.o
arch/arm/mm/cache-l2x0.c:463:13: warning: 'l2x0_lockdown_vectors' defined but not used [-Wunused-function]
static void l2x0_lockdown_vectors(void)
^
arch/arm/mm/cache-l2x0.c: In function 'l2x0_proc_write':
arch/arm/mm/cache-l2x0.c:389:16: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result [-Wunused-result]
copy_from_user(l2x0_cmd, buffer, buf_size);
^
LD init/mounts.o
LD arch/arm/mm/built-in.o
CC arch/arm/kernel/hw_breakpoint.o
/home/damien/android-kernel/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/arm-linux-androideabi/bin/ld: internal error in relocate_special_relocatable, at /s/ndk-toolchain/src/build/../binutils/binutils-2.23/gold/arm.cc:9901
LD init/built-in.o
make[1]: *** [arch/arm/mm/built-in.o] Fehler 1
make: *** [arch/arm/mm] Fehler 2
make: *** Warte auf noch nicht beendete Prozesse...
CC arch/arm/kernel/io.o
AS arch/arm/kernel/head.o
CC arch/arm/kernel/init_task.o
LDS arch/arm/kernel/vmlinux.lds
LD arch/arm/kernel/built-in.o
/home/damien/android-kernel/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/arm-linux-androideabi/bin/ld: internal error in relocate_special_relocatable, at /s/ndk-toolchain/src/build/../binutils/binutils-2.23/gold/arm.cc:9901
make[1]: *** [arch/arm/kernel/built-in.o] Fehler 1
make[1]: *** Warte auf noch nicht beendete Prozesse...
make: *** [arch/arm/kernel] Fehler 2
AHH ..
If I use AEABI, it goes on but it doesn't end the job :
Code:
[email protected]:~/android-kernel/linux$ make -j3 ARCH=arm CROSS_COMPILE=/home/damien/android-kernel/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/arm-linux-androideabi/bin/ CONFIG_AEABI=y
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: »include/generated/mach-types.h« ist bereits aktualisiert.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm/mach-k3v2/common.o
CC arch/arm/mach-k3v2/lm.o
CC arch/arm/mach-k3v2/k3v2_clocks_ops.o
In file included from arch/arm/mach-k3v2/k3v2_clocks_ops.c:23:0:
include/hsad/config_interface.h:19:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
In file included from arch/arm/mach-k3v2/common.c:47:0:
arch/arm/mach-k3v2/include/mach/product_feature_sel.h:13:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
CC arch/arm/mach-k3v2/k3v2_clocks_cs.o
In file included from arch/arm/mach-k3v2/common.c:54:0:
arch/arm/mach-k3v2/include/mach/balong_power.h:9:0: warning: "MODEM_DEVICE_BOOT" redefined [enabled by default]
arch/arm/mach-k3v2/include/mach/xmm_power.h:8:0: note: this is the location of the previous definition
In file included from arch/arm/mach-k3v2/common.c:57:0:
arch/arm/mach-k3v2/include/mach/modem_boot_qsc6085.h:8:0: warning: "MODEM_DEVICE_BOOT" redefined [enabled by default]
arch/arm/mach-k3v2/include/mach/balong_power.h:9:0: note: this is the location of the previous definition
In file included from arch/arm/mach-k3v2/common.c:68:0:
arch/arm/mach-k3v2/include/mach/hisi_mem.h:57:2: error: #error "LCD_XRES and LCD_YRES not defined"
arch/arm/mach-k3v2/common.c:185:1: warning: initialization from incompatible pointer type [enabled by default]
arch/arm/mach-k3v2/common.c:381:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
arch/arm/mach-k3v2/common.c:382:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
CC fs/open.o
arch/arm/mach-k3v2/common.c:383:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
arch/arm/mach-k3v2/common.c:384:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
arch/arm/mach-k3v2/common.c: In function 'I2C0_reset':
arch/arm/mach-k3v2/common.c:389:1: warning: 'return' with a value, in function returning void [enabled by default]
arch/arm/mach-k3v2/common.c: In function 'I2C1_reset':
arch/arm/mach-k3v2/common.c:390:1: warning: 'return' with a value, in function returning void [enabled by default]
arch/arm/mach-k3v2/common.c: In function 'I2C2_reset':
arch/arm/mach-k3v2/common.c:391:1: warning: 'return' with a value, in function returning void [enabled by default]
arch/arm/mach-k3v2/common.c: In function 'I2C3_reset':
arch/arm/mach-k3v2/common.c:392:1: warning: 'return' with a value, in function returning void [enabled by default]
arch/arm/mach-k3v2/common.c: At top level:
arch/arm/mach-k3v2/common.c:824:2: warning: initialization from incompatible pointer type [enabled by default]
arch/arm/mach-k3v2/common.c:824:2: warning: (near initialization for 'hisik3_gpu_device.resource') [enabled by default]
arch/arm/mach-k3v2/common.c:889:2: warning: initialization from incompatible pointer type [enabled by default]
arch/arm/mach-k3v2/common.c:889:2: warning: (near initialization for 'hisik3_asp_device.resource') [enabled by default]
arch/arm/mach-k3v2/common.c:911:5: warning: initialization from incompatible pointer type [enabled by default]
arch/arm/mach-k3v2/common.c:911:5: warning: (near initialization for 'hisik3_aspdigital_device.resource') [enabled by default]
arch/arm/mach-k3v2/common.c:936:2: warning: initialization from incompatible pointer type [enabled by default]
arch/arm/mach-k3v2/common.c:936:2: warning: (near initialization for 'hisik3_hi6421_codec_device.resource') [enabled by default]
arch/arm/mach-k3v2/common.c:2121:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
arch/arm/mach-k3v2/common.c:2148:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
arch/arm/mach-k3v2/common.c:2459:2: warning: initialization from incompatible pointer type [enabled by default]
arch/arm/mach-k3v2/common.c:2459:2: warning: (near initialization for 'A9_pmu_device.resource') [enabled by default]
arch/arm/mach-k3v2/include/mach/board-hi6421-regulator.h:649:35: warning: 'extral_dynamic_dcdc_regulator' defined but not used [-Wunused-variable]
arch/arm/mach-k3v2/common.c:237:1: warning: 'dma_SPI2_RX' defined but not used [-Wunused-variable]
arch/arm/mach-k3v2/common.c:238:1: warning: 'dma_SPI2_TX' defined but not used [-Wunused-variable]
arch/arm/mach-k3v2/common.c:378:1: warning: 'I2C1_delay_sda' defined but not used [-Wunused-function]
arch/arm/mach-k3v2/common.c:380:1: warning: 'I2C3_delay_sda' defined but not used [-Wunused-function]
arch/arm/mach-k3v2/common.c:397:1: warning: 'SPI0_0_CS_init' defined but not used [-Wunused-function]
arch/arm/mach-k3v2/common.c:397:1: warning: 'SPI0_0_CS_exit' defined but not used [-Wunused-function]
arch/arm/mach-k3v2/common.c:398:1: warning: 'SPI0_1_CS_init' defined but not used [-Wunused-function]
arch/arm/mach-k3v2/common.c:398:1: warning: 'SPI0_1_CS_exit' defined but not used [-Wunused-function]
arch/arm/mach-k3v2/common.c:399:1: warning: 'SPI0_2_CS_init' defined but not used [-Wunused-function]
arch/arm/mach-k3v2/common.c:399:1: warning: 'SPI0_2_CS_exit' defined but not used [-Wunused-function]
arch/arm/mach-k3v2/common.c:400:1: warning: 'SPI0_3_CS_init' defined but not used [-Wunused-function]
arch/arm/mach-k3v2/common.c:400:1: warning: 'SPI0_3_CS_exit' defined but not used [-Wunused-function]
arch/arm/mach-k3v2/common.c:1422:24: warning: 'mmc2_resources' defined but not used [-Wunused-variable]
arch/arm/mach-k3v2/common.c:1532:12: warning: 'mmc2_init_tuning_config' defined but not used [-Wunused-variable]
arch/arm/mach-k3v2/common.c:1681:12: warning: 'sdio_cd_init' defined but not used [-Wunused-function]
arch/arm/mach-k3v2/common.c:1688:12: warning: 'sdio_cd_cleanup' defined but not used [-Wunused-function]
make[1]: *** [arch/arm/mach-k3v2/common.o] Fehler 1
make[1]: *** Warte auf noch nicht beendete Prozesse...
CC fs/read_write.o
make: *** [arch/arm/mach-k3v2] Fehler 2
make: *** Warte auf noch nicht beendete Prozesse...
CC fs/file_table.o
CC fs/super.o
CC fs/char_dev.o
CC fs/stat.o
CC fs/exec.o
CC fs/pipe.o
CC fs/namei.o
CC fs/fcntl.o
CC fs/ioctl.o
CC fs/readdir.o
CC fs/select.o
CC fs/fifo.o
CC fs/dcache.o
CC fs/inode.o
CC fs/attr.o
CC fs/bad_inode.o
CC fs/file.o
CC fs/filesystems.o
CC fs/namespace.o
CC fs/seq_file.o
CC fs/xattr.o
CC fs/libfs.o
CC fs/fs-writeback.o
CC fs/pnode.o
CC fs/drop_caches.o
CC fs/splice.o
CC fs/sync.o
CC fs/utimes.o
CC fs/stack.o
CC fs/fs_struct.o
CC fs/statfs.o
CC fs/buffer.o
CC fs/bio.o
CC fs/block_dev.o
fs/buffer.c: In function 'buffer_io_error':
fs/buffer.c:109:7: warning: unused variable 'b' [-Wunused-variable]
fs/block_dev.c: In function 'get_all_bdevs':
fs/block_dev.c:542:5: warning: return makes integer from pointer without a cast [enabled by default]
fs/block_dev.c: In function 'get_bdev_lock':
fs/block_dev.c:548:5: warning: return makes integer from pointer without a cast [enabled by default]
CC fs/direct-io.o
CC fs/mpage.o
CC fs/ioprio.o
CC fs/bio-integrity.o
CC fs/cachefiles/bind.o
CC fs/configfs/inode.o
CC fs/debugfs/inode.o
CC fs/configfs/file.o
CC fs/cachefiles/daemon.o
CC fs/configfs/dir.o
CC fs/debugfs/file.o
CC fs/cachefiles/interface.o
LD fs/debugfs/debugfs.o
LD fs/debugfs/built-in.o
CC fs/devpts/inode.o
CC fs/cachefiles/key.o
CC fs/configfs/symlink.o
LD fs/devpts/devpts.o
LD fs/devpts/built-in.o
CC fs/ext4/balloc.o
CC fs/cachefiles/main.o
CC fs/configfs/mount.o
CC fs/cachefiles/namei.o
CC fs/configfs/item.o
LD fs/configfs/configfs.o
LD fs/configfs/built-in.o
CC fs/ext4/bitmap.o
CC fs/fat/cache.o
CC fs/ext4/dir.o
CC fs/cachefiles/rdwr.o
CC fs/fat/dir.o
CC fs/ext4/file.o
CC fs/cachefiles/security.o
CC fs/ext4/fsync.o
CC fs/fat/fatent.o
CC fs/cachefiles/xattr.o
CC fs/ext4/ialloc.o
LD fs/cachefiles/cachefiles.o
LD fs/cachefiles/built-in.o
CC fs/fscache/cache.o
CC fs/fat/file.o
CC fs/fscache/cookie.o
CC fs/fat/inode.o
CC fs/ext4/inode.o
CC fs/fscache/fsdef.o
CC fs/fscache/main.o
CC fs/fscache/netfs.o
CC fs/fat/misc.o
CC fs/fscache/object.o
CC fs/fat/namei_msdos.o
CC fs/fscache/operation.o
CC fs/fat/namei_vfat.o
CC fs/fscache/page.o
LD fs/fat/fat.o
LD fs/fat/vfat.o
LD fs/fat/msdos.o
LD fs/fat/built-in.o
CC fs/fuse/dev.o
CC fs/fscache/proc.o
CC fs/ext4/page-io.o
LD fs/fscache/fscache.o
LD fs/fscache/built-in.o
CC fs/jbd2/transaction.o
CC fs/ext4/ioctl.o
CC fs/fuse/dir.o
CC fs/jbd2/commit.o
CC fs/ext4/namei.o
CC fs/fuse/file.o
CC fs/jbd2/recovery.o
CC fs/ext4/super.o
CC fs/jbd2/checkpoint.o
CC fs/fuse/inode.o
CC fs/jbd2/revoke.o
CC fs/fuse/control.o
CC fs/jbd2/journal.o
LD fs/fuse/fuse.o
LD fs/fuse/built-in.o
CC fs/nls/nls_base.o
CC fs/nls/nls_cp437.o
CC fs/nls/nls_cp850.o
CC fs/nls/nls_cp852.o
CC fs/nls/nls_cp855.o
LD fs/jbd2/jbd2.o
LD fs/jbd2/built-in.o
CC fs/notify/fsnotify.o
CC fs/nls/nls_cp936.o
CC fs/notify/notification.o
CC fs/nls/nls_cp950.o
CC fs/notify/group.o
CC fs/notify/inode_mark.o
CC fs/nls/nls_cp1250.o
CC fs/nls/nls_cp1251.o
CC fs/nls/nls_ascii.o
CC fs/notify/mark.o
CC fs/nls/nls_iso8859-1.o
CC fs/nls/nls_iso8859-2.o
CC fs/notify/vfsmount_mark.o
CC fs/nls/nls_iso8859-3.o
LD fs/notify/dnotify/built-in.o
CC fs/nls/nls_iso8859-4.o
LD fs/notify/fanotify/built-in.o
CC fs/notify/inotify/inotify_fsnotify.o
CC fs/ext4/symlink.o
CC fs/nls/nls_koi8-r.o
CC fs/nls/nls_koi8-u.o
CC fs/notify/inotify/inotify_user.o
CC fs/ext4/hash.o
CC fs/nls/nls_koi8-ru.o
CC fs/nls/nls_utf8.o
LD fs/nls/built-in.o
CC fs/ntfs/aops.o
CC fs/ext4/resize.o
LD fs/notify/inotify/built-in.o
LD fs/notify/built-in.o
CC fs/partitions/check.o
CC fs/ext4/extents.o
CC fs/partitions/ldm.o
CC fs/ntfs/attrib.o
CC fs/partitions/msdos.o
CC fs/ext4/ext4_jbd2.o
CC fs/ntfs/collate.o
CC fs/ext4/migrate.o
CC fs/partitions/efi.o
CC fs/ntfs/compress.o
CC fs/ext4/mballoc.o
LD fs/partitions/built-in.o
CC fs/proc/mmu.o
CC fs/proc/task_mmu.o
CC fs/ntfs/debug.o
CC fs/ntfs/dir.o
CC fs/proc/inode.o
CC fs/ntfs/file.o
CC fs/proc/root.o
CC fs/proc/base.o
CC fs/ext4/block_validity.o
CC fs/ntfs/index.o
CC fs/proc/generic.o
CC fs/ext4/move_extent.o
CC fs/ntfs/inode.o
CC fs/proc/array.o
CC fs/ext4/mmp.o
CC fs/ext4/xattr.o
CC fs/proc/proc_tty.o
CC fs/proc/cmdline.o
CC fs/proc/consoles.o
CC fs/ext4/xattr_user.o
CC fs/proc/cpuinfo.o
CC fs/ntfs/mft.o
CC fs/proc/devices.o
CC fs/ext4/xattr_trusted.o
CC fs/proc/interrupts.o
CC fs/ext4/acl.o
CC fs/proc/loadavg.o
CC fs/proc/meminfo.o
CC fs/ext4/xattr_security.o
CC fs/proc/stat.o
LD fs/ext4/ext4.o
LD fs/ext4/built-in.o
LD fs/quota/built-in.o
CC fs/ramfs/inode.o
CC fs/proc/uptime.o
CC fs/ntfs/mst.o
CC fs/proc/version.o
CC fs/ramfs/file-mmu.o
CC fs/ntfs/namei.o
LD fs/ramfs/ramfs.o
CC fs/proc/softirqs.o
LD fs/ramfs/built-in.o
CC fs/proc/namespaces.o
CC fs/ntfs/runlist.o
CC fs/proc/app_info.o
CC fs/proc/proc_sysctl.o
CC fs/proc/proc_net.o
CC fs/proc/kmsg.o
CC fs/proc/page.o
CC fs/ntfs/super.o
CC fs/ntfs/sysctl.o
CC fs/ntfs/unistr.o
LD fs/proc/proc.o
LD fs/proc/built-in.o
CC fs/sysfs/inode.o
CC fs/ntfs/upcase.o
CC fs/ntfs/bitmap.o
CC fs/sysfs/file.o
CC fs/ntfs/lcnalloc.o
CC fs/sysfs/dir.o
CC fs/ntfs/logfile.o
CC fs/ntfs/quota.o
CC fs/sysfs/symlink.o
CC fs/ntfs/usnjrnl.o
CC fs/sysfs/mount.o
LD fs/ntfs/ntfs.o
CC fs/sysfs/bin.o
LD fs/ntfs/built-in.o
CC fs/eventpoll.o
CC fs/sysfs/group.o
CC fs/anon_inodes.o
LD fs/sysfs/built-in.o
CC fs/signalfd.o
CC fs/timerfd.o
CC fs/eventfd.o
CC fs/locks.o
CC fs/binfmt_misc.o
CC fs/binfmt_script.o
CC fs/binfmt_elf.o
CC fs/mbcache.o
CC fs/posix_acl.o
CC fs/xattr_acl.o
CC fs/generic_acl.o
LD fs/built-in.o
raolleel said:
Hi,
today I started building my first android-kernel.
I set everything up and configured the kernel.
(I used this guide http://ohheyitslou.blogspot.de/2011/09/ohheyitslou-custom-android-kernel-guide.html [slightly modified for the newest ndk])
But I'm getting this error :
Code:
[email protected]:~/android-kernel/kernel$ make -j3 ARCH=arm
CHK include/linux/version.h
CHK include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC scripts/mod/empty.o
gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mapcs’
gcc: error: unrecognized command line option ‘-mno-sched-prolog’
make[2]: *** [scripts/mod/empty.o] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
make[1]: *** [scripts/mod] Fehler 2
make: *** [scripts] Fehler 2
make: *** Warte auf noch nicht beendete Prozesse...
Would be very pleased if anyone can help me.
Click to expand...
Click to collapse
How did you fixed that ?
h2o64 said:
How did you fixed that ?
Click to expand...
Click to collapse
Have u fixed that error? I've the same problem (Vaniraosp)
hastalafiesta said:
Have u fixed that error? I've the same problem (Vaniraosp)
Click to expand...
Click to collapse
Yes. Wrong toolchains
h2o64 said:
Yes. Wrong toolchains
Click to expand...
Click to collapse
I'm using arm-eabi-4.8 and arm-linux-androideabi-4.8 , which should i use?
hastalafiesta said:
I'm using arm-eabi-4.8 and arm-linux-androideabi-4.8 , which should i use?
Click to expand...
Click to collapse
Try both ?

LineageOS kernel compile errors - jfltexx

I'm trying to compile the LineageOS kernel source for my device Galaxy S4 (jfltexx).
Kernel: https://github.com/LineageOS/android_device_samsung_jflte
Toolchain: https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/
System: Xubuntu 17.10 (64 bit) with gcc 7.2.0 and GNU Make 4.1
In order to compile the kernel for my target, I'm using the build script from the kernel repository:
Code:
python build-all.py jf_eur
The compilation usually stops at one point and the log contains the following:
Code:
GEN /home/computer/Desktop/output/all-kernels/jf_eur/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm-jf/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:108:warning: choice value used outside its choice group
drivers/media/video/msm-jf/Kconfig:119:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:113:warning: choice value used outside its choice group
Using /home/computer/Desktop/Android/test as source for kernel
GEN /home/computer/Desktop/output/all-kernels/jf_eur/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[2]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL /home/computer/Desktop/Android/test/scripts/checksyscalls.sh
HOSTCC scripts/genksyms/genksyms.o
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
HOSTCC scripts/genksyms/lex.lex.o
SHIPPED scripts/genksyms/parse.tab.c
HOSTCC scripts/genksyms/parse.tab.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/kallsyms
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
CHK include/generated/compile.h
UPD 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
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
AS arch/arm/vfp/entry.o
AS arch/arm/vfp/vfphw.o
CC arch/arm/vfp/vfpsingle.o
CC arch/arm/vfp/vfpdouble.o
LD arch/arm/vfp/vfp.o
LD arch/arm/vfp/built-in.o
CC arch/arm/kernel/elf.o
AS arch/arm/kernel/entry-armv.o
AS arch/arm/kernel/entry-common.o
CC arch/arm/kernel/irq.o
CC arch/arm/kernel/opcodes.o
CC arch/arm/kernel/process.o
CC arch/arm/kernel/ptrace.o
CC arch/arm/kernel/return_address.o
CC arch/arm/kernel/sched_clock.o
CC arch/arm/kernel/setup.o
CC arch/arm/kernel/signal.o
CC arch/arm/kernel/stacktrace.o
CC arch/arm/kernel/sys_arm.o
CC arch/arm/kernel/time.o
CC arch/arm/kernel/traps.o
CC arch/arm/kernel/cpuidle.o
CC arch/arm/kernel/armksyms.o
CC arch/arm/kernel/module.o
AS arch/arm/kernel/sleep.o
CC arch/arm/kernel/suspend.o
CC arch/arm/kernel/smp.o
CC arch/arm/kernel/smp_tlb.o
CC arch/arm/kernel/smp_scu.o
CC arch/arm/kernel/unwind.o
CC arch/arm/kernel/swp_emulate.o
CC arch/arm/kernel/hw_breakpoint.o
CC arch/arm/kernel/update_vsyscall_arm.o
CC arch/arm/kernel/pmu.o
CC arch/arm/kernel/perf_event.o
CC arch/arm/kernel/topology.o
CC arch/arm/kernel/user_accessible_timer.o
CC arch/arm/kernel/io.o
LD arch/arm/kernel/built-in.o
AS arch/arm/kernel/head.o
CC arch/arm/kernel/init_task.o
LDS arch/arm/kernel/vmlinux.lds
CC arch/arm/mm/dma-mapping.o
CC arch/arm/mm/extable.o
CC arch/arm/mm/fault.o
CC arch/arm/mm/init.o
CC arch/arm/mm/iomap.o
CC arch/arm/mm/fault-armv.o
CC arch/arm/mm/flush.o
CC arch/arm/mm/idmap.o
CC arch/arm/mm/ioremap.o
CC arch/arm/mm/mmap.o
CC arch/arm/mm/pgd.o
CC arch/arm/mm/mmu.o
CC arch/arm/mm/vmregion.o
CC arch/arm/mm/proc-syms.o
CC arch/arm/mm/alignment.o
CC arch/arm/mm/highmem.o
AS arch/arm/mm/abort-ev7.o
AS arch/arm/mm/pabort-v7.o
AS arch/arm/mm/cache-v7.o
CC arch/arm/mm/copypage-v6.o
CC arch/arm/mm/context.o
AS arch/arm/mm/tlb-v7.o
AS arch/arm/mm/proc-v7.o
LD arch/arm/mm/built-in.o
CC arch/arm/common/gic.o
CC arch/arm/common/cpaccess.o
LD arch/arm/common/built-in.o
LD arch/arm/net/built-in.o
LD arch/arm/crypto/built-in.o
CC arch/arm/mach-msm/io.o
CC arch/arm/mach-msm/dma.o
CC arch/arm/mach-msm/memory.o
CC arch/arm/mach-msm/timer.o
CC arch/arm/mach-msm/clock.o
CC arch/arm/mach-msm/clock-voter.o
CC arch/arm/mach-msm/clock-dummy.o
CC arch/arm/mach-msm/modem_notifier.o
CC arch/arm/mach-msm/subsystem_map.o
CC arch/arm/mach-msm/acpuclock.o
CC arch/arm/mach-msm/perf_trace_counters.o
/home/computer/Desktop/Android/test/arch/arm/mach-msm/perf_trace_counters.c: In function 'tracectr_cpu_hotplug_notifier':
/home/computer/Desktop/Android/test/arch/arm/mach-msm/perf_trace_counters.c:32:18: error: 'CPU_TASKS_FROZEN' undeclared (first use in this function)
if ((action & (~CPU_TASKS_FROZEN)) == CPU_STARTING)
^
/home/computer/Desktop/Android/test/arch/arm/mach-msm/perf_trace_counters.c:32:18: note: each undeclared identifier is reported only once for each function it appears in
/home/computer/Desktop/Android/test/arch/arm/mach-msm/perf_trace_counters.c:32:40: error: 'CPU_STARTING' undeclared (first use in this function)
if ((action & (~CPU_TASKS_FROZEN)) == CPU_STARTING)
^
/home/computer/Desktop/Android/test/arch/arm/mach-msm/perf_trace_counters.c: In function 'init_tracecounters':
/home/computer/Desktop/Android/test/arch/arm/mach-msm/perf_trace_counters.c:173:2: error: implicit declaration of function 'register_cpu_notifier' [-Werror=implicit-function-declaration]
register_cpu_notifier(&tracectr_cpu_hotplug_notifier_block);
^
/home/computer/Desktop/Android/test/arch/arm/mach-msm/perf_trace_counters.c: In function 'exit_tracecounters':
/home/computer/Desktop/Android/test/arch/arm/mach-msm/perf_trace_counters.c:181:2: error: implicit declaration of function 'unregister_cpu_notifier' [-Werror=implicit-function-declaration]
unregister_cpu_notifier(&tracectr_cpu_hotplug_notifier_block);
^
cc1: some warnings being treated as errors
/home/computer/Desktop/Android/test/scripts/Makefile.build:307: recipe for target 'arch/arm/mach-msm/perf_trace_counters.o' failed
make[2]: *** [arch/arm/mach-msm/perf_trace_counters.o] Error 1
/home/computer/Desktop/Android/test/Makefile:973: recipe for target 'arch/arm/mach-msm' failed
make[1]: *** [arch/arm/mach-msm] Error 2
Makefile:130: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
I have been searching the internet, but only found one topic where a user mentioned that 'tracing' caused them this error:
I solved my problem reverting an old patch that disabled tracing, everything is up in my git
Click to expand...
Click to collapse
https://forum.xda-developers.com/showpost.php?p=53850620&postcount=32456
Since I'm using the latest kernel sources and the device is still actively supported with complete LineageOS builds, I thought the kernel should probably compile just fine. I also watched some Youtube videos where people compiled kernels the same way I am trying to.
Am I using a wrong toolchain or other programms?
I'm glad for any help, thanks!

[HELP] Compiling android kernel error

So I'm doing this guide (https://forum.xda-developers.com/zenfone2/general/compile-kernel-t3307932) by say99 on how to compile your own kernel and what I've done are the following:
Code:
sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip
export ARCH=x86_64
export CCOMPILE=$CROSS_COMPILE
export CROSS_COMPILE=x86_64-linux-
export PATH=/root/Documents/kernel/x86_64-toolchain-GCC-5.3.0/bin:$PATH
export PATH="${PATH}:/root/Documents/kernel/x86_64-toolchain-GCC-5.3.0/bin"
cd /Documents/kernel/kernel-FlareM-cm-13.0
make menuconfig
./buildzf2
now when I typed in ./buildzf2 it returns with this error:
Code:
script made by eoghan2t7 of xda
say thanks to him if this helped you :)
Current Date : 21-08-2018
Applying Build Settings
Setting CPU Cores/Threads
Setting Version Number
Setting Extra Version
Setting Defconfig
SElinux set to Enforcing
Setting bzImage Location For FlareM kernel By say99 Of XDA (thanks to eoghan2t7)
Enabling Graphite Optimizations
Enviroment Setup Complete Now Moving To Compiling
Cleaning Out Compiled Files
Starting Build Process
.config exists
Continuing To Compiler
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2500:
scripts/kconfig/confdata.c: In function ‘conf_write’:
scripts/kconfig/confdata.c:762:19: warning: ‘%s’ directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
sprintf(newname, "%s%s", dirname, basename);
^~~~~~
scripts/kconfig/confdata.c:762:19: note: assuming directive output of 7 bytes
scripts/kconfig/confdata.c:762:2: note: ‘sprintf’ output 1 or more bytes (assuming 4104) into a destination of size 4097
sprintf(newname, "%s%s", dirname, basename);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/kconfig/confdata.c:765:20: warning: ‘.tmpconfig.’ directive writing 11 bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
^~~~~~~~~~~~~~~~~
scripts/kconfig/confdata.c:765:3: note: ‘sprintf’ output between 13 and 4119 bytes into a destination of size 4097
sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/external_drivers/camera/Kconfig:5:warning: config symbol defined without type
make[1]: Nothing to be done for 'all'.
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
make[1]: Nothing to be done for 'relocs'.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC init/version.o
LD init/built-in.o
CC arch/x86/kernel/acpi/cstate.o
CC kernel/sys.o
CC arch/x86/kernel/kprobes/core.o
CC arch/x86/kernel/cpu/intel_cacheinfo.o
CC arch/x86/kernel/kprobes/opt.o
CC arch/x86/kernel/cpu/common.o
CC arch/x86/kernel/kprobes/ftrace.o
arch/x86/kernel/acpi/cstate.c:163:6: error: redefinition of ‘mwait_idle_with_hints’
void mwait_idle_with_hints(unsigned long ax, unsigned long cx)
^
In file included from arch/x86/kernel/acpi/cstate.c:16:0:
/root/Documents/kernel/kernel-FlareM-cm-13.0/arch/x86/include/asm/mwait.h:28:20: note: previous definition of ‘mwait_idle_with_hints’ was here
static inline void mwait_idle_with_hints(unsigned long eax, unsigned long ecx)
^
scripts/Makefile.build:308: recipe for target 'arch/x86/kernel/acpi/cstate.o' failed
make[3]: *** [arch/x86/kernel/acpi/cstate.o] Error 1
scripts/Makefile.build:455: recipe for target 'arch/x86/kernel/acpi' failed
make[2]: *** [arch/x86/kernel/acpi] Error 2
make[2]: *** Waiting for unfinished jobs....
LD arch/x86/kernel/kprobes/built-in.o
CC arch/x86/kernel/cpu/match.o
CC kernel/power/consoleearlysuspend.o
CC arch/x86/kernel/cpu/bugs_64.o
CC arch/x86/kernel/cpu/intel.o
CC kernel/trace/trace.o
CC arch/x86/kernel/cpu/amd.o
kernel/power/consoleearlysuspend.c: In function ‘console_early_suspend’:
kernel/power/consoleearlysuspend.c:28:2: error: implicit declaration of function ‘acquire_console_sem’ [-Werror=implicit-function-declaration]
acquire_console_sem();
^
kernel/power/consoleearlysuspend.c:34:2: error: implicit declaration of function ‘release_console_sem’ [-Werror=implicit-function-declaration]
release_console_sem();
^
cc1: some warnings being treated as errors
scripts/Makefile.build:308: recipe for target 'kernel/power/consoleearlysuspend.o' failed
make[2]: *** [kernel/power/consoleearlysuspend.o] Error 1
scripts/Makefile.build:455: recipe for target 'kernel/power' failed
make[1]: *** [kernel/power] Error 2
make[1]: *** Waiting for unfinished jobs....
CC arch/x86/kernel/cpu/centaur.o
CC arch/x86/kernel/cpu/perf_event.o
CC arch/x86/kernel/cpu/perf_event_amd.o
LD kernel/trace/built-in.o
Makefile:845: recipe for target 'kernel' failed
make: *** [kernel] Error 2
make: *** Waiting for unfinished jobs....
CC arch/x86/kernel/cpu/perf_event_amd_uncore.o
CC arch/x86/kernel/cpu/perf_event_p6.o
CC arch/x86/kernel/cpu/perf_event_knc.o
PASYMS arch/x86/realmode/rm/pasyms.h
LDS arch/x86/realmode/rm/realmode.lds
CC arch/x86/kernel/cpu/perf_event_p4.o
LD arch/x86/realmode/rm/realmode.elf
RELOCS arch/x86/realmode/rm/realmode.relocs
CC arch/x86/kernel/cpu/perf_event_intel_lbr.o
OBJCOPY arch/x86/realmode/rm/realmode.bin
CC arch/x86/kernel/cpu/perf_event_intel_ds.o
AS arch/x86/realmode/rmpiggy.o
CC arch/x86/kernel/cpu/perf_event_intel.o
CC arch/x86/kernel/cpu/perf_event_intel_uncore.o
LD arch/x86/realmode/built-in.o
CC arch/x86/kernel/cpu/mcheck/mce.o
CC arch/x86/kernel/cpu/mtrr/main.o
CC arch/x86/kernel/cpu/mtrr/if.o
CC arch/x86/kernel/cpu/perfctr-watchdog.o
CC arch/x86/kernel/cpu/mcheck/mce_intel.o
CC arch/x86/kernel/cpu/mcheck/mce_amd.o
CC arch/x86/kernel/cpu/mtrr/generic.o
CC arch/x86/kernel/cpu/perf_event_amd_ibs.o
CC arch/x86/kernel/cpu/mcheck/threshold.o
CC arch/x86/kernel/cpu/mcheck/therm_throt.o
CC arch/x86/kernel/cpu/mtrr/cleanup.o
CC arch/x86/kernel/cpu/mcheck/mce-apei.o
CC [M] arch/x86/kernel/cpu/mcheck/mce-inject.o
VDSOSYM arch/x86/vdso/vdso-syms.lds
VDSOSYM arch/x86/vdso/vdsox32-syms.lds
CC arch/x86/kernel/cpu/vmware.o
VDSOSYM arch/x86/vdso/vdso32-int80-syms.lds
VDSOSYM arch/x86/vdso/vdso32-syscall-syms.lds
VDSOSYM arch/x86/vdso/vdso32-sysenter-syms.lds
VDSOSYM arch/x86/vdso/vdso32-syms.lds
LD arch/x86/kernel/cpu/mcheck/built-in.o
CC arch/x86/kernel/cpu/hypervisor.o
LD arch/x86/vdso/built-in.o
CC arch/x86/kernel/cpu/mshyperv.o
LD arch/x86/kernel/cpu/mtrr/built-in.o
LD arch/x86/kernel/cpu/built-in.o
scripts/Makefile.build:455: recipe for target 'arch/x86/kernel' failed
make[1]: *** [arch/x86/kernel] Error 2
Makefile:845: recipe for target 'arch/x86' failed
make: *** [arch/x86] Error 2
arch/x86/boot/bzImage Does Not Exists Please Check For Compile Errors
Now exiting script
anything I could do? Any help would be appreciated.
i have also several problems on galaxy s7 kernel

NEED HELP (error compilling kernel)

Hi,
When compiling android 11 kernel, i get theses errors:
[...]
CC net/wireless/ocb.o
CC net/xfrm/xfrm_proc.o
CC net/wireless/wext-core.o
CC net/xfrm/xfrm_algo.o
CC net/wireless/wext-proc.o
CC net/wireless/wext-spy.o
CC net/wireless/wext-priv.o
CC net/xfrm/xfrm_user.o
CC net/wireless/regdb.o
CC net/xfrm/xfrm_ipcomp.o
CC net/xfrm/xfrm_interface.o
AR net/wireless/cfg80211.o
CC net/compat.o
AR net/wireless/built-in.o
CC net/sysctl_net.o
AR net/xfrm/built-in.o
AR net/built-in.o
make[1]: *** [Makefile:152: sub-make] Error 2
make: *** [Makefile:24: __sub-make] Error 2
[email protected]:~/git/android11_kernel$
I only added a few cpu governors
Who has ever had the same issue and who can help please ?
0

Categories

Resources