From: Jyotiswarup Raiturkar <jyotisr5@googlemail.com>
To: Romulo Rosa <romuloros@gmail.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Problem with QEMU
Date: Mon, 9 Dec 2013 14:48:42 +0530 [thread overview]
Message-ID: <CAJn5u1mh5Rcstz7ab86Jdxdg-9tmWtbDtnSTK2Sh0aeLhoWB4g@mail.gmail.com> (raw)
In-Reply-To: <CALdSg2g6oDY==W4PUC=cpgWGck1LJrELTc=XMNk+ts=PugpMrg@mail.gmail.com>
--- 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
>
prev parent reply other threads:[~2013-12-09 9:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-07 12:20 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 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=CAJn5u1mh5Rcstz7ab86Jdxdg-9tmWtbDtnSTK2Sh0aeLhoWB4g@mail.gmail.com \
--to=jyotisr5@googlemail.com \
--cc=dev@dpdk.org \
--cc=romuloros@gmail.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).