Skip to contentSkip to conversation

lib/eal meson build error with clang15.0.4 on Fedora37

Bug 1130 [email protected] 1 participant 2 messages Nov 18, 2022 – Nov 27, 2022

lore
Share & tools
lore
#0 lore raw

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

            Bug ID: 1130
           Summary: [22.11-rc3] lib/eal meson build error with clang15.0.4
                    on Fedora37
           Product: DPDK
           Version: 22.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: critical
          Priority: Normal
         Component: core
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

[git]
commit 04f68bb92b6fee621ddf0f0948f5565fa31a84fd (HEAD, tag: v22.11-rc3)

Author: Thomas Monjalon <[email protected]>
Date:   Tue Nov 15 18:21:34 2022 +0100

version: 22.11-rc3

[OS version]
Fedora Linux 37 (Server Edition)
Linux 6.0.7-301.fc37.x86_64
clang version 15.0.4 (Fedora 15.0.4-1.fc37)

[bad commit]
The new fedora37 found this problem, while the old fedora36 did not。

[Test setup]
CC=clang meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all --default-library=static x86_64-native-linuxapp-clang
ninja -j 10 -C x86_64-native-linuxapp-clang

[error log]
[root@localhost dpdk]# ninja -j 10 -C x86_64-native-linuxapp-clang/
ninja: Entering directory `x86_64-native-linuxapp-clang/' [34/3596] Compiling C object lib/librte_eal.a.p/eal_common_rte_service.c.o
FAILED: lib/librte_eal.a.p/eal_common_rte_service.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/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 -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API '-DABI_VERSION="22.2"' -DRTE_LIBEAL_USE_GETENTROPY -DRTE_LOG_DEFAULT_LOGTYPE=lib.eal -MD -MQ lib/librte_eal.a.p/eal_common_rte_service.c.o -MF lib/librte_eal.a.p/eal_common_rte_service.c.o.d -o lib/librte_eal.a.p/eal_common_rte_service.c.o -c ../lib/eal/common/rte_service.c ../lib/eal/common/rte_service.c:100:6: error: variable 'count' set but not used [-Werror,-Wunused-but-set-variable]

        int count = 0;
            ^

1 error generated.
[43/3596] Generating lib/telemetry.sym_chk with a custom command (wrapped by meson to capture output)
ninja: build stopped: subcommand failed.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

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

Thomas Monjalon ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|CONFIRMED                   |RESOLVED

--- Comment #3 from Thomas Monjalon ([email protected]) --- Resolved in http://git.dpdk.org/dpdk/commit/?id=b41e574c2d

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.