Error build kernel for Samsung M31
-
cd kernel/samsung/m31make ARCH=arm64 exynos9610-m31nsxx_defconfig #### build completed successfully (2 seconds) ####makeresult:
% make arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum arch/arm64/Makefile:57: Detected assembler with broken .inst; disassembly will be unreliable scripts/kconfig/conf --silentoldconfig Kconfig drivers/samsung/misc/Kconfig:13:warning: ignoring type redefinition of 'SEC_DEBUG_TSP_LOG' from 'tristate' to 'boolean' 'rivers/sensorhub/Kconfig:200:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:9:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:20:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:31:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:42:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:53:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:64:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:75:warning: ignoring unsupported character ' arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum arch/arm64/Makefile:57: Detected assembler with broken .inst; disassembly will be unreliable CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK include/generated/bounds.h CHK include/generated/timeconst.h CC arch/arm64/kernel/asm-offsets.s In file included from arch/arm64/kernel/asm-offsets.c:24: In file included from ./include/linux/kvm_host.h:38: In file included from ./arch/arm64/include/asm/kvm_host.h:39: In file included from ./include/kvm/arm_pmu.h:21: In file included from ./include/linux/perf_event.h:56: In file included from ./include/linux/cgroup.h:27: ./include/linux/cgroup-defs.h:404:16: error: field 'cgrp' with variable sized type 'struct cgroup' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type-not-at-end] struct cgroup cgrp; ^ 1 error generated. make[1]: *** [arch/arm64/kernel/asm-offsets.s] Error 1 make: *** [prepare0] Error 2 #### failed to build some targets (16 seconds) ####I need help?
-
Found another Kernal. I use https://github.com/erfanoabdi/android_kernel_samsung_universal9610
The errors are as follows:
created build_kernel.sh#!/bin/bash export ARCH=arm64 export PLATFORM_VERSION=12 export ANDROID_MAJOR_VERSION=s export CLANG_TRIPLE=aarch64-linux-gnu- export CROSS_COMPILE=aarch64-linux-android- make ARCH=arm64 CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-android- CONFIG_SECTION_MISMATCH_WARN_ONLY=y exynos9610-m31nsxx_defconfig make ARCH=arm64 CLANG_TRIPLE=aarch64-linux-gnu-CROSS_COMPILE=aarch64-linux-android- CONFIG_SECTION_MISMATCH_WARN_ONLY=y -j64run bash build_kernel.sh
% bash build_kernel.sh HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o scripts/kconfig/conf.c:78:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(_("aborted!\n\n")); ^~~~~~~~~~~~~~~~~ scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ scripts/kconfig/conf.c:78:10: note: treat the string as an argument to avoid this printf(_("aborted!\n\n")); ^ "%s", scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^ scripts/kconfig/conf.c:79:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(_("Console input/output is redirected. ")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ scripts/kconfig/conf.c:79:10: note: treat the string as an argument to avoid this printf(_("Console input/output is redirected. ")); ^ "%s", scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^ scripts/kconfig/conf.c:80:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(_("Run 'make oldconfig' to update configuration.\n\n")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ scripts/kconfig/conf.c:80:10: note: treat the string as an argument to avoid this printf(_("Run 'make oldconfig' to update configuration.\n\n")); ^ "%s", scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^ scripts/kconfig/conf.c:90:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(_("(NEW) ")); ^~~~~~~~~~~ scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ scripts/kconfig/conf.c:90:10: note: treat the string as an argument to avoid this printf(_("(NEW) ")); ^ "%s", scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^ scripts/kconfig/conf.c:291:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(_(" (NEW)")); ^~~~~~~~~~~ scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ scripts/kconfig/conf.c:291:12: note: treat the string as an argument to avoid this printf(_(" (NEW)")); ^ "%s", scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^ scripts/kconfig/conf.c:439:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(_("*\n* Restart config...\n*\n")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ scripts/kconfig/conf.c:439:13: note: treat the string as an argument to avoid this printf(_("*\n* Restart config...\n*\n")); ^ "%s", scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^ scripts/kconfig/conf.c:641:6: warning: format string is not a string literal (potentially insecure) [-Wformat-security] _("\n*** The configuration requires explicit update.\n\n")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ scripts/kconfig/conf.c:641:6: note: treat the string as an argument to avoid this _("\n*** The configuration requires explicit update.\n\n")); ^ "%s", scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^ scripts/kconfig/conf.c:694:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ scripts/kconfig/conf.c:694:20: note: treat the string as an argument to avoid this fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n")); ^ "%s", scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^ scripts/kconfig/conf.c:698:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(stderr, _("\n*** Error during update of the configuration.\n\n")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ scripts/kconfig/conf.c:698:20: note: treat the string as an argument to avoid this fprintf(stderr, _("\n*** Error during update of the configuration.\n\n")); ^ "%s", scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^ scripts/kconfig/conf.c:709:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^~~~~~~~~~~~~ scripts/kconfig/conf.c:709:20: note: treat the string as an argument to avoid this fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n")); ^ "%s", scripts/kconfig/lkc.h:34:17: note: expanded from macro '_' #define _(text) gettext(text) ^ 10 warnings generated. SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/zconf.lex.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf drivers/samsung/misc/Kconfig:13:warning: ignoring type redefinition of 'SEC_DEBUG_TSP_LOG' from 'tristate' to 'boolean' 'rivers/sensorhub/Kconfig:200:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:9:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:20:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:31:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:42:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:53:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:64:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:75:warning: ignoring unsupported character ' # # configuration written to .config # ./scripts/gcc-version.sh: line 26: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: No such file or directory ./scripts/gcc-version.sh: line 27: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: No such file or directory make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found scripts/kconfig/conf --silentoldconfig Kconfig drivers/samsung/misc/Kconfig:13:warning: ignoring type redefinition of 'SEC_DEBUG_TSP_LOG' from 'tristate' to 'boolean' 'rivers/sensorhub/Kconfig:200:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:9:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:20:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:31:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:42:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:53:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:64:warning: ignoring unsupported character ' 'rivers/sensorhub/factory/Kconfig:75:warning: ignoring unsupported character ' arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum arch/arm64/Makefile:57: Detected assembler with broken .inst; disassembly will be unreliable ./scripts/gcc-version.sh: line 26: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: No such file or directory ./scripts/gcc-version.sh: line 27: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: No such file or directory make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found CHK include/config/kernel.release make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found WRAP arch/arm64/include/generated/uapi/asm/ioctl.h WRAP arch/arm64/include/generated/uapi/asm/errno.h WRAP arch/arm64/include/generated/uapi/asm/ioctls.h WRAP arch/arm64/include/generated/uapi/asm/ipcbuf.h WRAP arch/arm64/include/generated/uapi/asm/msgbuf.h WRAP arch/arm64/include/generated/uapi/asm/mman.h WRAP arch/arm64/include/generated/uapi/asm/kvm_para.h WRAP arch/arm64/include/generated/uapi/asm/sembuf.h WRAP arch/arm64/include/generated/uapi/asm/sockios.h WRAP arch/arm64/include/generated/uapi/asm/shmbuf.h WRAP arch/arm64/include/generated/uapi/asm/socket.h WRAP arch/arm64/include/generated/uapi/asm/termbits.h WRAP arch/arm64/include/generated/uapi/asm/swab.h WRAP arch/arm64/include/generated/uapi/asm/resource.h WRAP arch/arm64/include/generated/uapi/asm/types.h WRAP arch/arm64/include/generated/uapi/asm/termios.h WRAP arch/arm64/include/generated/uapi/asm/poll.h make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found CHK include/generated/uapi/linux/version.h UPD include/generated/uapi/linux/version.h make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found HOSTCC scripts/basic/bin2c make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found WRAP arch/arm64/include/generated/asm/bugs.h WRAP arch/arm64/include/generated/asm/delay.h WRAP arch/arm64/include/generated/asm/clkdev.h WRAP arch/arm64/include/generated/asm/emergency-restart.h WRAP arch/arm64/include/generated/asm/dma.h WRAP arch/arm64/include/generated/asm/early_ioremap.h WRAP arch/arm64/include/generated/asm/dma-contiguous.h WRAP arch/arm64/include/generated/asm/div64.h WRAP arch/arm64/include/generated/asm/hw_irq.h WRAP arch/arm64/include/generated/asm/irq_regs.h WRAP arch/arm64/include/generated/asm/kmap_types.h WRAP arch/arm64/include/generated/asm/mcs_spinlock.h WRAP arch/arm64/include/generated/asm/kdebug.h WRAP arch/arm64/include/generated/asm/local.h WRAP arch/arm64/include/generated/asm/preempt.h WRAP arch/arm64/include/generated/asm/mm-arch-hooks.h WRAP arch/arm64/include/generated/asm/local64.h make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found WRAP arch/arm64/include/generated/asm/switch_to.h WRAP arch/arm64/include/generated/asm/rwsem.h WRAP arch/arm64/include/generated/asm/unaligned.h WRAP arch/arm64/include/generated/asm/trace_clock.h WRAP arch/arm64/include/generated/asm/serial.h WRAP arch/arm64/include/generated/asm/xor.h WRAP arch/arm64/include/generated/asm/set_memory.h WRAP arch/arm64/include/generated/asm/segment.h WRAP arch/arm64/include/generated/asm/msi.h WRAP arch/arm64/include/generated/asm/sizes.h WRAP arch/arm64/include/generated/asm/vga.h WRAP arch/arm64/include/generated/asm/user.h make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found HOSTCC scripts/sortextable HOSTCC scripts/kallsyms HOSTCC scripts/genksyms/genksyms.o HOSTCC scripts/dtc/dtc.o SHIPPED scripts/genksyms/parse.tab.c SHIPPED scripts/genksyms/lex.lex.c HOSTCC scripts/dtc/flattree.o HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/livetree.o HOSTCC scripts/dtc/srcpos.o SHIPPED scripts/genksyms/parse.tab.h SHIPPED scripts/dtc/dtc-parser.tab.c SHIPPED scripts/dtc/dtc-lexer.lex.c HOSTCC scripts/dtc/treesource.o CC scripts/mod/devicetable-offsets.s /bin/sh: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: No such file or directory HOSTCC scripts/mod/mk_elfconfig make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1 make[2]: *** Waiting for unfinished jobs.... HOSTCC scripts/dtc/data.o HOSTCC scripts/selinux/mdp/mdp HOSTCC scripts/dtc/checks.o SHIPPED scripts/dtc/dtc-parser.tab.h HOSTCC scripts/dtc/util.o CC scripts/mod/empty.o /bin/sh: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: No such file or directory make[2]: *** [scripts/mod/empty.o] Error 1 HOSTCC scripts/selinux/genheaders/genheaders HOSTCC scripts/genksyms/parse.tab.o HOSTCC scripts/genksyms/lex.lex.o HOSTCC scripts/dtc/dtc-parser.tab.o HOSTCC scripts/dtc/dtc-lexer.lex.o scripts/sortextable.c:23:10: fatal error: 'elf.h' file not found #include <elf.h> ^~~~~~~ scripts/mod/mk_elfconfig.c:5:10: fatal error: 'elf.h' file not found #include <elf.h> ^~~~~~~ 1 error generated. In file included from scripts/selinux/mdp/mdp.c:48: In file included from ./security/selinux/include/classmap.h:2: In file included from ./include/uapi/linux/capability.h:17: ./include/uapi/linux/types.h:5:10: fatal error: 'asm/types.h' file not found #include <asm/types.h> ^~~~~~~~~~~~~ make[2]: *** [scripts/mod/mk_elfconfig] Error 1 1 error generated. make[1]: *** [scripts/mod] Error 2 make[1]: *** Waiting for unfinished jobs.... make[1]: *** [scripts/sortextable] Error 1 1 error generated. make[3]: *** [scripts/selinux/mdp/mdp] Error 1 make[2]: *** [scripts/selinux/mdp] Error 2 make[2]: *** Waiting for unfinished jobs.... In file included from scripts/selinux/genheaders/genheaders.c:18: In file included from ./security/selinux/include/classmap.h:2: In file included from ./include/uapi/linux/capability.h:17: ./include/uapi/linux/types.h:5:10: fatal error: 'asm/types.h' file not found #include <asm/types.h> ^~~~~~~~~~~~~ 1 error generated. make[3]: *** [scripts/selinux/genheaders/genheaders] Error 1 make[2]: *** [scripts/selinux/genheaders] Error 2 make[1]: *** [scripts/selinux] Error 2 HOSTLD scripts/dtc/dtc HOSTLD scripts/genksyms/genksyms make: *** [scripts] Error 2 make: *** Waiting for unfinished jobs.... UPD include/config/kernel.releaseNot file asm/types.h and elf.h
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login