[Verizon Galaxy Note 4 Q&A, Help & Troubleshooting] null_ptr:
I have successfully compiled and flashed an unchanged stock kernel for my Galaxy S6 but I cannot get the stock kernel for the Galaxy Note 4 (Model: SM-N910H, Version: N910HXXU2DPCD) to work. I downloaded it from Samsung's open source site. I have changed the path to the compiler from

CROSS_COMPILE ?=../PLATFORM/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-

on line 197 of the Makefile to

~/aarch64-linux-android-4.8/bin/aarch64-linux-android-

exactly like the README_Kernel.txt says. I then run make ARCH=arm tre3g_00_defconfig followed by make ARCH=arm and get the following output:

$ make ARCH=arm tre3g_00_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2503:0:
scripts/kconfig/menu.c: In function ‘get_symbol_str’:
scripts/kconfig/menu.c:567:18: warning: ‘jump’ may be used uninitialized in this function [-Wmaybe-uninitialized]
jump->offset = r->len - 1;
^
scripts/kconfig/menu.c:528:19: note: ‘jump’ was declared here
struct jump_key *jump;
^
HOSTLD scripts/kconfig/conf
arch/arm/mach-exynos/Kconfig:186:warning: choice value used outside its choice group
arch/arm/mach-exynos/Kconfig:189:warning: choice value used outside its choice group
arch/arm/mach-exynos/Kconfig:192:warning: choice value used outside its choice group
drivers/nfc/Kconfig:100:warning: choice value used outside its choice group
drivers/nfc/Kconfig:102:warning: choice value used outside its choice group
drivers/nfc/Kconfig:110:warning: choice value used outside its choice group
drivers/nfc/Kconfig:112:warning: choice value used outside its choice group
drivers/nfc/Kconfig:114:warning: choice value used outside its choice group
drivers/w1/Kconfig:34:warning: defaults for choice values not supported
drivers/w1/Kconfig:40:warning: defaults for choice values not supported
drivers/w1/Kconfig:46:warning: defaults for choice values not supported
drivers/w1/Kconfig:52:warning: defaults for choice values not supported
#
# configuration written to .config
#

$ make ARCH=arm
scripts/kconfig/conf --silentoldconfig Kconfig
arch/arm/mach-exynos/Kconfig:186:warning: choice value used outside its choice group
arch/arm/mach-exynos/Kconfig:189:warning: choice value used outside its choice group
arch/arm/mach-exynos/Kconfig:192:warning: choice value used outside its choice group
drivers/nfc/Kconfig:100:warning: choice value used outside its choice group
drivers/nfc/Kconfig:102:warning: choice value used outside its choice group
drivers/nfc/Kconfig:110:warning: choice value used outside its choice group
drivers/nfc/Kconfig:112:warning: choice value used outside its choice group
drivers/nfc/Kconfig:114:warning: choice value used outside its choice group
drivers/w1/Kconfig:34:warning: defaults for choice values not supported
drivers/w1/Kconfig:40:warning: defaults for choice values not supported
drivers/w1/Kconfig:46:warning: defaults for choice values not supported
drivers/w1/Kconfig:52:warning: defaults for choice values not supported
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
aarch64-linux-android-gcc: error: unrecognized command line option '-mapcs'
aarch64-linux-android-gcc: error: unrecognized command line option '-mno-sched-prolog'
aarch64-linux-android-gcc: error: unrecognized command line option '-mabi=aapcs-linux'
aarch64-linux-android-gcc: error: unrecognized command line option '-mno-thumb-interwork'
aarch64-linux-android-gcc: error: unrecognized command line option '-msoft-float'
/home/tyler/Downloads/SM-N910H_Kernel/kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:867: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2

What is going wrong? I didn't have these problems with my Galaxy S6...