DPDK patches and discussions
 help / color / mirror / Atom feed
From: Romulo Rosa <romuloros@gmail.com>
To: Jyotiswarup Raiturkar <jyotisr5@googlemail.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Erro on setup Intel DPDK vSwitch
Date: Wed, 4 Dec 2013 10:37:04 -0200	[thread overview]
Message-ID: <CALdSg2hp01pFQbzvR+UEnnnH0YEih3HeQoBLEG1MqyxQpWohzw@mail.gmail.com> (raw)
In-Reply-To: <CAJn5u1kzHdwWB-yWhE6ecRcWf2bPk6UTpMSbyiaYxGhchniaWg@mail.gmail.com>

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@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@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

      reply	other threads:[~2013-12-04 12:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-03 16:13 Romulo Rosa
2013-12-04  4:52 ` Jyotiswarup Raiturkar
2013-12-04 12:37   ` Romulo Rosa [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=CALdSg2hp01pFQbzvR+UEnnnH0YEih3HeQoBLEG1MqyxQpWohzw@mail.gmail.com \
    --to=romuloros@gmail.com \
    --cc=dev@dpdk.org \
    --cc=jyotisr5@googlemail.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).