<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - iptables build fails with kernel 4.20-rc1 - gnu_inline attributes"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1289">1289</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>iptables build fails with kernel 4.20-rc1 - gnu_inline attributes
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>iptables
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86_64
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Ubuntu
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>iptables
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>netfilter-buglog@lists.netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>netfilter@nmacleod.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Cross-compiling iptables 1.8.1 for a 4.20-rc1 target fails, possibly due to
<a href="https://github.com/torvalds/linux/commit/c2c640aa04cc4e6caf0ff17ff18b3784e0c99566">https://github.com/torvalds/linux/commit/c2c640aa04cc4e6caf0ff17ff18b3784e0c99566</a>

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: <a href="http://ix.io/1r5f">http://ix.io/1r5f</a>

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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>