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 97B544548F; Thu, 20 Jun 2024 03:04:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 746EC402A3; Thu, 20 Jun 2024 03:04:31 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 6E6E040273 for ; Thu, 20 Jun 2024 03:04:30 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 6223F45491; Thu, 20 Jun 2024 03:04:30 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [DPDK/meson Bug 1466] [dpdk-24.07] clang failed to compile DPDK when using parameter "-Db_sanitize=address" Date: Thu, 20 Jun 2024 01:04:30 +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: 24.07 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: songx.jiale@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: multipart/alternative; boundary=17188454700.4D0590CFd.2798556 Content-Transfer-Encoding: 7bit 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 --17188454700.4D0590CFd.2798556 Date: Thu, 20 Jun 2024 03:04:30 +0200 MIME-Version: 1.0 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 https://bugs.dpdk.org/show_bug.cgi?id=3D1466 Bug ID: 1466 Summary: [dpdk-24.07] clang failed to compile DPDK when using parameter "-Db_sanitize=3Daddress" Product: DPDK Version: 24.07 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: meson Assignee: dev@dpdk.org Reporter: songx.jiale@intel.com Target Milestone: --- [Environment] DPDK version:=20 dodk-24.07.0-rc0: 01527d7fd83568476432355da1acd36fb8edc384 Other software versions: N/A. OS: Ubuntu 24.04 LTS/6.8.0-31-generic Compiler: clang version 18.1.3 Hardware platform: Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz NIC hardware: Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz NIC driver: N/A NIC firmware: N/A [Test Setup] 1. CC=3Dclang meson --werror -Denable_kmods=3DTrue -Dbuildtype=3Ddebug -Db_lundef=3Dfalse -Db_sanitize=3Daddress x86_64-native-linuxapp-clang 2. ninja -C x86_64-native-linuxapp-clang [Show the output from the previous commands.] [676/2844] Compiling C object drivers/librte_bus_fslmc.a.p/meson-generated_.._rte_bus_fslmc.pmd.c.o FAILED: drivers/librte_bus_fslmc.a.p/meson-generated_.._rte_bus_fslmc.pmd.c= .o clang -Idrivers/librte_bus_fslmc.a.p -Idrivers -I../drivers -Idrivers/bus/f= slmc -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/log -I../lib/log -Ilib/metr= ics -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 -Ilib/dmadev -I../lib/dmadev -fdiagnostics-color=3Dalways -fsanitize=3Daddress -fno-omit-frame-pointer -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Wextra -Werror -std=3Dc11 -O0 -g -include rte_config.h -Wcast-qual -Wdeprecated -W= format -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 -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=3Dbus.fslmc -DRTE_ANNOTATE= _LOCKS -Wthread-safety -MD -MQ drivers/librte_bus_fslmc.a.p/meson-generated_.._rte_bus_fslmc.pmd.c.o -MF drivers/librte_bus_fslmc.a.p/meson-generated_.._rte_bus_fslmc.pmd.c.o.d -o drivers/librte_bus_fslmc.a.p/meson-generated_.._rte_bus_fslmc.pmd.c.o -c drivers/rte_bus_fslmc.pmd.c drivers/rte_bus_fslmc.pmd.c:4:12: error: redefinition of '_pmd_info' 4 | const char _pmd_info[] __attribute__((used)) =3D "PMD_INFO_STRING=3D {\"name\": \"\", \"pci_ids\": []}"; | ^ drivers/rte_bus_fslmc.pmd.c:2:12: note: previous definition is here 2 | const char _pmd_info[] __attribute__((used)) =3D "PMD_INFO_STRING=3D {\"name\": \"\", \"pci_ids\": []}"; | ^ drivers/rte_bus_fslmc.pmd.c:6:12: error: redefinition of '_pmd_info' 6 | const char _pmd_info[] __attribute__((used)) =3D "PMD_INFO_STRING=3D {\"name\": \"\", \"pci_ids\": []}"; | ^ drivers/rte_bus_fslmc.pmd.c:2:12: note: previous definition is here 2 | const char _pmd_info[] __attribute__((used)) =3D "PMD_INFO_STRING=3D {\"name\": \"\", \"pci_ids\": []}"; | ^ 2 errors generated. [Expected Result] DPDK compilation successful. note: Successfully compiled on Ubuntu 22.04. --=20 You are receiving this mail because: You are the assignee for the bug.= --17188454700.4D0590CFd.2798556 Date: Thu, 20 Jun 2024 03:04:30 +0200 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1466
Summary [dpdk-24.07] clang failed to compile DPDK when using paramete= r "-Db_sanitize=3Daddress"
Product DPDK
Version 24.07
Hardware x86
OS Linux
Status UNCONFIRMED
Severity normal
Priority Normal
Component meson
Assignee dev@dpdk.org
Reporter songx.jiale@intel.com
Target Milestone ---

