[G2 General] Norside:
It stands that make -j5 is suitable for quad cores but you have written make j4 in your example? Isn't snapdragon 800 quad core?

Also after I have typed "make clean && make mrproper" I get failures from linaro 4.9 like this:

torvund@torvund-MIM2160:~/android/mykernel/msm8974$ make clean && make mrproper

/home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: 1: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: ELF: not found

/home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: 2: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: Syntax error: ")" unexpected

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 25: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 26: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 25: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 26: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 25: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 26: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 25: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 26: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 25: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 26: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 25: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 26: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 25: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 26: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: 1: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: ELF: not found

/home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: 2: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: Syntax error: ")" unexpected

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 25: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 26: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 25: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 26: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 25: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 26: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 25: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 26: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 25: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 26: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 25: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 26: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 25: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 26: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

CLEAN scripts/basic

CLEAN scripts/kconfig

CLEAN include/config

CLEAN .config

Spoiler:

torvund@torvund-MIM2160:~/android/mykernel/msm8974$ make -j4

/home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: 1: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: ELF: not found

/home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: 2: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: Syntax error: ")" unexpected

scripts/kconfig/conf --silentoldconfig Kconfig

/home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: 1: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: ELF: not found

/home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: 2: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: Syntax error: ")" unexpected

WRAP arch/arm/include/generated/asm/auxvec.h

WRAP arch/arm/include/generated/asm/bitsperlong.h

WRAP arch/arm/include/generated/asm/cputime.h

CHK include/linux/version.h

WRAP arch/arm/include/generated/asm/emergency-restart.h

WRAP arch/arm/include/generated/asm/errno.h

WRAP arch/arm/include/generated/asm/ioctl.h

UPD include/linux/version.h

WRAP arch/arm/include/generated/asm/irq_regs.h

WRAP arch/arm/include/generated/asm/kdebug.h

WRAP arch/arm/include/generated/asm/local.h

WRAP arch/arm/include/generated/asm/local64.h

WRAP arch/arm/include/generated/asm/percpu.h

WRAP arch/arm/include/generated/asm/poll.h

WRAP arch/arm/include/generated/asm/resource.h

WRAP arch/arm/include/generated/asm/sections.h

WRAP arch/arm/include/generated/asm/siginfo.h

WRAP arch/arm/include/generated/asm/sizes.h

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 25: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 26: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 25: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

/home/torvund/android/mykernel/msm8974/scripts/gcc-version.sh: line 26: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: cannot execute binary file: Exec format error

CHK include/generated/utsrelease.h

UPD include/generated/utsrelease.h

HOSTCC scripts/dtc/checks.o

HOSTCC scripts/genksyms/genksyms.o

Generating include/generated/mach-types.h

CC scripts/mod/empty.o

/home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: 1: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: ELF: not found

/home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: 2: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: Syntax error: ")" unexpected

make[2]: *** [scripts/mod/empty.o] Error 2

make[1]: *** [scripts/mod] Error 2

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

SHIPPED scripts/genksyms/lex.lex.c

SHIPPED scripts/genksyms/keywords.hash.c

SHIPPED scripts/genksyms/parse.tab.h

SHIPPED scripts/genksyms/parse.tab.c

HOSTCC scripts/genksyms/lex.lex.o

CC kernel/bounds.s

/home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: 1: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: ELF: not found

/home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: 2: /home/torvund/android/mykernel/arm-cortex_a15-linux-gnueabihf-linaro_4.9/bin/arm-eabi-gcc: Syntax error: ")" unexpected

make[1]: *** [kernel/bounds.s] Error 2

make: *** [prepare0] Error 2

make: *** Waiting for unfinished jobs....

HOSTCC scripts/genksyms/parse.tab.o

HOSTCC scripts/dtc/data.o

HOSTCC scripts/dtc/dtc-lexer.lex.o

HOSTCC scripts/dtc/dtc-parser.tab.o

HOSTCC scripts/dtc/dtc.o

HOSTCC scripts/dtc/flattree.o

HOSTLD scripts/genksyms/genksyms

HOSTCC scripts/dtc/fstree.o

HOSTCC scripts/dtc/livetree.o

HOSTCC scripts/dtc/srcpos.o

HOSTCC scripts/dtc/treesource.o

HOSTCC scripts/dtc/util.o

HOSTLD scripts/dtc/dtc

make: *** [scripts] Error 2

I get this when i type in "make -j4" I have also tried "make -j5" with same result. Sorry for noob questions here but its my first time making a kernel.