[dpdk-users] Getting error while configuring dpdk-reg.

Wiles, Keith keith.wiles at intel.com
Mon Feb 5 14:57:06 CET 2018



> On Feb 5, 2018, at 12:16 AM, sharanya k <ksharanya.97 at gmail.com> wrote:
> 
> Hi,
> 
> I have installed dpdk-stable-17.08.1.While configuring dpdk, I tried
> to set the dpdk environment to build x86_64-native-linuxapp-gcc. But
> it shows some errors as follows,
> 
> In file included from
> /home/ladmin/dpdk-stable-17.08.1/lib/librte_eal/linuxapp/eal/eal.c:57:0:
> /home/ladmin/dpdk-stable-17.08.1/x86_64-native-linuxapp-gcc/include/rte_debug.h:82:5:
> warning: "RTE_LOG_LEVEL" is not defined [-Wundef]
> #if RTE_LOG_LEVEL >= RTE_LOG_DEBUG
>     ^
> In file included from
> /home/ladmin/dpdk-stable-17.08.1/lib/librte_eal/linuxapp/eal/eal.c:58:0:
> /home/ladmin/dpdk-stable-17.08.1/x86_64-native-linuxapp-gcc/include/rte_memory.h:81:5:
> warning: "RTE_CACHE_LINE_SIZE" is not defined [-Wundef]
> #if RTE_CACHE_LINE_SIZE == 64
>     ^
> /home/ladmin/dpdk-stable-17.08.1/x86_64-native-linuxapp-gcc/include/rte_memory.h:83:7:
> warning: "RTE_CACHE_LINE_SIZE" is not defined [-Wundef]
> #elif RTE_CACHE_LINE_SIZE == 128
>       ^
> /home/ladmin/dpdk-stable-17.08.1/x86_64-native-linuxapp-gcc/include/rte_memory.h:86:2:
> error: #error "Unsupported cache line size"
> #error "Unsupported cache line size"
>  ^
> In file included from
> /home/ladmin/dpdk-stable-17.08.1/lib/librte_eal/linuxapp/eal/eal.c:61:0:
> /home/ladmin/dpdk-stable-17.08.1/x86_64-native-linuxapp-gcc/include/rte_eal.h:85:35:
> error: \u2018RTE_MAX_LCORE\u2019 undeclared here (not in a function)
>  enum rte_lcore_role_t lcore_role[RTE_MAX_LCORE]; /**< State of cores. */
> 

Can you give me the directory and command line used, plus the OS type and version?

I normally do the following

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

You will get a warning at the end of the build, but only because I used ‘install’ and did not give the install directory.
The command does not install the code, but builds the x86_64-native-linuxapp-gcc directory.

As a side note I use two bash alias scripts to setup and build DPDK, just so I do not have to type it all out.
Here they are if you want to used them

function _rte() {
    if [ "$1" != "" ]; then
        export RTE_SDK=`pwd`
        export RTE_TARGET=`basename $1`
        echo "RTE_SDK: "$RTE_SDK " RTE_TARGET: "$RTE_TARGET
    else
        echo "Currently RTE_SDK: "$RTE_SDK " RTE_TARGET: "$RTE_TARGET
    fi
}

function _bld() {
    echo make -C ${RTE_SDK} install T=${RTE_TARGET} $@ -j
    make -C ${RTE_SDK} install T=${RTE_TARGET} $@ -j
}

alias rte=_rte $@
alias bld=_bld $@


Then cd into top level dpdk directory

# rte x86_64-native-linuxapp-gcc
# rte          # just gives the current variable state

or
# rte x86<tab>   # if the x86_64-native-linuxapp-gcc directory exists

# bld      # will cd to RTE_SDK and do the build and return to current directory

> 
> Can you please help me to rectify this error.
> 
> Regards,
> sharanya

Regards,
Keith



More information about the users mailing list