Test-Label: Intel-compilation Test-Status: FAILURE http://dpdk.org/patch/105141 _Compilation issues_ Submitter: Ronan Randles Date: 2021-12-14 14:12:42 Reply_mail: 20211214141242.3383831-13-ronan.randles@intel.com DPDK git baseline: Repo:dpdk, CommitID: 042f5a355a57b31a9f87824173a9d427b21abdb8 Meson Build Summary: 20 Builds Done, 17 Successful, 3 Failures, 0 Blocked +--------------+------------+--------------+------------+------------+-----------+----------+ | os | gcc-static | clang-static | icc-static | gcc-shared | gcc-debug | document | +--------------+------------+--------------+------------+------------+-----------+----------+ | UB2004-64 | pass | pass | pass | | | pass | | FC35-64 | pass | pass | | | | | | WIN10-64 | | fail | | | | | | UB2004-32 | fail | | | | | | | FreeBSD13-64 | pass | pass | | pass | pass | | | UB2110-64 | pass | | | | | | | SUSE15-64 | fail | pass | | | | | | RHEL84-64 | pass | pass | pass | pass | pass | | +--------------+------------+--------------+------------+------------+-----------+----------+ Test environment and configuration as below: 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-icc x86_64-native-linuxapp-doc OS: FC35-64 Kernel Version: 5.14.16-301.fc35.x86_64 GCC Version: gcc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1) Clang Version: 13.0.0 (Fedora 13.0.0~rc1-1.fc35) x86_64-native-linuxapp-gcc x86_64-native-linuxapp-clang 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.3.0-1ubuntu1~20.04) 10.3.0 Clang Version: 10.0.0-4ubuntu1 i686-native-linuxapp-gcc OS: FreeBSD13-64 Kernel Version: 13.0-RELEASE GCC Version: gcc (FreeBSD Ports Collection) 10.3.0 Clang Version: 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe) x86_64-native-bsdapp-gcc x86_64-native-bsdapp-clang x86_64-native-bsdapp-gcc+shared x86_64-native-bsdapp-gcc+debug OS: UB2110-64 Kernel Version: 5.13.0-19-generic GCC Version: gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0 Clang Version: 13.0.0-2 x86_64-native-linuxapp-gcc 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: RHEL84-64 Kernel Version: 4.18.0-305.19.1.el8_4.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 *Build Failed #1: OS: SUSE15-64 Target: x86_64-native-linuxapp-gcc FAILED: lib/76b5a35@@rte_gen@sta/gen_rte_gen.c.o gcc -Ilib/76b5a35@@rte_gen@sta -Ilib -I../lib -Ilib/gen -I../lib/gen -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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/mbuf -I../lib/mbuf -Ilib/net -I../lib/net -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-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -mno-avx512f -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.gen -MD -MQ 'lib/76b5a35@@rte_gen@sta/gen_rte_gen.c.o' -MF 'lib/76b5a35@@rte_gen@sta/gen_rte_gen.c.o.d' -o 'lib/76b5a35@@rte_gen@sta/gen_rte_gen.c.o' -c ../lib/gen/rte_gen.c ../lib/gen/rte_gen.c: In function ‘rte_gen_packet_parse_string’: ../lib/gen/rte_gen.c:539:5: error: ‘inner’ may be used uninitialized in this function [-Werror=maybe-uninitialized] if (inner != GEN_PROTO_ETHER) { ^ cc1: all warnings being treated as errors [263/3125] Compiling C object 'lib/76b5a35@@rte_gro@sta/gro_rte_gro.c.o' [264/3125] Compiling C object 'lib/76b5a35@@rte_eventdev@sta/eventdev_rte_eventdev.c.o' [265/3125] Compiling C object 'lib/76b5a35@@rte_gro@sta/gro_gro_tcp4.c.o' [266/3125] Compiling C object 'lib/76b5a35@@rte_gro@sta/gro_gro_udp4.c.o' [267/3125] Compiling C object 'lib/76b5a35@@rte_gro@sta/gro_gro_vxlan_tcp4.c.o' [268/3125] Generating gpudev.sym_chk with a meson_exe.py custom command [269/3125] Generating cryptodev.sym_chk with a meson_exe.py custom command [270/3125] Generating ethdev.sym_chk with a meson_exe.py custom command [271/3125] Generating eal.sym_chk with a meson_exe.py custom command ninja: build stopped *Build Failed #2: OS: UB2004-32 Target: i686-native-linuxapp-gcc FAILED: examples/dpdk-generator.p/generator_main.c.o gcc -Iexamples/dpdk-generator.p -Iexamples -I../examples -Iexamples/generator -I../examples/generator -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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/gen -I../lib/gen -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 -Wno-zero-length-bounds -Wno-pointer-to-int-cast -D_GNU_SOURCE -m32 -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-generator.p/generator_main.c.o -MF examples/dpdk-generator.p/generator_main.c.o.d -o examples/dpdk-generator.p/generator_main.c.o -c ../examples/generator/main.c ../examples/generator/main.c: In function ‘tele_gen_mpps’: ../examples/generator/main.c:357:30: error: format ‘%li’ expects argument of type ‘long int’, but argument 2 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Werror=format=] 357 | printf("Packet rate set: %li\n", args->target_tx_pps); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %lli cc1: all warnings being treated as errors [2342/2488] Compiling C object examples/dpdk-flow_classify.p/flow_classify_flow_classify.c.o [2343/2488] Linking target examples/dpdk-eventdev_pipeline [2344/2488] Linking target examples/dpdk-bbdev_app [2345/2488] Compiling C object examples/dpdk-ip_pipeline.p/ip_pipeline_action.c.o [2346/2488] Compiling C object examples/dpdk-ip_fragmentation.p/ip_fragmentation_main.c.o [2347/2488] Linking target examples/dpdk-flow_filtering [2348/2488] Compiling C object app/test/dpdk-test.p/test_trace_perf.c.o [2349/2488] Compiling C object app/test/dpdk-test.p/test_ring_perf.c.o [2350/2488] Compiling C object app/test/dpdk-test.p/test_ring.c.o ninja: build stopped *Build Failed #3: OS: WIN10-64 Target: x86_64-windows-clang FAILED: lib/librte_gen.a.p/gen_rte_gen.c.obj "clang" "-Ilib\librte_gen.a.p" "-Ilib" "-I..\lib" "-Ilib\gen" "-I..\lib\gen" "-I." "-I.." "-Iconfig" "-I..\config" "-Ilib\eal\include" "-I..\lib\eal\include" "-Ilib\eal\windows\include" "-I..\lib\eal\windows\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\mempool" "-I..\lib\mempool" "-Ilib\ring" "-I..\lib\ring" "-Ilib\metrics" "-I..\lib\metrics" "-Ilib\telemetry" "-I..\lib\telemetry" "-Ilib\mbuf" "-I..\lib\mbuf" "-Ilib\net" "-I..\lib\net" "-Xclang" "-fcolor-diagnostics" "-pipe" "-D_FILE_OFFSET_BITS=64" "-Wall" "-Winvalid-pch" "-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-missing-field-initializers" "-D_GNU_SOURCE" "-D_WIN32_WINNT=0x0A00" "-D_CRT_SECURE_NO_WARNINGS" "-march=native" "-DALLOW_EXPERIMENTAL_API" "-DALLOW_INTERNAL_API" "-DRTE_LOG_DEFAULT_LOGTYPE=lib.gen" -MD -MQ lib/librte_gen.a.p/gen_rte_gen.c.obj -MF "lib\librte_gen.a.p\gen_rte_gen.c.obj.d" -o lib/librte_gen.a.p/gen_rte_gen.c.obj "-c" ../lib/gen/rte_gen.c ../lib/gen/rte_gen.c:206:25: warning: 'strdup' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [-Wdeprecated-declarations] parser->parse_string = strdup(pkt_string); ^ C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\string.h:535:20: note: 'strdup' has been explicitly marked deprecated here _Check_return_ _CRT_NONSTDC_DEPRECATE(_strdup) ^ C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\corecrt.h:334:50: note: expanded from macro '_CRT_NONSTDC_DEPRECATE' #define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT( \ ^ C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include\vcruntime.h:245:47: note: expanded from macro '_CRT_DEPRECATE_TEXT' #define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text)) ^ ../lib/gen/rte_gen.c:296:16: warning: implicit declaration of function 'strtok_r' is invalid in C99 [-Wimplicit-function-declaration] char *item = strtok_r(start, ",", &tok_ptr); ^ ../lib/gen/rte_gen.c:296:16: warning: this function declaration is not a prototype [-Wstrict-prototypes] ../lib/gen/rte_gen.c:296:9: warning: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion] char *item = strtok_r(start, ",", &tok_ptr); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/gen/rte_gen.c:325:20: error: use of undeclared identifier 'IPVERSION' ip->version_ihl = RTE_IPV4_VHL_DEF; ^ ..\lib\net\rte_ip.h:124:31: note: expanded from macro 'RTE_IPV4_VHL_DEF' #define RTE_IPV4_VHL_DEF ((IPVERSION << 4) | RTE_IPV4_MIN_IHL) ^ ../lib/gen/rte_gen.c:394:15: warning: 'strdup' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [-Wdeprecated-declarations] char *dup = strdup(dst_ptr); ^ C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\string.h:535:20: note: 'strdup' has been explicitly marked deprecated here _Check_return_ _CRT_NONSTDC_DEPRECATE(_strdup) ^ C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\corecrt.h:334:50: note: expanded from macro '_CRT_NONSTDC_DEPRECATE' #define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT( \ ^ C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include\vcruntime.h:245:47: note: expanded from macro '_CRT_DEPRECATE_TEXT' #define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text)) ^ ../lib/gen/rte_gen.c:464:25: warning: implicit declaration of function 'strtok_r' is invalid in C99 [-Wimplicit-function-declaration] parser->parse_string = strtok_r(tok_str, "/", ^ ../lib/gen/rte_gen.c:464:23: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion] parser->parse_string = strtok_r(tok_str, "/", ^ ~~~~~~~~~~~~~~~~~~~~~~ 7 warnings and 1 error generated. [192/555] Generating symbol file lib/rte_mbuf-22.dll.p/rte_mbuf-22.dll.symbols [193/555] Generating rte_gso_mingw with a custom command [194/555] Compiling C object lib/librte_gro.a.p/gro_gro_tcp4.c.obj [195/555] Compiling C object lib/librte_gro.a.p/gro_gro_vxlan_tcp4.c.obj [196/555] Compiling C object lib/librte_gro.a.p/gro_rte_gro.c.obj [197/555] Compiling C object lib/librte_gro.a.p/gro_gro_udp4.c.obj [198/555] Compiling C object lib/librte_gso.a.p/gso_gso_udp4.c.obj [199/555] Compiling C object lib/librte_gro.a.p/gro_gro_vxlan_udp4.c.obj [200/555] Compiling C object lib/librte_gso.a.p/gso_gso_tunnel_tcp4.c.obj [201/555] Compiling C object lib/librte_gso.a.p/gso_gso_tcp4.c.obj [202/555] Compiling C object lib/librte_gso.a.p/gso_gso_common.c.obj [203/555] Compiling C object lib/librte_gso.a.p/gso_rte_gso.c.obj [204/555] Compiling C object lib/librte_gso.a.p/gso_gso_tunnel_udp4.c.obj ninja: build stopped DPDK STV team