[Q] Compiling on update6 a SpeedMod Kernel Based - Galaxy S III Q&A, Help & Troubleshooting

Hi,
i try to create my undervolted speedmod S3 (update3) kernel (phenomenal style) but i have multiple errors on compiling time that i haven't if i create the same kernel based on speedmod k3-26 for i9100 (update6). i use toolchain 4.4.3
here my compile.log
Code:
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
Generating 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
SHIPPED scripts/genksyms/lex.c
SHIPPED scripts/genksyms/parse.h
SHIPPED scripts/genksyms/keywords.c
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/genksyms/parse.o
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/kallsyms
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/conmakehash
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
CC init/main.o
HOSTCC usr/gen_init_cpio
GEN usr/initramfs_data.cpio
{standard input}: Assembler messages:
{standard input}:268: Error: selected processor does not support `cpsie i'
{standard input}:761: Error: selected processor does not support `cpsid i'
{standard input}:852: Error: selected processor does not support `cpsid i'
{standard input}:874: Error: selected processor does not support `cpsie i'
make[1]: *** [init/main.o] Errore 1
make: *** [init] Errore 2
make: *** Attesa per i processi non terminati....
AS usr/initramfs_data.o
LD usr/built-in.o
what can i do? any ideas?

giajp said:
Hi,
i try to create my undervolted speedmod S3 (update3) kernel (phenomenal style) but i have multiple errors on compiling time that i haven't if i create the same kernel based on speedmod k3-26 for i9100 (update6). i use toolchain 4.4.3
here my compile.log
Code:
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
Generating 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
SHIPPED scripts/genksyms/lex.c
SHIPPED scripts/genksyms/parse.h
SHIPPED scripts/genksyms/keywords.c
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/genksyms/parse.o
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/kallsyms
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/conmakehash
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
CC init/main.o
HOSTCC usr/gen_init_cpio
GEN usr/initramfs_data.cpio
{standard input}: Assembler messages:
{standard input}:268: Error: selected processor does not support `cpsie i'
{standard input}:761: Error: selected processor does not support `cpsid i'
{standard input}:852: Error: selected processor does not support `cpsid i'
{standard input}:874: Error: selected processor does not support `cpsie i'
make[1]: *** [init/main.o] Errore 1
make: *** [init] Errore 2
make: *** Attesa per i processi non terminati....
AS usr/initramfs_data.o
LD usr/built-in.o
what can i do? any ideas?
Click to expand...
Click to collapse
I am not a toolchain expert but the problem may be in toolchain, try an older version (4.4).
Or if someone else here can help you can try to modify arch/arm/Makefile....

Related

Kernel Compiling Error

I'm trying to compile a kernel for my Neo V.
But it stops at error.
Error:
Code:
ARCH=arm CROSS_COMPILE=/host/arm/bin/arm-none-linux-gnueabi- make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
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
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1562:12: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1982:10: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:112:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
In file included from include/linux/mempolicy.h:62:0,
from init/main.c:52:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: error: variable 'c' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
Error at Last line.
Why this happening?
I followed the Sony Ericsson Tutorial.
svprm said:
I'm trying to compile a kernel for my Neo V.
But it stops at error.
Error:
Code:
ARCH=arm CROSS_COMPILE=/host/arm/bin/arm-none-linux-gnueabi- make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
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
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1562:12: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1982:10: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:112:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
In file included from include/linux/mempolicy.h:62:0,
from init/main.c:52:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: error: variable 'c' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
Error at Last line.
Why this happening?
I followed the Sony Ericsson Tutorial.
Click to expand...
Click to collapse
gcc and make need to be a certain version. What OS are you running?
Ubuntu 11.10
Sent from my MT11i using XDA App
I met the same issue in the few days ago.
But these issues had been resolved as follow solution:
1. Remove the -Wall argument in the Kernel/ Makefile
2. Copy the cc1 from eabi tool chain sub folder libexec/gcc/arm-none-eabi/4.6.1
(OR, you can create the soft link from libexec/gcc/arm-none-eabi/4.6.1 to current working directory)
Kernel Compilation error.
Hi All,
I have an LG O2X, and trying to compile stock kernel.
But while compiling i am facing the following error.
[email protected]:/home/kartik/Desktop/DriodKernel/kernel# make ARCH=arm CROSS_COMPILE=/home/kartik/Desktop/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
<command-line>: error: macro names must be identifiers
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
PLzzz help.

