From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <bugzilla@dpdk.org>
Received: by dpdk.org (Postfix, from userid 33)
 id 57F8C2BB5; Sun,  3 Mar 2019 01:05:34 +0100 (CET)
From: bugzilla@dpdk.org
To: dev@dpdk.org
Date: Sun, 03 Mar 2019 00:05:34 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: DPDK
X-Bugzilla-Component: ethdev
X-Bugzilla-Version: 19.02
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: normal
X-Bugzilla-Who: debugnetiq1@yahoo.ca
X-Bugzilla-Status: CONFIRMED
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: <bug-217-3@http.bugs.dpdk.org/>
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 217] DPDK-19.02 will not build when MLX4/MLX5 is
 enabled. In comparison DPDK 18-11 builds fine
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>
X-List-Received-Date: Sun, 03 Mar 2019 00:05:34 -0000

https://bugs.dpdk.org/show_bug.cgi?id=3D217

            Bug ID: 217
           Summary: DPDK-19.02 will not build when MLX4/MLX5 is enabled.
                    In comparison DPDK 18-11 builds fine
           Product: DPDK
           Version: 19.02
          Hardware: All
                OS: All
            Status: CONFIRMED
          Severity: normal
          Priority: Normal
         Component: ethdev
          Assignee: dev@dpdk.org
          Reporter: debugnetiq1@yahoo.ca
  Target Milestone: ---

Here is what I did:
- installed Mellanox OFED 4.5.1 from "sources"
  wget
http://www.mellanox.com/downloads/ofed/MLNX_OFED-4.5-1.0.1.0/MLNX_OFED_LINU=
X-4.5-1.0.1.0-rhel7.6-x86_64.tgz
&& tar -zxf MLNX_OFED_LINUX-4.5-1.0.1.0-rhel7.6-x86_64.tgz
  cd MLNX_OFED_LINUX-4.5-1.0.1.0-rhel7.6-x86_64.tgz
  ./mlnxofedinstall --dpdk --upstream-libs --add-kernel-support
--enable-mlnx_tune
This builds and installs all userland OFED components, then installing the =
kmod
drivers
cd
/tmp/MLNX_OFED_LINUX-4.5-1.0.1.0-3.10.0-957.5.1.el7.x86_64/MLNX_OFED_LINUX-=
4.5-1.0.1.0-rhel7.6-ext/RPMS
&& yum install
mlnx-ofa_kernel-modules-4.5-OFED.4.5.1.0.1.1.gb4fdfac.kver.3.10.0_957.5.1.e=
l7.x86_64.x86_64.rpm

Now building dpdk-19.02
- download, untar then enable in ./config/common_base
CONFIG_RTE_LIBRTE_MLX4_PMD=3Dy and CONFIG_RTE_LIBRTE_MLX5_PMD=3D"y"
export DPDK_DIR=3D/opt/dpdk_install/dpdk-19.02
cd $DPDK_DIR
export DPDK_BUILD=3D$DPDK_DIR/install
export RTE_SDK=3D$DPDK_DIR
export DPDK_TARGET=3Dx86_64-native-linuxapp-gcc
export RTE_TARGET=3Dx86_64-native-linuxapp-gcc
make config T=3D$DPDK_TARGET
make install T=3D$DPDK_TARGET DESTDIR=3Dinstall


dpdk-19.02 build fails when linking testpmd
...
=3D=3D Build app
=3D=3D Build app/test-pmd
Package libibverbs was not found in the pkg-config search path.
Perhaps you should add the directory containing `libibverbs.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libibverbs' found

Then in the log
LD testpmd
/opt/dpdk_install/dpdk-19.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_mlx4=
.a(mlx4_glue.o):
In function `mlx4_glue_dv_set_context_attr':
/opt/dpdk_install/dpdk-19.02/drivers/net/mlx4/mlx4_glue.c:239: undefined
reference to `mlx4dv_set_context_attr'
/opt/dpdk_install/dpdk-19.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_mlx4=
.a(mlx4_glue.o):
In function `mlx4_glue_dv_init_obj':
/opt/dpdk_install/dpdk-19.02/drivers/net/mlx4/mlx4_glue.c:231: undefined
reference to `mlx4dv_init_obj'

--=20
You are receiving this mail because:
You are the assignee for the bug.=