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 5711341C6D; Sat, 11 Feb 2023 14:46:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E2ECD40E25; Sat, 11 Feb 2023 14:46:20 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 3C98A40E03 for ; Sat, 11 Feb 2023 14:46:20 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 2380B41C6E; Sat, 11 Feb 2023 14:46:20 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1159] lib/vhost build failure with clang 3.4.2 Date: Sat, 11 Feb 2023 13:46:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: vhost/virtio X-Bugzilla-Version: 23.03 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alialnu@nvidia.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=16761231790.447fd68Fb.2388684 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 --16761231790.447fd68Fb.2388684 Date: Sat, 11 Feb 2023 14:46:19 +0100 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=3D1159 Bug ID: 1159 Summary: lib/vhost build failure with clang 3.4.2 Product: DPDK Version: 23.03 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: vhost/virtio Assignee: dev@dpdk.org Reporter: alialnu@nvidia.com Target Milestone: --- ``` FAILED: lib/librte_vhost.a.p/vhost_iotlb.c.o clang -Ilib/librte_vhost.a.p -Ilib -I../../root/dpdk/lib -Ilib/vhost -I../../root/dpdk/lib/vhost -I. -I../../root/dpdk -Iconfig -I../../root/dpdk/config -Ilib/eal/include -I../../root/dpdk/lib/eal/include -Ilib/eal/linux/include -I../../root/dpdk/lib/eal/linux/include -Ilib/eal/x86/include -I../../root/dpdk/lib/eal/x86/include -Ilib/eal/common -I../../root/dpdk/lib/eal/common -Ilib/eal -I../../root/dpdk/lib/eal -Ilib/kvargs -I../../root/dpdk/lib/kvargs -Ilib/metrics -I../../root/dpdk/lib/metrics -Ilib/telemetry -I../../root/dpdk/lib/telemet= ry -Ilib/ethdev -I../../root/dpdk/lib/ethdev -Ilib/net -I../../root/dpdk/lib/n= et -Ilib/mbuf -I../../root/dpdk/lib/mbuf -Ilib/mempool -I../../root/dpdk/lib/mempool -Ilib/ring -I../../root/dpdk/lib/ring -Ilib/m= eter -I../../root/dpdk/lib/meter -Ilib/cryptodev -I../../root/dpdk/lib/cryptodev -Ilib/rcu -I../../root/dpdk/lib/rcu -Ilib/hash -I../../root/dpdk/lib/hash -Ilib/pci -I../../root/dpdk/lib/pci -Ilib/dmadev -I../../root/dpdk/lib/dmad= ev -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-= pch -Wextra -Werror -O2 -g -include rte_config.h -Wcast-qual -Wdeprecated -Wfor= mat -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 -fPIC -march=3Dnative -mno-av= x512f -mno-avx512f -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -fno-strict-alia= sing -DRTE_LOG_DEFAULT_LOGTYPE=3Dlib.vhost -DRTE_ANNOTATE_LOCKS -Wthread-safety = -MD -MQ lib/librte_vhost.a.p/vhost_iotlb.c.o -MF lib/librte_vhost.a.p/vhost_iotlb.c.o.d -o lib/librte_vhost.a.p/vhost_iotlb.= c.o -c ../../root/dpdk/lib/vhost/iotlb.c In file included from ../../root/dpdk/lib/vhost/iotlb.c:11: In file included from ../../root/dpdk/lib/vhost/iotlb.h:10: ../../root/dpdk/lib/vhost/vhost.h:518:2: error: GCC does not allow assert_exclusive_lock attribute in this position on a function definition [-Werror,-Wgcc-compat] __rte_assert_exclusive_lock(&vq->access_lock) ^ ../../root/dpdk/lib/eal/include/rte_lock_annotations.h:29:38: note: expanded from macro '__rte_assert_exclusive_lock' __attribute__((assert_exclusive_lock(__VA_ARGS__))) ^ 1 error generated. ``` OS: CentOS Linux 7 clang: 3.4.2 --=20 You are receiving this mail because: You are the assignee for the bug.= --16761231790.447fd68Fb.2388684 Date: Sat, 11 Feb 2023 14:46:19 +0100 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 1159
Summary lib/vhost build failure with clang 3.4.2
Product DPDK
Version 23.03
Hardware All
OS All
Status UNCONFIRMED
Severity normal
Priority Normal
Component vhost/virtio
Assignee dev@dpdk.org
Reporter alialnu@nvidia.com
Target Milestone ---

```
FAILED: lib/librte_vhost.a.p/vhost_iotlb.c.o
clang -Ilib/librte_vhost.a.p -Ilib -I../../root/dpdk/lib -Ilib/vhost
-I../../root/dpdk/lib/vhost -I. -I../../root/dpdk -Iconfig
-I../../root/dpdk/config -Ilib/eal/include -I../../root/dpdk/lib/eal/include
-Ilib/eal/linux/include -I../../root/dpdk/lib/eal/linux/include
-Ilib/eal/x86/include -I../../root/dpdk/lib/eal/x86/include -Ilib/eal/common
-I../../root/dpdk/lib/eal/common -Ilib/eal -I../../root/dpdk/lib/eal
-Ilib/kvargs -I../../root/dpdk/lib/kvargs -Ilib/metrics
-I../../root/dpdk/lib/metrics -Ilib/telemetry -I../../root/dpdk/lib/telemet=
ry
-Ilib/ethdev -I../../root/dpdk/lib/ethdev -Ilib/net -I../../root/dpdk/lib/n=
et
-Ilib/mbuf -I../../root/dpdk/lib/mbuf -Ilib/mempool
-I../../root/dpdk/lib/mempool -Ilib/ring -I../../root/dpdk/lib/ring -Ilib/m=
eter
-I../../root/dpdk/lib/meter -Ilib/cryptodev -I../../root/dpdk/lib/cryptodev
-Ilib/rcu -I../../root/dpdk/lib/rcu -Ilib/hash -I../../root/dpdk/lib/hash
-Ilib/pci -I../../root/dpdk/lib/pci -Ilib/dmadev -I../../root/dpdk/lib/dmad=
ev
-Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-=
pch
-Wextra -Werror -O2 -g -include rte_config.h -Wcast-qual -Wdeprecated -Wfor=
mat
-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 -fPIC -march=3Dnative -mno-av=
x512f
-mno-avx512f -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -fno-strict-alia=
sing
-DRTE_LOG_DEFAULT_LOGTYPE=3Dlib.vhost -DRTE_ANNOTATE_LOCKS -Wthread-safety =
-MD
-MQ lib/librte_vhost.a.p/vhost_iotlb.c.o -MF
lib/librte_vhost.a.p/vhost_iotlb.c.o.d -o lib/librte_vhost.a.p/vhost_iotlb.=
c.o
-c ../../root/dpdk/lib/vhost/iotlb.c
In file included from ../../root/dpdk/lib/vhost/iotlb.c:11:
In file included from ../../root/dpdk/lib/vhost/iotlb.h:10:
../../root/dpdk/lib/vhost/vhost.h:518:2: error: GCC does not allow
assert_exclusive_lock attribute in this position on a function definition
[-Werror,-Wgcc-compat]
        __rte_assert_exclusive_lock(&vq->access_lock)
        ^
../../root/dpdk/lib/eal/include/rte_lock_annotations.h:29:38: note: expanded
from macro '__rte_assert_exclusive_lock'
        __attribute__((assert_exclusive_lock(__VA_ARGS__)))
                                            ^
1 error generated.
```

OS: CentOS Linux 7
clang: 3.4.2
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --16761231790.447fd68Fb.2388684--