[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:47:35 PDT 2017


A new Flyspray task has been opened.  Details are below. 

User who did this - Baptiste Jonglez (bjonglez) 

Attached to Project - LEDE Project
Summary - arc770: build failure: xtables-addons fails to build LUA extension because of kernel #define
Task Type - Bug Report
Category - Kernel
Status - New
Assigned To - 
Operating System - All
Severity - Low
Priority - Low
Reported Version - lede-17.01
Due in Version - Undecided
Due Date - Undecided
Details - While test-building all architectures on latest lede-17.01 (https://git.lede-project.org/dc8392f6a) 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 mac
ro '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 macr
o '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 macr
o '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 (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