[dpdk-dev] Erro on setup Intel DPDK vSwitch

Romulo Rosa romuloros at gmail.com
Wed Dec 4 13:37:04 CET 2013


Thanks, this solved my problem. But now, trying to compile qemu and i have
the follow error:

LINK  x86_64-softmmu/qemu-system-x86_64
/usr/bin/ld:
/home/xerifao/ovs_dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/lib/librte_eal.a(eal.o):
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making
a shared object; recompile with -fPIC
/home/xerifao/ovs_dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/lib/librte_eal.a:
could not read symbols: Bad value
collect2: ld returned 1 exit status

The fPIC flag is setted on my Makefile:

pixman/Makefile: $(SRC_PATH)/pixman/configure
        (cd pixman; CFLAGS="$(CFLAGS) -fPIC $(extra_cflags)
$(extra_ldflags)" $(SRC_PATH)/pixman/configure $(AUTOCONF_HOST)
--disable-gtk --disable-shared --enable-static)



2013/12/4 Jyotiswarup Raiturkar <jyotisr5 at googlemail.com>

> This should fix it
>
> diff --git a/openvswitch/Makefile.am b/openvswitch/Makefile.am
> index fbee87b..b8da768 100644
> --- a/openvswitch/Makefile.am
> +++ b/openvswitch/Makefile.am
> @@ -28,7 +28,9 @@ endif
>        @HAVE_DPDK_TRUE@$(dpdk_lib_dir)/librte_mbuf.a \
>        @HAVE_DPDK_TRUE@$(dpdk_lib_dir)/librte_ring.a \
>        @HAVE_DPDK_TRUE@$(dpdk_lib_dir)/librte_mempool.a \
> -      @HAVE_DPDK_TRUE@$(dpdk_lib_dir)/librte_malloc.a
> +      @HAVE_DPDK_TRUE@$(dpdk_lib_dir)/librte_malloc.a \
> +      @HAVE_DPDK_TRUE@$(dpdk_lib_dir)/librte_pmd_ring.a \
> +      @HAVE_DPDK_TRUE@$(dpdk_lib_dir)/libethdev.a
>  AM_CPPFLAGS = $(SSL_CFLAGS)
>
>
> On Tue, Dec 3, 2013 at 9:43 PM, Romulo Rosa <romuloros at gmail.com> wrote:
>
>> I'm trying to do a setup in Ubuntu 12.04 (i have tried on Fedora before)
>> and i got some error. Recompiled the kernel and was later compiled
>> successfully DPDK (version: 1.5.1r1). Then the cloned OVS_DPDK (source
>> https://github.com/01org/dpdk-ovs). The error appears when I try to
>> compile
>> the OVS.
>> The following output is displayed:
>>
>> gcc -Wstrict-prototypes -Wall -Wno-sign-compare -Wpointer-arith
>> -Wdeclaration-after-statement -Wformat-security -Wswitch-enum
>> -Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align
>> -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
>> -Wmissing-field-initializers -Wno-override-init  -g -O2 -export-dynamic
>> -lpthread  -o utilities/ovs-dpctl utilities/ovs-dpctl.o
>> lib/libopenvswitch.a
>>
>> /home/xerifao/ovs_dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/lib/librte_eal.a
>>
>> /home/xerifao/ovs_dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/lib/libethdev.a
>>
>> /home/xerifao/ovs_dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/lib/librte_cmdline.a
>>
>> /home/xerifao/ovs_dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/lib/librte_hash.a
>>
>> /home/xerifao/ovs_dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/lib/librte_lpm.a
>>
>> /home/xerifao/ovs_dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/lib/librte_mbuf.a
>>
>> /home/xerifao/ovs_dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/lib/librte_ring.a
>>
>> /home/xerifao/ovs_dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/lib/librte_mempool.a
>>
>> /home/xerifao/ovs_dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/lib/librte_malloc.a
>> -lrt -lm -ldl -pthread -lpthread
>>
>> /home/xerifao/ovs_dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/lib/librte_eal.a(eal_common_nonpci_devs.o):(.data+0x8):
>> undefined reference to `rte_pmd_ring_init'
>> collect2: ld returned 1 exit status
>>
>>
>>
>> I followed the "Intel DPDK gettin started guide" and "Intel DPDK vSwitch
>> Getting Started Guide" documentation
>>
>>
>> Thank you for your attention.
>>
>> --
>> Rômulo Rosa Furtado
>>
>
>


-- 
Rômulo Rosa Furtado


More information about the dev mailing list