From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f65.google.com (mail-vk0-f65.google.com [209.85.213.65]) by dpdk.org (Postfix) with ESMTP id 4FB88C3D4 for ; Wed, 15 Jun 2016 20:59:35 +0200 (CEST) Received: by mail-vk0-f65.google.com with SMTP id k2so4787870vkb.0 for ; Wed, 15 Jun 2016 11:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hwwhV1Y66aAq2Udeq65lVYDzrQMpvIppa/tIrhRfOdk=; b=RLvopjqRaVxk8Tpx4DSL64lHIhJBKlSGQAwgVlXdJfb9o5E/rNnUS1M5TChBz7fJCr wIyF4T1daPV3JXhcz5mSNWwSq/22Sihk9em79jWPOxJkXadLGV+Kq4ztThaSNN102Sd5 2KnjLuCGqI9t5Ls6/KsMCBZnpHEoTHCQxN+xAddN2MUjqeKIuOALQL/iyH3l7DsUepF1 ScbOfIuWRYXFAF416xLWu9GOclOOc3ICjCEsPQ0xOl8WDifz0uqVnEiDMI7c/Gejf3cn K099BPYAXOxkxryw0XomEcK2BTZnyS1VkTi5OVgsSbbaJehZdbvzCpTS7kfmIvk47AEl 0ouw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hwwhV1Y66aAq2Udeq65lVYDzrQMpvIppa/tIrhRfOdk=; b=dgSlLKzs3d0gzkoHcV78aOjSTjgyMPq4IG37sf9purWTlEydg+s3Y52NmJR7ZRuZmg 0xuppOk1qG5yyAx/empAoZzrDNvCjT6QVMb6FR7dYH90CLR1IQIJN3cUCpQToD2dRCl/ RbM1SpHQRQ1D/A5fU3LP76LNSuQgLewUcE1PujO590/8LS2YarYqv93UoLHhqYokP/UQ g2z105Y0MIZsjtd8p3aNJ8JuQ7xC0D3w/BP+7DyJWtjr9basDWTcK/AUiIfACFAkQDRs SAd88466LSh8rFK2gmVR+w89G+rP0m2ZWA/qf4U8pnnyktaSR2ga+sYCVbosqi3CUP8F qEaA== X-Gm-Message-State: ALyK8tLRIt+gm9KF3tOWAavaGd5/xWopxLMFAAC9kgXZgKSNY8sQGRsB81cHMVByT9N0fDLBJ5x7nC/6A6PhhA== X-Received: by 10.176.65.7 with SMTP id j7mr125818uad.38.1466017174731; Wed, 15 Jun 2016 11:59:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.76.210 with HTTP; Wed, 15 Jun 2016 11:59:05 -0700 (PDT) In-Reply-To: References: <57515FB0.3040800@intel.com> <9B0331B6EBBD0E4684FBFAEDA55776F92CD5CBC7@HASMSX110.ger.corp.intel.com> From: =?UTF-8?B?TWFydGlueCAtIOOCuOOCp+ODvOODoOOCug==?= Date: Wed, 15 Jun 2016 14:59:05 -0400 Message-ID: To: "Rosen, Rami" Cc: "Yigit, Ferruh" , dev Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Can't build DPDK-16.04 on CentOS 6.8 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2016 18:59:35 -0000 On 13 June 2016 at 12:15, Martinx - =E3=82=B8=E3=82=A7=E3=83=BC=E3=83=A0=E3= =82=BA wrote: > > > On 12 June 2016 at 11:30, Rosen, Rami wrote: > >> Hi Thiago, >> >> > Any clue? >> >> Sure. This is the reason: in dpdk-16.04/lib/librte_eal/linuxapp/igb_uio >> we have: >> .... >> #ifndef PCI_MSIX_ENTRY_SIZE >> #define PCI_MSIX_ENTRY_SIZE 16 >> #define PCI_MSIX_ENTRY_LOWER_ADDR 0 >> #define PCI_MSIX_ENTRY_UPPER_ADDR 4 >> #define PCI_MSIX_ENTRY_DATA 8 >> #define PCI_MSIX_ENTRY_VECTOR_CTRL 12 >> #define PCI_MSIX_ENTRY_CTRL_MASKBIT 1 >> #endif >> ... >> >> The root cause of the problem is due to that in CentOS 6.8, >> PCI_MSIX_ENTRY_SIZE is defined; this >> causes *avoiding* having the PCI_MSIX_ENTRY_CTRL_MASKBIT definition as >> shown above. >> >> The definition of PCI_MSIX_ENTRY_SIZE is due to the following patch, >> which was introduced in CentOS 6.8, which moved PCI_MSIX_ENTRY_SIZE from >> the inner drivers/pci/msi.h header file into include/linux/pci_regs.h, >> The linux/pci_regs.h is included in the pci.h header, which is used by >> the igb_uio.c, which failed in compilation. >> >> "PATCH 1/8] PCI: MSI: Move MSI-X entry definition to pci_regs.h" >> >> --- a/drivers/pci/msi.h >> +++ b/drivers/pci/msi.h >> @@ -6,12 +6,6 @@ >> #ifndef MSI_H >> #define MSI_H >> >> -#define PCI_MSIX_ENTRY_SIZE 16 >> ... >> ... >> ... >> diff --git a/include/linux/pci_regs.h b/include/linux/pci_regs.h >> index 455b9cc..acfc224 100644 >> --- a/include/linux/pci_regs.h >> +++ b/include/linux/pci_regs.h >> @@ -307,6 +307,13 @@ >> #define PCI_MSIX_FLAGS_MASKALL (1 << 14) >> #define PCI_MSIX_FLAGS_BIRMASK (7 << 0) >> >> +/* MSI-X entry's format */ >> +#define PCI_MSIX_ENTRY_SIZE 16 >> .... >> >> >> http://linux-pci.vger.kernel.narkive.com/cZquopIw/patch-1-8-pci-msi-move= -msi-x-entry-definition-to-pci-regs-h >> >> See also: >> rpm -qp --changelog kernel-devel-2.6.32-642.el6.x86_64.rpm | grep "Move >> MSI-X entry" >> warning: kernel-devel-2.6.32-642.el6.x86_64.rpm: Header V3 RSA/SHA1 >> Signature, key ID c105b9de: NOKEY >> - [pci] msi: Move MSI-X entry definition to pci_regs.h (Myron Stowe) >> [1288629 >> >> >> A proper patch which checks kernel version can fix it. >> >> Regards, >> Rami Rosen >> Intel Corporation >> >> > Interesting! > > Do you have this proper fix? I would like to build and use DPDK on CentOS > 6.8... > > Thank you for your reply! > > Best, > Thiago > Hey guys, I tried something different, just for testing, and it also doesn't build. What I tried was to install the "centos-release-xen" repo, and run "yum upgrade" in my CentOS 6.8 box, this way, I can receive a new Kernel for it, which is "3.18.34-20.el6.x86_64", and here is the DPDK build error now: --- ........... CC eal_common_dev.o cc1: warnings being treated as errors /root/rpmbuild/BUILD/dpdk-16.04/x86_64-default-linuxapp-gcc/build/lib/librt= e_eal/linuxapp/igb_uio/igb_uio.c: In function 'igbuio_pci_probe': /usr/src/kernels/3.18.34-20.el6.x86_64/include/linux/slab.h:582: error: inlining failed in call to 'kzalloc.clone.0': --param max-inline-insns-single limit reached /root/rpmbuild/BUILD/dpdk-16.04/x86_64-default-linuxapp-gcc/build/lib/librt= e_eal/linuxapp/igb_uio/igb_uio.c:383: error: called from here make[8]: *** [/root/rpmbuild/BUILD/dpdk-16.04/x86_64-default-linuxapp-gcc/build/lib/libr= te_eal/linuxapp/igb_uio/igb_uio.o] Error 1 make[7]: *** [_module_/root/rpmbuild/BUILD/dpdk-16.04/x86_64-default-linuxapp-gcc/build/= lib/librte_eal/linuxapp/igb_uio] Error 2 make[6]: *** [sub-make] Error 2 make[5]: *** [igb_uio.ko] Error 2 make[4]: *** [igb_uio] Error 2 make[4]: *** Waiting for unfinished jobs.... CC eal_common_options.o CC eal_common_thread.o CC eal_common_proc.o CC rte_malloc.o CC malloc_elem.o CC malloc_heap.o CC rte_keepalive.o CC rte_cpuflags.o SYMLINK-FILE include/exec-env/rte_interrupts.h SYMLINK-FILE include/exec-env/rte_kni_common.h SYMLINK-FILE include/exec-env/rte_dom0_common.h LD librte_eal.so.2 INSTALL-LIB librte_eal.so.2 make[3]: *** [linuxapp] Error 2 make[2]: *** [librte_eal] Error 2 make[1]: *** [lib] Error 2 make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.b7GNzi (%build) --- So, this is not related to "PCI: MSI: Move MSI-X entry definition to pci_regs.h" anymore... I'm still looking for a way to build and package the latest DPDK on CentOS 6.8 box. I appreciate any help... Thanks! Thiago