Test-Label: Intel-compilation Test-Status: FAILURE http://dpdk.org/patch/123695 _Compilation issues_ Submitter: Stephen Hemminger Date: 2023-02-10 17:15:42 Reply_mail: <20230210171542.115434-6-stephen@networkplumber.org> DPDK git baseline: Repo:dpdk, CommitID: 39d469a7eb4f157923be73aea0b0cc1015860ca7 Meson Build Summary: 25 Builds Done, 23 Successful, 2 Failures, 0 Blocked +--------------+------------+--------------+------------+------------+-----------+----------+------------+ | os | gcc-static | clang-static | icc-static | gcc-shared | gcc-debug | document | gcc-16byte | +--------------+------------+--------------+------------+------------+-----------+----------+------------+ | FreeBSD13-64 | pass | pass | | pass | fail | | | | RHEL86-64 | pass | pass | | pass | fail | | | | SUSE15-64 | pass | pass | | | | | | | RHEL91-64 | pass | | | | | | | | UB2004-64 | pass | pass | | | | pass | | | UB2204-32 | pass | | | | | | | | UB2204-64 | pass | pass | | | | pass | pass | | CentOS79-64 | pass | | | | | | | | RHEL86-64Rt | pass | | | | | | | | UB2210-64 | pass | | | | | | | | FC37-64 | pass | pass | | | | | | | UB2204-64Rt | pass | | | | | | | +--------------+------------+--------------+------------+------------+-----------+----------+------------+ Comments: Because of DPDK bug (https://bugs.dpdk.org/show_bug.cgi?id=928), All the dpdk-next-* branch add `Ddisable_drivers=event/cnxk` option when build with ICC complier. Test environment and configuration as below: OS: FreeBSD13-64 Kernel Version: 13.1-RELEASE GCC Version: gcc (FreeBSD Ports Collection) 10.3.0 Clang Version: 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) x86_64-native-bsdapp-gcc x86_64-native-bsdapp-clang x86_64-native-bsdapp-gcc+shared x86_64-native-bsdapp-gcc+debug OS: RHEL86-64 Kernel Version: 4.18.0-372.9.1.el8.x86_64 GCC Version: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-13) Clang Version: 14.0.0 (Red Hat 14.0.0-1.module_el8.7.0+1142+5343df54) x86_64-native-linuxapp-gcc x86_64-native-linuxapp-clang x86_64-native-linuxapp-gcc+shared x86_64-native-linuxapp-gcc+debug OS: SUSE15-64 Kernel Version: 5.14.21-150400.22-default GCC Version: gcc (SUSE Linux) 7.5.0 Clang Version: 11.0.1 x86_64-native-linuxapp-clang x86_64-native-linuxapp-gcc OS: RHEL91-64 Kernel Version: 5.14.0-162.6.1.el9_1.x86_64 GCC Version: gcc (GCC) 11.3.1 20220421 (Red Hat 11.3.1-2) Clang Version: 14.0.6 (Red Hat 14.0.6-1.el9) x86_64-native-linuxapp-gcc OS: UB2004-64 Kernel Version: 5.8.0-48-generic GCC Version: gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 Clang Version: 10.0.0-4ubuntu1 x86_64-native-linuxapp-clang x86_64-native-linuxapp-gcc x86_64-native-linuxapp-doc OS: UB2204-32 Kernel Version: 5.15.0-58-generic GCC Version: gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0 Clang Version: NA i686-native-linuxapp-gcc OS: UB2204-64 Kernel Version: 5.15.0-58-generic GCC Version: gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0 Clang Version: 14.0.0-1ubuntu1 x86_64-native-linuxapp-gcc+16byte x86_64-native-linuxapp-gcc x86_64-native-linuxapp-clang x86_64-native-linuxapp-doc OS: CentOS79-64 Kernel Version: 3.10.0-1160.81.1.el7.x86_64 GCC Version: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) Clang Version: 3.4.2 (tags/RELEASE_34/dot2-final) x86_64-native-linuxapp-gcc OS: RHEL86-64Rt Kernel Version: 4.18.0-372.9.1.rt7.166.el8.x86_64 GCC Version: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-13) Clang Version: 14.0.0 (Red Hat 14.0.0-1.module_el8.7.0+1142+5343df54) x86_64-native-linuxapp-gcc OS: UB2210-64 Kernel Version: 5.19.0-21-generic GCC Version: gcc (Ubuntu 12.2.0-3ubuntu1) 12.2.0 Clang Version: 15.0.2-1 x86_64-native-linuxapp-gcc OS: FC37-64 Kernel Version: 6.0.15-300.fc37.x86_64 GCC Version: gcc (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4) Clang Version: 15.0.6 (Fedora 15.0.6-2.fc37) x86_64-native-linuxapp-gcc x86_64-native-linuxapp-clang OS: UB2204-64Rt Kernel Version: 5.15.85-rt55 GCC Version: gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0 Clang Version: 14.0.0-1ubuntu1 x86_64-native-linuxapp-gcc *Build Failed #1: OS: FreeBSD13-64 Target: x86_64-native-bsdapp-gcc+debug FAILED: lib/librte_ip_frag.a.p/ip_frag_rte_ipv4_reassembly.c.o gcc -Ilib/librte_ip_frag.a.p -Ilib -I../lib -Ilib/ip_frag -I../lib/ip_frag -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/freebsd/include -I../lib/eal/freebsd/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Ilib/hash -I../lib/hash -Ilib/rcu -I../lib/rcu -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -D__BSD_VISIBLE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.ip_frag -MD -MQ lib/librte_ip_frag.a.p/ip_frag_rte_ipv4_reassembly.c.o -MF lib/librte_ip_frag.a.p/ip_frag_rte_ipv4_reassembly.c.o.d -o lib/librte_ip_frag.a.p/ip_frag_rte_ipv4_reassembly.c.o -c ../lib/ip_frag/rte_ipv4_reassembly.c In file included from ../lib/ip_frag/rte_ipv4_reassembly.c:9: ../lib/ip_frag/rte_ipv4_reassembly.c: In function 'rte_ipv4_frag_reassemble_packet': ../lib/ip_frag/ip_frag_common.h:21:3: error: format '%p' expects argument of type 'void *', but argument 6 has type 'int' [-Werror=format=] 21 | "%s: " fmt "\n", __func__, ## args) | ^~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:160:2: note: in expansion of macro 'IP_FRAG_LOG' 160 | IP_FRAG_LOG(DEBUG, | ^~~~~~~~~~~ ../lib/ip_frag/ip_frag_common.h:21:3: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'struct rte_mbuf *' [-Werror=format=] 21 | "%s: " fmt "\n", __func__, ## args) | ^~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:160:2: note: in expansion of macro 'IP_FRAG_LOG' 160 | IP_FRAG_LOG(DEBUG, | ^~~~~~~~~~~ ../lib/ip_frag/ip_frag_common.h:21:3: error: format '%u' expects argument of type 'unsigned int', but argument 8 has type 'struct rte_ip_frag_tbl *' [-Werror=format=] 21 | "%s: " fmt "\n", __func__, ## args) | ^~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:160:2: note: in expansion of macro 'IP_FRAG_LOG' 160 | IP_FRAG_LOG(DEBUG, | ^~~~~~~~~~~ ../lib/ip_frag/ip_frag_common.h:21:3: error: format '%p' expects argument of type 'void *', but argument 9 has type 'uint32_t' {aka 'unsigned int'} [-Werror=format=] 21 | "%s: " fmt "\n", __func__, ## args) | ^~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:160:2: note: in expansion of macro 'IP_FRAG_LOG' 160 | IP_FRAG_LOG(DEBUG, | ^~~~~~~~~~~ ../lib/ip_frag/ip_frag_common.h:21:3: error: format '%lx' expects argument of type 'long unsigned int', but argument 10 has type 'uint32_t' {aka 'unsigned int'} [-Werror=format=] 21 | "%s: " fmt "\n", __func__, ## args) | ^~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:160:2: note: in expansion of macro 'IP_FRAG_LOG' 160 | IP_FRAG_LOG(DEBUG, | ^~~~~~~~~~~ ../lib/ip_frag/ip_frag_common.h:21:3: error: format '%x' expects argument of type 'unsigned int', but argument 11 has type 'struct ip_frag_pkt *' [-Werror=format=] 21 | "%s: " fmt "\n", __func__, ## args) | ^~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:160:2: note: in expansion of macro 'IP_FRAG_LOG' 160 | IP_FRAG_LOG(DEBUG, | ^~~~~~~~~~~ ../lib/ip_frag/ip_frag_common.h:21:3: error: format '%u' expects argument of type 'unsigned int', but argument 14 has type 'uint64_t' {aka 'long unsigned int'} [-Werror=format=] 21 | "%s: " fmt "\n", __func__, ## args) | ^~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:160:2: note: in expansion of macro 'IP_FRAG_LOG' 160 | IP_FRAG_LOG(DEBUG, | ^~~~~~~~~~~ ../lib/ip_frag/ip_frag_common.h:21:3: error: too many arguments for format [-Werror=format-extra-args] 21 | "%s: " fmt "\n", __func__, ## args) | ^~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:160:2: note: in expansion of macro 'IP_FRAG_LOG' 160 | IP_FRAG_LOG(DEBUG, | ^~~~~~~~~~~ cc1: all warnings being treated as errors [231/1838] Compiling C object lib/librte_ip_frag.a.p/ip_frag_rte_ipv6_reassembly.c.o [232/1838] Compiling C object lib/librte_ip_frag.a.p/ip_frag_rte_ipv6_fragmentation.c.o [233/1838] Generating lib/gso.sym_chk with a custom command (wrapped by meson to capture output) [234/1838] Compiling C object lib/librte_ip_frag.a.p/ip_frag_rte_ipv4_fragmentation.c.o [235/1838] Compiling C object lib/librte_ip_frag.a.p/ip_frag_rte_ip_frag_common.c.o [236/1838] Generating lib/cryptodev.sym_chk with a custom command (wrapped by meson to capture output) [237/1838] Generating lib/ethdev.sym_chk with a custom command (wrapped by meson to capture output) [238/1838] Generating lib/eventdev.sym_chk with a custom command (wrapped by meson to capture output) [239/1838] Generating lib/eal.sym_chk with a custom command (wrapped by meson to capture output) ninja: build stopped *Build Failed #2: OS: RHEL86-64 Target: x86_64-native-linuxapp-gcc+debug FAILED: lib/librte_ip_frag.a.p/ip_frag_rte_ipv4_reassembly.c.o gcc -Ilib/librte_ip_frag.a.p -Ilib -I../lib -Ilib/ip_frag -I../lib/ip_frag -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Ilib/hash -I../lib/hash -Ilib/rcu -I../lib/rcu -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.ip_frag -MD -MQ lib/librte_ip_frag.a.p/ip_frag_rte_ipv4_reassembly.c.o -MF lib/librte_ip_frag.a.p/ip_frag_rte_ipv4_reassembly.c.o.d -o lib/librte_ip_frag.a.p/ip_frag_rte_ipv4_reassembly.c.o -c ../lib/ip_frag/rte_ipv4_reassembly.c In file included from ../lib/ip_frag/rte_ipv4_reassembly.c:9: ../lib/ip_frag/rte_ipv4_reassembly.c: In function ‘rte_ipv4_frag_reassemble_packet’: ../lib/ip_frag/ip_frag_common.h:21:3: error: format ‘%p’ expects argument of type ‘void *’, but argument 6 has type ‘int’ [-Werror=format=] "%s: " fmt "\n", __func__, ## args) ^~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:160:2: note: in expansion of macro ‘IP_FRAG_LOG’ IP_FRAG_LOG(DEBUG, ^~~~~~~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:162:10: note: format string is defined here "tbl: %p, max_entries: %u, use_entries: %u\n" ~^ %d In file included from ../lib/ip_frag/rte_ipv4_reassembly.c:9: ../lib/ip_frag/ip_frag_common.h:21:3: error: format ‘%u’ expects argument of type ‘unsigned int’, but argument 7 has type ‘struct rte_mbuf *’ [-Werror=format=] "%s: " fmt "\n", __func__, ## args) ^~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:160:2: note: in expansion of macro ‘IP_FRAG_LOG’ IP_FRAG_LOG(DEBUG, ^~~~~~~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:162:27: note: format string is defined here "tbl: %p, max_entries: %u, use_entries: %u\n" ~^ In file included from ../lib/ip_frag/rte_ipv4_reassembly.c:9: ../lib/ip_frag/ip_frag_common.h:21:3: error: format ‘%u’ expects argument of type ‘unsigned int’, but argument 8 has type ‘struct rte_ip_frag_tbl *’ [-Werror=format=] "%s: " fmt "\n", __func__, ## args) ^~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:160:2: note: in expansion of macro ‘IP_FRAG_LOG’ IP_FRAG_LOG(DEBUG, ^~~~~~~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:162:44: note: format string is defined here "tbl: %p, max_entries: %u, use_entries: %u\n" ~^ In file included from ../lib/ip_frag/rte_ipv4_reassembly.c:9: ../lib/ip_frag/ip_frag_common.h:21:3: error: format ‘%p’ expects argument of type ‘void *’, but argument 9 has type ‘uint32_t’ {aka ‘unsigned int’} [-Werror=format=] "%s: " fmt "\n", __func__, ## args) ^~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:160:2: note: in expansion of macro ‘IP_FRAG_LOG’ IP_FRAG_LOG(DEBUG, ^~~~~~~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:163:20: note: format string is defined here "ipv4_frag_pkt: %p, key: <%" PRIx64 ", %#x>, start: %" PRIu64 ~^ %d In file included from ../lib/ip_frag/rte_ipv4_reassembly.c:9: ../lib/ip_frag/ip_frag_common.h:21:3: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 10 has type ‘uint32_t’ {aka ‘unsigned int’} [-Werror=format=] "%s: " fmt "\n", __func__, ## args) ^~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:160:2: note: in expansion of macro ‘IP_FRAG_LOG’ IP_FRAG_LOG(DEBUG, ^~~~~~~~~~~ In file included from /usr/include/netinet/ip6.h:21, from ../lib/net/rte_ip.h:28, from ../lib/ip_frag/rte_ip_frag.h:26, from ../lib/ip_frag/ip_frag_common.h:8, from ../lib/ip_frag/rte_ipv4_reassembly.c:9: /usr/include/inttypes.h:121:34: note: format string is defined here # define PRIx64 __PRI64_PREFIX "x" In file included from ../lib/ip_frag/rte_ipv4_reassembly.c:9: ../lib/ip_frag/ip_frag_common.h:21:3: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 11 has type ‘struct ip_frag_pkt *’ [-Werror=format=] "%s: " fmt "\n", __func__, ## args) ^~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:160:2: note: in expansion of macro ‘IP_FRAG_LOG’ IP_FRAG_LOG(DEBUG, ^~~~~~~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:163:44: note: format string is defined here "ipv4_frag_pkt: %p, key: <%" PRIx64 ", %#x>, start: %" PRIu64 ~~^ In file included from ../lib/ip_frag/rte_ipv4_reassembly.c:9: ../lib/ip_frag/ip_frag_common.h:21:3: error: format ‘%u’ expects argument of type ‘unsigned int’, but argument 14 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Werror=format=] "%s: " fmt "\n", __func__, ## args) ^~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:160:2: note: in expansion of macro ‘IP_FRAG_LOG’ IP_FRAG_LOG(DEBUG, ^~~~~~~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:164:34: note: format string is defined here ", total_size: %u, frag_size: %u, last_idx: %u\n", ~^ %lu In file included from ../lib/ip_frag/rte_ipv4_reassembly.c:9: ../lib/ip_frag/ip_frag_common.h:21:3: error: too many arguments for format [-Werror=format-extra-args] "%s: " fmt "\n", __func__, ## args) ^~~~~~ ../lib/ip_frag/rte_ipv4_reassembly.c:160:2: note: in expansion of macro ‘IP_FRAG_LOG’ IP_FRAG_LOG(DEBUG, ^~~~~~~~~~~ cc1: all warnings being treated as errors [244/3183] Generating symbol file lib/librte_eal.so.23.1.p/librte_eal.so.23.1.symbols [245/3183] Compiling C object lib/librte_ip_frag.a.p/ip_frag_rte_ipv6_fragmentation.c.o [246/3183] Compiling C object lib/librte_ip_frag.a.p/ip_frag_rte_ipv4_fragmentation.c.o [247/3183] Compiling C object lib/librte_ip_frag.a.p/ip_frag_rte_ipv6_reassembly.c.o [248/3183] Generating gso.sym_chk with a custom command (wrapped by meson to capture output) [249/3183] Compiling C object lib/librte_ip_frag.a.p/ip_frag_ip_frag_internal.c.o [250/3183] Compiling C object lib/librte_ip_frag.a.p/ip_frag_rte_ip_frag_common.c.o [251/3183] Generating cryptodev.sym_chk with a custom command (wrapped by meson to capture output) [252/3183] Generating eventdev.sym_chk with a custom command (wrapped by meson to capture output) ninja: build stopped DPDK STV team