[Q]Compiling Galaxy 5.0 kernel

Hi, i have got a problem with galaxy 5.0 kernel
I have downloaded Kernel source from rumraid git profile
but i have got problem, i will post the problem below
whole of text during compilng
Code:
make -j5 arch=arm CROSS_COMPILE=/media/home/android/arm-2009q3/bin/arm-none-eabi-
CHK include/linux/version.h
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
CHK include/generated/utsrelease.h
HOSTCC scripts/kallsyms
HOSTCC scripts/conmakehash
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
HOSTCC scripts/bin2c
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
make[1]: `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 scripts/checksyscalls.sh
HOSTLD scripts/mod/modpost
CC init/main.o
CHK include/generated/compile.h
CC init/do_mounts.o
CC init/do_mounts_rd.o
HOSTCC usr/gen_init_cpio
CC init/do_mounts_initrd.o
In file included from init/main.c:86:
include/linux/kernel_sec_common.h:46: warning: "S3C_PA_WDT" redefined
arch/arm/mach-s5pv210/include/mach/map.h:212: note: this is the location of the previous definition
/media/home/android/kernels/galaxy50/scripts/gen_initramfs_list.sh: Cannot open '/home/rj/android/asmzis/G70XXKPF-initrd-clock'
make[1]: *** [usr/initramfs_data.cpio.lzma] Error 1
make: *** [usr] Error 2
make: *** Waiting for unfinished jobs....
CC init/initramfs.o
CC init/calibrate.o
CC init/version.o
LD init/mounts.o
LD init/built-in.o
During compiling i have got those errors
Code:
/media/home/android/kernels/galaxy50/scripts/gen_initramfs_list.sh: Cannot open '/home/rj/android/asmzis/G70XXKPF-initrd-clock'
make[1]: *** [usr/initramfs_data.cpio.lzma] Error 1
make: *** [usr] Error 2
what should i do? i have downloaded initrd for galaxt5.0 from rumraid git's profile, but when i type (if i should type it) i have got errors too
Code:
[email protected]:/media/home/android/kernels/galaxy50# make -j5 CONFIG_INITRAMFS_SOURCE=/media/home/kernels/initrd
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
/media/home/android/kernels/galaxy50/scripts/gen_initramfs_list.sh: Cannot open '/media/home/kernels/initrd'
make[1]: *** [usr/initramfs_data.cpio.lzma] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [usr] Error 2
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
Please delete... I thought I had something to contribute but it is for a different issue.

Error compiling kernel

Code:
make
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `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 scripts/checksyscalls.sh
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
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
CC init/do_mounts_md.o
LD init/mounts.o
CC init/initramfs.o
CC init/calibrate.o
LD init/built-in.o
AS usr/initramfs_data.o
LD usr/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/process.o
CC arch/arm/kernel/ptrace.o
CC arch/arm/kernel/return_address.o
CC arch/arm/kernel/setup.o
CC arch/arm/kernel/signal.o
CC arch/arm/kernel/sys_arm.o
CC arch/arm/kernel/stacktrace.o
CC arch/arm/kernel/time.o
CC arch/arm/kernel/traps.o
/home/basel/Desktop/pla/bin/arm-linux-androideabi-ld: internal error in relocate_special_relocatable, at /tmp/android-build-bb7e003d31d08f72cabc269a652912b7/src/build/../binutils/binutils-20100303/gold/arm.cc:9715
make[1]: *** [arch/arm/kernel/traps.o] Error 1
make: *** [arch/arm/kernel] Error 2
That is the error
Is there any way to fiix this error??
android 4.0.4
kernel 3.08
toolchain ver:
arm-linux-androideabi-4.6 : fail same error
arm-linux-androideabi-4.8 : fail same error
arm-linux-androideabi-4.4.x : arm.cc:9715
using ubuntu 12.04 x86 virtual box
make menuconfig
exit and save
then make
any help????
--Edit--
Solved
my problem was wrong configiration
Any help???
Solved
Solved

