[Samsung Galaxy A20 Questions & Answers] physwizz:
That improved things.

Still getting 6 errors

make

CHK include/config/kernel.release

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

CHK include/generated/utsrelease.h

HOSTCC scripts/basic/fixdep

HOSTCC scripts/basic/bin2c

CC kernel/bounds.s

In file included from kernel/bounds.c:9:

In file included from include/linux/page-flags.h:8:

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

In file included from include/uapi/linux/types.h:13:

In file included from ./include/uapi/linux/posix_types.h:4:

In file included from include/linux/stddef.h:4:

In file included from include/uapi/linux/stddef.h:1:

In file included from include/linux/compiler.h:56:

include/linux/compiler-gcc.h:92:9: warning: '__weak' macro redefined [-Wmacro-redefined]

#define __weak __attribute__((weak))

^

<built-in>:352:9: note: previous definition is here

#define __weak __attribute__((objc_gc(weak)))

^

In file included from kernel/bounds.c:9:

In file included from include/linux/page-flags.h:9:

In file included from include/linux/bug.h:4:

In file included from ./arch/arm64/include/asm/bug.h:62:

In file included from include/asm-generic/bug.h:13:

In file included from include/linux/kernel.h:13:

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

include/linux/init.h:135:13: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma

extern char __initdata boot_command_line[];

^

include/linux/init.h:43:20: note: expanded from macro '__initdata'

#define __initdata __section(.init.data)

^

include/linux/compiler.h:413:51: note: expanded from macro '__section'

# define __section(S) __attribute__ ((__section__(#S)))

^

<scratch space>:2:1: note: expanded from here

".init.data"

^

In file included from kernel/bounds.c:9:

In file included from include/linux/page-flags.h:9:

In file included from include/linux/bug.h:4:

In file included from ./arch/arm64/include/asm/bug.h:62:

In file included from include/asm-generic/bug.h:13:

In file included from include/linux/kernel.h:13:

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

include/linux/init.h:142:6: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma

void __init load_default_modules(void);

^

include/linux/init.h:42:17: note: expanded from macro '__init'

#define __init __section(.init.text) __cold notrace

^

include/linux/compiler.h:413:51: note: expanded from macro '__section'

# define __section(S) __attribute__ ((__section__(#S)))

^

<scratch space>:3:1: note: expanded from here

".init.text"

^

In file included from kernel/bounds.c:9:

In file included from include/linux/page-flags.h:9:

In file included from include/linux/bug.h:4:

In file included from ./arch/arm64/include/asm/bug.h:62:

In file included from include/asm-generic/bug.h:13:

In file included from include/linux/kernel.h:13:

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

include/linux/init.h:143:5: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma

int __init init_rootfs(void);

^

include/linux/init.h:42:17: note: expanded from macro '__init'

#define __init __section(.init.text) __cold notrace

^

include/linux/compiler.h:413:51: note: expanded from macro '__section'

# define __section(S) __attribute__ ((__section__(#S)))

^

<scratch space>:4:1: note: expanded from here

".init.text"

^

In file included from kernel/bounds.c:9:

In file included from include/linux/page-flags.h:9:

In file included from include/linux/bug.h:4:

In file included from ./arch/arm64/include/asm/bug.h:62:

In file included from include/asm-generic/bug.h:13:

In file included from include/linux/kernel.h:13:

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

include/linux/init.h:285:6: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma

void __init parse_early_param(void);

^

include/linux/init.h:42:17: note: expanded from macro '__init'

#define __init __section(.init.text) __cold notrace

^

include/linux/compiler.h:413:51: note: expanded from macro '__section'

# define __section(S) __attribute__ ((__section__(#S)))

^

<scratch space>:5:1: note: expanded from here

".init.text"

^

In file included from kernel/bounds.c:9:

In file included from include/linux/page-flags.h:9:

In file included from include/linux/bug.h:4:

In file included from ./arch/arm64/include/asm/bug.h:62:

In file included from include/asm-generic/bug.h:13:

In file included from include/linux/kernel.h:13:

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

include/linux/init.h:286:6: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma

void __init parse_early_options(char *cmdline);

^

include/linux/init.h:42:17: note: expanded from macro '__init'

#define __init __section(.init.text) __cold notrace

^

include/linux/compiler.h:413:51: note: expanded from macro '__section'

# define __section(S) __attribute__ ((__section__(#S)))

^

<scratch space>:6:1: note: expanded from here

".init.text"

^

In file included from kernel/bounds.c:9:

In file included from include/linux/page-flags.h:9:

In file included from include/linux/bug.h:4:

In file included from ./arch/arm64/include/asm/bug.h:62:

In file included from include/asm-generic/bug.h:13:

In file included from include/linux/kernel.h:13:

include/linux/printk.h:171:6: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma

void __init setup_log_buf(int early);

^

include/linux/init.h:42:17: note: expanded from macro '__init'

#define __init __section(.init.text) __cold notrace

^

include/linux/compiler.h:413:51: note: expanded from macro '__section'

# define __section(S) __attribute__ ((__section__(#S)))

^

<scratch space>:10:1: note: expanded from here

".init.text"

^

1 warning and 6 errors generated.

make[1]: *** [kernel/bounds.s] Error 1

make: *** [prepare0] Error 2