From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3897E42FAA for ; Mon, 31 Jul 2023 23:09:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E8534161A; Mon, 31 Jul 2023 23:09:16 +0200 (CEST) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by mails.dpdk.org (Postfix) with ESMTP id A144E4161A for ; Mon, 31 Jul 2023 23:09:14 +0200 (CEST) Received: from loongson.cn (unknown [10.40.46.153]) by gateway (Coremail) with SMTP id _____8AxTev3Ishk1JANAA--.26851S3; Tue, 01 Aug 2023 05:09:12 +0800 (CST) Received: from localhost.localdomain (unknown [10.40.46.153]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxzyP1IshkkA5DAA--.2986S3; Tue, 01 Aug 2023 05:09:09 +0800 (CST) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.15.2/8.15.2) with ESMTPS id 36VKswKj529663 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 1 Aug 2023 04:54:58 +0800 Received: (from root@localhost) by localhost.localdomain (8.15.2/8.15.2/Submit) id 36VKsvwb529662; Tue, 1 Aug 2023 04:54:57 +0800 Date: Tue, 1 Aug 2023 04:54:57 +0800 From: qemudev@loongson.cn Message-Id: <202307312054.36VKsvwb529662@localhost.localdomain> Content-Type: text/plain; charset="utf-8" Subject: |FAILURE| pw129758-129760 [PATCH 4/4] eal: adapt rte spinlock and rwlock APIs to use C11 atomics In-Reply-To: <1690837661-27573-5-git-send-email-roretzla@linux.microsoft.com> References: <1690837661-27573-5-git-send-email-roretzla@linux.microsoft.com> To: test-report@dpdk.org Cc: Tyler Retzlaff , zhoumin@loongson.cn X-CM-TRANSID: AQAAf8AxzyP1IshkkA5DAA--.2986S3 X-CM-SenderInfo: pthp3vthy6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: test-report-bounces@dpdk.org Test-Label: loongarch-compilation Test-Status: FAILURE http://dpdk.org/patch/129760 _ninja build failure_ Submitter: Tyler Retzlaff Date: Mon, 31 Jul 2023 14:07:38 -0700 DPDK git baseline: Repo:dpdk Branch: main CommitID: 0ae35eceb9e4569b0814fcf671b4455301bb7518 129758-129760 --> ninja build failed Test environment and result as below: +---------------------+----------------+ | Environment | compilation | +---------------------+----------------+ | Loongnix-Server 8.3 | FAIL | +---------------------+----------------+ Loongnix-Server 8.3 Kernel: 4.19.190+ Compiler: gcc 8.3 Ninja build logs: -------------------------------BEGIN LOGS---------------------------- FAILED: lib/librte_rcu.a.p/rcu_rte_rcu_qsbr.c.o cc -Ilib/librte_rcu.a.p -Ilib -I../lib -Ilib/rcu -I../lib/rcu -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/loongarch/include -I../lib/eal/loongarch/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/ring -I../lib/ring -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -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-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=loongarch64 -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.rcu -MD -MQ lib/librte_rcu.a.p/rc u_rte_rcu_qsbr.c.o -MF lib/librte_rcu.a.p/rcu_rte_rcu_qsbr.c.o.d -o lib/librte_rcu.a.p/rcu_rte_rcu_qsbr.c.o -c ../lib/rcu/rte_rcu_qsbr.c In file included from ../lib/ring/rte_ring_elem.h:24, from ../lib/rcu/rte_rcu_qsbr.c:17: ./lib/ring/rte_ring_elem_pvt.h: In function ‘__rte_ring_enqueue_elems_128’: ./lib/ring/rte_ring_elem_pvt.h:102:2: error: unknown type name ‘rte_int128_t’; did you mean ‘rte_iova_t’? rte_int128_t *ring = (rte_int128_t *)&r[1]; ^~~~~~~~~~~~ rte_iova_t ./lib/ring/rte_ring_elem_pvt.h:102:24: error: ‘rte_int128_t’ undeclared (first use in this function); did you mean ‘rte_iova_t’? rte_int128_t *ring = (rte_int128_t *)&r[1]; ^~~~~~~~~~~~ rte_iova_t ./lib/ring/rte_ring_elem_pvt.h:102:24: note: each undeclared identifier is reported only once for each function it appears in ./lib/ring/rte_ring_elem_pvt.h:102:38: error: expected expression before ‘)’ token rte_int128_t *ring = (rte_int128_t *)&r[1]; ^ ./lib/ring/rte_ring_elem_pvt.h:103:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token const rte_int128_t *obj = (const rte_int128_t *)obj_table; ^ ./lib/ring/rte_ring_elem_pvt.h:103:22: error: ‘obj’ undeclared (first use in this function) const rte_int128_t *obj = (const rte_int128_t *)obj_table; ^~~ ./lib/ring/rte_ring_elem_pvt.h:103:34: error: expected ‘)’ before ‘rte_int128_t’ const rte_int128_t *obj = (const rte_int128_t *)obj_table; ~ ^~~~~~~~~~~~~ ) ./lib/ring/rte_ring_elem_pvt.h:103:21: warning: type defaults to ‘int’ in type name [-Wimplicit-int] const rte_int128_t *obj = (const rte_int128_t *)obj_table; ^ ./lib/ring/rte_ring_elem_pvt.h:103:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] const rte_int128_t *obj = (const rte_int128_t *)obj_table; ^ ./lib/ring/rte_ring_elem_pvt.h: In function ‘__rte_ring_dequeue_elems_128’: ./lib/ring/rte_ring_elem_pvt.h:236:2: error: unknown type name ‘rte_int128_t’; did you mean ‘rte_iova_t’? rte_int128_t *ring = (rte_int128_t *)&r[1]; ^~~~~~~~~~~~ rte_iova_t ./lib/ring/rte_ring_elem_pvt.h:236:24: error: ‘rte_int128_t’ undeclared (first use in this function); did you mean ‘rte_iova_t’? rte_int128_t *ring = (rte_int128_t *)&r[1]; ^~~~~~~~~~~~ rte_iova_t ./lib/ring/rte_ring_elem_pvt.h:236:38: error: expected expression before ‘)’ token rte_int128_t *ring = (rte_int128_t *)&r[1]; ^ ./lib/ring/rte_ring_elem_pvt.h:237:16: error: ‘obj’ undeclared (first use in this function) rte_int128_t *obj = (rte_int128_t *)obj_table; ^~~ ./lib/ring/rte_ring_elem_pvt.h:237:37: error: expected expression before ‘)’ token rte_int128_t *obj = (rte_int128_t *)obj_table; ^ ./lib/ring/rte_ring_elem_pvt.h:231:9: warning: unused parameter ‘obj_table’ [-Wunused-parameter] void *obj_table, uint32_t n) ~~~~~~^~~~~~~~~ In file included from ../lib/ring/rte_ring_elem_pvt.h:293, from ../lib/ring/rte_ring_elem.h:24, from ../lib/rcu/rte_rcu_qsbr.c:17: ./lib/ring/rte_ring_generic_pvt.h: In function ‘__rte_ring_update_tail’: ./lib/ring/rte_ring_generic_pvt.h:18:3: warning: implicit declaration of function ‘rte_smp_wmb’; did you mean ‘rte_mp_reply’? [-Wimplicit-function-declaration] rte_smp_wmb(); ^~~~~~~~~~~ rte_mp_reply ./lib/ring/rte_ring_generic_pvt.h:18:3: warning: nested extern declaration of ‘rte_smp_wmb’ [-Wnested-externs] ./lib/ring/rte_ring_generic_pvt.h:20:3: warning: implicit declaration of function ‘rte_smp_rmb’; did you mean ‘rte_mp_reply’? [-Wimplicit-function-declaration] rte_smp_rmb(); ^~~~~~~~~~~ rte_mp_reply ./lib/ring/rte_ring_generic_pvt.h:20:3: warning: nested extern declaration of ‘rte_smp_rmb’ [-Wnested-externs] [16/2347] Compiling C object lib/librte_eal.a.p/eal_common_rte_version.c.o [17/2347] Compiling C object lib/librte_kvargs.a.p/kvargs_rte_kvargs.c.o [18/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_hypervisor.c.o [19/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_mcfg.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/include/rte_eal_memconfig.h:11, from ../lib/eal/common/eal_common_mcfg.c:5: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [20/2347] Compiling C object lib/librte_telemetry.a.p/telemetry_telemetry_data.c.o [21/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_interrupts.c.o [22/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_devargs.c.o [23/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_bus.c.o [24/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_memalloc.c.o [25/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_trace_points.c.o [26/2347] Compiling C object lib/librte_eal.a.p/eal_unix_eal_file.c.o [27/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_memzone.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/common/malloc_heap.h:12, from ../lib/eal/common/eal_common_memzone.c:20: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [28/2347] Compiling C object lib/librte_eal.a.p/eal_common_rte_keepalive.c.o [29/2347] Compiling C object lib/librte_eal.a.p/eal_unix_eal_debug.c.o [30/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_log.c.o [31/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_dev.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/common/eal_common_dev.c:17: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [32/2347] Compiling C object lib/librte_eal.a.p/eal_common_malloc_elem.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/common/malloc_heap.h:12, from ../lib/eal/common/malloc_elem.c:19: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [33/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_thread.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/common/eal_trace.h:11, from ../lib/eal/common/eal_common_thread.c:23: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [34/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_lcore.c.o [35/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_trace_ctf.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/common/eal_trace.h:11, from ../lib/eal/common/eal_common_trace_ctf.c:15: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [36/2347] Compiling C object lib/librte_eal.a.p/eal_common_hotplug_mp.c.o [37/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_dynmem.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/common/eal_memcfg.h:11, from ../lib/eal/common/eal_common_dynmem.c:15: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [38/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_trace_utils.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/common/eal_trace.h:11, from ../lib/eal/common/eal_common_trace_utils.c:15: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [39/2347] Compiling C object lib/librte_eal.a.p/eal_common_rte_malloc.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/include/rte_eal_memconfig.h:11, from ../lib/eal/common/rte_malloc.c:15: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [40/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_trace.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/common/eal_trace.h:11, from ../lib/eal/common/eal_common_trace.c:16: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [41/2347] Compiling C object lib/librte_eal.a.p/eal_common_malloc_mp.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/common/eal_memcfg.h:11, from ../lib/eal/common/malloc_mp.c:13: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [42/2347] Compiling C object lib/librte_eal.a.p/eal_common_malloc_heap.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/include/rte_eal_memconfig.h:11, from ../lib/eal/common/malloc_heap.c:14: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [43/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_fbarray.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/common/eal_common_fbarray.c:16: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [44/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_memory.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/include/rte_eal_memconfig.h:11, from ../lib/eal/common/eal_common_memory.c:16: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [45/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_proc.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/common/eal_memcfg.h:11, from ../lib/eal/common/eal_common_proc.c:30: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [46/2347] Compiling C object lib/librte_eal.a.p/eal_common_rte_service.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/common/rte_service.c:19: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [47/2347] Compiling C object lib/librte_telemetry.a.p/telemetry_telemetry.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/telemetry/telemetry.c:20: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ [48/2347] Compiling C object lib/librte_eal.a.p/eal_common_eal_common_options.c.o In file included from ../lib/eal/loongarch/include/rte_spinlock.h:13, from ../lib/eal/common/eal_trace.h:11, from ../lib/eal/common/eal_common_options.c:44: ./lib/eal/include/generic/rte_spinlock.h: In function ‘rte_spinlock_lock’: ./lib/eal/include/generic/rte_spinlock.h:72:27: warning: cast discards ‘volatile’ qualifier from pointer target type [-Wcast-qual] rte_wait_until_equal_32((uint32_t _Atomic *)&sl->locked, ^ ninja: build stopped: subcommand failed. -------------------------------END LOGS------------------------------