Error Compiling Kernel 5.4

Which Khadas SBC do you use?

VIM3

Which system do you use? Android, Ubuntu, OOWOW or others?

UBUNTU 18

Which version of system do you use? Khadas official images, self built images, or others?

AOSP

Please describe your issue below:

Following Google AOSP instruction was fine until the building of the kernel.

Using the android-amlogic-bmeson-5.4 branch

git clone https://android.googlesource.com/kernel/hikey-linaro -b android-amlogic-bmeson-5.4

Trying to build the Kernel version 5.4 stop when it encounter an error below.

Post a console log of your issue below:

error: write on a pipe with no reader
37 warnings generated.
32 warnings generated.
32 warnings generated.
89 warnings generated.
  AR      drivers/usb/gadget/function/built-in.a
  AR      drivers/usb/gadget/built-in.a
  AR      drivers/usb/built-in.a
Makefile:1810: recipe for target 'drivers' failed
make: *** [drivers] Error 2

#### failed to build some targets (39 seconds) ####