Im compiling the google play edition stock kernel for the htc one m8 varient. The kernel is 3.4.0-gb1b6fb1 for android 4.4.4. Im using Ubuntu 14.04.1 LTS. I used the following command:
make -j2 ARCH=arm CROSS_COMPILE=/home/richard/Workspace/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-.
So here is the error:
LD drivers/video/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `dwc3_msm_probe':
/home/richard/Workspace/kernel1/drivers/usb/dwc3/dwc3-msm.c:2561: undefined reference to `rom_stockui'
make: *** [.tmp_vmlinux1] Error 1
Click to expand...
Click to collapse
How can I fix this? Im working on a project that is due in two days. Any help is appreciated!
Anyone please?
Related
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.
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
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.
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!
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