Re: [DISCUSSION] : ERROR while compiling dpdk-1.7 on ubuntu14.04

From: Srinivasreddy R <hidden>
Date: 2015-01-17 06:59:30

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 .

thanks,
srinivas.





On Sat, Jan 17, 2015 at 2:37 AM, Wiles, Keith [off-list ref] wrote:
On 1/16/15, 7:43 AM, "Srinivasreddy R" [off-list ref]
wrote:
quoted
sorry typo i am using Ubuntu 14.04.1 LTS .

On Fri, Jan 16, 2015 at 7:06 PM, Srinivasreddy R <
srinivasreddy4390-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
quoted
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.
quoted
quoted

== 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
quoted
quoted
d#dpdk

--------
thanks
srinivas.

-- 
thanks
srinivas.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help