From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f176.google.com (mail-we0-f176.google.com [74.125.82.176]) by dpdk.org (Postfix) with ESMTP id C02BF5A3D for ; Sat, 17 Jan 2015 07:59:30 +0100 (CET) Received: by mail-we0-f176.google.com with SMTP id w61so23539629wes.7 for ; Fri, 16 Jan 2015 22:59:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=v/Mcb5BqbndN6YGw/NE0NFq/FE5uji6Gcf+5Fzdjt7o=; b=PQIPvM9zFnhDMRa7Uj3ACmExsSdUi4+HN0HZZsT2aDvF1z5z62rb/rTS60Px+VETeT JW4DMSV6ZvNVSBO1ACZ07S9M8j9NweeDhfMHA6/l48AspX1INaYAusD6hTMKxHPB/TAx Glfwc7zsM/Ssic/QDsThjnMKeAEWX1GJG0VdSTfy+GyWcyqrPTahzkHE+GEBDZtHlw4G GcxC1t5XfAhvXSsoHnxmr0D/acYnJAMcg/c2bd3Vhs6OYzjFtgzNpafx8stNLvv4FT4R 4071XqxVI9aF5o2jht177G+TPOmKgoKGP6e3qWjvolKFevBfGZOjaUh6BNRq+VBPLCAp clPw== MIME-Version: 1.0 X-Received: by 10.181.29.198 with SMTP id jy6mr14112422wid.0.1421477970620; Fri, 16 Jan 2015 22:59:30 -0800 (PST) Received: by 10.216.192.194 with HTTP; Fri, 16 Jan 2015 22:59:30 -0800 (PST) Date: Sat, 17 Jan 2015 12:29:30 +0530 Message-ID: From: Srinivasreddy R To: "Wiles, Keith" , pablo.de.lara.guarch@intel.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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 06:59:30 -0000 hi, math library -lm is included . gcc -m64 -pthread -fPIC -march=3Dnative -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=3DRTE_CPUFLAG_SSE,RTE_CPUFLAG_SSE2,RTE_CPUFLAG_= SSE3,RTE_CPUFLAG_SSSE3,RTE_CPUFLAG_SSE4_1,RTE_CPUFLAG_SSE4_2,RTE_CPUFLAG_AE= S,RTE_CPUFLAG_PCLMULQDQ,RTE_CPUFLAG_AVX,RTE_CPUFLAG_RDRAND,RTE_CPUFLAG_FSGS= BASE,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=3Dtestacl.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 . 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=3D$(pwd) > >> export RTE_TARGET=3D"x86_64-ivshmem-linuxapp-gcc" > >> > >> make CONFIG_RTE_BUILD_COMBINE_LIBS=3Dy CONFIG_RTE_BUILD_SHARED_LIB=3Dy > >>install > >> T=3D"$RTE_TARGET" > > Check to make sure you are linking in the math lib -lm you can add a V=3D= 1 > to the command line and see the linker lines. > > > > >> > >> > >> =3D=3D 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. > >> > > --=20 thanks srinivas.