From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id A44935A83 for ; Sat, 17 Jan 2015 15:02:12 +0100 (CET) Received: from [2001:470:8:a08:215:ff:fecc:4872] (helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YCTwx-0002WK-2g; Sat, 17 Jan 2015 09:02:09 -0500 Date: Sat, 17 Jan 2015 09:01:59 -0500 From: Neil Horman To: Srinivasreddy R , g@localhost.localdomain Message-ID: <20150117140159.GB22909@localhost.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.9 (--) X-Spam-Status: No Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [DISCUSSION] : ERROR while compiling dpdk-1.7 on ubuntu14.04 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: Sat, 17 Jan 2015 14:02:13 -0000 On Sat, Jan 17, 2015 at 12:29:30PM +0530, Srinivasreddy R wrote: > hi, > math library -lm is included . > > gcc -m64 -pthread -fPIC -march=native -DRTE_MACHINE_CPUFLAG_SSE > -DRTE_MACHINE_CPUFLAG_SSE2 -DRTE_MACHINE_CPUFLAG_SSE3 > -DRTE_MACHINE_CPUFLAG_SSSE3 -DRTE_MACHINE_CPUFLAG_SSE4_1 > -DRTE_MACHINE_CPUFLAG_SSE4_2 -DRTE_MACHINE_CPUFLAG_AES > -DRTE_MACHINE_CPUFLAG_PCLMULQDQ -DRTE_MACHINE_CPUFLAG_AVX > -DRTE_MACHINE_CPUFLAG_RDRAND -DRTE_MACHINE_CPUFLAG_FSGSBASE > -DRTE_MACHINE_CPUFLAG_F16C -DRTE_MACHINE_CPUFLAG_AVX2 > -DRTE_COMPILE_TIME_CPUFLAGS=RTE_CPUFLAG_SSE,RTE_CPUFLAG_SSE2,RTE_CPUFLAG_SSE3,RTE_CPUFLAG_SSSE3,RTE_CPUFLAG_SSE4_1,RTE_CPUFLAG_SSE4_2,RTE_CPUFLAG_AES,RTE_CPUFLAG_PCLMULQDQ,RTE_CPUFLAG_AVX,RTE_CPUFLAG_RDRAND,RTE_CPUFLAG_FSGSBASE,RTE_CPUFLAG_F16C,RTE_CPUFLAG_AVX2 > -I/home/srini/dpdk-1.7.1/x86_64-ivshmem-linuxapp-gcc/include -include > /home/srini/dpdk-1.7.1/x86_64-ivshmem-linuxapp-gcc/include/rte_config.h -W > -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -Wold-style-definition -Wpointer-arith -Wcast-align > -Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security -Wundef > -Wwrite-strings -Wl,-Map=testacl.map,--cref -o testacl main.o > -Wl,-export-dynamic > -L/home/srini/dpdk-1.7.1/x86_64-ivshmem-linuxapp-gcc/lib > -L/home/srini/dpdk-1.7.1/x86_64-ivshmem-linuxapp-gcc/lib > -Wl,--whole-archive -Wl,-lrte_distributor -Wl,-lrte_kni -Wl,-lrte_ivshmem > -Wl,-lrte_pipeline -Wl,-lrte_table -Wl,-lrte_port -Wl,-lrte_timer > -Wl,-lrte_hash -Wl,-lrte_lpm -Wl,-lrte_power -Wl,-lrte_acl -Wl,-lrte_meter > -Wl,-lrte_sched -Wl,-lm -Wl,-lrt -Wl,--start-group -Wl,-lrte_kvargs > -Wl,-lrte_mbuf -Wl,-lrte_ip_frag -Wl,-lethdev -Wl,-lrte_malloc > -Wl,-lrte_mempool -Wl,-lrte_ring -Wl,-lrte_eal -Wl,-lrte_cmdline > -Wl,-lrte_cfgfile -Wl,-lrte_pmd_bond -Wl,-lrt -Wl,-lm -Wl,-lgcc_s -Wl,-ldl > -Wl,--end-group -Wl,--no-whole-archive -Wl,-lintel_dpdk > /home/srini/dpdk-1.7.1/x86_64-ivshmem-linuxapp-gcc/lib/libintel_dpdk.so: > undefined reference to `log2' > /home/srini/dpdk-1.7.1/x86_64-ivshmem-linuxapp-gcc/lib/libintel_dpdk.so: > undefined reference to `ceil' > /home/srini/dpdk-1.7.1/x86_64-ivshmem-linuxapp-gcc/lib/libintel_dpdk.so: > undefined reference to `pow' > /home/srini/dpdk-1.7.1/x86_64-ivshmem-linuxapp-gcc/lib/libintel_dpdk.so: > undefined reference to `round' > > complete logs are pasted at : > > http://paste.ubuntu.com/9765779/ > > > current ovs dpdk supports only dpdk-1.7.1. > so i was forced to use dpdk-1.7 > I have seen a patch for similar error but it is for dpdk-1.9.1 release > http://dpdk.org/dev/patchwork/patch/716/ > > How can I solve this error . > You'll need to manually backport commit 944088c2abbe81c5bcf21fb3154e0bc7aa7b986d to DPDK 1.7, and then use that modified DPDK with your OVS build, at least until a DPDK 1.7.1 is released Neil > thanks, > srinivas. > > > > > > On Sat, Jan 17, 2015 at 2:37 AM, Wiles, Keith wrote: > > > On 1/16/15, 7:43 AM, "Srinivasreddy R" > > wrote: > > > > >sorry typo i am using Ubuntu 14.04.1 LTS . > > > > > >On Fri, Jan 16, 2015 at 7:06 PM, Srinivasreddy R < > > >srinivasreddy4390@gmail.com> wrote: > > > > > >> hi, > > >> Getting error while compiling dpdk on ubuntu10.04. > > >> > > >> > > >> export RTE_SDK=$(pwd) > > >> export RTE_TARGET="x86_64-ivshmem-linuxapp-gcc" > > >> > > >> make CONFIG_RTE_BUILD_COMBINE_LIBS=y CONFIG_RTE_BUILD_SHARED_LIB=y > > >>install > > >> T="$RTE_TARGET" > > > > Check to make sure you are linking in the math lib -lm you can add a V=1 > > to the command line and see the linker lines. > > > > > > > > > >> > > >> > > >> == Build app/test-acl > > >> CC main.o > > >> LD testacl > > >> /home/DPDK/dpdk-1.7.1/x86_64-ivshmem-linuxapp-gcc/lib/libintel_dpdk.so: > > >> undefined reference to `log2' > > >> /home/DPDK/dpdk-1.7.1/x86_64-ivshmem-linuxapp-gcc/lib/libintel_dpdk.so: > > >> undefined reference to `ceil' > > >> /home/DPDK/dpdk-1.7.1/x86_64-ivshmem-linuxapp-gcc/lib/libintel_dpdk.so: > > >> undefined reference to `pow' > > >> /home/DPDK/dpdk-1.7.1/x86_64-ivshmem-linuxapp-gcc/lib/libintel_dpdk.so: > > >> undefined reference to `round' > > >> collect2: error: ld returned 1 exit status > > >> make[5]: *** [testacl] Error 1 > > >> make[4]: *** [test-acl] Error 2 > > >> make[3]: *** [app] Error 2 > > >> make[2]: *** [all] Error 2 > > >> make[1]: *** [x86_64-ivshmem-linuxapp-gcc_install] Error 2 > > >> make: *** [install] Error 2 > > >> > > >> Following installation procedure at link : > > >> > > >> > > >> > > https://github.com/01org/dpdk-ovs/blob/development/docs/01_Installation.m > > >>d#dpdk > > >> > > >> -------- > > >> thanks > > >> srinivas. > > >> > > > > > > > -- > thanks > srinivas. >