[Bug 1289] New: iptables build fails with kernel 4.20-rc1 - gnu_inline attributes
bugzilla-daemon at netfilter.org
bugzilla-daemon at netfilter.org
Mon Nov 5 22:18:42 CET 2018
https://bugzilla.netfilter.org/show_bug.cgi?id=1289
Bug ID: 1289
Summary: iptables build fails with kernel 4.20-rc1 - gnu_inline
attributes
Product: iptables
Version: unspecified
Hardware: x86_64
OS: Ubuntu
Status: NEW
Severity: normal
Priority: P5
Component: iptables
Assignee: netfilter-buglog at lists.netfilter.org
Reporter: netfilter at nmacleod.com
Cross-compiling iptables 1.8.1 for a 4.20-rc1 target fails, possibly due to
https://github.com/torvalds/linux/commit/c2c640aa04cc4e6caf0ff17ff18b3784e0c99566
The build will fail with the following errors:
^~~~~~
In file included from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/libiptc/libip6tc.c:111:
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/libiptc/libiptc.c:268:1:
warning: 'always_inline' attribute ignored [-Wattributes]
static inline unsigned int
^~~~~~
In file included from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/linux-4.20-rc1/include/uapi/linux/stddef.h:2,
from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/linux-4.20-rc1/include/uapi/linux/posix_types.h:5,
from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/include/linux/types.h:8,
from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/include/libiptc/libip6tc.h:5,
from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/libiptc/libip6tc.c:30:
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/linux-4.20-rc1/include/linux/compiler_types.h:199:2:
warning: redundant redeclaration of '__maybe_unused' [-Wredundant-decls]
__maybe_unused notrace
^~~~~~~~~~~~~~
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/libiptc/libiptc.c:268:8:
note: in expansion of macro 'inline'
static inline unsigned int
^~~~~~
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/linux-4.20-rc1/include/linux/compiler_types.h:199:2:
note: previous declaration of '__maybe_unused' was here
__maybe_unused notrace
^~~~~~~~~~~~~~
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/libiptc/libiptc.c:261:8:
note: in expansion of macro 'inline'
static inline unsigned int
^~~~~~
In file included from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/libiptc/libip6tc.c:111:
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/libiptc/libiptc.c:268:15:
error: expected ',' or ';' before 'unsigned'
static inline unsigned int
^~~~~~~~
In file included from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/linux-4.20-rc1/include/uapi/linux/stddef.h:2,
from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/linux-4.20-rc1/include/uapi/linux/posix_types.h:5,
from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/include/linux/types.h:8,
from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/include/libiptc/libip6tc.h:5,
from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/libiptc/libip6tc.c:30:
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/linux-4.20-rc1/include/linux/compiler_types.h:198:58:
error: unknown type name '__gnu_inline'
#define inline inline __attribute__((__always_inline__)) __gnu_inline \
^~~~~~~~~~~~
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/libiptc/libiptc.c:315:8:
note: in expansion of macro 'inline'
static inline unsigned int iptcc_is_builtin(struct chain_head *c);
^~~~~~
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/linux-4.20-rc1/include/linux/compiler_types.h:199:2:
warning: variable '__maybe_unused' declared 'inline'
__maybe_unused notrace
^~~~~~~~~~~~~~
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/libiptc/libiptc.c:315:8:
note: in expansion of macro 'inline'
static inline unsigned int iptcc_is_builtin(struct chain_head *c);
^~~~~~
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/linux-4.20-rc1/include/linux/compiler_types.h:199:2:
error: 'no_instrument_function' attribute applies only to functions
__maybe_unused notrace
^~~~~~~~~~~~~~
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/libiptc/libiptc.c:315:8:
note: in expansion of macro 'inline'
static inline unsigned int iptcc_is_builtin(struct chain_head *c);
^~~~~~
In file included from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/libiptc/libip6tc.c:111:
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/libiptc/libiptc.c:315:1:
warning: 'always_inline' attribute ignored [-Wattributes]
static inline unsigned int iptcc_is_builtin(struct chain_head *c);
^~~~~~
In file included from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/linux-4.20-rc1/include/uapi/linux/stddef.h:2,
from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/linux-4.20-rc1/include/uapi/linux/posix_types.h:5,
from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/include/linux/types.h:8,
from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/include/libiptc/libip6tc.h:5,
from
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/libiptc/libip6tc.c:30:
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/linux-4.20-rc1/include/linux/compiler_types.h:199:2:
warning: redundant redeclaration of '__maybe_unused' [-Wredundant-decls]
__maybe_unused notrace
^~~~~~~~~~~~~~
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/libiptc/libiptc.c:315:8:
note: in expansion of macro 'inline'
static inline unsigned int iptcc_is_builtin(struct chain_head *c);
^~~~~~
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/linux-4.20-rc1/include/linux/compiler_types.h:199:2:
note: previous declaration of '__maybe_unused' was here
__maybe_unused notrace
^~~~~~~~~~~~~~
/home/neil/projects/scratch/alternates/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.0-devel-next/iptables-1.8.1/libiptc/libiptc.c:268:8:
note: in expansion of macro 'inline'
static inline unsigned int
^~~~~~
And so on. More complete log: http://ix.io/1r5f
The compiler is gcc-8.2.0, with glibc-2.28. iptables 1.8.1 is building without
a problem against kernel 4.19.1. But when switching out 4.19.1 for 4.20-rc1,
the build will fail as described above.
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20181105/9f5dd374/attachment-0001.html>
More information about the netfilter-buglog
mailing list