Bug #303
Updated by Linus Lüssing about 8 years ago
I'm getting the following error when trying to compile the current batman-adv master branch for a 4.8-rc7 kernel:
<pre>
EXTRA_CFLAGS="-Werror -D__CHECK_ENDIAN__ -DDEBUG -g -O0" /usr/bin/make CONFIG_BATMAN_ADV_DEBUG=y CHECK="sparse -Wsparse-all -Wno-ptr-subtraction-blows -Werror -D__CHECK_ENDIAN__ -DDEBUG" CC=cgcc KERNELPATH=/home/tux/mesh-node/usr/src/linux-headers-4.8.0-rc7+ CONFIG_BATMAN_ADV_BATMAN_V=y CONFIG_BATMAN_ADV_DAT=y CONFIG_BATMAN_ADV_MCAST=y
/home/tux/dev/batman-adv-t_x/gen-compat-autoconf.sh /home/tux/dev/batman-adv-t_x/compat-autoconf.h
mkdir -p /home/tux/dev/batman-adv-t_x/build/net/batman-adv/
COMPAT_PATCH 0001-netlink-portid.cocci
0001-netlink-portid.cocci
/home/tux/dev/batman-adv-t_x
init_defs_builtins: /usr/share/coccinelle/standard.h
HANDLING: /home/tux/dev/batman-adv-t_x/build/net/batman-adv/netlink.c
diff =
HANDLING: /home/tux/dev/batman-adv-t_x/build/net/batman-adv/bat_algo.c
diff =
HANDLING: /home/tux/dev/batman-adv-t_x/build/net/batman-adv/bat_iv_ogm.c
diff =
HANDLING: /home/tux/dev/batman-adv-t_x/build/net/batman-adv/translation-table.c
diff =
HANDLING: /home/tux/dev/batman-adv-t_x/build/net/batman-adv/bridge_loop_avoidance.c
diff =
HANDLING: /home/tux/dev/batman-adv-t_x/build/net/batman-adv/bat_v.c
diff =
COMPAT_PATCH 0002-genl-const.cocci
0002-genl-const.cocci
/home/tux/dev/batman-adv-t_x
init_defs_builtins: /usr/share/coccinelle/standard.h
Fatal error: exception Failure("plus: parse error:
= File "compat-patches/0002-genl-const.cocci", line 6, column 14, charpos = 81
around = 'struct', whole content = +__genl_const struct genl_multicast_group
")
Makefile:111: recipe for target '/home/tux/dev/batman-adv-t_x/build/net/batman-adv/.compat-prepared' failed
make: *** [/home/tux/dev/batman-adv-t_x/build/net/batman-adv/.compat-prepared] Error 2
</pre>
Bisecting leads me to this commit 2f9f52d1dfc417201028cc65f91aaddc5eaf493a ("batman-adv: compat: Move netlink const compat to coccinelle").
EDIT: coccinelle version is from Debian stable: 1.0.0~rc22.deb-1