[FS#981] arc770: build failure: xtables-addons fails to build LUA extension because of kernel #define
LEDE Bugs
lede-bugs at lists.infradead.org
Sun Aug 27 08:51:26 PDT 2017
For full information about what has changed in this task, visit the URL below and click the History tab.
FS#981 - arc770: build failure: xtables-addons fails to build LUA extension because of kernel #define
User who did this: Baptiste Jonglez (bjonglez)
Task details edited:
-------
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...
-------
More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=981
More information about the lede-bugs
mailing list