Message ID | 20190311173702.24471-1-ncopa@alpinelinux.org (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2F2BD4C8E; Mon, 11 Mar 2019 18:37:30 +0100 (CET) Received: from mx1.tetrasec.net (mx1.tetrasec.net [74.117.190.25]) by dpdk.org (Postfix) with ESMTP id 072472C24 for <dev@dpdk.org>; Mon, 11 Mar 2019 18:37:29 +0100 (CET) Received: from mx1.tetrasec.net (mail.local [127.0.0.1]) by mx1.tetrasec.net (Postfix) with ESMTP id 482C29E1F6A; Mon, 11 Mar 2019 17:37:27 +0000 (UTC) Received: from ncopa-desktop.lan (67.63.200.37.customer.cdi.no [37.200.63.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: n@tanael.org) by mx1.tetrasec.net (Postfix) with ESMTPSA id 568559E1F68; Mon, 11 Mar 2019 17:37:25 +0000 (UTC) From: Natanael Copa <ncopa@alpinelinux.org> To: dev@dpdk.org Cc: Natanael Copa <ncopa@alpinelinux.org> Date: Mon, 11 Mar 2019 18:36:47 +0100 Message-Id: <20190311173702.24471-1-ncopa@alpinelinux.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: [dpdk-dev] [PATCH 00/15] Build fixes for musl libc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
Build fixes for musl libc
|
|
Message
Natanael Copa
March 11, 2019, 5:36 p.m. UTC
A set of patches to fix build with musl libc. I also did a few cleanups wrt macros and fixed a few scary compiler warnings while at it. Please note that those are only compile tested on x86_64 with musl libc. Natanael Copa (15): app/testpmd: replace uint with unsigned int net/cxgbe: replace uint with unsigned int bus/pci: add fallback for out[lwb]_p for non GNU libc bus/pci: factor out various ifdefs in pci_uio_ioport_{read,write} bus/fslmc: fix compile error with musl libc bus/fslmc: remove unused include of error.h net/nfp: build fix for musl libc app/test: include fcntl.h due to use of O_RDONLY app/test: fix setting of -D_GNU_SOURCE with meson bus/dpaa: use warn(3) instead of error(3) to improve portability bus/dpaa: fix warning: "__WORDSIZE" is not defined, evaluates to 0 crypto/dpaa2_sec: build fix for musl libc crypto/dpaa2_sec: simplify pr_{debug,err,warn} macros net/netvsc: fix compile warning for fcntl.h include eal/linux: use gettid(2) for debug message in sigbus_handler app/test-pmd/testpmd.h | 2 +- app/test/meson.build | 2 +- app/test/test_eal_flags.c | 1 + drivers/bus/dpaa/base/fman/netcfg_layer.c | 4 +- drivers/bus/dpaa/base/qbman/bman_driver.c | 6 +- drivers/bus/dpaa/base/qbman/qman_driver.c | 12 ++-- drivers/bus/dpaa/include/compat.h | 2 +- drivers/bus/dpaa/include/fsl_qman.h | 3 +- drivers/bus/fslmc/qbman/include/compat.h | 2 +- drivers/bus/pci/linux/pci_uio.c | 82 ++++++++++++++-------- drivers/crypto/dpaa2_sec/hw/compat.h | 36 +++++----- drivers/net/cxgbe/base/common.h | 18 ++--- drivers/net/netvsc/hn_vf.c | 2 +- drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 2 + lib/librte_eal/linuxapp/eal/eal_dev.c | 8 ++- 15 files changed, 104 insertions(+), 78 deletions(-)
Comments
I'm trying on Alpine Linux to build using make with the patches, and there are quite a few errors saying argp.h doesn't exist. In file included from /root/dpdk/drivers/bus/dpaa/base/fman/netcfg_layer.c:19: /root/dpdk/drivers/bus/dpaa/include/netcfg.h:12:10: fatal error: argp.h: No such file or directory #include <argp.h> In file included from /root/dpdk/drivers/bus/dpaa/rte_dpaa_bus.h:17, from /root/dpdk/drivers/bus/dpaa/dpaa_bus.c:35: /root/dpdk/drivers/bus/dpaa/include/netcfg.h:12:10: fatal error: argp.h: No such file or directory #include <argp.h> In file included from /root/dpdk/drivers/bus/dpaa/rte_dpaa_bus.h:17, from /root/dpdk/drivers/bus/dpaa/base/qbman/qman.c:10: /root/dpdk/drivers/bus/dpaa/include/netcfg.h:12:10: fatal error: argp.h: No such file or directory #include <argp.h> On 11/03/2019 17:36, Natanael Copa wrote: > A set of patches to fix build with musl libc. I also did a few cleanups wrt > macros and fixed a few scary compiler warnings while at it. > > Please note that those are only compile tested on x86_64 with musl libc. > > Natanael Copa (15): > app/testpmd: replace uint with unsigned int > net/cxgbe: replace uint with unsigned int > bus/pci: add fallback for out[lwb]_p for non GNU libc > bus/pci: factor out various ifdefs in pci_uio_ioport_{read,write} > bus/fslmc: fix compile error with musl libc > bus/fslmc: remove unused include of error.h > net/nfp: build fix for musl libc > app/test: include fcntl.h due to use of O_RDONLY > app/test: fix setting of -D_GNU_SOURCE with meson > bus/dpaa: use warn(3) instead of error(3) to improve portability > bus/dpaa: fix warning: "__WORDSIZE" is not defined, evaluates to 0 > crypto/dpaa2_sec: build fix for musl libc > crypto/dpaa2_sec: simplify pr_{debug,err,warn} macros > net/netvsc: fix compile warning for fcntl.h include > eal/linux: use gettid(2) for debug message in sigbus_handler > > app/test-pmd/testpmd.h | 2 +- > app/test/meson.build | 2 +- > app/test/test_eal_flags.c | 1 + > drivers/bus/dpaa/base/fman/netcfg_layer.c | 4 +- > drivers/bus/dpaa/base/qbman/bman_driver.c | 6 +- > drivers/bus/dpaa/base/qbman/qman_driver.c | 12 ++-- > drivers/bus/dpaa/include/compat.h | 2 +- > drivers/bus/dpaa/include/fsl_qman.h | 3 +- > drivers/bus/fslmc/qbman/include/compat.h | 2 +- > drivers/bus/pci/linux/pci_uio.c | 82 ++++++++++++++-------- > drivers/crypto/dpaa2_sec/hw/compat.h | 36 +++++----- > drivers/net/cxgbe/base/common.h | 18 ++--- > drivers/net/netvsc/hn_vf.c | 2 +- > drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 2 + > lib/librte_eal/linuxapp/eal/eal_dev.c | 8 ++- > 15 files changed, 104 insertions(+), 78 deletions(-) >
On Wed, 13 Mar 2019 11:45:09 +0000 "Sirvys, Andrius" <andrius.sirvys@intel.com> wrote: > I'm trying on Alpine Linux to build using make with the patches, and > there are quite a few errors saying argp.h doesn't exist. > > In file included from > /root/dpdk/drivers/bus/dpaa/base/fman/netcfg_layer.c:19: > /root/dpdk/drivers/bus/dpaa/include/netcfg.h:12:10: fatal error: argp.h: > No such file or directory > #include <argp.h> > > In file included from /root/dpdk/drivers/bus/dpaa/rte_dpaa_bus.h:17, > from /root/dpdk/drivers/bus/dpaa/dpaa_bus.c:35: > /root/dpdk/drivers/bus/dpaa/include/netcfg.h:12:10: fatal error: argp.h: > No such file or directory > #include <argp.h> > > In file included from /root/dpdk/drivers/bus/dpaa/rte_dpaa_bus.h:17, > from /root/dpdk/drivers/bus/dpaa/base/qbman/qman.c:10: > /root/dpdk/drivers/bus/dpaa/include/netcfg.h:12:10: fatal error: argp.h: > No such file or directory > #include <argp.h> argp is a GNU extension and in Alpine we have it as a separate addon package. Try `apk add argp-standalone`. I also had to unset the RTE_BACKTRACE when building with ninja. > On 11/03/2019 17:36, Natanael Copa wrote: > > A set of patches to fix build with musl libc. I also did a few cleanups wrt > > macros and fixed a few scary compiler warnings while at it. > > > > Please note that those are only compile tested on x86_64 with musl libc. > > > > Natanael Copa (15): > > app/testpmd: replace uint with unsigned int > > net/cxgbe: replace uint with unsigned int > > bus/pci: add fallback for out[lwb]_p for non GNU libc > > bus/pci: factor out various ifdefs in pci_uio_ioport_{read,write} > > bus/fslmc: fix compile error with musl libc > > bus/fslmc: remove unused include of error.h > > net/nfp: build fix for musl libc > > app/test: include fcntl.h due to use of O_RDONLY > > app/test: fix setting of -D_GNU_SOURCE with meson > > bus/dpaa: use warn(3) instead of error(3) to improve portability > > bus/dpaa: fix warning: "__WORDSIZE" is not defined, evaluates to 0 > > crypto/dpaa2_sec: build fix for musl libc > > crypto/dpaa2_sec: simplify pr_{debug,err,warn} macros > > net/netvsc: fix compile warning for fcntl.h include > > eal/linux: use gettid(2) for debug message in sigbus_handler > > > > app/test-pmd/testpmd.h | 2 +- > > app/test/meson.build | 2 +- > > app/test/test_eal_flags.c | 1 + > > drivers/bus/dpaa/base/fman/netcfg_layer.c | 4 +- > > drivers/bus/dpaa/base/qbman/bman_driver.c | 6 +- > > drivers/bus/dpaa/base/qbman/qman_driver.c | 12 ++-- > > drivers/bus/dpaa/include/compat.h | 2 +- > > drivers/bus/dpaa/include/fsl_qman.h | 3 +- > > drivers/bus/fslmc/qbman/include/compat.h | 2 +- > > drivers/bus/pci/linux/pci_uio.c | 82 ++++++++++++++-------- > > drivers/crypto/dpaa2_sec/hw/compat.h | 36 +++++----- > > drivers/net/cxgbe/base/common.h | 18 ++--- > > drivers/net/netvsc/hn_vf.c | 2 +- > > drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 2 + > > lib/librte_eal/linuxapp/eal/eal_dev.c | 8 ++- > > 15 files changed, 104 insertions(+), 78 deletions(-) > >