[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Shadicbypass:
ok so i am trying to build my own kernel for the g5 and i have read that i need to build a clean unmodified kernel first in order to make sure everything is set up right. these are the errors i keep getting everytime without fail.

these are the compile commands.

maxwell@maxwell-G751JT:~$ cd kernel;

maxwell@maxwell-G751JT:~/kernel$ export /home/maxwell/Android/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-

bash: export: `/home/maxwell/Android/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-': not a valid identifier

maxwell@maxwell-G751JT:~/kernel$ export CROSS_COMPILE=/home/maxwell/Android/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-

maxwell@maxwell-G751JT:~/kernel$ export ARCH=arm64

maxwell@maxwell-G751JT:~/kernel$ make h1_global_com-perf_defconfigdrivers/soc/qcom/Kconfig:287:warning: choice value used outside its choice group

drivers/soc/qcom/Kconfig:292:warning: choice value used outside its choice group

arch/arm64/configs/h1_global_com-perf_defconfig:694:warning: override: reassigning to symbol INET_XFRM_MODE_BEET

arch/arm64/configs/h1_global_com-perf_defconfig:705:warning: override: reassigning to symbol LGE_SP_MIRRORING_CTRL_BL

#

# configuration written to .config

#

maxwell@maxwell-G751JT:~/kernel$ make clean && make mrproper

CLEAN .

CLEAN arch/arm64/kernel/vdso

CLEAN arch/arm64/kernel

CLEAN crypto/asymmetric_keys

CLEAN firmware

CLEAN kernel/time

CLEAN kernel

CLEAN security/selinux

CLEAN usr

CLEAN .tmp_versions

CLEAN scripts/basic

CLEAN scripts/dtc

CLEAN scripts/genksyms

CLEAN scripts/kconfig

CLEAN scripts/mod

CLEAN scripts/selinux/genheaders

CLEAN scripts/selinux/mdp

CLEAN scripts

CLEAN include/config include/generated arch/arm64/include/generated

CLEAN .config .config.old .version include/generated/uapi/linux/version.h signing_key.priv signing_key.x509 x509.genkey

maxwell@maxwell-G751JT:~/kernel$ make h1_global_com-perf_defconfig

HOSTCC scripts/basic/fixdep

HOSTCC scripts/kconfig/conf.o

SHIPPED scripts/kconfig/zconf.tab.c

SHIPPED scripts/kconfig/zconf.lex.c

SHIPPED scripts/kconfig/zconf.hash.c

HOSTCC scripts/kconfig/zconf.tab.o

HOSTLD scripts/kconfig/conf

drivers/soc/qcom/Kconfig:287:warning: choice value used outside its choice group

drivers/soc/qcom/Kconfig:292:warning: choice value used outside its choice group

arch/arm64/configs/h1_global_com-perf_defconfig:694:warning: override: reassigning to symbol INET_XFRM_MODE_BEET

arch/arm64/configs/h1_global_com-perf_defconfig:705:warning: override: reassigning to symbol LGE_SP_MIRRORING_CTRL_BL

#

# configuration written to .config

#

maxwell@maxwell-G751JT:~/kernel$ make -j8

these are the errors.

scripts/Makefile.build:402: recipe for target 'drivers/usb' failed

make[1]: *** [drivers/usb] Error 2

In file included from drivers/soc/qcom/tracer_pkt_private.h:49:0,

from drivers/soc/qcom/tracer_pkt.c:18:

include/trace/define_trace.h:83:43: fatal error: ./tracer_pkt_private.h: No such file or directory

#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)

^

compilation terminated.

scripts/Makefile.build:257: recipe for target 'drivers/soc/qcom/tracer_pkt.o' failed

make[3]: *** [drivers/soc/qcom/tracer_pkt.o] Error 1

make[3]: *** Waiting for unfinished jobs....

scripts/Makefile.build:402: recipe for target 'drivers/soc/qcom' failed

make[2]: *** [drivers/soc/qcom] Error 2

scripts/Makefile.build:402: recipe for target 'drivers/soc' failed

make[1]: *** [drivers/soc] Error 2

Makefile:945: recipe for target 'drivers' failed

make: *** [drivers] Error 2

maxwell@maxwell-G751JT:~/kernel$