All of lore.kernel.org
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <bug-881-3@http.bugs.dpdk.org/> (raw)

https://bugs.dpdk.org/show_bug.cgi?id=881

            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 <david.marchand@redhat.com>
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 <david.marchand@redhat.com>

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=clang meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all
--default-library=static 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/mempool
-I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter
-fcolor-diagnostics -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
-fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API
-Wno-cast-qual -DRTE_LOG_DEFAULT_LOGTYPE=lib.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 but
not used [-Werror,-Wunused-but-set-variable]
        uint64_t tot_edpi = 0, tot_ppi = 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/mempool
-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=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
-fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API
-DRTE_LOG_DEFAULT_LOGTYPE=bus.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 = 0;
            ^
1 error generated.
[690/3129] Generating pipeline.sym_chk with a custom command (wrapped by meson
to capture output)
ninja: build stopped: subcommand failed.


Please take a look,thanks a lot.

-- 
You are receiving this mail because:
You are the assignee for the bug.

             reply	other threads:[~2021-11-11  5:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-11  5:42 bugzilla [this message]
2021-11-16 12:33 ` [Bug 881] [dpdk-21.11] build failure on Fedora35 with clang 13.0.0 bugzilla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-881-3@http.bugs.dpdk.org/ \
    --to=bugzilla@dpdk.org \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.