Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#981 - arc770: build failure: xtables-addons fails to build LUA extension because of kernel #define #7117

Closed
openwrt-bot opened this issue Aug 27, 2017 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

bjonglez:

While test-building all architectures on latest lede-17.01 (https://git.lede-project.org/dc8392f6a) with ''CONFIG_ALL_KMODS=y'', I bumped on this build failure for arc770:

make[7]: Entering directory '/home/bjonglez/lede-17.01/build_dir/target-arc_arc700_uClibc-1.0.14/linux-arc770_generic/linux-4.4.83' CC [M] /home/bjonglez/lede-17.01/build_dir/target-arc_arc700_uClibc-1.0.14/linux-arc770_generic/xtables-addons-2.11/extensions/LUA/lua/llex.o In file included from :0:0: /home/bjonglez/lede-17.01/build_dir/target-arc_arc700_uClibc-1.0.14/linux-arc770_generic/xtables-addons-2.11/extensions/LUA/lua/llex.c: In function 'inclinenumber': ././arch/arc/include/asm/current.h:20:17: error: expected identifier before '(' token #define current (curr_arc) ^ /home/bjonglez/lede-17.01/build_dir/target-arc_arc700_uClibc-1.0.14/linux-arc770_generic/xtables-addons-2.11/extensions/LUA/lua/llex.c:127:17: note: in expansion of macro 'current' int old = ls->current; ^ ././arch/arc/include/asm/current.h:20:17: error: expected identifier before '(' token #define current (curr_arc) ^ /home/bjonglez/lede-17.01/build_dir/target-arc_arc700_uClibc-1.0.14/linux-arc770_generic/xtables-addons-2.11/extensions/LUA/lua/llex.c:27:23: note: in expansion of macro 'current' #define next(ls) (ls->current = zgetc(ls->z)) ^ /home/bjonglez/lede-17.01/build_dir/target-arc_arc700_uClibc-1.0.14/linux-arc770_generic/xtables-addons-2.11/extensions/LUA/lua/llex.c:129:3: note: in expansion of macro 'next' next(ls); /* skip `\n' or `\r' */ ^

The failure is in the LUA extension to ''xtables-addons'', and seems to be caused by a name collision with the following ''#define'' in ''arch/arc/include/asm/current.h'' in the kernel:

#define current (curr_arc)

I'm not sure this ever worked...

@openwrt-bot
Copy link
Author

bjonglez:

This also affects the ''archs38'' target, which uses the same kernel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant