[Hikey960] build break on android-hikey-linaro-4.19

I cloned the 960 kernel from “https://android.googlesource.com/kernel/hikey-linaro” but encounter the build break on branch “android-hikey-linaro-4.19” by following the steps from the website.

Steps:
git clone https://android.googlesource.com/kernel/hikey-linaro
cd hikey-linaro
git checkout -b android-hikey-linaro-4.19 origin/android-hikey-linaro-4.19
make ARCH=arm64 hikey960_defconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j24

The error log is showing as below and does anyone have an idea for how to fix it? Thanks.

In file included from ././include/linux/compiler_types.h:64:0,
                 from <command-line>:0:
./arch/arm64/include/asm/jump_label.h: In function 'br_nf_post_routing':
./include/linux/compiler-gcc.h:164:38: warning: asm operand 0 probably doesn't match constraints
 #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
                                      ^
./arch/arm64/include/asm/jump_label.h:31:2: note: in expansion of macro 'asm_volatile_goto'
  asm_volatile_goto("1: nop\n\t"
  ^
./include/linux/compiler-gcc.h:164:38: error: impossible constraint in 'asm'
 #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
                                      ^
./arch/arm64/include/asm/jump_label.h:31:2: note: in expansion of macro 'asm_volatile_goto'
  asm_volatile_goto("1: nop\n\t"
  ^
scripts/Makefile.build:333: recipe for target 'net/bridge/br_netfilter_hooks.o' failed
make[2]: *** [net/bridge/br_netfilter_hooks.o] Error 1
scripts/Makefile.build:638: recipe for target 'net/bridge' failed
make[1]: *** [net/bridge] Error 2
Makefile:1113: recipe for target 'net' failed
make: *** [net] Error 2

#### failed to build some targets (05:31 (mm:ss)) ####

It will work if you use the branch “android-hikey-linaro-4.14”. For now, it seems no one knows how to solve the problem in branch 4.19 here.

Hi,

I think the building error is related with compiler. I use the toolchain is:

$ aarch64-linux-gnu-gcc --version
aarch64-linux-gnu-gcc (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Please check if you are using an old version cross compiler and need to update to newer one.