From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <murali.krishna@broadcom.com>
Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52])
 by dpdk.org (Postfix) with ESMTP id 4FF4928F2
 for <users@dpdk.org>; Wed, 23 Mar 2016 15:52:34 +0100 (CET)
Received: by mail-wm0-f52.google.com with SMTP id r129so140085488wmr.1
 for <users@dpdk.org>; Wed, 23 Mar 2016 07:52:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google;
 h=from:references:in-reply-to:mime-version:thread-index:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=BpBav2B6uBdd0x21AU0j6dpO78q/1IQcBpgqmi4L9eg=;
 b=GqNlsrv0IikiyeVqXLv8vzqVP+sgNWZdQ/W3j8uL1harGszQCX0/1cjzd76Je7k0p/
 fsgZrBXwWUdR70iNO7eem2dawu/P0yFyfbFbfNY0t6pzd0Mk7XoMCEEfFFVI2PM17NVQ
 3ob4xvcijH+dQesgOBnIWuAny3OyyZzdJ+MA0=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:references:in-reply-to:mime-version
 :thread-index:date:message-id:subject:to:cc
 :content-transfer-encoding;
 bh=BpBav2B6uBdd0x21AU0j6dpO78q/1IQcBpgqmi4L9eg=;
 b=b89QFHBJSJ0WI3kmk5teJ7djsxUdNvSmOjWpC313UmzZF+B/7B6Q+8qHWM5oJi3dF2
 uZUagP9LyHgoXutRt0GQjw831f59j+QuHVbqwYGeJ59LMDdzKbW2BSJXH8KPliOoqoRV
 YMDlPFGXT7Wyv5A2JNEUqOEBERQG4TaAoqK6mvPSR3T6KG/oFKID5F5xyDhSizJ25631
 wGUGRRAzAIPl1zX8PMdWDmUITW25kAXoOHJv+h4Ib7mjXXMf8okgxtAjBNhVuETRf3Mz
 S1aK4oT4wYSZeHxkqI5MZq7Wi0AO33S5gcyTkciFJuhVtCrR03kYzJv7E7d9zIB/FXag
 TP0A==
X-Gm-Message-State: AD7BkJI0TBA/k7GzuVhO2hQWSYaCmOADQw3MYHRdVi+R1KNgYEH3jpolWBmROJT4vG/FPPePuBIEnuFNuDFawPjx
X-Received: by 10.194.203.5 with SMTP id km5mr4299446wjc.172.1458744753959;
 Wed, 23 Mar 2016 07:52:33 -0700 (PDT)
From: Murali Krishna <murali.krishna@broadcom.com>
References: <b8aef3220279b74a3be3d14a8d5b6c71@mail.gmail.com>
 <23529361.xgbDrcMi19@xps13> dba23402c81dbd5002f14c282e103309@mail.gmail.com
In-Reply-To: dba23402c81dbd5002f14c282e103309@mail.gmail.com
MIME-Version: 1.0
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQJRxtgJpEYobZtFz0Nf6pAO+CmszwGc+ChDnlmp2RCAAAdbMA==
Date: Wed, 23 Mar 2016 20:22:33 +0530
Message-ID: <c4b546c21b7bf4337b0c188ce0d96dca@mail.gmail.com>
To: Thomas Monjalon <thomas.monjalon@6wind.com>
Cc: users@dpdk.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Subject: Re: [dpdk-users] dpdk 2.2.0 build failure on Rhel 6.8 Beta 1 Kernel
X-BeenThere: users@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: usage discussions <users.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/users>,
 <mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/users>,
 <mailto:users-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Mar 2016 14:52:34 -0000

I also tried to build DPDK 2.2.0 on Rhel 6.7 Kernel(2.6.32-573.el6.x86_64)
and I didn=E2=80=99t see any errors, build was successful.

Thanks,
Murali


-----Original Message-----
From: Murali Krishna [mailto:murali.krishna@broadcom.com]
Sent: Wednesday, March 23, 2016 8:08 PM
To: 'Thomas Monjalon'
Cc: 'users@dpdk.org'
Subject: RE: [dpdk-users] dpdk 2.2.0 build failure on Rhel 6.8 Beta 1 Kerne=
l

Hi Thomas,

I tried workaround 1, 2 and 3.

1. I still see some errors after disabling igb_uio(setting
CONFIG_RTE_EAL_IGB_UIO=3Dn in x86_64-native-linuxapp-gcc/.config) in the sa=
me
kernel(2.6.32-621.el6.x86_64). Please see the attachment for detailed error
information.

2. I tried to build dpdk 2.2.0 on Rhel7.2 kernel(3.10.0-327.el7.x86_64) and
I didn=E2=80=99t see any errors.

3. I tried to compile older DPDKs(DPDK 1.7.1, DPDK 1.8.0 and DPDK 2.0.0) on
the same Rhel6.8 kernel(2.6.32-621.el6.x86_64). I am seeing the same errors
which I observed while building dpdk 2.2.0 when I try to compile older
DPDKs(DPDK 1.7.1, DPDK 1.8.0 and DPDK 2.0.0)

Thanks,
Murali


-----Original Message-----
From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com]
Sent: Wednesday, March 23, 2016 7:31 PM
To: Murali Krishna
Cc: users@dpdk.org
Subject: Re: [dpdk-users] dpdk 2.2.0 build failure on Rhel 6.8 Beta 1 Kerne=
l

Hi,

2016-03-23 19:04, Murali Krishna:
> [root@Rhel68B1 dpdk-2.2.0]# cat /etc/redhat-release
>
> Red Hat Enterprise Linux Server release 6.8 Beta (Santiago)
>
> [root@Rhel68B1 dpdk-2.2.0]# uname -a
>
> Linux Rhel68B1 2.6.32-621.el6.x86_64 #1 SMP Wed Feb 24 00:07:06 EST
> 2016
> x86_64 x86_64 x86_64 GNU/Linux
[...]
> /root/dpdk-2.2.0/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp=
/igb_uio/igb_uio.c:213:
> error: =E2=80=98PCI_MSIX_ENTRY_CTRL_MASKBIT=E2=80=99 undeclared (first us=
e in this
> function)
[...]
> Is there any workaround for this?

Yes there are a lot of workarounds (see the 4 proposals below).
igb_uio is an out-of-tree kernel module.
We are replacing it with upstream modules uio_pci_generic or vfio.

1/ Try to disable igb_uio in your config
(x86_64-native-linuxapp-gcc/.config):
	CONFIG_RTE_EAL_IGB_UIO=3Dn
2/ If you want igb_uio, you should upgrade your kernel 3/ If you want to
keep this kernel, you can try an older DPDK version 4/ If you want to keep
this kernel and this DPDK, you can try to fix
	the issue and submit a patch to dev@dpdk.org.