[Nexus 7 Android Development] Dggrr:
Build problems

I had build working fine for ages and as recently as a month ago, but am now getting an error. I have re-downloaded the tree following the recipe at the beginning of the thread.

"brunch hammerhead" works fine, but "brunch grouper" fails as follows:

[ 64% 21673/33436] target thumb C: ebt...rnal/ebtables/extensions/ebt_pkttype.c

FAILED: /bin/bash -c "(PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang -I external/ebtables/include -I /home/usernm/LineageOS/out/target/product/grouper/obj/KERNEL_OBJ/usr/include -I external/ebtables -I /home/usernm/LineageOS/out/target/product/grouper/obj/EXECUTABLES/ebtables_intermediates -I /home/usernm/LineageOS/out/target/product/grouper/gen/EXECUTABLES/ebtables_intermediates -I libnativehelper/include/nativehelper \$(cat /home/usernm/LineageOS/out/target/product/grouper/obj/EXECUTABLES/ebtables_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem hardware/ril/include -isystem /home/usernm/LineageOS/out/target/product/grouper/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -c -fno-exceptions -Wno-multichar -msoft-float -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=softfp -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -DNDEBUG -g -Wstrict-aliasing=2 -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -nostdlibinc -target arm-linux-androideabi -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -std=gnu99 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -O2 -g -DPROGNAME="ebtables" -DPROGVERSION="2.0.10" -DPROGDATE="December\\ 2011" -Wno-sign-compare -Wno-missing-field-initializers -Wno-ignored-qualifiers -Wno-unused-parameter -Wno- -fpie -D_USING_LIBCXX -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /home/usernm/LineageOS/out/target/product/grouper/obj/EXECUTABLES/ebtables_intermediates/extensions/ebt_pkttype.d -o /home/usernm/LineageOS/out/target/product/grouper/obj/EXECUTABLES/ebtables_intermediates/extensions/ebt_pkttype.o external/ebtables/extensions/ebt_pkttype.c ) && (cp /home/usernm/LineageOS/out/target/product/grouper/obj/EXECUTABLES/ebtables_intermediates/extensions/ebt_pkttype.d /home/usernm/LineageOS/out/target/product/grouper/obj/EXECUTABLES/ebtables_intermediates/extensions/ebt_pkttype.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /home/usernm/LineageOS/out/target/product/grouper/obj/EXECUTABLES/ebtables_intermediates/extensions/ebt_pkttype.d >> /home/usernm/LineageOS/out/target/product/grouper/obj/EXECUTABLES/ebtables_intermediates/extensions/ebt_pkttype.P; rm -f /home/usernm/LineageOS/out/target/product/grouper/obj/EXECUTABLES/ebtables_intermediates/extensions/ebt_pkttype.d )"

In file included from external/ebtables/extensions/ebt_pkttype.c:15:

out/target/product/grouper/obj/KERNEL_OBJ/usr/include/linux/if_packet.h:176:2: error: unknown type name 'aligned_u64'

aligned_u64 seq_num;

^

1 error generated.

[ 64% 21673/33436] target thumb C: ebt...xternal/ebtables/extensions/ebt_vlan.c

ninja: build stopped: subcommand failed.

build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed

make: *** [ninja_wrapper] Error 1

make: Leaving directory '/home/usernm/LineageOS'

Any ideas?

(this is patched Ubuntu 17.04)