Test-Label: Intel-compilation Test-Status: FAILURE http://dpdk.org/patch/93933 _Compilation issues_ Submitter: Narcisa Ana Maria Vasile Date: 2021-06-04 23:44:34 Reply_mail: 1622850274-6946-11-git-send-email-navasile@linux.microsoft.com DPDK git baseline: Repo:dpdk, CommitID: 64307fad7d2b6af3be5e19833e404312f01f6ce5 Meson Build Summary: 22 Builds Done, 17 Successful, 5 Failures, 0 Blocked +------------------+------------+--------------+------------+------------+-----------+----------+ | os | gcc-static | clang-static | icc-static | gcc-shared | gcc-debug | document | +------------------+------------+--------------+------------+------------+-----------+----------+ | UB2004-64 | pass | pass | pass | | | pass | | RHEL83-64 | pass | | | | | | | FC34-64 | pass | pass | | | | | | CentOsStream8-64 | pass | | | | | | | UB2104-64 | pass | | | | | | | WIN10-64 | | pass | | | | | | UB2004-32 | fail | | | | | | | CENTOS83-64 | pass | pass | pass | pass | pass | | | FreeBSD1201-64 | fail | fail | | 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-240.el8.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+7459+90c24896) x86_64-native-linuxapp-gcc 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: CentOsStream8-64 Kernel Version: 4.18.0-257.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-0.2.rc2.module_el8.4.0+533+50191577) x86_64-native-linuxapp-gcc 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 x86_64-native-linuxapp-icc x86_64-native-linuxapp-gcc+shared x86_64-native-linuxapp-gcc+debug 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: lib/librte_eal.a.p/eal_common_rte_thread.c.o gcc -Ilib/librte_eal.a.p -Ilib -I../lib -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 -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 -fPIC -march=native -mno-avx512f -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation '-DABI_VERSION="21.3"' -DRTE_LIBEAL_USE_GETENTROPY -DRTE_LOG_DEFAULT_LOGTYPE=lib.eal -MD -MQ lib/librte_eal.a.p/eal_common_rte_thread.c.o -MF lib/librte_eal.a.p/eal_common_rte_thread.c.o.d -o lib/librte_eal.a.p/eal_common_rte_thread.c.o -c ../lib/eal/common/rte_thread.c ../lib/eal/common/rte_thread.c: In function 'rte_thread_self': ../lib/eal/common/rte_thread.c:26:22: error: assignment to 'uintptr_t' {aka 'long unsigned int'} from 'pthread_t' {aka 'struct pthread *'} makes integer from pointer without a cast [-Werror=int-conversion] 26 | thread_id.opaque_id = pthread_self(); | ^ ../lib/eal/common/rte_thread.c: In function 'rte_thread_equal': ../lib/eal/common/rte_thread.c:34:25: error: passing argument 1 of 'pthread_equal' makes pointer from integer without a cast [-Werror=int-conversion] 34 | return pthread_equal(t1.opaque_id, t2.opaque_id); | ~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:216:20: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 216 | int pthread_equal(pthread_t, pthread_t); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c:34:39: error: passing argument 2 of 'pthread_equal' makes pointer from integer without a cast [-Werror=int-conversion] 34 | return pthread_equal(t1.opaque_id, t2.opaque_id); | ~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:216:31: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 216 | int pthread_equal(pthread_t, pthread_t); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_set_affinity_by_id': ../lib/eal/common/rte_thread.c:41:41: error: passing argument 1 of 'pthread_setaffinity_np' makes pointer from integer without a cast [-Werror=int-conversion] 41 | return pthread_setaffinity_np(thread_id.opaque_id, sizeof(*cpuset), cpuset); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/freebsd/include/rte_os.h:13, from ../lib/eal/include/rte_common.h:28, from ../lib/eal/common/rte_thread.c:11: /usr/include/pthread_np.h:67:28: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 67 | int pthread_setaffinity_np(pthread_t, size_t, const cpuset_t *); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_get_affinity_by_id': ../lib/eal/common/rte_thread.c:48:41: error: passing argument 1 of 'pthread_getaffinity_np' makes pointer from integer without a cast [-Werror=int-conversion] 48 | return pthread_getaffinity_np(thread_id.opaque_id, sizeof(*cpuset), cpuset); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/freebsd/include/rte_os.h:13, from ../lib/eal/include/rte_common.h:28, from ../lib/eal/common/rte_thread.c:11: /usr/include/pthread_np.h:53:28: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 53 | int pthread_getaffinity_np(pthread_t, size_t, cpuset_t *); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_set_priority': ../lib/eal/common/rte_thread.c:99:40: error: passing argument 1 of 'pthread_setschedparam' makes pointer from integer without a cast [-Werror=int-conversion] 99 | return pthread_setschedparam(thread_id.opaque_id, policy, ¶m); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:339:28: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 339 | int pthread_setschedparam(pthread_t, int, | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_create': ../lib/eal/common/rte_thread.c:217:23: error: passing argument 1 of 'pthread_create' from incompatible pointer type [-Werror=incompatible-pointer-types] 217 | ret = pthread_create(&thread_id->opaque_id, attrp, thread_func, args); | ^~~~~~~~~~~~~~~~~~~~~ | | | uintptr_t * {aka long unsigned int *} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:212:21: note: expected 'struct pthread ** restrict' but argument is of type 'uintptr_t *' {aka 'long unsigned int *'} 212 | int pthread_create(pthread_t * __restrict, | ^ ../lib/eal/common/rte_thread.c: In function 'rte_thread_join': ../lib/eal/common/rte_thread.c:240:30: error: passing argument 1 of 'pthread_join' makes pointer from integer without a cast [-Werror=int-conversion] 240 | ret = pthread_join(thread_id.opaque_id, pres); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:220:19: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 220 | int pthread_join(pthread_t, void **); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_cancel': ../lib/eal/common/rte_thread.c:344:33: error: passing argument 1 of 'pthread_cancel' makes pointer from integer without a cast [-Werror=int-conversion] 344 | return pthread_cancel(thread_id.opaque_id); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:295:21: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 295 | int pthread_cancel(pthread_t); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_detach': ../lib/eal/common/rte_thread.c:350:33: error: passing argument 1 of 'pthread_detach' makes pointer from integer without a cast [-Werror=int-conversion] 350 | return pthread_detach(thread_id.opaque_id); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:215:21: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 215 | int pthread_detach(pthread_t); | ^~~~~~~~~ cc1: all warnings being treated as errors [51/1949] Compiling C object lib/librte_eal.a.p/eal_common_malloc_heap.c.o [52/1949] Compiling C object lib/librte_eal.a.p/eal_common_rte_version.c.o [53/1949] Compiling C object lib/librte_eal.a.p/eal_unix_eal_file.c.o [54/1949] Compiling C object lib/librte_eal.a.p/eal_common_rte_service.c.o [55/1949] Compiling C object lib/librte_eal.a.p/eal_common_rte_malloc.c.o ninja: build stopped *Build Failed #2: OS: FreeBSD1201-64 Target: x86_64-native-bsdapp-clang FAILED: lib/librte_eal.a.p/eal_common_rte_thread.c.o clang -Ilib/librte_eal.a.p -Ilib -I../lib -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 -Xclang -fcolor-diagnostics -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-missing-field-initializers -D_GNU_SOURCE -D__BSD_VISIBLE -fPIC -march=native -mno-avx512f -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API '-DABI_VERSION="21.3"' -DRTE_LIBEAL_USE_GETENTROPY -DRTE_LOG_DEFAULT_LOGTYPE=lib.eal -MD -MQ lib/librte_eal.a.p/eal_common_rte_thread.c.o -MF lib/librte_eal.a.p/eal_common_rte_thread.c.o.d -o lib/librte_eal.a.p/eal_common_rte_thread.c.o -c ../lib/eal/common/rte_thread.c ../lib/eal/common/rte_thread.c:26:22: error: incompatible pointer to integer conversion assigning to 'uintptr_t' (aka 'unsigned long') from 'pthread_t' (aka 'struct pthread *') [-Werror,-Wint-conversion] thread_id.opaque_id = pthread_self(); ^ ~~~~~~~~~~~~~~ ../lib/eal/common/rte_thread.c:34:23: error: incompatible integer to pointer conversion passing 'uintptr_t' (aka 'unsigned long') to parameter of type 'pthread_t' (aka 'struct pthread *') [-Werror,-Wint-conversion] return pthread_equal(t1.opaque_id, t2.opaque_id); ^~~~~~~~~~~~ /usr/include/pthread.h:216:29: note: passing argument to parameter here int pthread_equal(pthread_t, pthread_t); ^ ../lib/eal/common/rte_thread.c:34:37: error: incompatible integer to pointer conversion passing 'uintptr_t' (aka 'unsigned long') to parameter of type 'pthread_t' (aka 'struct pthread *') [-Werror,-Wint-conversion] return pthread_equal(t1.opaque_id, t2.opaque_id); ^~~~~~~~~~~~ /usr/include/pthread.h:216:40: note: passing argument to parameter here int pthread_equal(pthread_t, pthread_t); ^ ../lib/eal/common/rte_thread.c:41:32: error: incompatible integer to pointer conversion passing 'uintptr_t' (aka 'unsigned long') to parameter of type 'pthread_t' (aka 'struct pthread *') [-Werror,-Wint-conversion] return pthread_setaffinity_np(thread_id.opaque_id, sizeof(*cpuset), cpuset); ^~~~~~~~~~~~~~~~~~~ /usr/include/pthread_np.h:67:37: note: passing argument to parameter here int pthread_setaffinity_np(pthread_t, size_t, const cpuset_t *); ^ ../lib/eal/common/rte_thread.c:48:32: error: incompatible integer to pointer conversion passing 'uintptr_t' (aka 'unsigned long') to parameter of type 'pthread_t' (aka 'struct pthread *') [-Werror,-Wint-conversion] return pthread_getaffinity_np(thread_id.opaque_id, sizeof(*cpuset), cpuset); ^~~~~~~~~~~~~~~~~~~ /usr/include/pthread_np.h:53:37: note: passing argument to parameter here int pthread_getaffinity_np(pthread_t, size_t, cpuset_t *); ^ ../lib/eal/common/rte_thread.c:99:31: error: incompatible integer to pointer conversion passing 'uintptr_t' (aka 'unsigned long') to parameter of type 'pthread_t' (aka 'struct pthread *') [-Werror,-Wint-conversion] return pthread_setschedparam(thread_id.opaque_id, policy, ¶m); ^~~~~~~~~~~~~~~~~~~ /usr/include/pthread.h:339:37: note: passing argument to parameter here int pthread_setschedparam(pthread_t, int, ^ ../lib/eal/common/rte_thread.c:217:23: error: incompatible pointer types passing 'uintptr_t *' (aka 'unsigned long *') to parameter of type 'pthread_t *' (aka 'struct pthread **') [-Werror,-Wincompatible-pointer-types] ret = pthread_create(&thread_id->opaque_id, attrp, thread_func, args); ^~~~~~~~~~~~~~~~~~~~~ /usr/include/pthread.h:212:43: note: passing argument to parameter here int pthread_create(pthread_t * __restrict, ^ ../lib/eal/common/rte_thread.c:240:21: error: incompatible integer to pointer conversion passing 'uintptr_t' (aka 'unsigned long') to parameter of type 'pthread_t' (aka 'struct pthread *') [-Werror,-Wint-conversion] ret = pthread_join(thread_id.opaque_id, pres); ^~~~~~~~~~~~~~~~~~~ /usr/include/pthread.h:220:28: note: passing argument to parameter here int pthread_join(pthread_t, void **); ^ ../lib/eal/common/rte_thread.c:344:24: error: incompatible integer to pointer conversion passing 'uintptr_t' (aka 'unsigned long') to parameter of type 'pthread_t' (aka 'struct pthread *') [-Werror,-Wint-conversion] return pthread_cancel(thread_id.opaque_id); ^~~~~~~~~~~~~~~~~~~ /usr/include/pthread.h:295:30: note: passing argument to parameter here int pthread_cancel(pthread_t); ^ ../lib/eal/common/rte_thread.c:350:24: error: incompatible integer to pointer conversion passing 'uintptr_t' (aka 'unsigned long') to parameter of type 'pthread_t' (aka 'struct pthread *') [-Werror,-Wint-conversion] return pthread_detach(thread_id.opaque_id); ^~~~~~~~~~~~~~~~~~~ /usr/include/pthread.h:215:30: note: passing argument to parameter here int pthread_detach(pthread_t); ^ 10 errors generated. [49/1949] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_options.c.o [50/1949] Compiling C object lib/librte_eal.a.p/eal_common_rte_reciprocal.c.o [51/1949] Compiling C object lib/librte_eal.a.p/eal_common_rte_service.c.o [52/1949] Compiling C object lib/librte_eal.a.p/eal_common_malloc_heap.c.o [53/1949] Compiling C object lib/librte_eal.a.p/eal_common_rte_malloc.c.o ninja: build stopped *Build Failed #3: OS: FreeBSD1201-64 Target: x86_64-native-bsdapp-gcc+shared FAILED: lib/librte_eal.a.p/eal_common_rte_thread.c.o gcc -Ilib/librte_eal.a.p -Ilib -I../lib -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 -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 -fPIC -march=native -mno-avx512f -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation '-DABI_VERSION="21.3"' -DRTE_LIBEAL_USE_GETENTROPY -DRTE_LOG_DEFAULT_LOGTYPE=lib.eal -MD -MQ lib/librte_eal.a.p/eal_common_rte_thread.c.o -MF lib/librte_eal.a.p/eal_common_rte_thread.c.o.d -o lib/librte_eal.a.p/eal_common_rte_thread.c.o -c ../lib/eal/common/rte_thread.c ../lib/eal/common/rte_thread.c: In function 'rte_thread_self': ../lib/eal/common/rte_thread.c:26:22: error: assignment to 'uintptr_t' {aka 'long unsigned int'} from 'pthread_t' {aka 'struct pthread *'} makes integer from pointer without a cast [-Werror=int-conversion] 26 | thread_id.opaque_id = pthread_self(); | ^ ../lib/eal/common/rte_thread.c: In function 'rte_thread_equal': ../lib/eal/common/rte_thread.c:34:25: error: passing argument 1 of 'pthread_equal' makes pointer from integer without a cast [-Werror=int-conversion] 34 | return pthread_equal(t1.opaque_id, t2.opaque_id); | ~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:216:20: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 216 | int pthread_equal(pthread_t, pthread_t); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c:34:39: error: passing argument 2 of 'pthread_equal' makes pointer from integer without a cast [-Werror=int-conversion] 34 | return pthread_equal(t1.opaque_id, t2.opaque_id); | ~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:216:31: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 216 | int pthread_equal(pthread_t, pthread_t); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_set_affinity_by_id': ../lib/eal/common/rte_thread.c:41:41: error: passing argument 1 of 'pthread_setaffinity_np' makes pointer from integer without a cast [-Werror=int-conversion] 41 | return pthread_setaffinity_np(thread_id.opaque_id, sizeof(*cpuset), cpuset); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/freebsd/include/rte_os.h:13, from ../lib/eal/include/rte_common.h:28, from ../lib/eal/common/rte_thread.c:11: /usr/include/pthread_np.h:67:28: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 67 | int pthread_setaffinity_np(pthread_t, size_t, const cpuset_t *); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_get_affinity_by_id': ../lib/eal/common/rte_thread.c:48:41: error: passing argument 1 of 'pthread_getaffinity_np' makes pointer from integer without a cast [-Werror=int-conversion] 48 | return pthread_getaffinity_np(thread_id.opaque_id, sizeof(*cpuset), cpuset); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/freebsd/include/rte_os.h:13, from ../lib/eal/include/rte_common.h:28, from ../lib/eal/common/rte_thread.c:11: /usr/include/pthread_np.h:53:28: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 53 | int pthread_getaffinity_np(pthread_t, size_t, cpuset_t *); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_set_priority': ../lib/eal/common/rte_thread.c:99:40: error: passing argument 1 of 'pthread_setschedparam' makes pointer from integer without a cast [-Werror=int-conversion] 99 | return pthread_setschedparam(thread_id.opaque_id, policy, ¶m); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:339:28: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 339 | int pthread_setschedparam(pthread_t, int, | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_create': ../lib/eal/common/rte_thread.c:217:23: error: passing argument 1 of 'pthread_create' from incompatible pointer type [-Werror=incompatible-pointer-types] 217 | ret = pthread_create(&thread_id->opaque_id, attrp, thread_func, args); | ^~~~~~~~~~~~~~~~~~~~~ | | | uintptr_t * {aka long unsigned int *} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:212:21: note: expected 'struct pthread ** restrict' but argument is of type 'uintptr_t *' {aka 'long unsigned int *'} 212 | int pthread_create(pthread_t * __restrict, | ^ ../lib/eal/common/rte_thread.c: In function 'rte_thread_join': ../lib/eal/common/rte_thread.c:240:30: error: passing argument 1 of 'pthread_join' makes pointer from integer without a cast [-Werror=int-conversion] 240 | ret = pthread_join(thread_id.opaque_id, pres); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:220:19: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 220 | int pthread_join(pthread_t, void **); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_cancel': ../lib/eal/common/rte_thread.c:344:33: error: passing argument 1 of 'pthread_cancel' makes pointer from integer without a cast [-Werror=int-conversion] 344 | return pthread_cancel(thread_id.opaque_id); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:295:21: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 295 | int pthread_cancel(pthread_t); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_detach': ../lib/eal/common/rte_thread.c:350:33: error: passing argument 1 of 'pthread_detach' makes pointer from integer without a cast [-Werror=int-conversion] 350 | return pthread_detach(thread_id.opaque_id); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:215:21: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 215 | int pthread_detach(pthread_t); | ^~~~~~~~~ cc1: all warnings being treated as errors [49/1830] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_options.c.o [50/1830] Compiling C object lib/librte_eal.a.p/eal_common_malloc_heap.c.o [51/1830] Compiling C object lib/librte_eal.a.p/eal_common_rte_random.c.o [52/1830] Compiling C object lib/librte_eal.a.p/eal_common_rte_service.c.o [53/1830] Compiling C object lib/librte_eal.a.p/eal_common_rte_malloc.c.o ninja: build stopped *Build Failed #4: OS: FreeBSD1201-64 Target: x86_64-native-bsdapp-gcc+debug FAILED: lib/librte_eal.a.p/eal_common_rte_thread.c.o gcc -Ilib/librte_eal.a.p -Ilib -I../lib -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 -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 '-DABI_VERSION="21.3"' -DRTE_LIBEAL_USE_GETENTROPY -DRTE_LOG_DEFAULT_LOGTYPE=lib.eal -MD -MQ lib/librte_eal.a.p/eal_common_rte_thread.c.o -MF lib/librte_eal.a.p/eal_common_rte_thread.c.o.d -o lib/librte_eal.a.p/eal_common_rte_thread.c.o -c ../lib/eal/common/rte_thread.c ../lib/eal/common/rte_thread.c: In function 'rte_thread_self': ../lib/eal/common/rte_thread.c:26:22: error: assignment to 'uintptr_t' {aka 'long unsigned int'} from 'pthread_t' {aka 'struct pthread *'} makes integer from pointer without a cast [-Werror=int-conversion] 26 | thread_id.opaque_id = pthread_self(); | ^ ../lib/eal/common/rte_thread.c: In function 'rte_thread_equal': ../lib/eal/common/rte_thread.c:34:25: error: passing argument 1 of 'pthread_equal' makes pointer from integer without a cast [-Werror=int-conversion] 34 | return pthread_equal(t1.opaque_id, t2.opaque_id); | ~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:216:20: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 216 | int pthread_equal(pthread_t, pthread_t); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c:34:39: error: passing argument 2 of 'pthread_equal' makes pointer from integer without a cast [-Werror=int-conversion] 34 | return pthread_equal(t1.opaque_id, t2.opaque_id); | ~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:216:31: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 216 | int pthread_equal(pthread_t, pthread_t); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_set_affinity_by_id': ../lib/eal/common/rte_thread.c:41:41: error: passing argument 1 of 'pthread_setaffinity_np' makes pointer from integer without a cast [-Werror=int-conversion] 41 | return pthread_setaffinity_np(thread_id.opaque_id, sizeof(*cpuset), cpuset); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/freebsd/include/rte_os.h:13, from ../lib/eal/include/rte_common.h:28, from ../lib/eal/common/rte_thread.c:11: /usr/include/pthread_np.h:67:28: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 67 | int pthread_setaffinity_np(pthread_t, size_t, const cpuset_t *); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_get_affinity_by_id': ../lib/eal/common/rte_thread.c:48:41: error: passing argument 1 of 'pthread_getaffinity_np' makes pointer from integer without a cast [-Werror=int-conversion] 48 | return pthread_getaffinity_np(thread_id.opaque_id, sizeof(*cpuset), cpuset); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/freebsd/include/rte_os.h:13, from ../lib/eal/include/rte_common.h:28, from ../lib/eal/common/rte_thread.c:11: /usr/include/pthread_np.h:53:28: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 53 | int pthread_getaffinity_np(pthread_t, size_t, cpuset_t *); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_set_priority': ../lib/eal/common/rte_thread.c:99:40: error: passing argument 1 of 'pthread_setschedparam' makes pointer from integer without a cast [-Werror=int-conversion] 99 | return pthread_setschedparam(thread_id.opaque_id, policy, ¶m); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:339:28: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 339 | int pthread_setschedparam(pthread_t, int, | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_create': ../lib/eal/common/rte_thread.c:217:23: error: passing argument 1 of 'pthread_create' from incompatible pointer type [-Werror=incompatible-pointer-types] 217 | ret = pthread_create(&thread_id->opaque_id, attrp, thread_func, args); | ^~~~~~~~~~~~~~~~~~~~~ | | | uintptr_t * {aka long unsigned int *} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:212:21: note: expected 'struct pthread ** restrict' but argument is of type 'uintptr_t *' {aka 'long unsigned int *'} 212 | int pthread_create(pthread_t * __restrict, | ^ ../lib/eal/common/rte_thread.c: In function 'rte_thread_join': ../lib/eal/common/rte_thread.c:240:30: error: passing argument 1 of 'pthread_join' makes pointer from integer without a cast [-Werror=int-conversion] 240 | ret = pthread_join(thread_id.opaque_id, pres); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:220:19: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 220 | int pthread_join(pthread_t, void **); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_cancel': ../lib/eal/common/rte_thread.c:344:33: error: passing argument 1 of 'pthread_cancel' makes pointer from integer without a cast [-Werror=int-conversion] 344 | return pthread_cancel(thread_id.opaque_id); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:295:21: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 295 | int pthread_cancel(pthread_t); | ^~~~~~~~~ ../lib/eal/common/rte_thread.c: In function 'rte_thread_detach': ../lib/eal/common/rte_thread.c:350:33: error: passing argument 1 of 'pthread_detach' makes pointer from integer without a cast [-Werror=int-conversion] 350 | return pthread_detach(thread_id.opaque_id); | ~~~~~~~~~^~~~~~~~~~ | | | uintptr_t {aka long unsigned int} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:215:21: note: expected 'pthread_t' {aka 'struct pthread *'} but argument is of type 'uintptr_t' {aka 'long unsigned int'} 215 | int pthread_detach(pthread_t); | ^~~~~~~~~ cc1: all warnings being treated as errors [53/1949] Compiling C object lib/librte_eal.a.p/eal_unix_eal_unix_timer.c.o [54/1949] Compiling C object lib/librte_eal.a.p/eal_unix_eal_unix_memory.c.o [55/1949] Compiling C object lib/librte_eal.a.p/eal_common_rte_malloc.c.o [56/1949] Compiling C object lib/librte_eal.a.p/eal_common_malloc_heap.c.o [57/1949] Compiling C object lib/librte_eal.a.p/eal_common_rte_service.c.o ninja: build stopped *Build Failed #5: OS: UB2004-32 Target: i686-native-linuxapp-gcc FAILED: lib/librte_eal.a.p/eal_common_rte_thread.c.o gcc -Ilib/librte_eal.a.p -Ilib -I../lib -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 -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 -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation '-DABI_VERSION="21.3"' -DRTE_LIBEAL_USE_GETENTROPY -DRTE_LOG_DEFAULT_LOGTYPE=lib.eal -MD -MQ lib/librte_eal.a.p/eal_common_rte_thread.c.o -MF lib/librte_eal.a.p/eal_common_rte_thread.c.o.d -o lib/librte_eal.a.p/eal_common_rte_thread.c.o -c ../lib/eal/common/rte_thread.c ../lib/eal/common/rte_thread.c: In function ‘rte_thread_create’: ../lib/eal/common/rte_thread.c:217:23: error: passing argument 1 of ‘pthread_create’ from incompatible pointer type [-Werror=incompatible-pointer-types] 217 | ret = pthread_create(&thread_id->opaque_id, attrp, thread_func, args); | ^~~~~~~~~~~~~~~~~~~~~ | | | uintptr_t * {aka unsigned int *} In file included from ../lib/eal/common/rte_thread.c:7: /usr/include/pthread.h:198:50: note: expected ‘pthread_t * restrict’ {aka ‘long unsigned int * restrict’} but argument is of type ‘uintptr_t *’ {aka ‘unsigned int *’} 198 | extern int pthread_create (pthread_t *__restrict __newthread, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ cc1: all warnings being treated as errors [49/2247] Compiling C object lib/librte_eal.a.p/eal_common_malloc_mp.c.o [50/2247] Compiling C object lib/librte_eal.a.p/eal_unix_eal_file.c.o [51/2247] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_dynmem.c.o [52/2247] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_options.c.o [53/2247] Compiling C object lib/librte_mbuf.a.p/mbuf_rte_mbuf.c.o [54/2247] Compiling C object lib/librte_eal.a.p/eal_common_rte_service.c.o [55/2247] Compiling C object lib/librte_eal.a.p/eal_common_rte_random.c.o [56/2247] Compiling C object lib/librte_eal.a.p/eal_common_rte_malloc.c.o [57/2247] Compiling C object lib/librte_eal.a.p/eal_common_malloc_heap.c.o ninja: build stopped DPDK STV team