[dpdk-dev] Problem with QEMU

Jyotiswarup Raiturkar jyotisr5 at googlemail.com
Mon Dec 9 10:18:42 CET 2013


--- 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 at 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 at googlemail.com>
>
>> You need to compile DPDK with -fPIC option..
>>
>> -Jyoti
>>
>>
>> On Sat, Dec 7, 2013 at 5:50 PM, Romulo Rosa <romuloros at 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
>


More information about the dev mailing list