bugzilla-daemon at netfilter.org
2018-Nov-05 21:18 UTC
[Bug 1289] New: iptables build fails with kernel 4.20-rc1 - gnu_inline attributes
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>
bugzilla-daemon at netfilter.org
2018-Dec-03 04:25 UTC
[Bug 1289] iptables build fails with kernel 4.20-rc1 - gnu_inline attributes
https://bugzilla.netfilter.org/show_bug.cgi?id=1289 --- Comment #1 from netfilter at nmacleod.com --- Can anyone tell me if I'm barking up the wrong tree, or is it just that there's no /little interest during the kernel rc window (which is understandable). This continues to be an issue with 4.20-rc5. -- 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/20181203/bb29b421/attachment.html>
bugzilla-daemon at netfilter.org
2018-Dec-25 07:06 UTC
[Bug 1289] iptables build fails with kernel 4.20-rc1 - gnu_inline attributes
https://bugzilla.netfilter.org/show_bug.cgi?id=1289
netfilter at nmacleod.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from netfilter at nmacleod.com ---
The build failure reported here is now fixed in 4.20.0 - the fix is
"include/linux/compiler_types.h: don't pollute userspace with macro
definitions"[1].
I'll mark this as invalid, on the basis it was a kernel issue.
1.
https://github.com/torvalds/linux/commit/71391bdd2e9aab188f86bf1ecd9b232531ec7eea
--
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/20181225/78ba674e/attachment.html>
Seemingly Similar Threads
- [Bug 1291] New: iptables 1.8.0+ no longer builds against kernel 3.10.108
- [Bug 826] New: libiptc/libip6tc.h doesn't specify C linkage
- [Bug 102] New: ipv6_prefix_length works only on LITTLE_ENDIAN and prefix_length % 8 == 0
- [Bug 1231] New: libxt_bpf.c:69:6: error: 'union bpf_attr' has no member named 'pathname'
- [ANNOUNCE] Release of iptables-1.2.9