Hello gods of kernel construction, I would like to request your help asking if you have ever encountered this error, if so, how did you manage to solve it?
Can Anyone Help In Merging Caf Tags?
did you forgot to include header files ?
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
https://github.com/cyberknight777/dragonheart_kernel_oneplus_sm8150/commit/f07f7732ac31ac8272abe976c0a20ad76caf7b0c
This???
The aarch64linux and aarch64linuxb emulation modes are not supported by
bare-metal toolchains and Linux using them forbids building the kernel
with these toolchains.
Since there is apparently no r…
make[2]: *** [../arch/arm64/kernel/vdso32/Makefile:138: arch/arm64/kernel/vdso32/vdso.so.raw] Error 1
make[1]: *** [arch/arm64/Makefile:288: vdso_prepare] Error 2
make[1]: *** Waiting for unfinished jobs….
HOSTCC scripts/conmakehash
HOSTCC scripts/sortextable
HOSTCC scripts/asn1_compiler
HOSTCC scripts/extract-cert
make[1]: Leaving directory ‘/home/runner/work/kernel_xiaomi_sm6150/kernel_xiaomi_sm6150/out’
make: *** [Makefile:146: sub-make] Error 2
In file included from ../arch/arm64/kernel/asm-offsets.c:22:
In file included from ../include/linux/mm.h:27:
In file included from ../include/linux/memremap.h:8:
../arch/arm64/include/asm/pgtable.h:827:10: error: implicit declaration of function ‘cpu_has_hw_af’ [-Werror,-Wimplicit-function-declaration]
In file included from ../arch/arm64/kernel/asm-offsets.c:22:
In file included from ../include/linux/mm.h:27:
In file included from ../include/linux/memremap.h:8:
../arch/arm64/include/asm/pgtable.h:827:10: error: implicit declaration of function ‘cpu_has_hw_af’ [-Werror,-Wimplicit-function-declaration]
did you forgot to include header files ?
In file included from ../arch/arm64/kernel/asm-offsets.c:22:
In file included from ../include/linux/mm.h:27:
In file included from ../include/linux/memremap.h:8:
../arch/arm64/include/asm/pgtable.h:827:10: error: implicit declaration of function ‘cpu_has_hw_af’ [-Werror,-Wimplicit-function-declaration]
Function is wrongly declared
See the codes and check if its properly declared or not
Do anybody have an experience in Android kernel debugging/tracing? Preferably 4.19+ kernels & Android 9+
make[1]: Entering directory ‘/home/hyper/nitrogenos/out/target/product/RMX1851/obj/KERNEL_OBJ’
HOSTCC scripts/basic/fixdep
GEN ./Makefile
/home/hyper/nitrogenos/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/../sysroot/usr/lib/crt1.o(.text+0x12): error: undefined reference to ‘__libc_csu_fini’
/home/hyper/nitrogenos/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/../sysroot/usr/lib/crt1.o(.text+0x19): error: undefined reference to ‘__libc_csu_init’
collect2: error: ld returned 1 exit status
make[1]: Entering directory ‘/home/hyper/nitrogenos/out/target/product/RMX1851/obj/KERNEL_OBJ’
HOSTCC scripts/basic/fixdep
GEN ./Makefile
/home/hyper/nitrogenos/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/../sysroot/usr/lib/crt1.o(.text+0x12): error: undefined reference to ‘__libc_csu_fini’
/home/hyper/nitrogenos/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/../sysroot/usr/lib/crt1.o(.text+0x19): error: undefined reference to ‘__libc_csu_init’
collect2: error: ld returned 1 exit status
got this while building kernel. how to fix?
make[1]: Entering directory ‘/home/hyper/nitrogenos/out/target/product/RMX1851/obj/KERNEL_OBJ’
HOSTCC scripts/basic/fixdep
GEN ./Makefile
/home/hyper/nitrogenos/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/../sysroot/usr/lib/crt1.o(.text+0x12): error: undefined reference to ‘__libc_csu_fini’
/home/hyper/nitrogenos/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/../sysroot/usr/lib/crt1.o(.text+0x19): error: undefined reference to ‘__libc_csu_init’
collect2: error: ld returned 1 exit status
seems like missing library headers
https://github.com/HyperTeam/android_kernel_realme_sdm710
Contribute to HyperTeam/android_kernel_realme_sdm710 development by creating an account on GitHub.
make[1]: Entering directory ‘/home/hyper/nitrogenos/out/target/product/RMX1851/obj/KERNEL_OBJ’
HOSTCC scripts/basic/fixdep
GEN ./Makefile
/home/hyper/nitrogenos/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/../sysroot/usr/lib/crt1.o(.text+0x12): error: undefined reference to ‘__libc_csu_fini’
/home/hyper/nitrogenos/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/../sysroot/usr/lib/crt1.o(.text+0x19): error: undefined reference to ‘__libc_csu_init’
collect2: error: ld returned 1 exit status
https://github.com/NusantaraProject-ROM/android_vendor_nusantara/commit/cc32aea980f42baca14e0b9bd982e6e5bcc5fbe5
GCC was deprecated upstream, so switch to Clang.
Change-Id: I8a6c9d6b763db0055189d83f9037ccb0c50a23ea
To see full details build your kernel with:
‘make CONFIG_DEBUG_SECTION_MISMATCH=y’
../arch/arm64/boot/dts/mediatek/mt6765.dts:964.11-1003.4: Warning (gpios_property): /scp_dvfs: Missing property ‘#gpio-cells’ in node /gpio@10005000 or bad phandle (referred from gpio[0])
/bin/sh: 1: Syntax error: “;” unexpected
make[2]: *** [../arch/arm64/boot/Makefile:51: arch/arm64/boot/Image.gz-dtb] Error 2
make[1]: *** [arch/arm64/Makefile:168: Image.gz-dtb] Error 2
make[1]: *** Waiting for unfinished jobs….
$(call if_changed,cat)
/bin/bash: -c: line 0: `set -e; ; printf ‘%sn’ ‘cmd_arch/arm64/boot/Image.gz-dtb := ‘ > arch/arm64/boot/.Image.gz-dtb.cmd’
make[2]: *** [../arch/arm64/boot/Makefile:51: arch/arm64/boot/Image.gz-dtb] Error 1
make[1]: *** [arch/arm64/Makefile:168: Image.gz-dtb] Error 2
make: *** [Makefile:146: sub-make] Error 2
$(call if_changed,cat)
if_changed macros
# if_changed – execute command if any prerequisite is newer than
# target, or command line has changed
if_changed = $(if $(strip $(any-prereq) $(arg-check)),
@set -e;
$(echo-cmd) $(cmd_$(1));
printf ‘%sn’ ‘cmd_$@ := $(make-cmd)’ > $(dot-target).cmd)
To see full details build your kernel with:
‘make CONFIG_DEBUG_SECTION_MISMATCH=y’
../arch/arm64/boot/dts/mediatek/mt6765.dts:964.11-1003.4: Warning (gpios_property): /scp_dvfs: Missing property ‘#gpio-cells’ in node /gpio@10005000 or bad phandle (referred from gpio[0])
/bin/sh: 1: Syntax error: “;” unexpected
make[2]: *** [../arch/arm64/boot/Makefile:51: arch/arm64/boot/Image.gz-dtb] Error 2
make[1]: *** [arch/arm64/Makefile:168: Image.gz-dtb] Error 2
make[1]: *** Waiting for unfinished jobs….
Enable section mismatch and ig then see whats wrong