Test-Label: Intel-compilation Test-Status: FAILURE http://dpdk.org/patch/133638 _Compilation issues_ Submitter: Wenjing Qiao Date: 2023-10-31 07:48:17 Reply_mail: <20231031074816.2391599-1-wenjing.qiao@intel.com> DPDK git baseline: Repo:dpdk-next-net-intel, CommitID: a9798b365515bc45dfdcafc4bcad2dae5599db56 Meson Build Summary: 25 Builds Done, 24 Successful, 1 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 | | | | | | | | UB2004-64 | pass | | | | | | | | UB2204-32 | pass | | | | | | | | RHEL87-64 | pass | | | | | | | | UB2204-64 | pass | pass | | | | fail | pass | | CentOS79-64 | pass | | | | | | | | RHEL92-64Rt | pass | | | | | | | | UB2304-64 | pass | | | | | | | | FC38-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: 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: 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-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: RHEL87-64 Kernel Version: 4.18.0-425.3.1.el8.x86_64 GCC Version: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-15) Clang Version: NA 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: UB2304-64 Kernel Version: 6.2.0-20-generic GCC Version: gcc (Ubuntu 12.2.0-17ubuntu1) 12.2.0 Clang Version: NA x86_64-native-linuxapp-gcc OS: FC38-64 Kernel Version: 6.2.9-300.fc38.x86_64 GCC Version: gcc (GCC) 13.0.1 20230401 (Red Hat 13.0.1-0) Clang Version: 16.0.0 (Fedora 16.0.0-2.fc38) 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_cpfl.a.p/net_cpfl_cpfl_flow_parser.c.o gcc -Idrivers/libtmp_rte_net_cpfl.a.p -Idrivers -I../drivers -Idrivers/net/cpfl -I../drivers/net/cpfl -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/idpf -I../drivers/common/idpf -Idrivers/common/iavf -I../drivers/common/iavf -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 -DCC_AVX512_SUPPORT -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cpfl -MD -MQ drivers/libtmp_rte_net_cpfl.a.p/net_cpfl_cpfl_flow_parser.c.o -MF drivers/libtmp_rte_net_cpfl.a.p/net_cpfl_cpfl_flow_parser.c.o.d -o drivers/libtmp_rte_net_cpfl.a.p/net_cpfl_cpfl_flow_parser.c.o -c ../drivers/net/cpfl/cpfl_flow_parser.c In file included from /usr/include/string.h:535, from ../lib/eal/include/rte_uuid.h:19, from ../lib/eal/include/rte_eal.h:20, from ../lib/eal/include/rte_lcore.h:18, from ../lib/eal/include/generic/rte_spinlock.h:20, from ../lib/eal/x86/include/rte_spinlock.h:12, from ../lib/mempool/rte_mempool.h:43, from ../lib/mbuf/rte_mbuf.h:38, from ../lib/net/rte_ether.h:22, from ../lib/ethdev/rte_flow.h:22, from ../drivers/net/cpfl/cpfl_flow_parser.h:5, from ../drivers/net/cpfl/cpfl_flow_parser.c:7: In function ‘strncpy’, inlined from ‘cpfl_parse_check_prog_action’ at ../drivers/net/cpfl/cpfl_flow_parser.c:1699:4, inlined from ‘cpfl_parse_mr_key_action’ at ../drivers/net/cpfl/cpfl_flow_parser.c:1773:10, inlined from ‘cpfl_check_mod_key’ at ../drivers/net/cpfl/cpfl_flow_parser.c:1955:9, inlined from ‘cpfl_parse_mod_rules’ at ../drivers/net/cpfl/cpfl_flow_parser.c:1973:9: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:95:10: error: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Werror=stringop-truncation] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/cpfl/cpfl_flow_parser.c: In function ‘cpfl_parse_mod_rules’: ../drivers/net/cpfl/cpfl_flow_parser.c:1699:25: note: length computed here 1699 | strncpy(mr_key_prog->name[param->index], param->name, strlen(param->name)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:535, from ../lib/eal/include/rte_uuid.h:19, from ../lib/eal/include/rte_eal.h:20, from ../lib/eal/include/rte_lcore.h:18, from ../lib/eal/include/generic/rte_spinlock.h:20, from ../lib/eal/x86/include/rte_spinlock.h:12, from ../lib/mempool/rte_mempool.h:43, from ../lib/mbuf/rte_mbuf.h:38, from ../lib/net/rte_ether.h:22, from ../lib/ethdev/rte_flow.h:22, from ../drivers/net/cpfl/cpfl_flow_parser.h:5, from ../drivers/net/cpfl/cpfl_flow_parser.c:7: In function ‘strncpy’, inlined from ‘cpfl_flow_js_mr_key’ at ../drivers/net/cpfl/cpfl_flow_parser.c:636:5, inlined from ‘cpfl_flow_js_mod_rule’ at ../drivers/net/cpfl/cpfl_flow_parser.c:884:9, inlined from ‘cpfl_parser_init’ at ../drivers/net/cpfl/cpfl_flow_parser.c:915:8, inlined from ‘cpfl_parser_create’ at ../drivers/net/cpfl/cpfl_flow_parser.c:942:8: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:95:10: error: ‘__builtin___strncpy_chk’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/cpfl/cpfl_flow_parser.c: In function ‘cpfl_parser_create’: ../drivers/net/cpfl/cpfl_flow_parser.c:636:33: note: length computed here 636 | strncpy(js_mr_key->actions[i].prog.name, name, strlen(name)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:535, from ../lib/eal/include/rte_uuid.h:19, from ../lib/eal/include/rte_eal.h:20, from ../lib/eal/include/rte_lcore.h:18, from ../lib/eal/include/generic/rte_spinlock.h:20, from ../lib/eal/x86/include/rte_spinlock.h:12, from ../lib/mempool/rte_mempool.h:43, from ../lib/mbuf/rte_mbuf.h:38, from ../lib/net/rte_ether.h:22, from ../lib/ethdev/rte_flow.h:22, from ../drivers/net/cpfl/cpfl_flow_parser.h:5, from ../drivers/net/cpfl/cpfl_flow_parser.c:7: In function ‘strncpy’, inlined from ‘cpfl_flow_js_mr_key’ at ../drivers/net/cpfl/cpfl_flow_parser.c:657:6, inlined from ‘cpfl_flow_js_mod_rule’ at ../drivers/net/cpfl/cpfl_flow_parser.c:884:9, inlined from ‘cpfl_parser_init’ at ../drivers/net/cpfl/cpfl_flow_parser.c:915:8, inlined from ‘cpfl_parser_create’ at ../drivers/net/cpfl/cpfl_flow_parser.c:942:8: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:95:10: error: ‘__builtin___strncpy_chk’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/cpfl/cpfl_flow_parser.c: In function ‘cpfl_parser_create’: ../drivers/net/cpfl/cpfl_flow_parser.c:657:41: note: length computed here 657 | strncpy(js_mr_key->actions[i].prog.params[j].name, name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 658 | strlen(name)); | ~~~~~~~~~~~~~ In file included from /usr/include/string.h:535, from ../lib/eal/include/rte_uuid.h:19, from ../lib/eal/include/rte_eal.h:20, from ../lib/eal/include/rte_lcore.h:18, from ../lib/eal/include/generic/rte_spinlock.h:20, from ../lib/eal/x86/include/rte_spinlock.h:12, from ../lib/mempool/rte_mempool.h:43, from ../lib/mbuf/rte_mbuf.h:38, from ../lib/net/rte_ether.h:22, from ../lib/ethdev/rte_flow.h:22, from ../drivers/net/cpfl/cpfl_flow_parser.h:5, from ../drivers/net/cpfl/cpfl_flow_parser.c:7: In function ‘strncpy’, inlined from ‘cpfl_flow_js_mr_content’ at ../drivers/net/cpfl/cpfl_flow_parser.c:764:3, inlined from ‘cpfl_flow_js_mr_action’ at ../drivers/net/cpfl/cpfl_flow_parser.c:837:9, inlined from ‘cpfl_flow_js_mod_rule’ at ../drivers/net/cpfl/cpfl_flow_parser.c:891:9, inlined from ‘cpfl_parser_init’ at ../drivers/net/cpfl/cpfl_flow_parser.c:915:8, inlined from ‘cpfl_parser_create’ at ../drivers/net/cpfl/cpfl_flow_parser.c:942:8: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:95:10: error: ‘__builtin___strncpy_chk’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/cpfl/cpfl_flow_parser.c: In function ‘cpfl_parser_create’: ../drivers/net/cpfl/cpfl_flow_parser.c:764:17: note: length computed here 764 | strncpy(js_mod->content.fields[i].type, type, strlen(type)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors [1232/2812] Generating symbol file drivers/librte_net_cnxk.so.24.0.p/librte_net_cnxk.so.24.0.symbols [1233/2812] Compiling C object drivers/libtmp_rte_net_cxgbe.a.p/net_cxgbe_clip_tbl.c.o [1234/2812] Compiling C object drivers/libtmp_rte_net_cxgbe.a.p/net_cxgbe_cxgbe_flow.c.o [1235/2812] Compiling C object drivers/libtmp_rte_net_cpfl.a.p/net_cpfl_cpfl_ethdev.c.o [1236/2812] Compiling C object drivers/libtmp_rte_net_cxgbe.a.p/net_cxgbe_mps_tcam.c.o [1237/2812] Compiling C object drivers/libtmp_rte_net_cxgbe.a.p/net_cxgbe_cxgbe_main.c.o [1238/2812] Compiling C object drivers/libtmp_rte_net_cxgbe.a.p/net_cxgbe_sge.c.o [1239/2812] Compiling C object drivers/libtmp_rte_net_cxgbe.a.p/net_cxgbe_cxgbe_ethdev.c.o [1240/2812] Compiling C object drivers/libtmp_rte_net_cxgbe.a.p/net_cxgbe_cxgbe_filter.c.o ninja: build stopped DPDK STV team