DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [DPDK/core Bug 1974] [dpdk24.11.7-rc1] DPDK build failed with clang on Ubuntu26.04
Date: Thu, 30 Jul 2026 07:12:41 +0000	[thread overview]
Message-ID: <bug-1974-3@http.bugs.dpdk.org/> (raw)

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: dev@dpdk.org
          Reporter: daxuex.gao@intel.com
  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	other threads:[~2026-07-30  7:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-30  7:12 bugzilla [this message]
2026-08-11 13:23 ` [DPDK/core Bug 1974] [dpdk24.11.7-rc1] DPDK build failed with clang on Ubuntu26.04 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-1974-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox