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?

|
Mpch3 2022-08-02 02:27:59
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? I’ve tried everything but I’m very new to this https://hastebin.com/kezetixubu.properties

Hastebin: Send and Save Text or Code Snippets for Free | Toptal®Hastebin
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
cyberknight777 2022-08-02 02:29:22
You’re missing some patches
Tashar02 2022-08-02 03:54:17
Mpch3 2022-08-02 02:27:59
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? I’ve tried everything but I’m very new to this https://hastebin.com/kezetixubu.properties

https://github.com/cyberknight777/dragonheart_kernel_oneplus_sm8150/commit/f07f7732ac31ac8272abe976c0a20ad76caf7b0c
This???

arm64: Use aarch64elf and aarch64elfb emulation mode variants · cyberknight777/dragonheart_kernel_oneplus_sm8150@f07f773GitHub
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…

Mpch3 2022-08-02 04:03:17
wow i will try it! really thank you very much
Error_69_bruhh 2022-08-02 11:06:29
Can Anyone Help In Merging Caf Tags??
shashanksp 2022-08-02 15:13:47
ld: cannot represent machine `arm’
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
shashanksp 2022-08-02 15:13:55
help xd
Mayank12341 2022-08-03 06:48:31
how to fix this

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]

Kapsla 2022-08-03 08:08:30
Mayank12341 2022-08-03 06:48:31
how to fix this

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 ?

thnxforyourchem 2022-08-03 08:09:19
Yes
Kapsla 2022-08-03 08:11:01
looks like it’s declared in arch/arm64/include/asm/cpufeature.h
Kapsla 2022-08-03 08:11:26
check your makefile, idk I’m not an expert
Abdul7852 2022-08-03 08:37:56
Mayank12341 2022-08-03 06:48:31
how to fix this

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

s3gfau1t1337 2022-08-03 12:55:29
Hello everyone
Do anybody have an experience in Android kernel debugging/tracing? Preferably 4.19+ kernels & Android 9+
kanged99 2022-08-03 13:11:17
make: Entering directory ‘/home/hyper/nitrogenos/kernel/realme/sdm710’
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
kanged99 2022-08-03 13:11:36
kanged99 2022-08-03 13:11:17
make: Entering directory ‘/home/hyper/nitrogenos/kernel/realme/sdm710’
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?

TheRisingTied 2022-08-03 13:14:21
kanged99 2022-08-03 13:11:17
make: Entering directory ‘/home/hyper/nitrogenos/kernel/realme/sdm710’
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

shashanksp 2022-08-03 13:21:44
Any one xd
kanged99 2022-08-03 13:22:15
TheRisingTied 2022-08-03 13:14:21
seems like missing library headers

https://github.com/HyperTeam/android_kernel_realme_sdm710

GitHub – HyperTeam/android_kernel_realme_sdm710GitHub
Contribute to HyperTeam/android_kernel_realme_sdm710 development by creating an account on GitHub.
kanged99 2022-08-03 13:23:13
this is my kernel repo
Rishi Roy 2022-08-03 14:00:48
kanged99 2022-08-03 13:11:17
make: Entering directory ‘/home/hyper/nitrogenos/kernel/realme/sdm710’
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

kernel: Use Clang as HOST_{CC,CXX} · NusantaraProject-ROM/android_vendor_nusantara@cc32aeaGitHub
GCC was deprecated upstream, so switch to Clang.

Change-Id: I8a6c9d6b763db0055189d83f9037ccb0c50a23ea

Rishi Roy 2022-08-03 14:00:51
Tried?
Henna 2022-08-03 15:20:33
WARNING: modpost: Found 14 section mismatch(es).
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….
Henna 2022-08-03 15:20:51
anyone knows the problem
Henna 2022-08-03 15:21:33
line51 is $(obj)/Image.gz-dtb: $(obj)/Image.gz $(DTB_OBJS) FORCE
$(call if_changed,cat)
Henna 2022-08-03 15:21:43
i dont tk there’s anything wrong with it
Henna 2022-08-03 15:21:45
F
Henna 2022-08-03 15:22:23
i changed shell to use bash
Henna 2022-08-03 15:22:26
and it gives this
Henna 2022-08-03 15:22:28
/bin/bash: -c: line 0: syntax error near unexpected token `;’
/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
Henna 2022-08-03 15:22:32
strange
Henna 2022-08-03 15:22:50
Henna 2022-08-03 15:21:33
line51 is $(obj)/Image.gz-dtb: $(obj)/Image.gz $(DTB_OBJS) FORCE
$(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)

Abdul7852 2022-08-03 15:22:56
Henna 2022-08-03 15:20:33
WARNING: modpost: Found 14 section mismatch(es).
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

Abdul7852 2022-08-03 15:23:01
Section mismatch really weird
Henna 2022-08-03 15:23:11
ok thx sir
|