DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev]  Problem with QEMU
@ 2013-12-07 12:20 Romulo Rosa
  2013-12-07 14:02 ` Jyotiswarup Raiturkar
  0 siblings, 1 reply; 7+ messages in thread
From: Romulo Rosa @ 2013-12-07 12:20 UTC (permalink / raw)
  To: dev

Hi,

I'm trying to compile QEMU on Ubuntu 12:04 and'm having the following
problem:

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)


Anyone know how to help me?

Thanks!

-- 
Rômulo Rosa Furtado

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

* Re: [dpdk-dev] Problem with QEMU
  2013-12-07 12:20 [dpdk-dev] Problem with QEMU Romulo Rosa
@ 2013-12-07 14:02 ` Jyotiswarup Raiturkar
  2013-12-07 15:02   ` Romulo Rosa
  0 siblings, 1 reply; 7+ messages in thread
From: Jyotiswarup Raiturkar @ 2013-12-07 14:02 UTC (permalink / raw)
  To: Romulo Rosa; +Cc: dev

You need to compile DPDK with -fPIC option..

-Jyoti


On Sat, Dec 7, 2013 at 5:50 PM, Romulo Rosa <romuloros@gmail.com> wrote:

> Hi,
>
> I'm trying to compile QEMU on Ubuntu 12:04 and'm having the following
> problem:
>
> 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)
>
>
> Anyone know how to help me?
>
> Thanks!
>
> --
> Rômulo Rosa Furtado
>

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

* Re: [dpdk-dev] Problem with QEMU
  2013-12-07 14:02 ` Jyotiswarup Raiturkar
@ 2013-12-07 15:02   ` Romulo Rosa
  2013-12-09  9:09     ` Thomas Monjalon
  2013-12-09  9:18     ` Jyotiswarup Raiturkar
  0 siblings, 2 replies; 7+ messages in thread
From: Romulo Rosa @ 2013-12-07 15:02 UTC (permalink / raw)
  To: Jyotiswarup Raiturkar; +Cc: dev

Thanks for the feedback. I compiled the DPDK with the -fPIC option. Is
there any specific location in the Makefile DPDK where should I put the
-fPIC option?


2013/12/7 Jyotiswarup Raiturkar <jyotisr5@googlemail.com>

> You need to compile DPDK with -fPIC option..
>
> -Jyoti
>
>
> On Sat, Dec 7, 2013 at 5:50 PM, Romulo Rosa <romuloros@gmail.com> wrote:
>
>> Hi,
>>
>> I'm trying to compile QEMU on Ubuntu 12:04 and'm having the following
>> problem:
>>
>> 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)
>>
>>
>> Anyone know how to help me?
>>
>> Thanks!
>>
>> --
>> Rômulo Rosa Furtado
>>
>
>


-- 
Rômulo Rosa Furtado

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

* Re: [dpdk-dev] Problem with QEMU
  2013-12-07 15:02   ` Romulo Rosa
@ 2013-12-09  9:09     ` Thomas Monjalon
  2013-12-09  9:58       ` Romulo Rosa
  2013-12-09  9:18     ` Jyotiswarup Raiturkar
  1 sibling, 1 reply; 7+ messages in thread
From: Thomas Monjalon @ 2013-12-09  9:09 UTC (permalink / raw)
  To: Romulo Rosa; +Cc: dev

07/12/2013 16:02, Romulo Rosa :
> Thanks for the feedback. I compiled the DPDK with the -fPIC option. Is
> there any specific location in the Makefile DPDK where should I put the
> -fPIC option?

You can use EXTRA_CFLAGS=-fPIC on the command line.

-- 
Thomas

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

* Re: [dpdk-dev] Problem with QEMU
  2013-12-07 15:02   ` Romulo Rosa
  2013-12-09  9:09     ` Thomas Monjalon
@ 2013-12-09  9:18     ` Jyotiswarup Raiturkar
  1 sibling, 0 replies; 7+ messages in thread
From: Jyotiswarup Raiturkar @ 2013-12-09  9:18 UTC (permalink / raw)
  To: Romulo Rosa; +Cc: dev

--- a/mk/target/generic/rte.vars.mk
+++ b/mk/target/generic/rte.vars.mk
@@ -105,7 +105,7 @@ ifeq ($(KERNELRELEASE),)
# merge all CFLAGS
CFLAGS := $(CPU_CFLAGS) $(EXECENV_CFLAGS) $(TOOLCHAIN_CFLAGS)
$(MACHINE_CFLAGS)
-CFLAGS += $(TARGET_CFLAGS)
+CFLAGS += $(TARGET_CFLAGS) -fPIC



On Sat, Dec 7, 2013 at 8:32 PM, Romulo Rosa <romuloros@gmail.com> wrote:

