You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying cross-compile ipt_NETFLOW against latest openwrt trunk and kernel 5.15.111 (gcc 12.3), but im ending with error already mentioned here before - see below.
I dont know how, but previous kernel 5.15.110 and gcc 12.2 has worked.
make -C /home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/linux-5.15.111 M=/home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/ipt-netflow-b049e91 modules
make[4]: Entering directory '/home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/linux-5.15.111'
CC [M] /home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/ipt-netflow-b049e91/ipt_NETFLOW.o
/home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/ipt-netflow-b049e91/ipt_NETFLOW.c: In function 'nf_seq_show':
/home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/ipt-netflow-b049e91/ipt_NETFLOW.c:762:60: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 's64' {aka 'long long int'} [-Werror=format=]
762 | seq_printf(seq, " Flows selected %lu, discarded %lu.",
| ~~^
| |
| long unsigned int
| %llu
763 | atomic64_read(&flows_selected),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| s64 {aka long long int}
/home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/ipt-netflow-b049e91/ipt_NETFLOW.c:762:75: error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 's64' {aka 'long long int'} [-Werror=format=]
762 | seq_printf(seq, " Flows selected %lu, discarded %lu.",
| ~~^
| |
| long unsigned int
| %llu
763 | atomic64_read(&flows_selected),
764 | atomic64_read(&flows_observed) - atomic64_read(&flows_selected));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| s64 {aka long long int}
/home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/ipt-netflow-b049e91/ipt_NETFLOW.c:766:60: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 's64' {aka 'long long int'} [-Werror=format=]
766 | seq_printf(seq, " Flows selected %lu.", atomic64_read(&flows_selected));
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | s64 {aka long long int}
| long unsigned int
| %llu
In file included from ./include/linux/kernel.h:19,
from ./include/linux/list.h:9,
from ./include/linux/module.h:12,
from /home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/ipt-netflow-b049e91/ipt_NETFLOW.c:22:
/home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/ipt-netflow-b049e91/ipt_NETFLOW.c: In function 'ipt_netflow_init':
./include/linux/kern_levels.h:5:25: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Werror=format=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
./include/linux/printk.h:422:25: note: in definition of macro 'printk_index_wrap'
422 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
/home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/ipt-netflow-b049e91/ipt_NETFLOW.c:5618:9: note: in expansion of macro 'printk'
5618 | printk(KERN_INFO "ipt_NETFLOW: hashsize %u (%luK)\n", hashsize,
| ^~~~~~
./include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
/home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/ipt-netflow-b049e91/ipt_NETFLOW.c:5618:16: note: in expansion of macro 'KERN_INFO'
5618 | printk(KERN_INFO "ipt_NETFLOW: hashsize %u (%luK)\n", hashsize,
| ^~~~~~~~~
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:289: /home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/ipt-netflow-b049e91/ipt_NETFLOW.o] Error 1
make[4]: *** [Makefile:1906: /home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/ipt-netflow-b049e91] Error 2
make[4]: Leaving directory '/home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/linux-5.15.111'
make[3]: *** [Makefile:27: ipt_NETFLOW.ko] Error 2
make[3]: Leaving directory '/home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/ipt-netflow-b049e91'
make[2]: *** [Makefile:128: /home/builder/openwrt/build_dir/target-mipsel_24kc_glibc/linux-ramips_mt7620/ipt-netflow-b049e91/.built] Error 2
make[2]: Leaving directory '/home/builder/openwrt/feeds/customPackages/net/ipt-netflow'
time: package/feeds/customPackages/ipt-netflow/compile#17.61#3.78#21.35
ERROR: package/feeds/customPackages/ipt-netflow failed to build.
make[1]: *** [package/Makefile:120: package/feeds/customPackages/ipt-netflow/compile] Error 1
make[1]: Leaving directory '/home/builder/openwrt'
make: *** [/home/builder/openwrt/include/toplevel.mk:231: package/feeds/customPackages/ipt-netflow/compile] Error 2
The text was updated successfully, but these errors were encountered:
Hello.
I'm trying cross-compile ipt_NETFLOW against latest openwrt trunk and kernel 5.15.111 (gcc 12.3), but im ending with error already mentioned here before - see below.
I dont know how, but previous kernel 5.15.110 and gcc 12.2 has worked.
The text was updated successfully, but these errors were encountered: