[Samsung Galaxy A22 4G] Eliphas the Inheritor:
As the title suggests, i need some help troubleshooting some nasty error's appearing regarding the compilers when trying to do: sudo make compile, on the A22 kernel config files. it's has been bugging me for days now. The error message when trying to do the following command suggested by the kernel readme file is as follows: "sudo make -C $(pwd) O=$(pwd)/out KCFLAGS=-w CONFIG_SECTION_MISMATCH_WARN_ONLY=y" then predated by the command: "make -C $(pwd) O=$(pwd)/out KCFLAGS=-w CONFIG_SECTION_MISMATCH_WARN_ONLY=y a22_defconfig" after the first command shown the follow error ensues after quote unquote "finishing" compiling (The error message is pretty damn long and some words are in Portuguese) bear whit me:

"sudo make -C $(pwd) O=$(pwd)/out KCFLAGS=-w CONFIG_SECTION_MISMATCH_WARN_ONLY=y

make: Entrando no diretório '/home/user/git/kernel_samsung_a22'

make[1]: Entrando no diretório '/home/user/git/kernel_samsung_a22/out'

arch/arm64/Makefile:57: Detected assembler with broken .inst; disassembly will be unreliable

/bin/sh: 1: aarch64-linux-androidkernel-ld: not found

/bin/sh: 1: aarch64-linux-androidkernel-ld: not found

/bin/sh: 1: aarch64-linux-androidkernel-ld: not found

/bin/sh: 1: aarch64-linux-androidkernel-ld: not found

GEN ./Makefile

/bin/sh: 1: aarch64-linux-androidkernel-ld: not found

/bin/sh: 1: aarch64-linux-androidkernel-ld: not found

scripts/kconfig/conf --silentoldconfig Kconfig

drivers/misc/tzdev/4.1/Kconfig:1:warning: ignoring type redefinition of 'TZDEV' from 'tristate' to 'boolean'

drivers/misc/tzdev/4.1/Kconfig:80:warning: ignoring type redefinition of 'ION_FD2PHYS' from 'boolean' to 'tristate'

drivers/input/touchscreen/himax/himax_83xxx_i2c/Kconfig:82:warning: ignoring type redefinition of 'TOUCHSCREEN_HIMAX_DEBUG' from 'boolean' to 'tristate'

'rivers/sensorhub/debug/Kconfig:1:warning: ignoring unsupported character '

'rivers/sensorhub/debug/Kconfig:2:warning: ignoring unsupported character '

'rivers/sensorhub/debug/Kconfig:3:warning: ignoring unsupported character '

'rivers/sensorhub/debug/Kconfig:4:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:1:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:2:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:3:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:3:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:5:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:6:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:7:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:7:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:9:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:10:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:11:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:12:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:12:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:15:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:16:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:17:warning: ignoring unsupported character '

'rivers/sensorhub/sensorhub/Kconfig:17:warning: ignoring unsupported character '

drivers/input/sec_input/Kconfig:16:warning: ignoring type redefinition of 'INPUT_TOUCHSCREEN_TCLMV2' from 'boolean' to 'tristate'

arch/arm64/Makefile:57: Detected assembler with broken .inst; disassembly will be unreliable

CHK include/config/kernel.release

Using .. as source for kernel

GEN ./Makefile

/bin/sh: 1: aarch64-linux-androidkernel-ld: not found

/bin/sh: 1: aarch64-linux-androidkernel-ld: not found

/bin/sh: 1: aarch64-linux-androidkernel-ld: not found

/bin/sh: 1: aarch64-linux-androidkernel-ld: not found

CHK include/generated/uapi/linux/version.h

CHK include/generated/utsrelease.h

/bin/sh: 1: aarch64-linux-androidkernel-ld: not found

/bin/sh: 1: aarch64-linux-androidkernel-ld: not found

/bin/sh: 1: aarch64-linux-androidkernel-ld: not found

/bin/sh: 1: aarch64-linux-androidkernel-ld: not found

CC kernel/bounds.s

CHK include/generated/bounds.h

UPD include/generated/bounds.h

CHK include/generated/timeconst.h

UPD include/generated/timeconst.h

CC arch/arm64/kernel/asm-offsets.s

In file included from ../arch/arm64/kernel/asm-offsets.c:21:

In file included from ../include/linux/sched.h:14:

In file included from ../include/linux/pid.h:5:

In file included from ../include/linux/rculist.h:11:

In file included from ../include/linux/rcupdate.h:40:

In file included from ../include/linux/preempt.h:81:

In file included from ./arch/arm64/include/generated/asm/preempt.h:1:

In file included from ../include/asm-generic/preempt.h:5:

In file included from ../include/linux/thread_info.h:38:

In file included from ../arch/arm64/include/asm/thread_info.h:31:

../arch/arm64/include/asm/stack_pointer.h:8:51: error: register 'sp' unsuitable for global register variables on this target

register unsigned long current_stack_pointer asm ("sp");

^

In file included from ../arch/arm64/kernel/asm-offsets.c:21:

In file included from ../include/linux/sched.h:14:

In file included from ../include/linux/pid.h:6:

In file included from ../include/linux/wait.h:9:

In file included from ../include/linux/spinlock.h:88:

../arch/arm64/include/asm/spinlock.h:67:28: error: value '65536' out of range for constraint 'I'

: "Q" (lock->owner), "I" (1 << TICKET_SHIFT)

^~~~~~~~~~~~~~~~~

../arch/arm64/include/asm/spinlock.h:96:9: error: value '65536' out of range for constraint 'I'

: "I" (1 << TICKET_SHIFT)

^~~~~~~~~~~~~~~~~

3 errors generated.

make[2]: *** [.././Kbuild:58: arch/arm64/kernel/asm-offsets.s] Erro 1

make[1]: *** [/home/user/git/kernel_samsung_a22/Makefile:1207: prepare0] Erro 2

make[1]: Saindo do diretório '/home/user/git/kernel_samsung_a22/out'

make: *** [Makefile:146: sub-make] Erro 2

make: Saindo do diretório '/home/user/git/kernel_samsung_a22'"

The error i'm pointing out in question is this one here: aarch64-linux-androidkernel-ld: not found.

I'm pretty sure it has something to do whit compiler's, i just don't know how to aproach this issue nor how to solve it

PS: I already have all the dependecies installed, all the metapackages and everything. Even android-sdk tools and all that jazz. If anyone is interested in helping me i'll be much gratefull.

Written from a Ubuntu 20.04 Machine. :cowboy:

(Attached .png images for proof of presence of the toolchains on my distro...)