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 61404A034F; Thu, 11 Nov 2021 06:42:12 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EA7DB40E28; Thu, 11 Nov 2021 06:42:11 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 6717240E03 for ; Thu, 11 Nov 2021 06:42:10 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 300B4A0548; Thu, 11 Nov 2021 06:42:10 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 881] [dpdk-21.11] drivers/libtmp_rte_bus_fslmc.a.p build failed on OS Fedora35 with clang 13.0.0 Date: Thu, 11 Nov 2021 05:42:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: meson X-Bugzilla-Version: 21.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: longfengx.liang@intel.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org https://bugs.dpdk.org/show_bug.cgi?id=3D881 Bug ID: 881 Summary: [dpdk-21.11] drivers/libtmp_rte_bus_fslmc.a.p build failed on OS Fedora35 with clang 13.0.0 Product: DPDK Version: 21.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: meson Assignee: dev@dpdk.org Reporter: longfengx.liang@intel.com Target Milestone: --- 1.DPDK version: commit 19d024003dfce0018c9e52635b78efdc6e1c172a (HEAD -> main, origin/main, origin/HEAD) Author: David Marchand Date: Mon Nov 8 11:08:08 2021 +0100 build: factorize jansson availability check Since two components wants to know if the jansson library is available, move it to config/. Signed-off-by: David Marchand 2.OS version: OS: Fedora35 /kernel 5.14.16-301.fc35.x86_64 gcc version: gcc (GCC) 11.2.1 clang version: clang version 13.0.0 (Fedora 13.0.0~rc1-1.fc35) ninja version: 1.10.2.git.kitware.jobserver-1 meson version: 0.59.4 3.build cmd: #CC=3Dclang meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexample= s=3Dall --default-library=3Dstatic x86_64-native-linuxapp-clang #ninja -C x86_64-native-linuxapp-clang/ 4.Test Setup: 1)First,the compile error on Fedora35 is "lib/librte_power.a.p",details as below: ninja: Entering directory `x86_64-native-linuxapp-clang/' [387/3129] Compiling C object lib/librte_power.a.p/power_rte_power_empty_poll.c.o FAILED: lib/librte_power.a.p/power_rte_power_empty_poll.c.o clang -Ilib/librte_power.a.p -Ilib -I../lib -Ilib/power -I../lib/power -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/timer -I../lib/timer -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempo= ol -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -fcolor-diagnostics -D_FILE_OFFSET_BITS=3D64 -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 -fPIC -march=3Dnative -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-cast-qual -DRTE_LOG_DEFAULT_LOGTYPE=3Dlib.power -MD -MQ lib/librte_power.a.p/power_rte_power_empty_poll.c.o -MF lib/librte_power.a.p/power_rte_power_empty_poll.c.o.d -o lib/librte_power.a.p/power_rte_power_empty_poll.c.o -c ../lib/power/rte_power_empty_poll.c ../lib/power/rte_power_empty_poll.c:210:25: error: variable 'tot_ppi' set b= ut not used [-Werror,-Wunused-but-set-variable] uint64_t tot_edpi =3D 0, tot_ppi =3D 0; ^ 1 error generated. [392/3129] Compiling C object lib/librte_power.a.p/power_rte_power_pmd_mgmt= .c.o ninja: build stopped: subcommand failed. 2) Then the devlopment provides the fixed patch: http://patches.dpdk.org/project/dpdk/patch/20211105155351.350403-1-james.r.= harris@intel.com/ 3)When apply this patches,report the new error "drivers/libtmp_rte_bus_fslmc.a.p",details as below: ninja: Entering directory `x86_64-native-linuxapp-clang/' [685/3129] Compiling C object drivers/libtmp_rte_bus_fslmc.a.p/bus_fslmc_fslmc_bus.c.o FAILED: drivers/libtmp_rte_bus_fslmc.a.p/bus_fslmc_fslmc_bus.c.o clang -Idrivers/libtmp_rte_bus_fslmc.a.p -Idrivers -I../drivers -Idrivers/bus/fslmc -I../drivers/bus/fslmc -I../drivers/bus/fslmc/mc -I../drivers/bus/fslmc/qbman/include -I../drivers/bus/fslmc/portal -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 -Idrivers/common/dpaax -I../drivers/common/dpaax -I../drivers/common/dpaax/caamflib -Ilib/eventdev -I../lib/eventdev -Ilib/ring -I../lib/ring -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/memp= ool -Ilib/meter -I../lib/meter -Ilib/hash -I../lib/hash -Ilib/rcu -I../lib/rcu -Ilib/timer -I../lib/timer -Ilib/cryptodev -I../lib/cryptodev -fcolor-diagnostics -D_FILE_OFFSET_BITS=3D64 -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 -fPIC -march=3Dnative -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DRTE_LOG_DEFAULT_LOGTYPE=3Dbus.fslmc -MD -MQ drivers/libtmp_rte_bus_fslmc.a.p/bus_fslmc_fslmc_bus.c.o -MF drivers/libtmp_rte_bus_fslmc.a.p/bus_fslmc_fslmc_bus.c.o.d -o drivers/libtmp_rte_bus_fslmc.a.p/bus_fslmc_fslmc_bus.c.o -c ../drivers/bus/fslmc/fslmc_bus.c ../drivers/bus/fslmc/fslmc_bus.c:318:6: error: variable 'device_count' set = but not used [-Werror,-Wunused-but-set-variable] int device_count =3D 0; ^ 1 error generated. [690/3129] Generating pipeline.sym_chk with a custom command (wrapped by me= son to capture output) ninja: build stopped: subcommand failed. Please take a look,thanks a lot. --=20 You are receiving this mail because: You are the assignee for the bug.=