From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id DF77B5960 for ; Fri, 3 Jun 2016 12:45:06 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 03 Jun 2016 03:45:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,411,1459839600"; d="scan'208";a="990313077" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.221.9]) ([10.237.221.9]) by orsmga002.jf.intel.com with ESMTP; 03 Jun 2016 03:45:06 -0700 To: =?UTF-8?B?TWFydGlueCAtIOOCuOOCp+ODvOODoOOCug==?= , dev References: From: Ferruh Yigit Message-ID: <57515FB0.3040800@intel.com> Date: Fri, 3 Jun 2016 11:45:04 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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: Fri, 03 Jun 2016 10:45:07 -0000 On 6/1/2016 9:07 PM, Martinx - ジェームズ wrote: > Guys, > > I'm trying to build DPDK-16.04 on CentOS 6.8, but it is failing, here is > the error: > > --- > ... > == Build lib/librte_eal/linuxapp > == Build lib/librte_eal/linuxapp/eal > == Build lib/librte_eal/linuxapp/igb_uio > CC eal.o > CC eal_hugepage_info.o > CC eal_memory.o > LD > /root/rpmbuild/BUILD/dpdk-16.04/x86_64-default-linuxapp-gcc/build/lib/librte_eal/linuxapp/igb_uio/built-in.o > CC [M] > /root/rpmbuild/BUILD/dpdk-16.04/x86_64-default-linuxapp-gcc/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.o > CC eal_thread.o > /root/rpmbuild/BUILD/dpdk-16.04/x86_64-default-linuxapp-gcc/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c: > In function 'igbuio_msix_mask_irq': > /root/rpmbuild/BUILD/dpdk-16.04/x86_64-default-linuxapp-gcc/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c:157: > error: 'PCI_MSIX_ENTRY_CTRL_MASKBIT' undeclared (first use in this function) > /root/rpmbuild/BUILD/dpdk-16.04/x86_64-default-linuxapp-gcc/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c:157: > error: (Each undeclared identifier is reported only once > /root/rpmbuild/BUILD/dpdk-16.04/x86_64-default-linuxapp-gcc/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c:157: > error: for each function it appears in.) > make[8]: *** > [/root/rpmbuild/BUILD/dpdk-16.04/x86_64-default-linuxapp-gcc/build/lib/librte_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_log.o > CC eal_pci.o > CC eal_pci_uio.o > CC eal_pci_vfio.o > CC eal_pci_vfio_mp_sync.o > ... > --- > > Any clue? > > I'm trying to build it by running: > > -- > rpmbuild --ba /root/rpmbuild/SPECS/dpdk.spec > -- > > I removed the "doc" and the need for Xen out of it... I can take this spec > and the dpdk-16.04.tar.gz and build it on CentOS 7. > > Thanks! > Thiago > Hi Thiago, As a reference, I tested spec file on Fedora 23, compilation worked fine. Only I found you need to set RTE_TARGET=x86_64-default-linuxapp-gcc before building, to be able to package all files. meanwhile PCI_MSIX_ENTRY_CTRL_MASKBIT is defined for kernels >= 2.6.38, BUT it already defined in igb_uio/compat.h for the case kernel headers don't have it, so it is not related to the kernel versions, not sure about source of the error. Thanks, ferruh