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 DA2B3A0C52; Mon, 25 Oct 2021 12:46:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8108440E32; Mon, 25 Oct 2021 12:46:30 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 4D374407FF for ; Mon, 25 Oct 2021 12:46:29 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 2D4EFA0C53; Mon, 25 Oct 2021 12:46:29 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Mon, 25 Oct 2021 10:46:28 +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: 21.08 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: michallinuxstuff@gmail.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: 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 MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 836] DPDK doesn't build under meson 0.60 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 Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D836 Bug ID: 836 Summary: DPDK doesn't build under meson 0.60 Product: DPDK Version: 21.08 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: major Priority: Normal Component: meson Assignee: dev@dpdk.org Reporter: michallinuxstuff@gmail.com Target Milestone: --- Due to https://github.com/mesonbuild/meson/commit/0a3a9fa0c3ebf45c94d9009a59cead57= 1cbecf7b gen-pmdinfo-cfile.py fails to run `ar x` against the .a files which were created as thin archives. This happens for all the .a files for which meson generates `LINK_ARGS =3D csrDT` (note the T option) inside the build.ninja. Here's a failing trace: ninja: Entering directory `/git_repos/spdk_repo/spdk/dpdk/build-tmp' [243/272] Generating drivers/rte_bus_vdev.pmd.c with a custom command FAILED: drivers/rte_bus_vdev.pmd.c /usr/bin/python3 ../buildtools/gen-pmdinfo-cfile.py /git_repos/spdk_repo/spdk/dpdk/build-tmp/buildtools ar /git_repos/spdk_repo/spdk/dpdk/build-tmp/drivers/libtmp_rte_bus_vdev.a drivers/rte_bus_vdev.pmd.c /usr/bin/python3 ../buildtools/pmdinfogen.py elf ar: `x' cannot be used on thin archives. Traceback (most recent call last): File "/git_repos/spdk_repo/spdk/dpdk/build-tmp/../buildtools/gen-pmdinfo-cfile.p= y", line 28, in run_ar("x") File "/git_repos/spdk_repo/spdk/dpdk/build-tmp/../buildtools/gen-pmdinfo-cfile.p= y", line 23, in run_ar =3D lambda command: subprocess.run( File "/usr/lib64/python3.9/subprocess.py", line 528, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ar', 'x', '/git_repos/spdk_repo/spdk/dpdk/build-tmp/drivers/libtmp_rte_bus_vdev.a']' returned non-zero exit status 1. If I comment the `run_ar("x")` out the build succeeds (my understanding is = that if the .a is indeed a thin archive it consists of only references to .c.o f= iles which are already available so we are not missing anything). Skipping the t= hin .as also seems to be working. That said, my dpdk-fu in terms of its building components is not strong enough, hence I am not really sure what would be r= ight fix here.=20 Reverting to meson < 0.60 (e.g. 0.59.2) also does the trick, but any hints, suggestions as to the right fix would be appreciated. --=20 You are receiving this mail because: You are the assignee for the bug.=