From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f66.google.com (mail-vk0-f66.google.com [209.85.213.66]) by dpdk.org (Postfix) with ESMTP id 822A65A4E for ; Fri, 3 Jun 2016 17:17:52 +0200 (CEST) Received: by mail-vk0-f66.google.com with SMTP id c189so13806178vkb.3 for ; Fri, 03 Jun 2016 08:17:52 -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=ABPYZo8RfF6p53NZe2XVMPtXjYKRnSXvKS7SUe0D3VY=; b=jZgc63yvrjz6r5x5gjgnRkEcG5DasI2LRJo+wg7r8M9AXh7FTuwvNta3r9pVZtxuYk DFVP389qeB99lPfEXxgPOV41Hpjp+hx3STMNudiGSFm0KiAEOrkRVDW23BzEvZOu05qZ fzlkCdlEiTTi1b+Tr/+kZHar6hHTPzaIuDFT8hL+LkOe0H/Sx+q2dIoPwKhPbvZoECnS nFmW8xh4uL9QeiQ2St4ymZvm/QvRVflvNLkENgJok0E5uh2HC0q2OD7tCjZYv/yhbFlH U1S/bJb5IuiEAXCp/PuYudeZ2zxm+U7S/SrxnJa6ERjRUqs/JzA2y9v3kGb/DcKeXK7Z YcXg== 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=ABPYZo8RfF6p53NZe2XVMPtXjYKRnSXvKS7SUe0D3VY=; b=JgeCdlrxV56jvhVeBYBghLTv9v0B1opL+r+j5OEk/8sxeop4m28hJ0Aac7gVakumob 2vGWJB/FBGovNWDgDeeKqkNi5RdpDSycjFGw/WFA2kjWkd8bpTmXnoMVysaj3WXu0RPJ 3J09iZ2Em2fulWWea8Klc1dZjqfTCghciqn2lqzl5jkvN2Rt0FV+/lDYe7KjbZi/7gKJ Q0FifcEh/lCaJ8nrcFmLqmj91S+lCRCQYlvP11XW/XB01PBnUbxmFty/+xiXjaSxhTHG bH0VLKt6DmgvJeJjRQa5JcT43hM8e0Tcco7bD8c+3zP6JeOlYtE5cd665UQ1dbdm2se8 iTnQ== X-Gm-Message-State: ALyK8tIM/srK3mxQHWPq8nompRgdzi9sE4eQBGMrtPGC/AyJpt1ThDs0EzlfN3owzXfR3faKJBkmM0B67hm2Qg== X-Received: by 10.31.178.146 with SMTP id b140mr1946856vkf.84.1464967071129; Fri, 03 Jun 2016 08:17:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.129.80 with HTTP; Fri, 3 Jun 2016 08:17:21 -0700 (PDT) In-Reply-To: <57515FB0.3040800@intel.com> References: <57515FB0.3040800@intel.com> From: =?UTF-8?B?TWFydGlueCAtIOOCuOOCp+ODvOODoOOCug==?= Date: Fri, 3 Jun 2016 11:17:21 -0400 Message-ID: To: Ferruh Yigit Cc: 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: Fri, 03 Jun 2016 15:17:52 -0000 On 3 June 2016 at 06:45, Ferruh Yigit wrote: > On 6/1/2016 9:07 PM, Martinx - =E3=82=B8=E3=82=A7=E3=83=BC=E3=83=A0=E3=82= =BA wrote: > > Guys, > > > > I'm trying to build DPDK-16.04 on CentOS 6.8, but it is failing, here = is > > the error: > > > > --- > > ... > > =3D=3D Build lib/librte_eal/linuxapp > > =3D=3D Build lib/librte_eal/linuxapp/eal > > =3D=3D 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/lib= rte_eal/linuxapp/igb_uio/built-in.o > > CC [M] > > > /root/rpmbuild/BUILD/dpdk-16.04/x86_64-default-linuxapp-gcc/build/lib/lib= rte_eal/linuxapp/igb_uio/igb_uio.o > > CC eal_thread.o > > > /root/rpmbuild/BUILD/dpdk-16.04/x86_64-default-linuxapp-gcc/build/lib/lib= rte_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/lib= rte_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/lib= rte_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/lib= rte_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/li= brte_eal/linuxapp/igb_uio/igb_uio.o] > > Error 1 > > make[7]: *** > > > [_module_/root/rpmbuild/BUILD/dpdk-16.04/x86_64-default-linuxapp-gcc/buil= d/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=3Dx86_64-default-linuxapp-gcc > before building, to be able to package all files. > > meanwhile PCI_MSIX_ENTRY_CTRL_MASKBIT is defined for kernels >=3D 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 > Hello Ferruh, The dpdk.spec file already tries to compile it by using "RTE_TARGET=3Dx86_64-default-linuxapp-gcc", look: --- # rpmbuild --ba /root/rpmbuild/SPECS/dpdk.spec ......... + unset DISPLAY + make O=3Dx86_64-default-linuxapp-gcc T=3Dx86_64-native-linuxapp-gcc confi= g Configuration done ......... --- Am I right? But it fails... I'll need to stick with DPDK-1.8 for CentOS 6 for now, since I can compile it without problems... Thanks anyway man! Best, Thiago