Test-Label: Intel-compilation Test-Status: FAILURE http://dpdk.org/patch/141562 _Compilation issues_ Submitter: Yong Zhang Date: 2024-06-24 12:31:05 Reply_mail: <20240624123132.3133178-1-zhang.yong25@zte.com.cn> DPDK git baseline: Repo:dpdk, CommitID: 4a44d97f0a52a76258c6a6cb6a713f4380a8ab1f Meson Build Summary: 23 Builds Done, 22 Successful, 1 Failures, 0 Blocked +-------------------+------------+--------------+------------+------------+-----------+----------+------------+ | os | gcc-static | clang-static | icc-static | gcc-shared | gcc-debug | document | gcc-16byte | +-------------------+------------+--------------+------------+------------+-----------+----------+------------+ | OpenAnolis8.8-64 | pass | | | | | | | | FreeBSD14-64 | pass | pass | | pass | pass | | | | RHEL94-64 | pass | pass | | pass | pass | | | | SUSE15-64 | pass | pass | | | | | | | CBL-Mariner2.0-64 | pass | | | | | | | | UB2404-32 | fail | | | | | | | | RHEL93-64 | pass | | | | | | | | UB2404-64 | pass | pass | | | | pass | pass | | RHEL94-64Rt | pass | | | | | | | | UB2204-64 | pass | | | | | | | | FC40-64 | pass | pass | | | | | | | UB2404-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: FreeBSD14-64 Kernel Version: 14.0-RELEASE GCC Version: gcc (FreeBSD Ports Collection) 12.2.0 Clang Version: 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152) x86_64-native-bsdapp-gcc x86_64-native-bsdapp-clang x86_64-native-bsdapp-gcc+shared x86_64-native-bsdapp-gcc+debug OS: RHEL94-64 Kernel Version: 5.14.0-427.13.1.el9_4.x86_64 GCC Version: gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3) Clang Version: 17.0.6 (Red Hat, Inc. 17.0.6-5.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: UB2404-32 Kernel Version: 6.8.0-31-generic GCC Version: gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0 Clang Version: NA i686-native-linuxapp-gcc OS: RHEL93-64 Kernel Version: 5.14.0-362.8.1.el9_3.x86_64 GCC Version: gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3) Clang Version: 17.0.6 (Red Hat, Inc. 17.0.6-5.el9) x86_64-native-linuxapp-gcc OS: UB2404-64 Kernel Version: 6.8.0-31-generic GCC Version: gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0 Clang Version: 18.1.3 (1) x86_64-native-linuxapp-gcc+16byte x86_64-native-linuxapp-gcc x86_64-native-linuxapp-clang x86_64-native-linuxapp-doc OS: RHEL94-64Rt Kernel Version: 5.14.0-427.13.1.el9_4.x86_64+rt GCC Version: gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3) Clang Version: 17.0.6 (Red Hat, Inc. 17.0.6-5.el9) x86_64-native-linuxapp-gcc OS: UB2204-64 Kernel Version: 5.15.0-94-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 OS: FC40-64 Kernel Version: 6.8.5-301.fc40.x86_64 GCC Version: gcc (GCC) 14.0.1 20240411 (Red Hat 14.0.1-0) Clang Version: 18.1.1 (Fedora 18.1.1-1.fc40) x86_64-native-linuxapp-gcc x86_64-native-linuxapp-clang OS: UB2404-64Rt Kernel Version: 6.8.0-rt8 GCC Version: gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0 Clang Version: 18.1.3 (1) x86_64-native-linuxapp-gcc *Build Failed #1: OS: UB2404-32 Target: i686-native-linuxapp-gcc FAILED: drivers/libtmp_rte_raw_zxdh.a.p/raw_zxdh_zxdh_pci.c.o gcc -Idrivers/libtmp_rte_raw_zxdh.a.p -Idrivers -I../drivers -Idrivers/raw/zxdh -I../drivers/raw/zxdh -Ilib/rawdev -I../lib/rawdev -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/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -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 -Wno-pointer-to-int-cast -D_GNU_SOURCE -m32 -fPIC -march=native -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.zxdh -MD -MQ drivers/libtmp_rte_raw_zxdh.a.p/raw_zxdh_zxdh_pci.c.o -MF drivers/libtmp_rte_raw_zxdh.a.p/raw_zxdh_zxdh_pci.c.o.d -o drivers/libtmp_rte_raw_zxdh.a.p/raw_zxdh_zxdh_pci.c.o -c ../drivers/raw/zxdh/zxdh_pci.c ../drivers/raw/zxdh/zxdh_pci.c: In function ‘zxdh_gdma_pci_dev_mmap’: ../drivers/raw/zxdh/zxdh_pci.c:415:45: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] 415 | dev->bar_va[bar_idx] = mmap((void *)dev->bar_pa[bar_idx], | ^ cc1: all warnings being treated as errors [1561/2287] Generating drivers/rte_raw_dpaa2_cmdif.pmd.c with a custom command [1562/2287] Compiling C object drivers/libtmp_rte_crypto_bcmfs.a.p/crypto_bcmfs_bcmfs_vfio.c.o [1563/2287] Compiling C object drivers/libtmp_rte_crypto_bcmfs.a.p/crypto_bcmfs_bcmfs_device.c.o [1564/2287] Compiling C object drivers/libtmp_rte_crypto_bcmfs.a.p/crypto_bcmfs_bcmfs_qp.c.o [1565/2287] Compiling C object drivers/libtmp_rte_raw_zxdh.a.p/raw_zxdh_zxdh_rawdev.c.o FAILED: drivers/libtmp_rte_raw_zxdh.a.p/raw_zxdh_zxdh_rawdev.c.o gcc -Idrivers/libtmp_rte_raw_zxdh.a.p -Idrivers -I../drivers -Idrivers/raw/zxdh -I../drivers/raw/zxdh -Ilib/rawdev -I../lib/rawdev -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/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -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 -Wno-pointer-to-int-cast -D_GNU_SOURCE -m32 -fPIC -march=native -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=pmd.raw.zxdh -MD -MQ drivers/libtmp_rte_raw_zxdh.a.p/raw_zxdh_zxdh_rawdev.c.o -MF drivers/libtmp_rte_raw_zxdh.a.p/raw_zxdh_zxdh_rawdev.c.o.d -o drivers/libtmp_rte_raw_zxdh.a.p/raw_zxdh_zxdh_rawdev.c.o -c ../drivers/raw/zxdh/zxdh_rawdev.c ../drivers/raw/zxdh/zxdh_rawdev.c: In function ‘zxdh_gdma_fill_bd’: ../drivers/raw/zxdh/zxdh_rawdev.c:102:14: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] 102 | ((t)((uint8_t *)(addr) + (idx) * sizeof(struct zxdh_gdma_buff_desc))) | ^ ../drivers/raw/zxdh/zxdh_rawdev.c:456:34: note: in expansion of macro ‘IDX_TO_ADDR’ 456 | next_bd_addr = IDX_TO_ADDR(queue->ring.ring_mem, | ^~~~~~~~~~~ ../drivers/raw/zxdh/zxdh_rawdev.c:102:14: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] 102 | ((t)((uint8_t *)(addr) + (idx) * sizeof(struct zxdh_gdma_buff_desc))) | ^ ../drivers/raw/zxdh/zxdh_rawdev.c:471:34: note: in expansion of macro ‘IDX_TO_ADDR’ 471 | next_bd_addr = IDX_TO_ADDR(queue->ring.ring_mem, avail_idx, uint64_t); | ^~~~~~~~~~~ ../drivers/raw/zxdh/zxdh_rawdev.c:102:14: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] 102 | ((t)((uint8_t *)(addr) + (idx) * sizeof(struct zxdh_gdma_buff_desc))) | ^ ../drivers/raw/zxdh/zxdh_rawdev.c:481:40: note: in expansion of macro ‘IDX_TO_ADDR’ 481 | next_bd_addr = IDX_TO_ADDR(queue->ring.ring_mem, | ^~~~~~~~~~~ cc1: all warnings being treated as errors [1566/2287] Compiling C object drivers/libtmp_rte_raw_skeleton.a.p/raw_skeleton_skeleton_rawdev.c.o [1567/2287] Compiling C object drivers/libtmp_rte_raw_ntb.a.p/raw_ntb_ntb.c.o [1568/2287] Compiling C object drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_rxtx.c.o [1569/2287] Compiling C object drivers/libtmp_rte_net_vmxnet3.a.p/net_vmxnet3_vmxnet3_rxtx.c.o ninja: build stopped DPDK STV team