DPDK patches and discussions
 help / color / mirror / Atom feed
From: Hemant Agrawal <hemant.agrawal@nxp.com>
To: Yongseok Koh <yskoh@mellanox.com>,
	Shreyansh Jain <shreyansh.jain@nxp.com>,
	Akhil Goyal <akhil.goyal@nxp.com>,
	Nipun Gupta <nipun.gupta@nxp.com>,
	Sunil Kumar Kori <sunil.kori@nxp.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>, Ali Alnubani <alialnu@mellanox.com>
Subject: Re: [dpdk-dev] Disabling CONFIG_RTE_EAL_VFIO breaks build on ARM
Date: Thu, 22 Feb 2018 20:50:20 +0530	[thread overview]
Message-ID: <c49356ba-acf9-ef15-ef53-f3ead62d0808@nxp.com> (raw)
In-Reply-To: <23E30B2C-F96C-4101-916A-867798830737@mellanox.com>

Hi Yongseok,

On 2/22/2018 8:12 PM, Yongseok Koh wrote:
> Hi,
> 
> If I disable vfio by setting CONFIG_RTE_EAL_VFIO=n, I'm having the following compilation error.
> 
>> /download/dpdk/drivers/bus/fslmc/fslmc_vfio.c: In function ‘fslmc_get_container_group’:
>> /download/dpdk/drivers/bus/fslmc/fslmc_vfio.c:97:2: error: implicit declaration of function ‘vfio_get_group_no’ [-Werror=implicit-function-declaration]
>>    ret = vfio_get_group_no(SYSFS_FSL_MC_DEVICES, g_container, groupid);
>>    ^
>> /download/dpdk/drivers/bus/fslmc/fslmc_vfio.c:97:2: error: nested extern declaration of ‘vfio_get_group_no’ [-Werror=nested-externs]
>> /download/dpdk/drivers/bus/fslmc/fslmc_vfio.c: In function ‘vfio_connect_container’:
>> /download/dpdk/drivers/bus/fslmc/fslmc_vfio.c:131:2: error: implicit declaration of function ‘vfio_get_container_fd’ [-Werror=implicit-function-declaration]
>>    fd = vfio_get_container_fd();
>>    ^
>> /download/dpdk/drivers/bus/fslmc/fslmc_vfio.c:131:2: error: nested extern declaration of ‘vfio_get_container_fd’ [-Werror=nested-externs]
>> /download/dpdk/drivers/bus/fslmc/fslmc_vfio.c: In function ‘fslmc_vfio_setup_group’:
>> /download/dpdk/drivers/bus/fslmc/fslmc_vfio.c:630:2: error: implicit declaration of function ‘vfio_get_group_fd’ [-Werror=implicit-function-declaration]
>>    ret = vfio_get_group_fd(groupid);
>>    ^
>> /download/dpdk/drivers/bus/fslmc/fslmc_vfio.c:630:2: error: nested extern declaration of ‘vfio_get_group_fd’ [-Werror=nested-externs]
>> /download/dpdk/drivers/bus/fslmc/fslmc_vfio.c:640:3: error: implicit declaration of function ‘rte_vfio_clear_group’ [-Werror=implicit-function-declaration]
>>     rte_vfio_clear_group(vfio_group.fd);
>>     ^
>> /download/dpdk/drivers/bus/fslmc/fslmc_vfio.c:640:3: error: nested extern declaration of ‘rte_vfio_clear_group’ [-Werror=nested-externs]
> 
> 
> So, I tried to disable CONFIG_RTE_LIBRTE_FSLMC_BUS, then another error on linkage.

For the time being please disable following, we are looking into it

CONFIG_RTE_LIBRTE_FSLMC_BUS=n
CONFIG_RTE_LIBRTE_DPAA2_MEMPOOL=n
CONFIG_RTE_LIBRTE_PMD_DPAA2_PMD=n
CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC=n
CONFIG_RTE_LIBRTE_PMD_DPAA2_EVENTDEV=n

Regards,
Hemant

> Looks like there're dependencies and those should've been properly addressed??
> 
>> /bin/ld: cannot find -lrte_bus_fslmc
>> collect2: error: ld returned 1 exit status
>> make[5]: *** [dpdk-procinfo] Error 1
>> make[4]: *** [proc_info] Error 2
>> make[4]: *** Waiting for unfinished jobs....
>> /bin/ld: cannot find -lrte_bus_fslmc
>> collect2: error: ld returned 1 exit status
>> make[5]: *** [dpdk-test-crypto-perf] Error 1
>> make[4]: *** [test-crypto-perf] Error 2
>> /bin/ld: cannot find -lrte_bus_fslmc
>> collect2: error: ld returned 1 exit status
>> make[5]: *** [dpdk-pdump] Error 1
>> make[4]: *** [pdump] Error 2
>>    LD dpdk-test-eventdev
>> /bin/ld: cannot find -lrte_bus_fslmc
>> collect2: error: ld returned 1 exit status
>> make[5]: *** [dpdk-test-eventdev] Error 1
>> make[4]: *** [test-eventdev] Error 2
>>    LD testbbdev
>> /bin/ld: cannot find -lrte_bus_fslmc
>> collect2: error: ld returned 1 exit status
>> make[5]: *** [testbbdev] Error 1
>> make[4]: *** [test-bbdev] Error 2
>>    LD testpmd
>> /bin/ld: cannot find -lrte_bus_fslmc
>> collect2: error: ld returned 1 exit status
>> make[5]: *** [testpmd] Error 1
>> make[4]: *** [test-pmd] Error 2
>> make[3]: *** [app] Error 2
>> make[2]: *** [all] Error 2
>> make[1]: *** [pre_install] Error 2
>> make: *** [install] Error 2
> 
> 
> 
> Thanks,
> Yongseok
> 

      reply	other threads:[~2018-02-22 15:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-22 14:42 Yongseok Koh
2018-02-22 15:20 ` Hemant Agrawal [this message]

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=c49356ba-acf9-ef15-ef53-f3ead62d0808@nxp.com \
    --to=hemant.agrawal@nxp.com \
    --cc=akhil.goyal@nxp.com \
    --cc=alialnu@mellanox.com \
    --cc=dev@dpdk.org \
    --cc=nipun.gupta@nxp.com \
    --cc=shreyansh.jain@nxp.com \
    --cc=sunil.kori@nxp.com \
    --cc=yskoh@mellanox.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).