DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Wiles, Keith" <keith.wiles@intel.com>
To: Subbu CS <developer.subodh@gmail.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] DPDK libraries not compiling from source
Date: Mon, 11 Apr 2016 13:23:36 +0000	[thread overview]
Message-ID: <EA556376-5AC8-4695-811E-B9C5B417C481@intel.com> (raw)
In-Reply-To: <CAFSK5y2EvqdPkM4dkZKYq67TesBDxAV1qB3=XO=SAnhyYnOPyA@mail.gmail.com>

>Hi all,
>
>I tried compiling DPDK from source using setup.sh script in tools
>directory, but I get this error
>
>[32] Remove KNI module
>[33] Remove hugepage mappings
>
>[34] Exit Script

The way I compile DPDK is this way:

# cd <dpdk directory>
# export RTE_SDK=`pwd`
# export RTE_TARGET=x86_64-native-linuxapp-gcc
# make install T=x86_64-native-linuxapp-gcc

Strictly speaking you do not need to set the two variables, but you do need them later for building examples or say pktgen-dpdk.
The last command will give an warning about not being able to install, but that is OK unless you need the files installed. Installing the files are not required if you use the environment variables.

Hope that gets you started. The only concern is the ‘cc’ command not found, which makes me believe you do not have a compiler installed. The Docs do talk about how to install the basic required tools for ubuntu, which is what I am using for the above commands. After getting DPDK to build you need to setup the rest of the system to run DPDK and that is all covered in the Docs.

>
>Option: 14
>
>/bin/sh: line 1: cc: command not found
>cp: cannot stat
>‘/root/workspace/dpdk/x86_64-native-linuxapp-gcc/.config_tmp’: No such file
>or directory
>cp: cannot stat
>‘/root/workspace/dpdk/x86_64-native-linuxapp-gcc/.config_tmp’: No such file
>or directory
>make[5]: Nothing to be done for `depdirs'.
>Configuration done
>/root/workspace/dpdk/mk/rte.vars.mk:81: *** RTE_ARCH is not defined.  Stop.
>make[2]: *** [all] Error 2
>make[1]: *** [pre_install] Error 2
>make: *** [install] Error 2
>------------------------------------------------------------------------------
> RTE_TARGET exported as x86_64-native-linuxapp-gcc
>------------------------------------------------------------------------------
>
>Then, I set RTE_ARCH=x86_64 manually, but it did not work
>
>please suggest appropriate way to compile DPDK libraries.
>


Regards,
Keith





      reply	other threads:[~2016-04-11 13:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-11 12:06 Subbu CS
2016-04-11 13:23 ` Wiles, Keith [this message]

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=EA556376-5AC8-4695-811E-B9C5B417C481@intel.com \
    --to=keith.wiles@intel.com \
    --cc=dev@dpdk.org \
    --cc=developer.subodh@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).