From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-x22b.google.com (mail-pd0-x22b.google.com [IPv6:2607:f8b0:400e:c02::22b]) by dpdk.org (Postfix) with ESMTP id E27D4156 for ; Mon, 9 Dec 2013 10:17:38 +0100 (CET) Received: by mail-pd0-f171.google.com with SMTP id z10so4855369pdj.16 for ; Mon, 09 Dec 2013 01:18:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=so/p2DMXjD+Q/YGd4+Y1rDIymtRfGXUxMAYD7UgT/PM=; b=wiMCDvOuoJyB0UYpjvMKcIdsCIT7ooX3meul13ZafUOGNCIMu0nDcl7NlgVbLpTuZ5 0/fcBSOEm0Y/2YjvJEjUPfXX9wPeA6rKNzCCCRppQlEFjAfIRHBoxdH5OVqMJnSsuvNq SXbxS8ftkSnzajJcW+CzdX7wvk1MSyk+WwcaqfwVPil1k5KYZ6JY5qDI2m0SpLsLktHe Yye4iX32lYjZ6/5m4Zl/cBdfJ7m4k76ZhROiCll0iD2PeQATANhTlzyRww7WQqqqXxk8 B6Qcb+C3FIyrgUCyM107KVFyPkaaEWcUYjDHWRFO1hgZbwVnilyO+1lRASxYTw2IX1Vn liXA== MIME-Version: 1.0 X-Received: by 10.66.231.72 with SMTP id te8mr19940471pac.11.1386580722129; Mon, 09 Dec 2013 01:18:42 -0800 (PST) Received: by 10.68.226.9 with HTTP; Mon, 9 Dec 2013 01:18:42 -0800 (PST) In-Reply-To: References: Date: Mon, 9 Dec 2013 14:48:42 +0530 Message-ID: From: Jyotiswarup Raiturkar To: Romulo Rosa Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Problem with QEMU X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Dec 2013 09:17:39 -0000 --- a/mk/target/generic/rte.vars.mk +++ b/mk/target/generic/rte.vars.mk @@ -105,7 +105,7 @@ ifeq ($(KERNELRELEASE),) # merge all CFLAGS CFLAGS :=3D $(CPU_CFLAGS) $(EXECENV_CFLAGS) $(TOOLCHAIN_CFLAGS) $(MACHINE_CFLAGS) -CFLAGS +=3D $(TARGET_CFLAGS) +CFLAGS +=3D $(TARGET_CFLAGS) -fPIC On Sat, Dec 7, 2013 at 8:32 PM, Romulo Rosa 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 > >> You need to compile DPDK with -fPIC option.. >> >> -Jyoti >> >> >> On Sat, Dec 7, 2013 at 5:50 PM, Romulo Rosa 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/lib= rte_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/lib= rte_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=3D"$(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=F4mulo Rosa Furtado >>> >> >> > > > -- > R=F4mulo Rosa Furtado >