[HELP][KERNEL]Problems in porting interactive CPU governor to kernel

Hi guys,
I'm building dorimanX kernel for the samsung galaxy s2 and I've update the interactive CPU governor. The problem is that the CPU governor fails to compile with the following error:
Code:
GCC 4.9.X Compiler Detected, building
not dorimanx system detected, setting 4 build threads
removing old temp initramfs_source
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/generated/uapi/linux/version.h
CHK 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]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 9 modules
LD [M] drivers/block/eds/eds.ko
LD [M] drivers/net/wireless/bcmdhd/dhd.ko
LD [M] drivers/samsung/fm_si4709/Si4709_driver.ko
LD [M] drivers/scsi/scsi_wait_scan.ko
LD [M] drivers/usb/serial/ftdi_sio.ko
LD [M] drivers/usb/serial/pl2303.ko
LD [M] drivers/usb/serial/usbserial.ko
LD [M] fs/cifs/cifs.ko
LD [M] fs/exfat/exfat.ko
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/fs/exfat/exfat.ko’ -> ‘/tmp/initramfs_source/lib/modules/exfat.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/fs/cifs/cifs.ko’ -> ‘/tmp/initramfs_source/lib/modules/cifs.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/scsi/scsi_wait_scan.ko’ -> ‘/tmp/initramfs_source/lib/modules/scsi_wait_scan.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/samsung/fm_si4709/Si4709_driver.ko’ -> ‘/tmp/initramfs_source/lib/modules/Si4709_driver.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/net/wireless/bcmdhd/dhd.ko’ -> ‘/tmp/initramfs_source/lib/modules/dhd.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/block/eds/eds.ko’ -> ‘/tmp/initramfs_source/lib/modules/eds.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/usb/serial/usbserial.ko’ -> ‘/tmp/initramfs_source/lib/modules/usbserial.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/usb/serial/ftdi_sio.ko’ -> ‘/tmp/initramfs_source/lib/modules/ftdi_sio.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/usb/serial/pl2303.ko’ -> ‘/tmp/initramfs_source/lib/modules/pl2303.ko’
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/devicetable-offsets.s
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
GEN usr/initramfs_data.cpio
CC drivers/cpufreq/cpufreq_interactive.o
drivers/cpufreq/cpufreq_interactive.c:135:98: error: static declaration of 'get_cpu_idle_time' follows non-static declaration
static inline cputime64_t get_cpu_idle_time(unsigned int cpu,
^
In file included from drivers/cpufreq/cpufreq_interactive.c:21:0:
include/linux/cpufreq.h:144:5: note: previous declaration of 'get_cpu_idle_time' was here
u64 get_cpu_idle_time(unsigned int cpu, u64 *wall);
^
make[2]: *** [drivers/cpufreq/cpufreq_interactive.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
AS usr/initramfs_data.o
LD usr/built-in.o
real 0m2.600s
user 0m2.171s
sys 0m2.650s
Kernel STUCK in BUILD! no zImage exist
Any ideas?
Thanks, gsstudios
Apparently your get_cpu_idle_time function collides with another one. You need to check if the version declared in the header file is implemented elsewhere or if you are supposed to implement it (without "static" and with the same parameter and return types). If it is implemented elsewhere you need to find out if you can simply use it instead of the inline function or if you need to rename your inline function and its calls.

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!

Categories

Resources