DPDK patches and discussions
 help / color / mirror / Atom feed
From: Neil Horman <nhorman@tuxdriver.com>
To: Srinivasreddy R <srinivasreddy4390@gmail.com>, g@localhost.localdomain
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [DISCUSSION] : ERROR while compiling dpdk-1.7 on ubuntu14.04
Date: Sat, 17 Jan 2015 09:01:59 -0500	[thread overview]
Message-ID: <20150117140159.GB22909@localhost.localdomain> (raw)
In-Reply-To: <CAJP4VWjVQAXxh4Yvujw9BvhG0QBOnaY_8WVKSCy_wQ1EZxnMTQ@mail.gmail.com>

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@intel.com> wrote:
> 
> > On 1/16/15, 7:43 AM, "Srinivasreddy R" <srinivasreddy4390@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@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.
> 

  reply	other threads:[~2015-01-17 14:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-17  6:59 Srinivasreddy R
2015-01-17 14:01 ` Neil Horman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-01-16 13:43 Srinivasreddy R
2015-01-16 14:07 ` De Lara Guarch, Pablo
2015-01-16 21:07 ` Wiles, Keith
2015-01-16 13:36 Srinivasreddy R

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150117140159.GB22909@localhost.localdomain \
    --to=nhorman@tuxdriver.com \
    --cc=dev@dpdk.org \
    --cc=g@localhost.localdomain \
    --cc=srinivasreddy4390@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).