DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Compiling DPDK 16.07 with shared option is failing..
@ 2016-11-09 12:34 Nagaprabhanjan Bellaru
  2016-11-10  5:07 ` Nagaprabhanjan Bellaru
  2016-11-10  8:21 ` Xu, Qian Q
  0 siblings, 2 replies; 6+ messages in thread
From: Nagaprabhanjan Bellaru @ 2016-11-09 12:34 UTC (permalink / raw)
  To: users

Hi,

I am compiling DPDK with "CONFIG_RTE_BUILD_SHARED_LIB=y". However, when I
compile, it is failing at:

--
gcc -pie -fPIC
-L/home/ubuntu/development/libfwdd/src/platform/vpp/vpp/build-root/install-vpp_debug-native/dpdk/lib
-Wl,-g -shared rte_sched.o rte_red.o rte_approx.o rte_reciprocal.o -z defs
-lm -lrt -lrte_eal -lrte_mempool -lrte_mbuf -lrte_timer
-Wl,-soname,librte_sched.so.1.1 -o librte_sched.so.1.1
/usr/bin/ld: cannot find -lrte_timer
--

I can see that librte_timer is not compiled yet, however librte_sched
depends on it - is there any workaround for this issue? Can I change the
order somewhere?

Thanks,
-nagp

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-users] Compiling DPDK 16.07 with shared option is failing..
  2016-11-09 12:34 [dpdk-users] Compiling DPDK 16.07 with shared option is failing Nagaprabhanjan Bellaru
@ 2016-11-10  5:07 ` Nagaprabhanjan Bellaru
  2016-11-10  8:18   ` Thomas Monjalon
  2016-11-10  8:21 ` Xu, Qian Q
  1 sibling, 1 reply; 6+ messages in thread
From: Nagaprabhanjan Bellaru @ 2016-11-10  5:07 UTC (permalink / raw)
  To: users

 I found that librte_timer was not enabled and so the compilation failed.
When I enabled the same, it went ahead and failed at a different place
while compiling librte_pmd:

--
gcc -pie -fPIC
-L/home/ubuntu/development/libfwdd/src/platform/vpp/vpp/build-root/install-vpp_debug-native/dpdk/lib
-Wl,-g -shared rte_eth_bond_api.o rte_eth_bond_pmd.o rte_eth_bond_args.o
rte_eth_bond_8023ad.o rte_eth_bond_alb.o -z defs -lrte_mbuf -lethdev
-lrte_eal -lrte_kvargs -lrte_cmdline -lrte_mempool -lrte_ring
-Wl,-soname,librte_pmd_bond.so.1.1 -o librte_pmd_bond.so.1.1
/usr/bin/ld: librte_pmd_bond.so.1.1: version node not found for symbol
rte_eth_bond_8023ad_conf_get@DPDK_2.0
/usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: error: ld returned 1 exit status
--

I see that the symbol is present in drivers/net/bonding, but I am not sure
how to fix this error. Can someone please help me?

Thanks,
-nagp

On Wed, Nov 9, 2016 at 6:04 PM, Nagaprabhanjan Bellaru <nagp.lists@gmail.com
> wrote:

> Hi,
>
> I am compiling DPDK with "CONFIG_RTE_BUILD_SHARED_LIB=y". However, when I
> compile, it is failing at:
>
> --
> gcc -pie -fPIC -L/home/ubuntu/development/libfwdd/src/platform/vpp/vpp/
> build-root/install-vpp_debug-native/dpdk/lib  -Wl,-g -shared rte_sched.o
> rte_red.o rte_approx.o rte_reciprocal.o -z defs -lm -lrt -lrte_eal
> -lrte_mempool -lrte_mbuf -lrte_timer -Wl,-soname,librte_sched.so.1.1 -o
> librte_sched.so.1.1
> /usr/bin/ld: cannot find -lrte_timer
> --
>
> I can see that librte_timer is not compiled yet, however librte_sched
> depends on it - is there any workaround for this issue? Can I change the
> order somewhere?
>
> Thanks,
> -nagp
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-users] Compiling DPDK 16.07 with shared option is failing..
  2016-11-10  5:07 ` Nagaprabhanjan Bellaru
