[ONE General] gauravsaini964:
Guys i am getting this error while building Oneplus x stock kernel from oneplus sources on GITHUB

Please help

No private recovery resources for TARGET_DEVICE bacon

TARGET_PREBUILT_KERNEL is out/target/product/bacon/obj/KERNEL_OBJ/arch/arm/boot/zImage

/bin/bash: line 1: @: command not found

make[1]: Entering directory `/home/demon/pa/kernel/oneplus/msm8974'

GEN /home/demon/pa/out/target/product/bacon/obj/KERNEL_OBJ/Makefile

#

# configuration written to .config

#

make[1]: Leaving directory `/home/demon/pa/kernel/oneplus/msm8974'

make[1]: Entering directory `/home/demon/pa/kernel/oneplus/msm8974'

CHK include/linux/version.h

make[1]: Leaving directory `/home/demon/pa/kernel/oneplus/msm8974'

Building kernel...

make -C kernel/oneplus/msm8974 O=../../../out/target/product/bacon/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=/home/demon/pa/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-

make[1]: Entering directory `/home/demon/pa/kernel/oneplus/msm8974'

GEN /home/demon/pa/out/target/product/bacon/obj/KERNEL_OBJ/Makefile

scripts/kconfig/conf --silentoldconfig Kconfig

Using /home/demon/pa/kernel/oneplus/msm8974 as source for kernel

GEN /home/demon/pa/out/target/product/bacon/obj/KERNEL_OBJ/Makefile

CHK include/linux/version.h

CHK include/generated/utsrelease.h

make[3]: `include/generated/mach-types.h' is up to date.

CALL /home/demon/pa/kernel/oneplus/msm8974/scripts/checksyscalls.sh

CHK include/generated/compile.h

GZIP kernel/config_data.gz

CHK kernel/config_data.h

LD vmlinux.o

MODPOST vmlinux.o

ERROR: modpost: Found 13 section mismatch(es).

To see full details build your kernel with:

'make CONFIG_DEBUG_SECTION_MISMATCH=y'

To build the kernel despite the mismatches, build with:

'make CONFIG_NO_ERROR_ON_MISMATCH=y'

(NOTE: This is not recommended)

make[3]: *** [vmlinux.o] Error 1

make[2]: *** [vmlinux.o] Error 2

make[1]: *** [sub-make] Error 2

make[1]: Leaving directory `/home/demon/pa/kernel/oneplus/msm8974'

make: *** [out/target/product/bacon/obj/KERNEL_OBJ/arch/arm/boot/zImage] Error 2

#### make failed to build some targets (01:16 (mm:ss)) ####

------------------------------------MISMATCHES--------------------------------------------------------

WARNING: arch/arm/mach-msm/built-in.o(.devinit.text+0x3618): Section mismatch in reference from the function gdsc_probe() to the (unknown reference) .init.data:(unknown)

The function __devinit gdsc_probe() references

a (unknown reference) __initdata (unknown).

If (unknown) is only used by gdsc_probe then

annotate (unknown) with a matching annotation.

WARNING: arch/arm/mach-msm/built-in.o(.data+0x1f274): Section mismatch in reference from the variable gdsc_driver to the (unknown reference) .init.data:(unknown)

The variable gdsc_driver references

the (unknown reference) __initdata (unknown)

If the reference is valid then annotate the

variable with __init* or __refdata (see linux/init.h) or name the variable:

*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: arch/arm/mach-msm/built-in.o(.data+0x1f334): Section mismatch in reference from the variable krait_power_driver to the (unknown reference) .init.data:(unknown)

The variable krait_power_driver references

the (unknown reference) __initdata (unknown)

If the reference is valid then annotate the

variable with __init* or __refdata (see linux/init.h) or name the variable:

*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: arch/arm/mach-msm/built-in.o(.data+0x1f384): Section mismatch in reference from the variable krait_pdn_driver to the (unknown reference) .init.data:(unknown)

The variable krait_pdn_driver references

the (unknown reference) __initdata (unknown)

If the reference is valid then annotate the

variable with __init* or __refdata (see linux/init.h) or name the variable:

*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: arch/arm/mach-msm/built-in.o(.data+0x1f424): Section mismatch in reference from the variable qpnp_revid_driver to the (unknown reference) .init.data:(unknown)

The variable qpnp_revid_driver references

the (unknown reference) __initdata (unknown)

If the reference is valid then annotate the

variable with __init* or __refdata (see linux/init.h) or name the variable:

*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: arch/arm/mach-msm/built-in.o(.data+0x1f5b0): Section mismatch in reference from the variable msm_cpu_pm_snoc_client_driver to the (unknown reference) .init.data:(unknown)

The variable msm_cpu_pm_snoc_client_driver references

the (unknown reference) __initdata (unknown)

If the reference is valid then annotate the

variable with __init* or __refdata (see linux/init.h) or name the variable:

*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: arch/arm/mach-msm/built-in.o(.data+0x1f600): Section mismatch in reference from the variable msm_cpu_pm_driver to the (unknown reference) .init.data:(unknown)

The variable msm_cpu_pm_driver references

the (unknown reference) __initdata (unknown)

If the reference is valid then annotate the

variable with __init* or __refdata (see linux/init.h) or name the variable:

*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: arch/arm/mach-msm/built-in.o(.data+0x1f650): Section mismatch in reference from the variable msm_cpu_status_driver to the (unknown reference) .init.data:(unknown)

The variable msm_cpu_status_driver references

the (unknown reference) __initdata (unknown)

If the reference is valid then annotate the

variable with __init* or __refdata (see linux/init.h) or name the variable:

*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: arch/arm/mach-msm/built-in.o(.data+0x1f9c4): Section mismatch in reference from the variable msm_ext_buck_driver to the (unknown reference) .init.data:(unknown)

The variable msm_ext_buck_driver references

the (unknown reference) __initdata (unknown)

If the reference is valid then annotate the

variable with __init* or __refdata (see linux/init.h) or name the variable:

*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: arch/arm/mach-msm/built-in.o(.data+0x1fa88): Section mismatch in reference from the variable msm_rpm_device_driver to the (unknown reference) .init.data:(unknown)

The variable msm_rpm_device_driver references

the (unknown reference) __initdata (unknown)

If the reference is valid then annotate the

variable with __init* or __refdata (see linux/init.h) or name the variable:

*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: arch/arm/mach-msm/built-in.o(.data+0x1fc00): Section mismatch in reference from the variable cpu_modes_driver to the (unknown reference) .init.data:(unknown)

The variable cpu_modes_driver references

the (unknown reference) __initdata (unknown)

If the reference is valid then annotate the

variable with __init* or __refdata (see linux/init.h) or name the variable:

*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: arch/arm/mach-msm/built-in.o(.data+0x1fc50): Section mismatch in reference from the variable system_modes_driver to the (unknown reference) .init.data:(unknown)

The variable system_modes_driver references

the (unknown reference) __initdata (unknown)

If the reference is valid then annotate the

variable with __init* or __refdata (see linux/init.h) or name the variable:

*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: arch/arm/mach-msm/built-in.o(.data+0x1fca0): Section mismatch in reference from the variable lpm_levels_driver to the (unknown reference) .init.data:(unknown)

The variable lpm_levels_driver references

the (unknown reference) __initdata (unknown)

If the reference is valid then annotate the

variable with __init* or __refdata (see linux/init.h) or name the variable:

*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console