[Environment]
DPDK version:=20
dodk-24.07.0-rc0: 01527d7fd83568476432355da1acd36fb8edc384
Other software versions: N/A.
OS: Ubuntu 24.04 LTS/6.8.0-31-generic
Compiler: clang version 18.1.3
Hardware platform: Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz
NIC hardware: Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz
NIC driver: N/A
NIC firmware: N/A

[Test Setup]
1. CC=3Dclang meson --werror -Denable_kmods=3DTrue -Dbuildtype=3Ddebug
-Db_lundef=3Dfalse -Db_sanitize=3Daddress x86_64-native-linuxapp-clang
2. ninja -C x86_64-native-linuxapp-clang

[Show the output from the previous commands.]

[676/2844] Compiling C object
drivers/librte_bus_fslmc.a.p/meson-generated_.._rte_bus_fslmc.pmd.c.o
FAILED: drivers/librte_bus_fslmc.a.p/meson-generated_.._rte_bus_fslmc.pmd.c=
.o
clang -Idrivers/librte_bus_fslmc.a.p -Idrivers -I../drivers -Idrivers/bus/f=
slmc
-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/log -I../lib/log -Ilib/metr=
ics
-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 -Ilib/dmadev
-I../lib/dmadev -fdiagnostics-color=3Dalways -fsanitize=3Daddress
-fno-omit-frame-pointer -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Wextra
-Werror -std=3Dc11 -O0 -g -include rte_config.h -Wcast-qual -Wdeprecated -W=
format
-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 -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API
-Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=3Dbus.fslmc -DRTE_ANNOTATE=
_LOCKS
-Wthread-safety -MD -MQ
drivers/librte_bus_fslmc.a.p/meson-generated_.._rte_bus_fslmc.pmd.c.o -MF
drivers/librte_bus_fslmc.a.p/meson-generated_.._rte_bus_fslmc.pmd.c.o.d -o
drivers/librte_bus_fslmc.a.p/meson-generated_.._rte_bus_fslmc.pmd.c.o -c
drivers/rte_bus_fslmc.pmd.c
drivers/rte_bus_fslmc.pmd.c:4:12: error: redefinition of '_pmd_info'
    4 | const char _pmd_info[] __attribute__((used)) =3D "PMD_INFO_STR=
ING=3D
{\"name\": \"\", \"pci_ids\": []}";
      |            ^
drivers/rte_bus_fslmc.pmd.c:2:12: note: previous definition is here
    2 | const char _pmd_info[] __attribute__((used)) =3D "PMD_INFO_STR=
ING=3D
{\"name\": \"\", \"pci_ids\": []}";
      |            ^
drivers/rte_bus_fslmc.pmd.c:6:12: error: redefinition of '_pmd_info'
    6 | const char _pmd_info[] __attribute__((used)) =3D "PMD_INFO_STR=
ING=3D
{\"name\": \"\", \"pci_ids\": []}";
      |            ^
drivers/rte_bus_fslmc.pmd.c:2:12: note: previous definition is here
    2 | const char _pmd_info[] __attribute__((used)) =3D "PMD_INFO_STR=
ING=3D
{\"name\": \"\", \"pci_ids\": []}";
      |            ^
2 errors generated.

[Expected Result]

DPDK compilation successful.
note: Successfully compiled on Ubuntu 22.04.
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --17188454700.4D0590CFd.2798556--