DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Xu, Qian Q" <qian.q.xu@intel.com>
To: "gowrishankar.m@linux.vnet.ibm.com"
	<gowrishankar.m@linux.vnet.ibm.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Cc: "Lu, PeipeiX" <peipeix.lu@intel.com>,
	"Gilmore, Walter E" <walter.e.gilmore@intel.com>,
	"Jain, Deepak K" <deepak.k.jain@intel.com>,
	"Richardson, Bruce" <bruce.richardson@intel.com>
Subject: [dpdk-dev] Pls help check <DPDK build error> on old kernel
Date: Tue, 28 Mar 2017 03:16:05 +0000	[thread overview]
Message-ID: <82F45D86ADE5454A95A89742C8D1410E3B590BCE@shsmsx102.ccr.corp.intel.com> (raw)

Hi, Gowrishankar Muthukrishnan



Could you help check below build error? On some old kernels, the build failed due to your patch. Thx.





There's build error on old kernels which was brought by commit "0fe9830b53452a6747cae9ff1a6bfc737b839a9d":

> commit 0fe9830b53452a6747cae9ff1a6bfc737b839a9d
> Author: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
> Date: Mon Mar 6 20:34:15 2017 +0530
>
> eal/ppc: support sPAPR IOMMU for vfio-pci
>
> Below changes adds pci probing support for vfio-pci devices in power8.
>
Signed-off-by: Gowrishankar Muthukrishnan
> <gowrishankar.m@linux.vnet.ibm.com>
> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
> Acked-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>

It missed a vfio_iommu_spapr_tce_info structure in conditional define for older kernels, so it breaks compile on those kernels

Detail build error logs please refer to below:

