DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ali Alnubani <alialnu@nvidia.com>
To: "NBU-Contact-Thomas Monjalon (EXTERNAL)" <thomas@monjalon.net>,
	Patrick Robb <probb@iol.unh.edu>,
	Bruce Richardson <bruce.richardson@intel.com>
Cc: "Tyler Retzlaff" <roretzla@linux.microsoft.com>,
	"dev@dpdk.org" <dev@dpdk.org>,
	"Morten Brørup" <mb@smartsharesystems.com>,
	"david.marchand@redhat.com" <david.marchand@redhat.com>,
	"Raslan Darawsheh" <rasland@nvidia.com>
Subject: RE: [PATCH v3] build: update DPDK to use C11 standard
Date: Tue, 1 Aug 2023 14:00:47 +0000	[thread overview]
Message-ID: <CH0PR12MB5156A08C2299380BF8F24057DA0AA@CH0PR12MB5156.namprd12.prod.outlook.com> (raw)
In-Reply-To: <2514064.TLnPLrj5Ze@thomas>

> -----Original Message-----
> From: Thomas Monjalon <thomas@monjalon.net>
> Sent: Tuesday, August 1, 2023 1:37 PM
> To: Patrick Robb <probb@iol.unh.edu>; Bruce Richardson
> <bruce.richardson@intel.com>; Ali Alnubani <alialnu@nvidia.com>
> Cc: Tyler Retzlaff <roretzla@linux.microsoft.com>; dev@dpdk.org; Morten
> Brørup <mb@smartsharesystems.com>; david.marchand@redhat.com;
> Raslan Darawsheh <rasland@nvidia.com>
> Subject: Re: [PATCH v3] build: update DPDK to use C11 standard
> 
> 01/08/2023 12:19, Bruce Richardson:
> > On Mon, Jul 31, 2023 at 08:39:31PM -0400, Patrick Robb wrote:
> > >    Hi Bruce,
> > >    I see some failures for this series for our Ubuntu 20.04 containers.
> > >    And, our DTS testbeds which are on ubuntu 20.04 are skipping running
> > >    testsuites because they can't compile DPDK. So, that's why it has some
> > >    missing results for a couple of the Intel NICs. For context, I'll paste
> > >    below where the compile job terminates in one of our containerized
> > >    compile test runs. The GCC in use here is version 9.4, so it meets the
> > >    requirements as described in your patch as far as I can tell. I'll
> > >    check it out more tomorrow to see whether it's an infra failure, like
> > >    some missing dependencies. Please let me know if we expect to have no
> > >    issues with 20.04 or if this is anticipated.
> > >    Thanks!
> > >    [1638/2730] Generating symbol file
> > >
> 'drivers/a715181@@rte_net_ixgbe@sha/librte_net_ixgbe.so.24.0.symbols'.
> > >    [1639/2730] Compiling C object
> > >    'drivers/a715181@@tmp_rte_net_mlx4@sta/net_mlx4_mlx4.c.o'.
> > >    FAILED: drivers/a715181@@tmp_rte_net_mlx4@sta/net_mlx4_mlx4.c.o
> > >    ccache cc -Idrivers/a715181@@tmp_rte_net_mlx4@sta -Idrivers
> > >    -I../drivers -Idrivers/net/mlx4 -I../drivers/net/mlx4 -Ilib/ethdev
> > >    -I../lib/ethdev -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/telemetry/../metrics -I../lib/telemetry/../metrics
> > >    -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf
> > >    -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring
> > >    -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci
> > >    -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev
> > >    -I../drivers/bus/vdev -I/usr/include/libnl3 -fdiagnostics-color=always
> > >    -pipe -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-address-of-packed-member -Wno-packed-not-
> aligned
> > >    -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native
> > >    -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-
> truncation
> > >    -std=c11 -Wno-strict-prototypes -D_BSD_SOURCE -D_DEFAULT_SOURCE
> > >    -D_XOPEN_SOURCE=600 -UPEDANTIC -
> DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.mlx4
> > >    -MD -MQ
> 'drivers/a715181@@tmp_rte_net_mlx4@sta/net_mlx4_mlx4.c.o' -MF
> > >    'drivers/a715181@@tmp_rte_net_mlx4@sta/net_mlx4_mlx4.c.o.d' -o
> > >    'drivers/a715181@@tmp_rte_net_mlx4@sta/net_mlx4_mlx4.c.o' -c
> > >    ../drivers/net/mlx4/mlx4.c
> > >    In file included from ../drivers/net/mlx4/mlx4_rxtx.h:27,
> > >                     from ../drivers/net/mlx4/mlx4.c:49:
> > >    ../drivers/net/mlx4/mlx4_prm.h:111:8: error: redefinition of 'struct
> > >    mlx4_wqe_lso_seg'
> > >      111 | struct mlx4_wqe_lso_seg {
> > >          |        ^~~~~~~~~~~~~~~~
> > >    In file included from ../drivers/net/mlx4/mlx4_glue.h:16,
> > >                     from ../drivers/net/mlx4/mlx4.c:46:
> > >    /usr/include/infiniband/mlx4dv.h:410:8: note: originally defined here
> > >      410 | struct mlx4_wqe_lso_seg {
> > >          |        ^~~~~~~~~~~~~~~~
> > >    ninja: build stopped: subcommand failed.
> >
> > Hi again,
> >
> > I've attempted to reproduce this on my Ubuntu 20.04 VM and failed,
> > everything seems to build ok.
> >
> > Looking through the logs, though, there does appear to be a difference in
> > the configurations in the two cases. I suspect my Ubuntu has an updated
> > verbs package compared to the image you are using. In the log of the failed
> > build, I see:
> >
> > 	Checking whether type "struct mlx4_wqe_lso_seg" has member
> "mss_hdr_size" with dependencies libmlx4, libibverbs: NO
> > 	Configuring mlx4_autoconf.h using configuration
> >
> > While building in my VM, I have:
> >
> > 	Checking whether type "struct mlx4_wqe_lso_seg" has member
> "mss_hdr_size" with dependencies libmlx4, libibverbs: YES (cached)
> > 	Configuring mlx4_autoconf.h using configuration
> >
> > So my verbs mlx4 header has got a different set of definitions to those in
> > the CI machine. My Ubuntu reports as 20.04.6 with libibverbs-dev package
> > version "28.0-1ubuntu1"
> >
> > Can the CI image be updated to latest 20.04 packages?
> 
> I'm surprised there is such issue.
> The autoconf mechanism should manage any old package.
> 
> Ali, do you have an idea what happens?
> 

28.0-1ubuntu1 is the latest for focal (20.04LTS), and I can reproduce with it as well.
https://packages.ubuntu.com/focal/libibverbs-dev

It's resolved for me with v4.

  reply	other threads:[~2023-08-01 14:00 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-31 10:38 [PATCH] " Bruce Richardson
2023-07-31 10:51 ` Morten Brørup
2023-07-31 15:58 ` [PATCH v2] " Bruce Richardson
2023-07-31 16:24   ` Tyler Retzlaff
2023-07-31 16:42   ` Tyler Retzlaff
2023-07-31 16:58 ` [PATCH v3] " Bruce Richardson
2023-07-31 17:05   ` Tyler Retzlaff
2023-08-01  0:39     ` Patrick Robb
2023-08-01  9:20       ` Bruce Richardson
2023-08-01 10:19       ` Bruce Richardson
2023-08-01 10:35         ` David Marchand
2023-08-01 10:39           ` Bruce Richardson
2023-08-01 10:50             ` Bruce Richardson
2023-08-01 12:42               ` Ali Alnubani
2023-08-01 13:03                 ` Bruce Richardson
2023-08-01 13:22                 ` Bruce Richardson
2023-08-01 13:47                   ` Ali Alnubani
2023-08-01 14:00                     ` Bruce Richardson
2023-08-02 10:10                       ` Bruce Richardson
2023-08-01 10:37         ` Thomas Monjalon
2023-08-01 14:00           ` Ali Alnubani [this message]
2023-08-01 13:15 ` [PATCH v4] " Bruce Richardson
2023-08-01 13:24   ` David Marchand
2023-08-01 13:29     ` Bruce Richardson
2023-08-01 13:34       ` David Marchand
2023-08-01 15:47   ` Ali Alnubani
2023-08-01 15:50     ` Bruce Richardson
2023-08-01 16:20       ` Tyler Retzlaff
2023-08-01 20:12         ` Patrick Robb
2023-08-02  6:32           ` David Marchand
2023-08-02 13:40             ` Patrick Robb
2023-08-03  9:21               ` David Marchand
2023-08-02 12:31 ` [PATCH v5] " Bruce Richardson
2023-08-02 12:35   ` Bruce Richardson
2023-08-03 12:38   ` Ali Alnubani
2023-08-03 13:36   ` David Marchand
2023-08-10 13:34     ` Thomas Monjalon
2023-08-10 14:48       ` Stephen Hemminger
2023-08-10 16:35         ` Bruce Richardson
2023-08-10 16:49           ` Thomas Monjalon
2023-08-10 17:02             ` Stephen Hemminger
2023-08-10 18:17               ` Morten Brørup
2023-08-10 22:34                 ` Tyler Retzlaff
2023-08-11  8:52                   ` Bruce Richardson
2023-08-11 10:12                     ` Morten Brørup

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=CH0PR12MB5156A08C2299380BF8F24057DA0AA@CH0PR12MB5156.namprd12.prod.outlook.com \
    --to=alialnu@nvidia.com \
    --cc=bruce.richardson@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=mb@smartsharesystems.com \
    --cc=probb@iol.unh.edu \
    --cc=rasland@nvidia.com \
    --cc=roretzla@linux.microsoft.com \
    --cc=thomas@monjalon.net \
    /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;
as well as URLs for NNTP newsgroup(s).