How to compile the kernel without errors

Hi, I tried to compile the kernel but everytime when I run ./build.sh I got a lot of errors. I am compiling with the version 6 of gcc linux arm. (Version 7 produced even more errors…)

Here is the error code I get:

/home/annika/BPI-M3-bsp/linux-sunxi/./Kbuild:35: recipe for target ‘kernel/bounds.s’ failed make[2]: *** [kernel/bounds.s] Error 1 Makefile:988: recipe for target ‘prepare0’ failed make[1]: *** [prepare0] Error 2 make[1]: *** Waiting for unfinished jobs… HOSTLD scripts/genksyms/genksyms Makefile:509: recipe for target ‘scripts’ failed make[1]: *** [scripts] Error 2 make[1]: Leaving directory ‘/home/annika/BPI-M3-bsp/linux-sunxi’ Makefile:59: recipe for target ‘kernel’ failed make: *** [kernel] Error 2

I have cloned the bsp code from: https://github.com/BPI-SINOVOIP/BPI-M3-bsp

Has anyone an idea, what is going wrong?

Never buy any device fron Sinovoip. The software is TERRIBLE and there is no support at all.

http://wiki.banana-pi.org/Getting_Started_with_M3#How_to_buld_M3_Bsp_code