> Last commit Time : Sun Mar 19 23:13:50 2017 +0100
> Last Author : David Marchand
> Last commit Hash : 84aac97b49994be6b461b46be160b47938e697b3
> Last comment : maintainers: resign from eal maintenance
>
> Build Summary : 43 Builds Done, 37 Successful, 6 Failures.
>
> Failure details :
>
> Failure #1
> SUSE12SP3_64 / Linux 3.7.10-1 / GCC 4.7.2 login command: sshpass -p
> P@ssw0rd123 ssh root@10.239.69.116
> Config: x86_64-native-linuxapp-gcc
> CONFIG_RTE_LIBRTE_PMD_PCAP=y,
> CONFIG_RTE_NIC_BYPASS=y,
> CONFIG_RTE_BUILD_SHARED_LIB=y,
> CONFIG_RTE_LIBRTE_VHOST=y,
> CONFIG_RTE_LIBRTE_PMD_QAT=y,
> CONFIG_RTE_LIBRTE_PMD_AESNI_GCM=y,
> CONFIG_RTE_LIBRTE_PMD_NULL_CRYPTO=y
>
> /homeDPDK/lib/librte_eal/linuxapp/eal/eal_vfio.c: In function
> 'vfio_spapr_dma_map':
> /homeDPDK/lib/librte_eal/linuxapp/eal/eal_vfio.c:555:9: error: variable 'info'
> has initializer but incomplete type compilation terminated due to -Wfatal-errors.
>
> Failure #2
> SUSE12SP3_64 / Linux 3.7.10-1 / ICC 16.0.2 login command: sshpass -p
> P@ssw0rd123 ssh root@10.239.69.116
> Config: x86_64-native-linuxapp-icc
> CONFIG_RTE_LIBRTE_PMD_PCAP=y,
> CONFIG_RTE_NIC_BYPASS=y,
> CONFIG_RTE_BUILD_SHARED_LIB=y,
> CONFIG_RTE_LIBRTE_VHOST=y,
> CONFIG_RTE_LIBRTE_PMD_QAT=y,
> CONFIG_RTE_LIBRTE_PMD_AESNI_GCM=y,
> CONFIG_RTE_LIBRTE_PMD_NULL_CRYPTO=y
>
> /homeDPDK/lib/librte_eal/linuxapp/eal/eal_vfio.c: In function
> 'vfio_spapr_dma_map':
> /homeDPDK/lib/librte_eal/linuxapp/eal/eal_vfio.c:555:9: error: variable 'info'
> has initializer but incomplete type compilation terminated due to -Wfatal-errors.
>
> Failure #3
> FC18_64 / Linux 3.6.10-4 / GCC 4.7.2
> login command: sshpass -p P@ssw0rd123 ssh root@10.239.69.131
> Config: x86_64-native-linuxapp-gcc
> CONFIG_RTE_LIBRTE_PMD_PCAP=y,
> CONFIG_RTE_NIC_BYPASS=y,
> CONFIG_RTE_BUILD_SHARED_LIB=y,
> CONFIG_RTE_LIBRTE_VHOST=y,
> CONFIG_RTE_LIBRTE_PMD_QAT=y,
> CONFIG_RTE_LIBRTE_PMD_AESNI_GCM=y,
> CONFIG_RTE_LIBRTE_PMD_NULL_CRYPTO=y
>
> DPDK/lib/librte_eal/linuxapp/eal/eal_vfio.c: In function 'vfio_spapr_dma_map':
> DPDK/lib/librte_eal/linuxapp/eal/eal_vfio.c:555:9: error: variable
> 'info' has initializer but incomplete type compilation terminated due to -Wfatal-errors.
>
> Failure #4
> FC18_64 / Linux 3.6.10-4 / ICC 14.0.0
> login command: sshpass -p P@ssw0rd123 ssh root@10.239.69.131
> Config: x86_64-native-linuxapp-icc
> CONFIG_RTE_LIBRTE_PMD_PCAP=y,
> CONFIG_RTE_NIC_BYPASS=y,
> CONFIG_RTE_BUILD_SHARED_LIB=y,
> CONFIG_RTE_LIBRTE_VHOST=y,
> CONFIG_RTE_LIBRTE_PMD_QAT=y,
> CONFIG_RTE_LIBRTE_PMD_AESNI_GCM=y,
> CONFIG_RTE_LIBRTE_PMD_NULL_CRYPTO=y
>
> DPDK/lib/librte_eal/linuxapp/eal/eal_vfio.c: In function 'vfio_spapr_dma_map':
> DPDK/lib/librte_eal/linuxapp/eal/eal_vfio.c:555:9: error: variable
> 'info' has initializer but incomplete type compilation terminated due to -Wfatal-errors.
>
> Failure #5
> RHEL70_64 / Linux 3.10.0-123 / GCC 4.8.5 login command: sshpass -p
> P@ssw0rd123 ssh root@10.239.68.173
> Config: x86_64-native-linuxapp-gcc
> CONFIG_RTE_LIBRTE_PMD_PCAP=y,
> CONFIG_RTE_NIC_BYPASS=y,
> CONFIG_RTE_BUILD_SHARED_LIB=y,
> CONFIG_RTE_LIBRTE_VHOST=y,
> CONFIG_RTE_LIBRTE_PMD_QAT=y,
> CONFIG_RTE_LIBRTE_PMD_AESNI_GCM=y,
> CONFIG_RTE_LIBRTE_PMD_NULL_CRYPTO=y
>
> DPDK/lib/librte_eal/linuxapp/eal/eal_vfio.c: In function 'vfio_spapr_dma_map':
> DPDK/lib/librte_eal/linuxapp/eal/eal_vfio.c:555:9: error: variable
> 'info' has initializer but incomplete type
> struct vfio_iommu_spapr_tce_info info = {
> ^
> compilation terminated due to -Wfatal-errors.
>
> Failure #6
> RHEL70_64 / Linux 3.10.0-123 / ICC 14.0.0 login command: sshpass -p
> P@ssw0rd123 ssh root@10.239.68.173
> Config: x86_64-native-linuxapp-icc
> CONFIG_RTE_LIBRTE_PMD_PCAP=y,
> CONFIG_RTE_NIC_BYPASS=y,
> CONFIG_RTE_BUILD_SHARED_LIB=y,
> CONFIG_RTE_LIBRTE_VHOST=y,
> CONFIG_RTE_LIBRTE_PMD_QAT=y,
> CONFIG_RTE_LIBRTE_PMD_AESNI_GCM=y,
> CONFIG_RTE_LIBRTE_PMD_NULL_CRYPTO=y
>
> DPDK/lib/librte_eal/linuxapp/eal/eal_vfio.c: In function 'vfio_spapr_dma_map':
> DPDK/lib/librte_eal/linuxapp/eal/eal_vfio.c:555:9: error: variable
> 'info' has initializer but incomplete type
> struct vfio_iommu_spapr_tce_info info = {
> ^
> compilation terminated due to -Wfatal-errors.
>

             reply	other threads:[~2017-03-28  3:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-28  3:16 Xu, Qian Q [this message]
2017-03-28  9:00 ` Burakov, Anatoly
2017-03-28  9:29   ` Xu, Qian Q

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=82F45D86ADE5454A95A89742C8D1410E3B590BCE@shsmsx102.ccr.corp.intel.com \
    --to=qian.q.xu@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=deepak.k.jain@intel.com \
    --cc=dev@dpdk.org \
    --cc=gowrishankar.m@linux.vnet.ibm.com \
    --cc=peipeix.lu@intel.com \
    --cc=walter.e.gilmore@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).