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

Neil Horman nhorman at tuxdriver.com
Sat Jan 17 15:01:59 CET 2015


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 <keith.wiles at intel.com> wrote:
> 
> > On 1/16/15, 7:43 AM, "Srinivasreddy R" <srinivasreddy4390 at gmail.com>
> > wrote:
> >
> > >sorry typo i am using Ubuntu 14.04.1 LTS .
> > >
> > >On Fri, Jan 16, 2015 at 7:06 PM, Srinivasreddy R <
> > >srinivasreddy4390 at 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.
> 


More information about the dev mailing list