> Thanks for the feedback. I compiled the DPDK with the -fPIC option. Is
> there any specific location in the Makefile DPDK where should I put the
> -fPIC option?
>
>
> 2013/12/7 Jyotiswarup Raiturkar <jyotisr5@googlemail.com>
>
>> You need to compile DPDK with -fPIC option..
>>
>> -Jyoti
>>
>>
>> On Sat, Dec 7, 2013 at 5:50 PM, Romulo Rosa <romuloros@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I'm trying to compile QEMU on Ubuntu 12:04 and'm having the following
>>> problem:
>>>
>>> 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)
>>>
>>>
>>> Anyone know how to help me?
>>>
>>> Thanks!
>>>
>>> --
>>> Rômulo Rosa Furtado
>>>
>>
>>
>
>
> --
> Rômulo Rosa Furtado
>

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

* Re: [dpdk-dev] Problem with QEMU
  2013-12-09  9:09     ` Thomas Monjalon
@ 2013-12-09  9:58       ` Romulo Rosa
  2013-12-09 11:15         ` Romulo Rosa
  0 siblings, 1 reply; 7+ messages in thread
From: Romulo Rosa @ 2013-12-09  9:58 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev

Hello guys, thanks for the help. Yesterday I could compile with-fPIC
however'm already trying to solve another problem in compiling QEMU. I had
the same problem compiling ovs. Jyotiswarup Raiturkar helped me with OVS
and I'm trying to adapt the solution to this case. If you already know how
to appreciate the help again.

/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/lib/librte_eal.a(eal_common_nonpci_devs.o):(.data.rel+0x8):
undefined reference to `rte_pmd_ring_init'
collect2: ld returned 1 exit status
make[1]: ** [qemu-system-x86_64] Erro 1
make: ** [subdir-x86_64-softmmu] Erro 2



2013/12/9 Thomas Monjalon <thomas.monjalon@6wind.com>

> 07/12/2013 16:02, Romulo Rosa :
> > Thanks for the feedback. I compiled the DPDK with the -fPIC option. Is
> > there any specific location in the Makefile DPDK where should I put the
> > -fPIC option?
>
> You can use EXTRA_CFLAGS=-fPIC on the command line.
>
> --
> Thomas
>



-- 
Rômulo Rosa Furtado

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

* Re: [dpdk-dev] Problem with QEMU
  2013-12-09  9:58       ` Romulo Rosa
@ 2013-12-09 11:15         ` Romulo Rosa
  0 siblings, 0 replies; 7+ messages in thread
From: Romulo Rosa @ 2013-12-09 11:15 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev

Just to record how I solved the problem for those who might have the same
problem. Then run the command / configure - enable-kvm - dpdkdir = / path /
to / dpdk - target-list = x86_64-softmmu

--- a/dpdk-ovs/qemu/config-host.mak 2013-12-09 09:05:04.401122670 -0200
+++ b/dpdk-ovs/qemu/config-host.mak 2013-12-09 08:57:16.881103500 -0200
@@ -33,7 +33,10 @@
    $(dpdk_lib_dir)/librte_mbuf.a \
    $(dpdk_lib_dir)/librte_ring.a \
    $(dpdk_lib_dir)/librte_mempool.a \
-   $(dpdk_lib_dir)/librte_malloc.a
+   $(dpdk_lib_dir)/librte_malloc.a \
+   $(dpdk_lib_dir)/librte_pmd_ring.a \
+   $(dpdk_lib_dir)/libethdev.a


2013/12/9 Romulo Rosa <romuloros@gmail.com>

> Hello guys, thanks for the help. Yesterday I could compile with-fPIC
> however'm already trying to solve another problem in compiling QEMU. I had
> the same problem compiling ovs. Jyotiswarup Raiturkar helped me with OVS
> and I'm trying to adapt the solution to this case. If you already know how
> to appreciate the help again.
>
> /dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/lib/librte_eal.a(eal_common_nonpci_devs.o):(.data.rel+0x8):
> undefined reference to `rte_pmd_ring_init'
> collect2: ld returned 1 exit status
> make[1]: ** [qemu-system-x86_64] Erro 1
> make: ** [subdir-x86_64-softmmu] Erro 2
>
>
>
> 2013/12/9 Thomas Monjalon <thomas.monjalon@6wind.com>
>
>> 07/12/2013 16:02, Romulo Rosa :
>> > Thanks for the feedback. I compiled the DPDK with the -fPIC option. Is
>> > there any specific location in the Makefile DPDK where should I put the
>> > -fPIC option?
>>
>> You can use EXTRA_CFLAGS=-fPIC on the command line.
>>
>> --
>> Thomas
>>
>
>
>
> --
> Rômulo Rosa Furtado
>



-- 
Rômulo Rosa Furtado

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

end of thread, other threads:[~2013-12-09 11:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-07 12:20 [dpdk-dev] Problem with QEMU Romulo Rosa
2013-12-07 14:02 ` Jyotiswarup Raiturkar
2013-12-07 15:02   ` Romulo Rosa
2013-12-09  9:09     ` Thomas Monjalon
2013-12-09  9:58       ` Romulo Rosa
2013-12-09 11:15         ` Romulo Rosa
2013-12-09  9:18     ` Jyotiswarup Raiturkar

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