@ 2016-11-10  8:18   ` Thomas Monjalon
  2016-11-10  8:23     ` Nagaprabhanjan Bellaru
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Monjalon @ 2016-11-10  8:18 UTC (permalink / raw)
  To: Nagaprabhanjan Bellaru; +Cc: users

2016-11-10 10:37, Nagaprabhanjan Bellaru:
>  I found that librte_timer was not enabled and so the compilation failed.
> When I enabled the same, it went ahead and failed at a different place
> while compiling librte_pmd:
> 
> --
> gcc -pie -fPIC
> -L/home/ubuntu/development/libfwdd/src/platform/vpp/vpp/build-root/install-vpp_debug-native/dpdk/lib
> -Wl,-g -shared rte_eth_bond_api.o rte_eth_bond_pmd.o rte_eth_bond_args.o
> rte_eth_bond_8023ad.o rte_eth_bond_alb.o -z defs -lrte_mbuf -lethdev
> -lrte_eal -lrte_kvargs -lrte_cmdline -lrte_mempool -lrte_ring
> -Wl,-soname,librte_pmd_bond.so.1.1 -o librte_pmd_bond.so.1.1
> /usr/bin/ld: librte_pmd_bond.so.1.1: version node not found for symbol
> rte_eth_bond_8023ad_conf_get@DPDK_2.0
> /usr/bin/ld: failed to set dynamic section sizes: Bad value
> collect2: error: ld returned 1 exit status
> --

What are you changing in the default configuration?
Which commands are you using to compile?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-users] Compiling DPDK 16.07 with shared option is failing..
  2016-11-09 12:34 [dpdk-users] Compiling DPDK 16.07 with shared option is failing Nagaprabhanjan Bellaru
  2016-11-10  5:07 ` Nagaprabhanjan Bellaru
@ 2016-11-10  8:21 ` Xu, Qian Q
  1 sibling, 0 replies; 6+ messages in thread
From: Xu, Qian Q @ 2016-11-10  8:21 UTC (permalink / raw)
  To: Nagaprabhanjan Bellaru, users; +Cc: Chen, WeichunX, Wei, FangfangX, Lu, PeipeiX

We have tested the configuration, and it works on our platform. I wonder what's your OS/Kernel/gcc version. 

-----Original Message-----
From: users [mailto:users-bounces@dpdk.org] On Behalf Of Nagaprabhanjan Bellaru
Sent: Wednesday, November 9, 2016 8:34 PM
To: users@dpdk.org
Subject: [dpdk-users] Compiling DPDK 16.07 with shared option is failing..

Hi,

I am compiling DPDK with "CONFIG_RTE_BUILD_SHARED_LIB=y". However, when I compile, it is failing at:

--
gcc -pie -fPIC
-L/home/ubuntu/development/libfwdd/src/platform/vpp/vpp/build-root/install-vpp_debug-native/dpdk/lib
-Wl,-g -shared rte_sched.o rte_red.o rte_approx.o rte_reciprocal.o -z defs -lm -lrt -lrte_eal -lrte_mempool -lrte_mbuf -lrte_timer
-Wl,-soname,librte_sched.so.1.1 -o librte_sched.so.1.1
/usr/bin/ld: cannot find -lrte_timer
--

I can see that librte_timer is not compiled yet, however librte_sched depends on it - is there any workaround for this issue? Can I change the order somewhere?

