http://bugs.dpdk.org/show_bug.cgi?id=1974

            Bug ID: 1974
           Summary: [dpdk24.11.7-rc1] DPDK build failed with clang on
                    Ubuntu26.04
           Product: DPDK
           Version: 24.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: core
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

[Environment]
DPDK version: 
 commit e06a047b5b00c97462ddc8208d7f152c6766b378 (HEAD, tag: v24.11.7-rc1,
origin/24.11)
OS: Ubuntu26.04/7.0.0-14-generic
Compiler: clang version 21.1.8

[Test Setup]
# build cmd: 
CC=clang meson --werror -Dlibdir=lib -Dexamples=all --default-library=static
x86_64-native-linuxapp-clang
ninja -C x86_64-native-linuxapp-clang/

[Output]
ninja: Entering directory `x86_64-native-linuxapp-clang/'
[2926/3392] Compiling C object app/dpdk-test-bbdev.p/test-bbdev_test_bbdev.c.o
FAILED: app/dpdk-test-bbdev.p/test-bbdev_test_bbdev.c.o
clang -Iapp/dpdk-test-bbdev.p -Iapp -I../app -Ilib/bbdev -I../lib/bbdev -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 -I../kernel/linux -Ilib/eal/common -I../lib/eal/common
-Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log
-Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/mbuf
-I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring
-Idrivers/bus/vdev -I../drivers/bus/vdev -Idrivers/baseband/fpga_lte_fec
-I../drivers/baseband/fpga_lte_fec -Ilib/pci -I../lib/pci -Idrivers/bus/pci
-I../drivers/bus/pci -I../drivers/bus/pci/linux
-Idrivers/baseband/fpga_5gnr_fec -I../drivers/baseband/fpga_5gnr_fec
-Idrivers/baseband/acc -I../drivers/baseband/acc -Idrivers/baseband/la12xx
-I../drivers/baseband/la12xx -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64
-Wall -Winvalid-pch -Wextra -Werror -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-missing-field-initializers -D_GNU_SOURCE
-march=native -mrtm -DALLOW_EXPERIMENTAL_API -MD -MQ
app/dpdk-test-bbdev.p/test-bbdev_test_bbdev.c.o -MF
app/dpdk-test-bbdev.p/test-bbdev_test_bbdev.c.o.d -o
app/dpdk-test-bbdev.p/test-bbdev_test_bbdev.c.o -c
../app/test-bbdev/test_bbdev.c
../app/test-bbdev/test_bbdev.c:819:4: error: format specifies type 'unsigned
char' but the argument has type 'uint16_t' (aka 'unsigned short')
[-Werror,-Wformat]
  816 |         TEST_ASSERT(dev1->data->dev_id < RTE_BBDEV_MAX_DEVS,
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  817 |                         "Failed test rte_bbdev_allocate: "
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  818 |                         "invalid dev_id %" PRIu8 ", max number of
devices %d ",
      |                        
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  819 |                         dev1->data->dev_id, RTE_BBDEV_MAX_DEVS);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-bbdev/main.h:30:37: note: expanded from macro 'TEST_ASSERT'
   30 |                                 msg "\n", __func__, __LINE__,
##__VA_ARGS__); \
      |                                 ~~~                            
^~~~~~~~~~~
1 error generated.
[2937/3392] Compiling C object
app/dpdk-test-bbdev.p/test-bbdev_test_bbdev_perf.c.o
ninja: build stopped: subcommand failed.

[Expected Result]
Build Passed

This issue was discovered on the new Ubuntu 26 OS.
No issues were encountered when running version v24.11.7-rc1 on Ubuntu 24.04.
Ubuntu 24.04 environment:
  Ubuntu 24.04.3 LTS/Linux 6.8.0-41-generic
  Compiler: clang 18.1.3

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

Reply via email to