Test-Label: Intel-compilation Test-Status: FAILURE http://dpdk.org/patch/136590 _Compilation issues_ Submitter: Gregory Etelson Date: 2024-02-12 12:32:16 Reply_mail: <20240212123216.517767-3-getelson@nvidia.com> DPDK git baseline: Repo:dpdk, CommitID: dbc85385d71ec575744b1b76ee49f68a6d3cae8d Meson Build Summary: 24 Builds Done, 21 Successful, 3 Failures, 0 Blocked +-------------------+------------+--------------+------------+------------+-----------+----------+------------+ | os | gcc-static | clang-static | icc-static | gcc-shared | gcc-debug | document | gcc-16byte | +-------------------+------------+--------------+------------+------------+-----------+----------+------------+ | OpenAnolis8.8-64 | pass | | | | | | | | FreeBSD13-64 | pass | pass | | pass | pass | | | | RHEL92-64 | pass | pass | | pass | pass | | | | SUSE15-64 | pass | pass | | | | | | | CBL-Mariner2.0-64 | pass | | | | | | | | UB2204-32 | pass | | | | | | | | RHEL89-64 | pass | | | | | | | | UB2204-64 | pass | pass | | | | fail | pass | | CentOS79-64 | pass | | | | | | | | RHEL92-64Rt | pass | | | | | | | | UB2310-64 | pass | | | | | | | | FC39-64 | fail | fail | | | | | | | 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: OpenAnolis8.8-64 Kernel Version: 5.10.134-13.an8.x86_64 GCC Version: gcc (GCC) 8.5.0 20210514 (Anolis 8.5.0-10.0.3) Clang Version: 13.0.1 (Anolis 13.0.1-2.0.2.module+an8.7.0+10996+1588f068) x86_64-native-linuxapp-gcc OS: FreeBSD13-64 Kernel Version: 13.2-RELEASE GCC Version: gcc (FreeBSD Ports Collection) 12.2.0 Clang Version: 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c) x86_64-native-bsdapp-gcc x86_64-native-bsdapp-clang x86_64-native-bsdapp-gcc+shared x86_64-native-bsdapp-gcc+debug OS: RHEL92-64 Kernel Version: 5.14.0-284.11.1.el9_2.x86_64 GCC Version: gcc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4) Clang Version: 15.0.7 (Red Hat 15.0.7-2.el9) 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-150500.53-default GCC Version: gcc (SUSE Linux) 7.5.0 Clang Version: 15.0.7 x86_64-native-linuxapp-clang x86_64-native-linuxapp-gcc OS: CBL-Mariner2.0-64 Kernel Version: 5.15.55.1_2e9a4f9+ GCC Version: gcc (GCC) 11.2.0 Clang Version: NA x86_64-native-linuxapp-gcc OS: UB2204-32 Kernel Version: 5.15.0-58-generic GCC Version: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Clang Version: NA i686-native-linuxapp-gcc OS: RHEL89-64 Kernel Version: 4.18.0-513.5.1.el8_9.x86_64 GCC Version: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-20) Clang Version: 16.0.6 (Red Hat 16.0.6-2.module+el8.9.0+19521+190d7aba) x86_64-native-linuxapp-gcc OS: UB2204-64 Kernel Version: 5.15.0-58-generic GCC Version: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Clang Version: 14.0.0-1ubuntu1.1 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: RHEL92-64Rt Kernel Version: 5.14.0-284.11.1.rt14.296.el9_2.x86_64 GCC Version: gcc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4) Clang Version: 15.0.7 (Red Hat 15.0.7-2.el9) x86_64-native-linuxapp-gcc OS: UB2310-64 Kernel Version: 6.5.0-9-generic GCC Version: gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0 Clang Version: NA x86_64-native-linuxapp-gcc OS: FC39-64 Kernel Version: 6.5.6-300.fc39.x86_64 GCC Version: gcc (GCC) 13.2.1 20230918 (Red Hat 13.2.1-3) Clang Version: 17.0.6 (Fedora 17.0.6-1.fc39) x86_64-native-linuxapp-gcc x86_64-native-linuxapp-clang OS: UB2204-64Rt Kernel Version: 5.17.5-051705-generic GCC Version: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Clang Version: 14.0.0-1ubuntu1.1 x86_64-native-linuxapp-gcc *Build Failed #1: OS: UB2204-64 Target: x86_64-native-linuxapp-doc FAILED: drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_hw.c.o gcc -Idrivers/libtmp_rte_net_mlx5.a.p -Idrivers -I../drivers -Idrivers/net/mlx5 -I../drivers/net/mlx5 -Idrivers/net/mlx5/linux -I../drivers/net/mlx5/linux -Idrivers/net/mlx5/hws -I../drivers/net/mlx5/hws -Ilib/ethdev -I../lib/ethdev -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/log -I../lib/log -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/hash -I../lib/hash -Ilib/rcu -I../lib/rcu -Idrivers/common/mlx5 -I../drivers/common/mlx5 -Idrivers/common/mlx5/linux -I../drivers/common/mlx5/linux -Idrivers/bus/auxiliary -I../drivers/bus/auxiliary -I/usr/include/libnl3 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O3 -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 -fPIC -march=native -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -std=c11 -Wno-strict-prototypes -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -UPEDANTIC -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.mlx5 -MD -MQ drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_hw.c.o -MF drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_hw.c.o.d -o drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_hw.c.o -c ../drivers/net/mlx5/mlx5_flow_hw.c ../drivers/net/mlx5/mlx5_flow_hw.c: In function ‘pattern_template_validate’: ../drivers/net/mlx5/mlx5_flow_hw.c:6873:54: error: passing argument 2 of ‘flow_hw_table_create’ from incompatible pointer type [-Werror=incompatible-pointer-types] 6873 | tmpl_tbl = flow_hw_table_create(dev, &tbl_attr, pt, pt_num, | ^~~~~~~~~ | | | struct rte_flow_template_table_attr * ../drivers/net/mlx5/mlx5_flow_hw.c:4276:65: note: expected ‘const struct mlx5_flow_template_table_cfg *’ but argument is of type ‘struct rte_flow_template_table_attr *’ 4276 | const struct mlx5_flow_template_table_cfg *table_cfg, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ ../drivers/net/mlx5/mlx5_flow_hw.c: In function ‘flow_hw_pattern_template_create’: ../drivers/net/mlx5/mlx5_flow_hw.c:4338:18: error: array subscript ‘const struct mlx5_flow_template_table_cfg[0]’ is partly outside array bounds of ‘struct rte_flow_template_table_attr[1]’ [-Werror=array-bounds] 4338 | tbl->cfg = *table_cfg; | ~~~~~~~~~^~~~~~~~~~~~ ../drivers/net/mlx5/mlx5_flow_hw.c:6848:45: note: while referencing ‘tbl_attr’ 6848 | struct rte_flow_template_table_attr tbl_attr = { | ^~~~~~~~ cc1: all warnings being treated as errors [1818/2860] Compiling C object drivers/librte_net_octeontx.a.p/meson-generated_.._rte_net_octeontx.pmd.c.o [1819/2860] Compiling C object drivers/libtmp_rte_net_octeon_ep.a.p/net_octeon_ep_otx_ep_ethdev.c.o [1820/2860] Compiling C object drivers/libtmp_rte_net_octeon_ep.a.p/net_octeon_ep_otx2_ep_vf.c.o [1821/2860] Compiling C object drivers/libtmp_rte_net_octeon_ep.a.p/net_octeon_ep_otx_ep_mbox.c.o [1822/2860] Compiling C object drivers/libtmp_rte_net_octeon_ep.a.p/net_octeon_ep_cnxk_ep_vf.c.o [1823/2860] Compiling C object drivers/libtmp_rte_net_ngbe.a.p/net_ngbe_ngbe_rxtx.c.o [1824/2860] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_nompw.c.o [1825/2860] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_empw.c.o [1826/2860] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_txpp.c.o ninja: build stopped *Build Failed #2: OS: FC39-64 Target: x86_64-native-linuxapp-gcc FAILED: drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_hw.c.o gcc -Idrivers/libtmp_rte_net_mlx5.a.p -Idrivers -I../drivers -Idrivers/net/mlx5 -I../drivers/net/mlx5 -Idrivers/net/mlx5/linux -I../drivers/net/mlx5/linux -Idrivers/net/mlx5/hws -I../drivers/net/mlx5/hws -Ilib/ethdev -I../lib/ethdev -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/log -I../lib/log -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/hash -I../lib/hash -Ilib/rcu -I../lib/rcu -Idrivers/common/mlx5 -I../drivers/common/mlx5 -Idrivers/common/mlx5/linux -I../drivers/common/mlx5/linux -Idrivers/bus/auxiliary -I../drivers/bus/auxiliary -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O3 -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 -fPIC -march=native -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -std=c11 -Wno-strict-prototypes -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -UPEDANTIC -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.mlx5 -MD -MQ drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_hw.c.o -MF drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_hw.c.o.d -o drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_hw.c.o -c ../drivers/net/mlx5/mlx5_flow_hw.c ../drivers/net/mlx5/mlx5_flow_hw.c: In function ‘pattern_template_validate’: ../drivers/net/mlx5/mlx5_flow_hw.c:6873:54: error: passing argument 2 of ‘flow_hw_table_create’ from incompatible pointer type [-Werror=incompatible-pointer-types] 6873 | tmpl_tbl = flow_hw_table_create(dev, &tbl_attr, pt, pt_num, | ^~~~~~~~~ | | | struct rte_flow_template_table_attr * ../drivers/net/mlx5/mlx5_flow_hw.c:4276:65: note: expected ‘const struct mlx5_flow_template_table_cfg *’ but argument is of type ‘struct rte_flow_template_table_attr *’ 4276 | const struct mlx5_flow_template_table_cfg *table_cfg, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ In function ‘flow_hw_table_create’, inlined from ‘pattern_template_validate’ at ../drivers/net/mlx5/mlx5_flow_hw.c:6873:14, inlined from ‘flow_hw_pattern_template_create’ at ../drivers/net/mlx5/mlx5_flow_hw.c:7017:14: ../drivers/net/mlx5/mlx5_flow_hw.c:4338:18: error: array subscript ‘const struct mlx5_flow_template_table_cfg[0]’ is partly outside array bounds of ‘struct rte_flow_template_table_attr[1]’ [-Werror=array-bounds=] 4338 | tbl->cfg = *table_cfg; | ~~~~~~~~~^~~~~~~~~~~~ ../drivers/net/mlx5/mlx5_flow_hw.c: In function ‘flow_hw_pattern_template_create’: ../drivers/net/mlx5/mlx5_flow_hw.c:6848:45: note: object ‘tbl_attr’ of size 28 6848 | struct rte_flow_template_table_attr tbl_attr = { | ^~~~~~~~ cc1: all warnings being treated as errors [1795/3045] Linking static target drivers/librte_net_nfp.a [1796/3045] Compiling C object drivers/net/ngbe/base/libngbe_base.a.p/ngbe_phy.c.o [1797/3045] Compiling C object drivers/net/ngbe/base/libngbe_base.a.p/ngbe_phy_rtl.c.o [1798/3045] Compiling C object drivers/net/ngbe/base/libngbe_base.a.p/ngbe_phy_mvl.c.o [1799/3045] Compiling C object drivers/net/ngbe/base/libngbe_base.a.p/ngbe_phy_yt.c.o [1800/3045] Compiling C object drivers/libtmp_rte_net_ngbe.a.p/net_ngbe_ngbe_ethdev.c.o [1801/3045] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_nompw.c.o [1802/3045] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_empw.c.o [1803/3045] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_txpp.c.o ninja: build stopped *Build Failed #3: OS: FC39-64 Target: x86_64-native-linuxapp-clang FAILED: drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_hw.c.o clang -Idrivers/libtmp_rte_net_mlx5.a.p -Idrivers -I../drivers -Idrivers/net/mlx5 -I../drivers/net/mlx5 -Idrivers/net/mlx5/linux -I../drivers/net/mlx5/linux -Idrivers/net/mlx5/hws -I../drivers/net/mlx5/hws -Ilib/ethdev -I../lib/ethdev -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/log -I../lib/log -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -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 -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/hash -I../lib/hash -Ilib/rcu -I../lib/rcu -Idrivers/common/mlx5 -I../drivers/common/mlx5 -Idrivers/common/mlx5/linux -I../drivers/common/mlx5/linux -Idrivers/bus/auxiliary -I../drivers/bus/auxiliary -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O3 -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-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -std=c11 -Wno-strict-prototypes -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -UPEDANTIC -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.mlx5 -MD -MQ drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_hw.c.o -MF drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_hw.c.o.d -o drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_hw.c.o -c ../drivers/net/mlx5/mlx5_flow_hw.c ../drivers/net/mlx5/mlx5_flow_hw.c:6873:40: error: incompatible pointer types passing 'struct rte_flow_template_table_attr *' to parameter of type 'const struct mlx5_flow_template_table_cfg *' [-Werror,-Wincompatible-pointer-types] 6873 | tmpl_tbl = flow_hw_table_create(dev, &tbl_attr, pt, pt_num, | ^~~~~~~~~ ../drivers/net/mlx5/mlx5_flow_hw.c:4276:51: note: passing argument to parameter 'table_cfg' here 4276 | const struct mlx5_flow_template_table_cfg *table_cfg, | ^ 1 error generated. [1721/3045] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_quota.c.o [1722/3045] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_hws_cnt.c.o [1723/3045] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_verbs.c.o [1724/3045] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_flow_dv.c.o [1725/3045] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_mpw.c.o [1726/3045] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_rxtx_vec.c.o [1727/3045] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_nompw.c.o [1728/3045] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_empw.c.o [1729/3045] Compiling C object drivers/libtmp_rte_net_mlx5.a.p/net_mlx5_mlx5_tx_txpp.c.o ninja: build stopped DPDK STV team