All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with QEMU
@ 2013-12-07 12:20 Romulo Rosa
       [not found] ` <CALdSg2jPuoWouMOXAFASX8G5E4Bx6HsY5_jF3oBwybDPxOsZMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Romulo Rosa @ 2013-12-07 12:20 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

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: Problem with QEMU
       [not found] ` <CALdSg2jPuoWouMOXAFASX8G5E4Bx6HsY5_jF3oBwybDPxOsZMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-12-07 14:02   ` Jyotiswarup Raiturkar
       [not found]     ` <CAJn5u1=dKj3b1W8ien8qrhDD-eV3tKG_NLZn6zOPrdcBnK_Uzw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Jyotiswarup Raiturkar @ 2013-12-07 14:02 UTC (permalink / raw)
  To: Romulo Rosa; +Cc: dev-VfR2kkLFssw

You need to compile DPDK with -fPIC option..

-Jyoti


On Sat, Dec 7, 2013 at 5:50 PM, Romulo Rosa <romuloros-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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: Problem with QEMU
       [not found]     ` <CAJn5u1=dKj3b1W8ien8qrhDD-eV3tKG_NLZn6zOPrdcBnK_Uzw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-12-07 15:02       ` Romulo Rosa
       [not found]         ` <CALdSg2g6oDY==W4PUC=cpgWGck1LJrELTc=XMNk+ts=PugpMrg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Romulo Rosa @ 2013-12-07 15:02 UTC (permalink / raw)
  To: Jyotiswarup Raiturkar; +Cc: dev-VfR2kkLFssw

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-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>

> You need to compile DPDK with -fPIC option..
>
> -Jyoti
>
>
> On Sat, Dec 7, 2013 at 5:50 PM, Romulo Rosa <romuloros-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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: Problem with QEMU
       [not found]         ` <CALdSg2g6oDY==W4PUC=cpgWGck1LJrELTc=XMNk+ts=PugpMrg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-12-09  9:09           ` Thomas Monjalon
       [not found]             ` <201312091009.04113.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
  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-VfR2kkLFssw

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: Problem with QEMU
       [not found]         ` <CALdSg2g6oDY==W4PUC=cpgWGck1LJrELTc=XMNk+ts=PugpMrg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  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-VfR2kkLFssw

--- 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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
>
>> You need to compile DPDK with -fPIC option..
>>
>> -Jyoti
>>
>>
>> On Sat, Dec 7, 2013 at 5:50 PM, Romulo Rosa <romuloros-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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: Problem with QEMU
       [not found]             ` <201312091009.04113.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
@ 2013-12-09  9:58               ` Romulo Rosa
       [not found]                 ` <CALdSg2gDTCH4-swtKaCaEFKL_zcKz0g=HheChLWVDtMzMpQK6w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Romulo Rosa @ 2013-12-09  9:58 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev-VfR2kkLFssw

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-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>

> 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: Problem with QEMU
       [not found]                 ` <CALdSg2gDTCH4-swtKaCaEFKL_zcKz0g=HheChLWVDtMzMpQK6w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 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-VfR2kkLFssw

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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

> 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-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
>
>> 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:15 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 Problem with QEMU Romulo Rosa
     [not found] ` <CALdSg2jPuoWouMOXAFASX8G5E4Bx6HsY5_jF3oBwybDPxOsZMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-12-07 14:02   ` Jyotiswarup Raiturkar
     [not found]     ` <CAJn5u1=dKj3b1W8ien8qrhDD-eV3tKG_NLZn6zOPrdcBnK_Uzw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-12-07 15:02       ` Romulo Rosa
     [not found]         ` <CALdSg2g6oDY==W4PUC=cpgWGck1LJrELTc=XMNk+ts=PugpMrg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-12-09  9:09           ` Thomas Monjalon
     [not found]             ` <201312091009.04113.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2013-12-09  9:58               ` Romulo Rosa
     [not found]                 ` <CALdSg2gDTCH4-swtKaCaEFKL_zcKz0g=HheChLWVDtMzMpQK6w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-12-09 11:15                   ` Romulo Rosa
2013-12-09  9:18           ` Jyotiswarup Raiturkar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.