Test-Label: Intel-compilation Test-Status: FAILURE http://dpdk.org/patch/115216 _Compilation issues_ Submitter: Jiayu Hu Date: 2022-08-18 02:05:19 Reply_mail: <20220818020519.2613558-1-jiayu.hu@intel.com> DPDK git baseline: Repo:dpdk-next-virtio, CommitID: 72206323a5dd3182b13f61b25a64abdddfee595c Meson Build Summary: 22 Builds Done, 20 Successful, 2 Failures, 0 Blocked +--------------+------------+--------------+------------+------------+-----------+----------+------------+ | os | gcc-static | clang-static | icc-static | gcc-shared | gcc-debug | document | gcc-16byte | +--------------+------------+--------------+------------+------------+-----------+----------+------------+ | FC36-64 | pass | pass | | | | | | | FreeBSD13-64 | pass | pass | | pass | pass | | | | RHEL86-64 | pass | pass | | fail | pass | | | | SUSE15-64 | pass | pass | | | | | | | UB2004-32 | pass | | | | | | | | UB2004-64 | pass | pass | | | | pass | | | UB2204-32 | pass | | | | | | | | UB2204-64 | pass | pass | | | | pass | pass | | CentOS79-64 | fail | | | | | | | +--------------+------------+--------------+------------+------------+-----------+----------+------------+ 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: FC36-64 Kernel Version: 5.17.7-300.fc36.x86_64 GCC Version: gcc (GCC) 12.1.1 20220507 (Red Hat 12.1.1-1) Clang Version: 14.0.0 (Fedora 14.0.0-1.fc36) x86_64-native-linuxapp-gcc x86_64-native-linuxapp-clang 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.3.18-57-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: UB2004-32 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 i686-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-25-generic GCC Version: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0 Clang Version: NA i686-native-linuxapp-gcc OS: UB2204-64 Kernel Version: 5.15.0-25-generic GCC Version: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.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.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 *Build Failed #1: OS: RHEL86-64 Target: x86_64-native-linuxapp-gcc+shared FAILED: app/dpdk-testpmd gcc -o app/dpdk-testpmd app/dpdk-testpmd.p/test-pmd_5tswap.c.o app/dpdk-testpmd.p/test-pmd_cmdline.c.o app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o app/dpdk-testpmd.p/test-pmd_cmdline_mtr.c.o app/dpdk-testpmd.p/test-pmd_cmdline_tm.c.o app/dpdk-testpmd.p/test-pmd_cmd_flex_item.c.o app/dpdk-testpmd.p/test-pmd_config.c.o app/dpdk-testpmd.p/test-pmd_csumonly.c.o app/dpdk-testpmd.p/test-pmd_flowgen.c.o app/dpdk-testpmd.p/test-pmd_icmpecho.c.o app/dpdk-testpmd.p/test-pmd_ieee1588fwd.c.o app/dpdk-testpmd.p/test-pmd_iofwd.c.o app/dpdk-testpmd.p/test-pmd_macfwd.c.o app/dpdk-testpmd.p/test-pmd_macswap.c.o app/dpdk-testpmd.p/test-pmd_noisy_vnf.c.o app/dpdk-testpmd.p/test-pmd_parameters.c.o app/dpdk-testpmd.p/test-pmd_rxonly.c.o app/dpdk-testpmd.p/test-pmd_shared_rxq_fwd.c.o app/dpdk-testpmd.p/test-pmd_testpmd.c.o app/dpdk-testpmd.p/test-pmd_txonly.c.o app/dpdk-testpmd.p/test-pmd_util.c.o app/dpdk-testpmd.p/test-pmd_bpf_cmd.c.o app/dpdk-testpmd.p/.._drivers_net_bonding_bonding_testpmd.c.o app/dpdk-testpmd.p/.._drivers_net_i40e_i40e_testpmd.c.o app/dpdk-testpmd.p/.._drivers_net_ice_ice_testpmd.c.o app/dpdk-testpmd.p/.._drivers_net_vhost_vhost_testpmd.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -Wl,--no-as-needed -pthread -Wl,--start-group -lm -ldl -lnuma '-Wl,-rpath,$ORIGIN/../lib:$ORIGIN/../drivers:XXXXXXXXXXXXXXX' -Wl,-rpath-link,/root/RHEL86-64_K4.18.0_GCC8.5.0/x86_64-native-linuxapp-gcc+shared/24343/dpdk/x86_64-native-linuxapp-gcc+shared/lib -Wl,-rpath-link,/root/RHEL86-64_K4.18.0_GCC8.5.0/x86_64-native-linuxapp-gcc+shared/24343/dpdk/x86_64-native-linuxapp-gcc+shared/drivers lib/librte_ethdev.so.23.0 lib/librte_eal.so.23.0 lib/librte_kvargs.so.23.0 lib/librte_telemetry.so.23.0 lib/librte_net.so.23.0 lib/librte_mbuf.so.23.0 lib/librte_mempool.so.23.0 lib/librte_ring.so.23.0 lib/librte_meter.so.23.0 lib/librte_cmdline.so.23.0 drivers/librte_bus_pci.so.23.0 lib/librte_pci.so.23.0 drivers/librte_crypto_scheduler.so.23.0 lib/librte_cryptodev.so.23.0 lib/librte_rcu.so.23.0 drivers/librte_bus_vdev.so.23.0 lib/librte_reorder.so.23.0 lib/librte_bitratestats.so.23.0 lib/librte_metrics.so.23.0 lib/librte_bpf.so.23.0 lib/librte_gro.so.23.0 lib/librte_gso.so.23.0 lib/librte_latencystats.so.23.0 lib/librte_pdump.so.23.0 lib/librte_pcapng.so.23.0 drivers/librte_net_bnxt.so.23.0 drivers/librte_net_i40e.so.23.0 lib/librte_hash.so.23.0 drivers/librte_net_ixgbe.so.23.0 lib/librte_security.so.23.0 drivers/librte_bus_dpaa.so.23.0 drivers/librte_common_dpaax.so.23.0 lib/librte_eventdev.so.23.0 lib/librte_timer.so.23.0 drivers/librte_mempool_dpaa.so.23.0 drivers/librte_net_dpaa.so.23.0 drivers/librte_net_bond.so.23.0 lib/librte_sched.so.23.0 lib/librte_ip_frag.so.23.0 drivers/librte_net_ice.so.23.0 drivers/librte_common_iavf.so.23.0 drivers/librte_net_vhost.so.23.0 lib/librte_vhost.so.23.0 lib/librte_dmadev.so.23.0 /usr/lib64/libelf.so /usr/lib64/libpcap.so -Wl,--end-group app/dpdk-testpmd.p/.._drivers_net_vhost_vhost_testpmd.c.o: In function `cmd_tx_poll_parsed': vhost_testpmd.c:(.text+0x43): undefined reference to `rte_eth_vhost_async_tx_poll_completed' vhost_testpmd.c:(.text+0x56): undefined reference to `rte_eth_vhost_async_tx_poll_completed' collect2: error: ld returned 1 exit status [3246/3403] Linking static target drivers/librte_event_cnxk.a [3247/3403] Compiling C object app/test/dpdk-test.p/test_cmdline_portlist.c.o [3248/3403] Compiling C object app/test/dpdk-test.p/test_cmdline_cirbuf.c.o [3249/3403] Compiling C object app/test/dpdk-test.p/test_cmdline_num.c.o [3250/3403] Compiling C object app/test/dpdk-test.p/test_acl.c.o [3251/3403] Compiling C object app/test/dpdk-test.p/test_cmdline_etheraddr.c.o [3252/3403] Compiling C object app/test/dpdk-test.p/test_bpf.c.o [3253/3403] Compiling C object app/test/dpdk-test.p/test_cmdline_ipaddr.c.o [3254/3403] Compiling C object app/test/dpdk-test.p/test_cksum.c.o ninja: build stopped *Build Failed #2: OS: CentOS79-64 Target: x86_64-native-linuxapp-gcc FAILED: drivers/libtmp_rte_net_vhost.a.p/net_vhost_rte_eth_vhost.c.o gcc -Idrivers/libtmp_rte_net_vhost.a.p -Idrivers -I../drivers -Idrivers/net/vhost -I../drivers/net/vhost -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/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/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/dmadev -I../lib/dmadev -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.vhost -MD -MQ drivers/libtmp_rte_net_vhost.a.p/net_vhost_rte_eth_vhost.c.o -MF drivers/libtmp_rte_net_vhost.a.p/net_vhost_rte_eth_vhost.c.o.d -o drivers/libtmp_rte_net_vhost.a.p/net_vhost_rte_eth_vhost.c.o -c ../drivers/net/vhost/rte_eth_vhost.c ../drivers/net/vhost/rte_eth_vhost.c: In function 'open_dma': ../drivers/net/vhost/rte_eth_vhost.c:1986:2: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < dma_count; i++) { ^ ../drivers/net/vhost/rte_eth_vhost.c:1986:2: note: use option -std=c99 or -std=gnu99 to compile your code [2129/3581] Compiling C object drivers/libtmp_rte_net_txgbe.a.p/net_txgbe_txgbe_flow.c.o [2130/3581] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio.c.o [2131/3581] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_pci.c.o [2132/3581] Compiling C object drivers/libtmp_rte_net_txgbe.a.p/net_txgbe_txgbe_ethdev.c.o [2133/3581] Generating drivers/rte_net_vdev_netvsc.pmd.c with a custom command [2134/3581] Generating drivers/rte_net_tap.sym_chk with a custom command (wrapped by meson to capture output) [2135/3581] Generating drivers/rte_net_thunderx.sym_chk with a custom command (wrapped by meson to capture output) [2136/3581] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_ethdev.c.o [2137/3581] Compiling C object drivers/libtmp_rte_net_txgbe.a.p/net_txgbe_txgbe_rxtx.c.o ninja: build stopped DPDK STV team