Test-Label: Intel-compilation Test-Status: FAILURE http://dpdk.org/patch/98395 _Compilation issues_ Submitter: Stephen Hemminger Date: 2021-09-08 21:50:53 Reply_mail: 20210908215053.74628-10-stephen@networkplumber.org DPDK git baseline: Repo:dpdk, CommitID: b344eb5d941a7522ff27b6b7b5419f68c3fea9a0 Meson Build Summary: 22 Builds Done, 18 Successful, 4 Failures, 0 Blocked +----------------+------------+--------------+------------+------------+-----------+----------+ | os | gcc-static | clang-static | icc-static | gcc-shared | gcc-debug | document | +----------------+------------+--------------+------------+------------+-----------+----------+ | UB2004-64 | pass | pass | pass | | | pass | | RHEL83-64 | pass | pass | pass | pass | fail | | | FC34-64 | pass | pass | | | | | | UB2104-64 | pass | | | | | | | WIN10-64 | | pass | | | | | | UB2004-32 | pass | | | | | | | CENTOS83-64 | pass | pass | | | | | | FreeBSD1201-64 | fail | pass | | fail | fail | | | SUSE15-64 | pass | pass | | | | | +----------------+------------+--------------+------------+------------+-----------+----------+ Test environment and configuration as below: OS: UB2004-64 Kernel Version: 5.8.0-48-generic GCC Version: gcc (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0 Clang Version: 10.0.0-4ubuntu1 x86_64-native-linuxapp-clang x86_64-native-linuxapp-gcc x86_64-native-linuxapp-icc x86_64-native-linuxapp-doc OS: RHEL83-64 Kernel Version: 4.18.0-305.3.1.el8.x86_64 GCC Version: gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1) Clang Version: 11.0.0 (Red Hat 11.0.0-1.module_el8.4.0+587+5187cac0) x86_64-native-linuxapp-gcc x86_64-native-linuxapp-clang x86_64-native-linuxapp-gcc+shared x86_64-native-linuxapp-gcc+debug x86_64-native-linuxapp-icc OS: FC34-64 Kernel Version: 5.11.15-300.fc34.x86_64 GCC Version: gcc (GCC) 11.0.1 20210324 (Red Hat 11.0.1-0) Clang Version: 12.0.0 (Fedora 12.0.0-0.3.rc1.fc34) x86_64-native-linuxapp-gcc x86_64-native-linuxapp-clang OS: UB2104-64 Kernel Version: 5.11.0-16-generic GCC Version: gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0 Clang Version: 12.0.0-1ubuntu1 x86_64-native-linuxapp-gcc OS: WIN10-64 Kernel Version: N/A GCC Version: N/A Clang Version: Clang 8.0.0 x86_64-windows-clang OS: UB2004-32 Kernel Version: 5.8.0-48-generic GCC Version: gcc (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0 Clang Version: 10.0.0-4ubuntu1 i686-native-linuxapp-gcc OS: CENTOS83-64 Kernel Version: 4.18.0-240.1.1.el8_3.x86_64 GCC Version: gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5) Clang Version: 10.0.1 (Red Hat 10.0.1-1.module_el8.3.0+467+cb298d5b) x86_64-native-linuxapp-gcc x86_64-native-linuxapp-clang OS: FreeBSD1201-64 Kernel Version: 12.1-RELEASE GCC Version: gcc (FreeBSD Ports Collection) 9.2.0 Clang Version: 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1) x86_64-native-bsdapp-gcc x86_64-native-bsdapp-clang x86_64-native-bsdapp-gcc+shared x86_64-native-bsdapp-gcc+debug OS: SUSE15-64 Kernel Version: 5.3.18-lp152.57-default GCC Version: gcc (SUSE Linux) 7.5.0 Clang Version: 9.0.1 x86_64-native-linuxapp-clang x86_64-native-linuxapp-gcc *Build Failed #1: OS: FreeBSD1201-64 Target: x86_64-native-bsdapp-gcc FAILED: app/dpdk-dumpcap.p/dumpcap_main.c.o gcc -Iapp/dpdk-dumpcap.p -Iapp -I../app -Ilib/ethdev -I../lib/ethdev -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/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/pdump -I../lib/pdump -Ilib/bpf -I../lib/bpf -Ilib/pcapng -I../lib/pcapng -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -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 -D_GNU_SOURCE -D__BSD_VISIBLE -march=native -mno-avx512f -DALLOW_EXPERIMENTAL_API -MD -MQ app/dpdk-dumpcap.p/dumpcap_main.c.o -MF app/dpdk-dumpcap.p/dumpcap_main.c.o.d -o app/dpdk-dumpcap.p/dumpcap_main.c.o -c ../app/dumpcap/main.c ../app/dumpcap/main.c: In function 'create_output': ../app/dumpcap/main.c:625:33: error: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 0 and 255 [-Werror=format-truncation=] 625 | snprintf(os, sizeof(os), "%s %s", | ^~ 626 | uts.sysname, uts.release); | ~~~~~~~~~~~ ../app/dumpcap/main.c:625:4: note: 'snprintf' output between 2 and 512 bytes into a destination of size 256 625 | snprintf(os, sizeof(os), "%s %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 626 | uts.sysname, uts.release); | ~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors [1743/2143] Compiling C object drivers/librte_baseband_acc100.so.22.0.p/meson-generated_.._rte_baseband_acc100.pmd.c.o [1744/2143] Compiling C object app/dpdk-proc-info.p/proc-info_main.c.o [1745/2143] Generating rte_baseband_null.sym_chk with a meson_exe.py custom command [1746/2143] Generating rte_baseband_acc100.sym_chk with a meson_exe.py custom command [1747/2143] Compiling C object app/dpdk-pdump.p/pdump_main.c.o ninja: build stopped *Build Failed #2: OS: FreeBSD1201-64 Target: x86_64-native-bsdapp-gcc+shared FAILED: app/dpdk-dumpcap.p/dumpcap_main.c.o gcc -Iapp/dpdk-dumpcap.p -Iapp -I../app -Ilib/ethdev -I../lib/ethdev -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/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/pdump -I../lib/pdump -Ilib/bpf -I../lib/bpf -Ilib/pcapng -I../lib/pcapng -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -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 -D_GNU_SOURCE -D__BSD_VISIBLE -march=native -mno-avx512f -DALLOW_EXPERIMENTAL_API -MD -MQ app/dpdk-dumpcap.p/dumpcap_main.c.o -MF app/dpdk-dumpcap.p/dumpcap_main.c.o.d -o app/dpdk-dumpcap.p/dumpcap_main.c.o -c ../app/dumpcap/main.c ../app/dumpcap/main.c: In function 'create_output': ../app/dumpcap/main.c:625:33: error: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 0 and 255 [-Werror=format-truncation=] 625 | snprintf(os, sizeof(os), "%s %s", | ^~ 626 | uts.sysname, uts.release); | ~~~~~~~~~~~ ../app/dumpcap/main.c:625:4: note: 'snprintf' output between 2 and 512 bytes into a destination of size 256 625 | snprintf(os, sizeof(os), "%s %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 626 | uts.sysname, uts.release); | ~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors [1731/2023] Generating rte_event_octeontx.pmd.c with a custom command [1732/2023] Compiling C object drivers/librte_baseband_fpga_5gnr_fec.so.22.0.p/meson-generated_.._rte_baseband_fpga_5gnr_fec.pmd.c.o [1733/2023] Compiling C object drivers/librte_baseband_fpga_lte_fec.a.p/meson-generated_.._rte_baseband_fpga_lte_fec.pmd.c.o [1734/2023] Compiling C object app/dpdk-pdump.p/pdump_main.c.o [1735/2023] Generating rte_baseband_fpga_5gnr_fec.sym_chk with a meson_exe.py custom command [1736/2023] Compiling C object drivers/libtmp_rte_baseband_null.a.p/baseband_null_bbdev_null.c.o [1737/2023] Compiling C object drivers/libtmp_rte_baseband_turbo_sw.a.p/baseband_turbo_sw_bbdev_turbo_software.c.o [1738/2023] Compiling C object drivers/libtmp_rte_baseband_acc100.a.p/baseband_acc100_rte_acc100_pmd.c.o [1739/2023] Compiling C object drivers/libtmp_rte_crypto_octeontx.a.p/crypto_octeontx_otx_cryptodev_ops.c.o ninja: build stopped *Build Failed #3: OS: FreeBSD1201-64 Target: x86_64-native-bsdapp-gcc+debug FAILED: lib/librte_pcapng.a.p/pcapng_rte_pcapng.c.o gcc -Ilib/librte_pcapng.a.p -Ilib -I../lib -Ilib/pcapng -I../lib/pcapng -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 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O2 -g -include rte_config.h -Wextra -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 -D_GNU_SOURCE -D__BSD_VISIBLE -fPIC -march=native -mno-avx512f -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.pcapng -MD -MQ lib/librte_pcapng.a.p/pcapng_rte_pcapng.c.o -MF lib/librte_pcapng.a.p/pcapng_rte_pcapng.c.o.d -o lib/librte_pcapng.a.p/pcapng_rte_pcapng.c.o -c ../lib/pcapng/rte_pcapng.c In file included from ../lib/pcapng/rte_pcapng.c:19: ../lib/pcapng/rte_pcapng.c: In function 'rte_pcapng_copy': ../lib/pcapng/rte_pcapng.c:405:43: error: returning 'int' from a function with return type 'struct rte_mbuf *' makes pointer from integer without a cast [-Werror=int-conversion] 405 | RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -EINVAL); | ^ ../lib/ethdev/rte_ethdev.h:1736:10: note: in definition of macro 'RTE_ETH_VALID_PORTID_OR_ERR_RET' 1736 | return retval; \ | ^~~~~~ cc1: all warnings being treated as errors [318/2143] Generating member.sym_chk with a meson_exe.py custom command [319/2143] Compiling C object lib/librte_sched.a.p/sched_rte_approx.c.o [320/2143] Generating lpm.sym_chk with a meson_exe.py custom command [321/2143] Generating reorder.sym_chk with a meson_exe.py custom command [322/2143] Generating rawdev.sym_chk with a meson_exe.py custom command [323/2143] Generating regexdev.sym_chk with a meson_exe.py custom command [324/2143] Generating rib.sym_chk with a meson_exe.py custom command [325/2143] Generating eal.sym_chk with a meson_exe.py custom command [326/2143] Compiling C object lib/librte_sched.a.p/sched_rte_sched.c.o ninja: build stopped *Build Failed #4: OS: RHEL83-64 Target: x86_64-native-linuxapp-gcc+debug FAILED: lib/76b5a35@@rte_pcapng@sta/pcapng_rte_pcapng.c.o gcc -Ilib/76b5a35@@rte_pcapng@sta -Ilib -I../lib -Ilib/pcapng -I../lib/pcapng -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/telemetry/../metrics -I../lib/telemetry/../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 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O2 -g -include rte_config.h -Wextra -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.pcapng -MD -MQ 'lib/76b5a35@@rte_pcapng@sta/pcapng_rte_pcapng.c.o' -MF 'lib/76b5a35@@rte_pcapng@sta/pcapng_rte_pcapng.c.o.d' -o 'lib/76b5a35@@rte_pcapng@sta/pcapng_rte_pcapng.c.o' -c ../lib/pcapng/rte_pcapng.c In file included from ../lib/pcapng/rte_pcapng.c:19: ../lib/pcapng/rte_pcapng.c: In function ‘rte_pcapng_copy’: ../lib/pcapng/rte_pcapng.c:405:43: error: returning ‘int’ from a function with return type ‘struct rte_mbuf *’ makes pointer from integer without a cast [-Werror=int-conversion] RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -EINVAL); ^ ../lib/ethdev/rte_ethdev.h:1736:10: note: in definition of macro ‘RTE_ETH_VALID_PORTID_OR_ERR_RET’ return retval; \ ^~~~~~ cc1: all warnings being treated as errors [343/2832] Compiling C object 'lib/76b5a35@@rte_power@sta/power_rte_power.c.o'. [344/2832] Generating symbol file 'lib/76b5a35@@rte_kni@sha/librte_kni.so.22.0.symbols'. [345/2832] Compiling C object 'lib/76b5a35@@rte_power@sta/power_power_acpi_cpufreq.c.o'. [346/2832] Compiling C object 'lib/76b5a35@@rte_power@sta/power_power_cppc_cpufreq.c.o'. [347/2832] Compiling C object 'lib/76b5a35@@rte_power@sta/power_power_pstate_cpufreq.c.o'. ninja: build stopped DPDK STV team