[X Style (Pure) Q&A, Help & Troubleshooting] NoLimitCrafting:
Hi, I was looking to build Nougat for my device and try it and have some fun, but after getting all the files that the CyanogenMod build guide said that I should get, I ended with build errors (I think that are related to building the kernel.) Could anyone help me?

PS. I'd be happy to provide any extra info that you may need to diagnose and solve the problem.

[ 1% 878/46349] Building Kernel
make: Entering directory '/home/charles/MCMNugget/kernel/motorola/msm8992'
GEN /home/charles/MCMNugget/out/target/product/clark/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
kernel/irq/Kconfig:22:warning: leading whitespace ignored
drivers/usb/gadget/Kconfig:896:warning: defaults for choice values not supported
warning: (PCI_MSM && AMD_IOMMU) selects PCI_MSI which has unmet direct dependencies (PCI && ARCH_SUPPORTS_MSI)
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
warning: (PCI_MSM && AMD_IOMMU) selects PCI_MSI which has unmet direct dependencies (PCI && ARCH_SUPPORTS_MSI)
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
GEN /home/charles/MCMNugget/out/target/product/clark/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
Using /home/charles/MCMNugget/kernel/motorola/msm8992 as source for kernel
CHK include/generated/utsrelease.h
CALL /home/charles/MCMNugget/kernel/motorola/msm8992/scripts/checksyscalls.sh
CHK include/generated/compile.h
make[2]: 'arch/arm64/boot/Image' is up to date.
make: Leaving directory '/home/charles/MCMNugget/kernel/motorola/msm8992'
Building DTBs
make: Entering directory '/home/charles/MCMNugget/kernel/motorola/msm8992'
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
make[2]: Nothing to be done for 'dtbs'.
make[2]: Nothing to be done for 'dtbs'.
make: Leaving directory '/home/charles/MCMNugget/kernel/motorola/msm8992'
Building Kernel Modules
make: Entering directory '/home/charles/MCMNugget/kernel/motorola/msm8992'
GEN /home/charles/MCMNugget/out/target/product/clark/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
Using /home/charles/MCMNugget/kernel/motorola/msm8992 as source for kernel
CHK include/generated/utsrelease.h
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
CALL /home/charles/MCMNugget/kernel/motorola/msm8992/scripts/checksyscalls.sh
HOSTLD scripts/mod/modpost
Building modules, stage 2.
MODPOST 2 modules
make: Leaving directory '/home/charles/MCMNugget/kernel/motorola/msm8992'
make: Entering directory '/home/charles/MCMNugget/kernel/motorola/msm8992'
INSTALL drivers/soc/qcom/msm_core_ctl.ko
INSTALL drivers/staging/qcacld-2.0/wlan.ko
DEPMOD 3.10.102-CM-g22bd33c
depmod: WARNING: /home/charles/MCMNugget/out/target/product/clark/obj/KERNEL_OBJ/../../system/lib/modules/3.10.102-CM-g22bd33c/kernel/drivers/soc/qcom/msm_core_ctl.ko needs unknown symbol module_layout
make: Leaving directory '/home/charles/MCMNugget/kernel/motorola/msm8992'
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/charles/MCMNugget'

#### make failed to build some targets (02:35 (mm:ss)) ####