compilation|FAILURE| pw(160314) sid(37160) job(PER_PATCH_BUILD17765)[v13] eal: RTE_PTR_ADD/SUB API improvements
sys_stv at intel.com
sys_stv at intel.com
Sun Jan 25 23:47:12 CET 2026
Test-Label: Intel-compilation
Test-Status: FAILURE
http://dpdk.org/patch/160314
_Compilation issues_
Submitter: Scott Mitchell <scott.k.mitch1 at gmail.com>
Date: 2026-01-25 22:30:15
Reply_mail: <20260125223015.69190-1-scott.k.mitch1 at gmail.com>
DPDK git baseline: Repo:dpdk, CommitID: 68fdc7c84912bc8981b907a757582a2352b6cae2
Meson Build Summary: 23 Builds Done, 21 Successful, 2 Failures, 0 Blocked
+-------------------+------------+--------------+------------+------------+-----------+----------+------------+
| os | gcc-static | clang-static | icc-static | gcc-shared | gcc-debug | document | gcc-16byte |
+-------------------+------------+--------------+------------+------------+-----------+----------+------------+
| OpenAnolis8.10-64 | pass | | | | | | |
| FreeBSD14-64 | pass | pass | | pass | fail | | |
| RHEL96-64 | pass | pass | | pass | fail | | |
| SUSE15-64 | pass | pass | | | | | |
| AzureLinux3.0-64 | pass | | | | | | |
| UB2404-32 | pass | | | | | | |
| RHEL10-64 | pass | | | | | | |
| UB2404-64 | pass | pass | | | | pass | pass |
| RHEL10-64RT | pass | | | | | | |
| UB2504-64 | pass | | | | | | |
| Fedora42-64 | pass | pass | | | | | |
| OpenEuler2404-64 | 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.10-64
Kernel Version: 5.10.134-18.an8.x86_64
GCC Version: gcc (GCC) 8.5.0 20210514 (Anolis 8.5.0-24.0.1)
Clang Version: 18.1.8 (Red Hat 18.1.8-1.0.1.module+an8.9.0+11287+9d0292d3)
x86_64-native-linuxapp-gcc
OS: FreeBSD14-64
Kernel Version: 14.3-RELEASE
GCC Version: gcc (FreeBSD Ports Collection) 13.3.0
Clang Version: 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2)
x86_64-native-bsdapp-gcc
x86_64-native-bsdapp-clang
x86_64-native-bsdapp-gcc+shared
x86_64-native-bsdapp-gcc+debug
OS: RHEL96-64
Kernel Version: 5.14.0-570.12.1.el9_6.x86_64
GCC Version: gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5)
Clang Version: 19.1.7 (Red Hat, Inc. 19.1.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: 6.4.0-150700.51-default
GCC Version: gcc (SUSE Linux) 14.2.0
Clang Version: 17.0.6
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc
OS: AzureLinux3.0-64
Kernel Version: 6.6.47.1-1.azl3
GCC Version: gcc (GCC) 13.2.0
Clang Version: 18.1.2
x86_64-native-linuxapp-gcc
OS: UB2404-32
Kernel Version: 6.8.0-41-generic
GCC Version: gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
Clang Version: NA
i686-native-linuxapp-gcc
OS: RHEL10-64
Kernel Version: 6.12.0-55.9.1.el10_0.x86_64
GCC Version: gcc (GCC) 14.2.1 20250110 (Red Hat 14.2.1-7)
Clang Version: 19.1.7 (Red Hat, Inc. 19.1.7-2.el10)
x86_64-native-linuxapp-gcc
OS: UB2404-64
Kernel Version: 6.8.0-41-generic
GCC Version: gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
Clang Version: 18.1.3 (1ubuntu1)
x86_64-native-linuxapp-gcc+16byte
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-doc
OS: RHEL10-64RT
Kernel Version: 6.12.0-55.9.1.el10_0.x86_64+rt
GCC Version: gcc (GCC) 14.2.1 20250110 (Red Hat 14.2.1-7)
Clang Version: 19.1.7 (Red Hat, Inc. 19.1.7-2.el10)
x86_64-native-linuxapp-gcc
OS: UB2504-64
Kernel Version: 6.14.0-15-generic
GCC Version: gcc (Ubuntu 14.2.0-19ubuntu2) 14.2.0
Clang Version: NA
x86_64-native-linuxapp-gcc
OS: Fedora42-64
Kernel Version: 6.14.0-63.fc42.x86_64
GCC Version: gcc (GCC) 15.0.1 20250329 (Red Hat 15.0.1-0)
Clang Version: 20.1.3 (Fedora 20.1.3-1.fc42)
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-clang
OS: OpenEuler2404-64
Kernel Version: 6.6.0-98.0.0.103.oe2403sp2.x86_64
GCC Version: gcc (GCC) 12.3.1 (openEuler 12.3.1-98.oe2403sp2)
Clang Version: 17.0.6 ( 17.0.6-45.oe2403sp2)
x86_64-native-linuxapp-gcc
*Build Failed #1:
OS: FreeBSD14-64
Target: x86_64-native-bsdapp-gcc+debug
FAILED: lib/librte_eal.a.p/eal_common_eal_common_memory.c.o
gcc -Ilib/librte_eal.a.p -Ilib -I../lib -Ilib/eal/common -I../lib/eal/common -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 -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/argparse -I../lib/argparse -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O2 -g -include rte_config.h -Wvla -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -D__BSD_VISIBLE -fPIC -march=native -mno-avx512f -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation '-DABI_VERSION="26.1"' -DRTE_EAL_PTHREAD_ATTR_SETAFFINITY_NP -DRTE_LIBEAL_USE_GETENTROPY -DRTE_LOG_DEFAULT_LOGTYPE=lib.eal -MD -MQ lib/librte_eal.a.p/eal_common_eal_common_memory.c.o -MF lib/librte_eal.a.p/eal_common_eal_common_memory.c.o.d -o lib/librte_eal.a.p/eal_common_eal_common_memory.c.o -c ../lib/eal/common/eal_common_memory.c
In file included from ../lib/eal/include/generic/rte_rwlock.h:29,
from ../lib/eal/x86/include/rte_rwlock.h:8,
from ../lib/eal/include/rte_fbarray.h:35,
from ../lib/eal/common/eal_common_memory.c:13:
../lib/eal/common/malloc_elem.h: In function 'malloc_elem_cookies_ok':
../lib/eal/common/malloc_elem.h:83:46: error: dereferencing 'void *' pointer [-Werror]
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~
../lib/eal/include/rte_common.h:619:60: note: in definition of macro 'RTE_PTR_ADD'
619 | (1 ? (void *)((char *)__rte_ptr_add_ptr + (x)) : __rte_ptr_add_ptr); \
| ^
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro 'MALLOC_ELEM_TRAILER'
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:46: error: request for member 'size' in something not a structure or union
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~
../lib/eal/include/rte_common.h:619:60: note: in definition of macro 'RTE_PTR_ADD'
619 | (1 ? (void *)((char *)__rte_ptr_add_ptr + (x)) : __rte_ptr_add_ptr); \
| ^
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro 'MALLOC_ELEM_TRAILER'
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/include/rte_common.h:622:9: error: '__rte_ptr_add_res' undeclared (first use in this function); did you mean '__rte_ptr_add_ptr'?
622 | __rte_ptr_add_res; \
| ^~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:24: note: in expansion of macro 'RTE_PTR_ADD'
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~~~~~~~~~~
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro 'MALLOC_ELEM_TRAILER'
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/include/rte_common.h:622:9: note: each undeclared identifier is reported only once for each function it appears in
622 | __rte_ptr_add_res; \
| ^~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:24: note: in expansion of macro 'RTE_PTR_ADD'
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~~~~~~~~~~
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro 'MALLOC_ELEM_TRAILER'
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[48/2230] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_memzone.c.o
FAILED: lib/librte_eal.a.p/eal_common_eal_common_memzone.c.o
gcc -Ilib/librte_eal.a.p -Ilib -I../lib -Ilib/eal/common -I../lib/eal/common -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 -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/argparse -I../lib/argparse -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O2 -g -include rte_config.h -Wvla -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -D__BSD_VISIBLE -fPIC -march=native -mno-avx512f -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation '-DABI_VERSION="26.1"' -DRTE_EAL_PTHREAD_ATTR_SETAFFINITY_NP -DRTE_LIBEAL_USE_GETENTROPY -DRTE_LOG_DEFAULT_LOGTYPE=lib.eal -MD -MQ lib/librte_eal.a.p/eal_common_eal_common_memzone.c.o -MF lib/librte_eal.a.p/eal_common_eal_common_memzone.c.o.d -o lib/librte_eal.a.p/eal_common_eal_common_memzone.c.o -c ../lib/eal/common/eal_common_memzone.c
In file included from ../lib/eal/common/eal_export.h:8,
from ../lib/eal/common/eal_common_memzone.c:11:
../lib/eal/common/malloc_elem.h: In function 'malloc_elem_cookies_ok':
../lib/eal/common/malloc_elem.h:83:46: error: dereferencing 'void *' pointer [-Werror]
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~
../lib/eal/include/rte_common.h:619:60: note: in definition of macro 'RTE_PTR_ADD'
619 | (1 ? (void *)((char *)__rte_ptr_add_ptr + (x)) : __rte_ptr_add_ptr); \
| ^
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro 'MALLOC_ELEM_TRAILER'
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:46: error: request for member 'size' in something not a structure or union
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~
../lib/eal/include/rte_common.h:619:60: note: in definition of macro 'RTE_PTR_ADD'
619 | (1 ? (void *)((char *)__rte_ptr_add_ptr + (x)) : __rte_ptr_add_ptr); \
| ^
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro 'MALLOC_ELEM_TRAILER'
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/include/rte_common.h:622:9: error: '__rte_ptr_add_res' undeclared (first use in this function); did you mean '__rte_ptr_add_ptr'?
622 | __rte_ptr_add_res; \
| ^~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:24: note: in expansion of macro 'RTE_PTR_ADD'
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~~~~~~~~~~
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro 'MALLOC_ELEM_TRAILER'
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/include/rte_common.h:622:9: note: each undeclared identifier is reported only once for each function it appears in
622 | __rte_ptr_add_res; \
| ^~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:24: note: in expansion of macro 'RTE_PTR_ADD'
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~~~~~~~~~~
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro 'MALLOC_ELEM_TRAILER'
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
In file included from ../lib/eal/common/eal_common_memzone.c:22:
../lib/eal/common/malloc_elem.h:107:1: error: control reaches end of non-void function [-Werror=return-type]
107 | }
| ^
cc1: all warnings being treated as errors
[49/2230] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_tailqs.c.o
[50/2230] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_timer.c.o
[51/2230] Compiling C object lib/librte_eal.a.p/eal_common_malloc_elem.c.o
FAILED: lib/librte_eal.a.p/eal_common_malloc_elem.c.o
gcc -Ilib/librte_eal.a.p -Ilib -I../lib -Ilib/eal/common -I../lib/eal/common -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 -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/argparse -I../lib/argparse -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O2 -g -include rte_config.h -Wvla -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -D__BSD_VISIBLE -fPIC -march=native -mno-avx512f -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation '-DABI_VERSION="26.1"' -DRTE_EAL_PTHREAD_ATTR_SETAFFINITY_NP -DRTE_LIBEAL_USE_GETENTROPY -DRTE_LOG_DEFAULT_LOGTYPE=lib.eal -MD -MQ lib/librte_eal.a.p/eal_common_malloc_elem.c.o -MF lib/librte_eal.a.p/eal_common_malloc_elem.c.o.d -o lib/librte_eal.a.p/eal_common_malloc_elem.c.o -c ../lib/eal/common/malloc_elem.c
In file included from ../lib/log/rte_log.h:22,
from ../lib/eal/include/rte_debug.h:17,
from ../lib/eal/include/rte_bitops.h:23,
from ../lib/eal/include/rte_memory.h:18,
from ../lib/eal/common/malloc_elem.c:11:
../lib/eal/common/malloc_elem.h: In function 'malloc_elem_cookies_ok':
../lib/eal/common/malloc_elem.h:83:46: error: dereferencing 'void *' pointer [-Werror]
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~
../lib/eal/include/rte_common.h:619:60: note: in definition of macro 'RTE_PTR_ADD'
619 | (1 ? (void *)((char *)__rte_ptr_add_ptr + (x)) : __rte_ptr_add_ptr); \
| ^
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro 'MALLOC_ELEM_TRAILER'
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:46: error: request for member 'size' in something not a structure or union
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~
../lib/eal/include/rte_common.h:619:60: note: in definition of macro 'RTE_PTR_ADD'
619 | (1 ? (void *)((char *)__rte_ptr_add_ptr + (x)) : __rte_ptr_add_ptr); \
| ^
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro 'MALLOC_ELEM_TRAILER'
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/include/rte_common.h:622:9: error: '__rte_ptr_add_res' undeclared (first use in this function); did you mean '__rte_ptr_add_ptr'?
622 | __rte_ptr_add_res; \
| ^~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:24: note: in expansion of macro 'RTE_PTR_ADD'
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~~~~~~~~~~
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro 'MALLOC_ELEM_TRAILER'
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/include/rte_common.h:622:9: note: each undeclared identifier is reported only once for each function it appears in
622 | __rte_ptr_add_res; \
| ^~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:24: note: in expansion of macro 'RTE_PTR_ADD'
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~~~~~~~~~~
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro 'MALLOC_ELEM_TRAILER'
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[52/2230] Compiling C object lib/librte_eal.a.p/eal_common_malloc_heap.c.o
FAILED: lib/librte_eal.a.p/eal_common_malloc_heap.c.o
gcc -Ilib/librte_eal.a.p -Ilib -I../lib -Ilib/eal/common -I../lib/eal/common -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 -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/argparse -I../lib/argparse -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O2 -g -include rte_config.h -Wvla -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -D__BSD_VISIBLE -fPIC -march=native -mno-avx512f -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation '-DABI_VERSION="26.1"' -DRTE_EAL_PTHREAD_ATTR_SETAFFINITY_NP -DRTE_LIBEAL_USE_GETENTROPY -DRTE_LOG_DEFAULT_LOGTYPE=lib.eal -MD -MQ lib/librte_eal.a.p/eal_common_malloc_heap.c.o -MF lib/librte_eal.a.p/eal_common_malloc_heap.c.o.d -o lib/librte_eal.a.p/eal_common_malloc_heap.c.o -c ../lib/eal/common/malloc_heap.c
In file included from ../lib/log/rte_log.h:22,
from ../lib/eal/include/rte_debug.h:17,
from ../lib/eal/include/rte_bitops.h:23,
from ../lib/eal/include/rte_memory.h:18,
from ../lib/eal/common/malloc_heap.c:11:
../lib/eal/common/malloc_elem.h: In function 'malloc_elem_cookies_ok':
../lib/eal/common/malloc_elem.h:83:46: error: dereferencing 'void *' pointer [-Werror]
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~
../lib/eal/include/rte_common.h:619:60: note: in definition of macro 'RTE_PTR_ADD'
619 | (1 ? (void *)((char *)__rte_ptr_add_ptr + (x)) : __rte_ptr_add_ptr); \
| ^
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro 'MALLOC_ELEM_TRAILER'
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:46: error: request for member 'size' in something not a structure or union
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~
../lib/eal/include/rte_common.h:619:60: note: in definition of macro 'RTE_PTR_ADD'
619 | (1 ? (void *)((char *)__rte_ptr_add_ptr + (x)) : __rte_ptr_add_ptr); \
| ^
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro 'MALLOC_ELEM_TRAILER'
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/include/rte_common.h:622:9: error: '__rte_ptr_add_res' undeclared (first use in this function); did you mean '__rte_ptr_add_ptr'?
622 | __rte_ptr_add_res; \
| ^~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:24: note: in expansion of macro 'RTE_PTR_ADD'
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~~~~~~~~~~
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro 'MALLOC_ELEM_TRAILER'
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/include/rte_common.h:622:9: note: each undeclared identifier is reported only once for each function it appears in
622 | __rte_ptr_add_res; \
| ^~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:24: note: in expansion of macro 'RTE_PTR_ADD'
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~~~~~~~~~~
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro 'MALLOC_ELEM_TRAILER'
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
In file included from ../lib/eal/common/malloc_heap.c:26:
../lib/eal/common/malloc_elem.h:107:1: error: control reaches end of non-void function [-Werror=return-type]
107 | }
| ^
cc1: all warnings being treated as errors
[53/2230] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_trace_points.c.o
[54/2230] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_thread.c.o
[55/2230] Compiling C object lib/librte_eal.a.p/eal_common_rte_bitset.c.o
[56/2230] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_options.c.o
ninja: build stopped
*Build Failed #2:
OS: RHEL96-64
Target: x86_64-native-linuxapp-gcc+debug
FAILED: lib/librte_eal.a.p/eal_common_eal_common_memzone.c.o
gcc -Ilib/librte_eal.a.p -Ilib -I../lib -Ilib/eal/common -I../lib/eal/common -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 -I../kernel/linux -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/argparse -I../lib/argparse -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O2 -g -include rte_config.h -Wvla -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation '-DABI_VERSION="26.1"' -DRTE_EAL_PTHREAD_ATTR_SETAFFINITY_NP -DRTE_LOG_DEFAULT_LOGTYPE=lib.eal -MD -MQ lib/librte_eal.a.p/eal_common_eal_common_memzone.c.o -MF lib/librte_eal.a.p/eal_common_eal_common_memzone.c.o.d -o lib/librte_eal.a.p/eal_common_eal_common_memzone.c.o -c ../lib/eal/common/eal_common_memzone.c
In file included from ../lib/eal/common/eal_export.h:8,
from ../lib/eal/common/eal_common_memzone.c:11:
../lib/eal/common/malloc_elem.h: In function ‘malloc_elem_cookies_ok’:
../lib/eal/common/malloc_elem.h:83:46: error: dereferencing ‘void *’ pointer [-Werror]
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~
../lib/eal/include/rte_common.h:619:60: note: in definition of macro ‘RTE_PTR_ADD’
619 | (1 ? (void *)((char *)__rte_ptr_add_ptr + (x)) : __rte_ptr_add_ptr); \
| ^
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro ‘MALLOC_ELEM_TRAILER’
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:46: error: request for member ‘size’ in something not a structure or union
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~
../lib/eal/include/rte_common.h:619:60: note: in definition of macro ‘RTE_PTR_ADD’
619 | (1 ? (void *)((char *)__rte_ptr_add_ptr + (x)) : __rte_ptr_add_ptr); \
| ^
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro ‘MALLOC_ELEM_TRAILER’
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/include/rte_common.h:622:9: error: ‘__rte_ptr_add_res’ undeclared (first use in this function); did you mean ‘__rte_ptr_add_ptr’?
622 | __rte_ptr_add_res; \
| ^~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:24: note: in expansion of macro ‘RTE_PTR_ADD’
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~~~~~~~~~~
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro ‘MALLOC_ELEM_TRAILER’
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/include/rte_common.h:622:9: note: each undeclared identifier is reported only once for each function it appears in
622 | __rte_ptr_add_res; \
| ^~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:24: note: in expansion of macro ‘RTE_PTR_ADD’
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~~~~~~~~~~
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro ‘MALLOC_ELEM_TRAILER’
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
In file included from ../lib/eal/common/eal_common_memzone.c:22:
../lib/eal/common/malloc_elem.h:107:1: error: control reaches end of non-void function [-Werror=return-type]
107 | }
| ^
cc1: all warnings being treated as errors
[45/3635] Generating lib/telemetry.sym_chk with a custom command (wrapped by meson to capture output)
[46/3635] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_memalloc.c.o
[47/3635] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_lcore.c.o
[48/3635] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_string_fns.c.o
[49/3635] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_fbarray.c.o
[50/3635] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_memory.c.o
FAILED: lib/librte_eal.a.p/eal_common_eal_common_memory.c.o
gcc -Ilib/librte_eal.a.p -Ilib -I../lib -Ilib/eal/common -I../lib/eal/common -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 -I../kernel/linux -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/argparse -I../lib/argparse -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O2 -g -include rte_config.h -Wvla -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation '-DABI_VERSION="26.1"' -DRTE_EAL_PTHREAD_ATTR_SETAFFINITY_NP -DRTE_LOG_DEFAULT_LOGTYPE=lib.eal -MD -MQ lib/librte_eal.a.p/eal_common_eal_common_memory.c.o -MF lib/librte_eal.a.p/eal_common_eal_common_memory.c.o.d -o lib/librte_eal.a.p/eal_common_eal_common_memory.c.o -c ../lib/eal/common/eal_common_memory.c
In file included from ../lib/eal/include/generic/rte_rwlock.h:29,
from ../lib/eal/x86/include/rte_rwlock.h:8,
from ../lib/eal/include/rte_fbarray.h:35,
from ../lib/eal/common/eal_common_memory.c:13:
../lib/eal/common/malloc_elem.h: In function ‘malloc_elem_cookies_ok’:
../lib/eal/common/malloc_elem.h:83:46: error: dereferencing ‘void *’ pointer [-Werror]
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~
../lib/eal/include/rte_common.h:619:60: note: in definition of macro ‘RTE_PTR_ADD’
619 | (1 ? (void *)((char *)__rte_ptr_add_ptr + (x)) : __rte_ptr_add_ptr); \
| ^
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro ‘MALLOC_ELEM_TRAILER’
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:46: error: request for member ‘size’ in something not a structure or union
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~
../lib/eal/include/rte_common.h:619:60: note: in definition of macro ‘RTE_PTR_ADD’
619 | (1 ? (void *)((char *)__rte_ptr_add_ptr + (x)) : __rte_ptr_add_ptr); \
| ^
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro ‘MALLOC_ELEM_TRAILER’
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/include/rte_common.h:622:9: error: ‘__rte_ptr_add_res’ undeclared (first use in this function); did you mean ‘__rte_ptr_add_ptr’?
622 | __rte_ptr_add_res; \
| ^~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:24: note: in expansion of macro ‘RTE_PTR_ADD’
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~~~~~~~~~~
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro ‘MALLOC_ELEM_TRAILER’
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
../lib/eal/include/rte_common.h:622:9: note: each undeclared identifier is reported only once for each function it appears in
622 | __rte_ptr_add_res; \
| ^~~~~~~~~~~~~~~~~
../lib/eal/common/malloc_elem.h:83:24: note: in expansion of macro ‘RTE_PTR_ADD’
83 | (*((uint64_t *)RTE_PTR_ADD(elem, elem->size - MALLOC_ELEM_TRAILER_LEN)))
| ^~~~~~~~~~~
../lib/eal/common/malloc_elem.h:106:25: note: in expansion of macro ‘MALLOC_ELEM_TRAILER’
106 | MALLOC_ELEM_TRAILER(RTE_PTR_UNQUAL(elem)) == MALLOC_TRAILER_COOKIE;
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[51/3635] Generating symbol file lib/librte_argparse.so.26.1.p/librte_argparse.so.26.1.symbols
[52/3635] Generating symbol file lib/librte_kvargs.so.26.1.p/librte_kvargs.so.26.1.symbols
[53/3635] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_options.c.o
ninja: build stopped
DPDK STV team
More information about the test-report
mailing list