ar71xx build failure with kernel 4.14
Username: nouman8
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1805
compiling with GCC 8.2.0
CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK include/generated/bounds.h CHK include/generated/timeconst.h CHK include/generated/asm-offsets.h CALL scripts/checksyscalls.sh CHK scripts/mod/devicetable-offsets.h CHK include/generated/compile.h CC arch/mips/ath79/dev-dsa.o In file included from ./include/linux/ipv6.h:5, from ./include/net/ipv6.h:16, from ./include/net/inetpeer.h:16, from ./include/net/ip_fib.h:24, from ./include/net/switchdev.h:17, from ./include/net/dsa.h:23, from arch/mips/ath79/dev-dsa.h:15, from arch/mips/ath79/dev-dsa.c:17: ./include/uapi/linux/ipv6.h:107:1: error: alignment 1 of 'struct ipv6_destopt_hao' is less than 2 [-Werror=packed-not-aligned] } attribute((packed)); ^ cc1: all warnings being treated as errors make[7]: *** [scripts/Makefile.build:329: arch/mips/ath79/dev-dsa.o] Error 1 make[6]: *** [scripts/Makefile.build:587: arch/mips/ath79] Error 2 make[5]: *** [Makefile:1035: arch/mips] Error 2