Thanks,
-nagp

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-users] Compiling DPDK 16.07 with shared option is failing..
  2016-11-10  8:18   ` Thomas Monjalon
@ 2016-11-10  8:23     ` Nagaprabhanjan Bellaru
  2016-11-10 12:28       ` Nagaprabhanjan Bellaru
  0 siblings, 1 reply; 6+ messages in thread
From: Nagaprabhanjan Bellaru @ 2016-11-10  8:23 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: users

Hi,

I am compiling DPDK as part of VPP (Cisco). It has rte_timer etc. turned
off. I enabled it and stumbled on this error. DPDK compilation is invoked
by VPP.

-nagp

On Thu, Nov 10, 2016 at 1:48 PM, Thomas Monjalon <thomas.monjalon@6wind.com>
wrote:

> 2016-11-10 10:37, Nagaprabhanjan Bellaru:
> >  I found that librte_timer was not enabled and so the compilation failed.
> > When I enabled the same, it went ahead and failed at a different place
> > while compiling librte_pmd:
> >
> > --
> > gcc -pie -fPIC
> > -L/home/ubuntu/development/libfwdd/src/platform/vpp/vpp/
> build-root/install-vpp_debug-native/dpdk/lib
> > -Wl,-g -shared rte_eth_bond_api.o rte_eth_bond_pmd.o rte_eth_bond_args.o
> > rte_eth_bond_8023ad.o rte_eth_bond_alb.o -z defs -lrte_mbuf -lethdev
> > -lrte_eal -lrte_kvargs -lrte_cmdline -lrte_mempool -lrte_ring
> > -Wl,-soname,librte_pmd_bond.so.1.1 -o librte_pmd_bond.so.1.1
> > /usr/bin/ld: librte_pmd_bond.so.1.1: version node not found for symbol
> > rte_eth_bond_8023ad_conf_get@DPDK_2.0
> > /usr/bin/ld: failed to set dynamic section sizes: Bad value
> > collect2: error: ld returned 1 exit status
> > --
>
> What are you changing in the default configuration?
> Which commands are you using to compile?
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-users] Compiling DPDK 16.07 with shared option is failing..
  2016-11-10  8:23     ` Nagaprabhanjan Bellaru
@ 2016-11-10 12:28       ` Nagaprabhanjan Bellaru
  0 siblings, 0 replies; 6+ messages in thread
From: Nagaprabhanjan Bellaru @ 2016-11-10 12:28 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: users

I am not sure why it complains about "rte_eth_bond_8023ad_conf_get@DPDK_2.0"
when I cam compiling for 16.07. Anyways, if I change the symbol names, the
compilation goes through fine.

-nagp

On Thu, Nov 10, 2016 at 1:53 PM, Nagaprabhanjan Bellaru <
nagp.lists@gmail.com> wrote:

> Hi,
>
> I am compiling DPDK as part of VPP (Cisco). It has rte_timer etc. turned
> off. I enabled it and stumbled on this error. DPDK compilation is invoked
> by VPP.
>
> -nagp
>
> On Thu, Nov 10, 2016 at 1:48 PM, Thomas Monjalon <
> thomas.monjalon@6wind.com> wrote:
>
>> 2016-11-10 10:37, Nagaprabhanjan Bellaru:
>> >  I found that librte_timer was not enabled and so the compilation
>> failed.
>> > When I enabled the same, it went ahead and failed at a different place
>> > while compiling librte_pmd:
>> >
>> > --
>> > gcc -pie -fPIC
>> > -L/home/ubuntu/development/libfwdd/src/platform/vpp/vpp/buil
>> d-root/install-vpp_debug-native/dpdk/lib
>> > -Wl,-g -shared rte_eth_bond_api.o rte_eth_bond_pmd.o rte_eth_bond_args.o
>> > rte_eth_bond_8023ad.o rte_eth_bond_alb.o -z defs -lrte_mbuf -lethdev
>> > -lrte_eal -lrte_kvargs -lrte_cmdline -lrte_mempool -lrte_ring
>> > -Wl,-soname,librte_pmd_bond.so.1.1 -o librte_pmd_bond.so.1.1
>> > /usr/bin/ld: librte_pmd_bond.so.1.1: version node not found for symbol
>> > rte_eth_bond_8023ad_conf_get@DPDK_2.0
>> > /usr/bin/ld: failed to set dynamic section sizes: Bad value
>> > collect2: error: ld returned 1 exit status
>> > --
>>
>> What are you changing in the default configuration?
>> Which commands are you using to compile?
>>
>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-11-10 12:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-09 12:34 [dpdk-users] Compiling DPDK 16.07 with shared option is failing Nagaprabhanjan Bellaru
2016-11-10  5:07 ` Nagaprabhanjan Bellaru
2016-11-10  8:18   ` Thomas Monjalon
2016-11-10  8:23     ` Nagaprabhanjan Bellaru
2016-11-10 12:28       ` Nagaprabhanjan Bellaru
2016-11-10  8:21 ` Xu, Qian Q

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).