From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f196.google.com (mail-qt0-f196.google.com [209.85.216.196]) by dpdk.org (Postfix) with ESMTP id CE81C1B69E for ; Tue, 6 Feb 2018 08:36:44 +0100 (CET) Received: by mail-qt0-f196.google.com with SMTP id s27so1043693qts.4 for ; Mon, 05 Feb 2018 23:36:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Cd3dA1z9MeHGovnHtHGeiEm3FP5+MStjHs5SA1Tm24M=; b=BiyHDA2YRaTSVkd9ufDcZbuYvypAqn6KwNIJr7XPyxONCM/hCZqrCmyomSznTmtH0F 7d/Ci803nGKuhibrPh4bUHRz7WeBoKtjRXMYWLbwIor7O3OrZ7L/i+Qh5dNozorgDNiX LAFKBIv8se05/vQf1QFXwPxrBcj9OzE9XnvVIlmcVlPK435IVEKXvpWHO1rlZz7JaeM4 4hOlwQAxZTo7XHZZ0didcgl0BwPfJ0tThJ8b2lY19fAgqA+PhlzCKR9DvzwiNXT8m6mO iZlZ3xEwrkjBI0Ixbu5e0PDydgGBEK3es+vwSiKAoBGsOOpH1AJJMlsT744CRuuPdPqM Z5YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Cd3dA1z9MeHGovnHtHGeiEm3FP5+MStjHs5SA1Tm24M=; b=YiboxUciWyCFPjB8kogYsW6ths+fhO9otyDx0ZV87XHpQPLlkr1qzSnVS3wqjyGyhc yE3YqwMt0QDaW66nNRQJqZ5olgvVeepNk/i5uxMhvc/Qa9riK9rG2LyLCmPrAOoG5PkE Qy691RJJ/6l89MFylkPorlUjIY8tMRzjWTxlZNNCjbodE8ZmhZZjhoy3tptgWZ6GYySm GbkFiAQ0PheE/Q1Gflb2Wrk4DbAiB44oHSQWEBAvdVdE+XosQZcjw3sIxIFV3UbL+PVC xpDJfnaHSgXGIVNKcmmG5GPDf5xvGjonKrazqWVS2ULWzpdgr8jztybGFluS1pvOtgN0 ni6Q== X-Gm-Message-State: APf1xPACif3/X7nruqDKE2DcVxR9Sd5IRNdF1n2ods45BJ8djV12EKkc ryBzSCD0Hvv30fr3ShpYxoB+6JvJ/ewhy6P2WE4= X-Google-Smtp-Source: AH8x227kpSEV210H+H9FwbyNe6zwj/FlE8q8McyJ4JDGaXHFGYPlFooovBM5wwaZICiUJoTHbaOcJxMlMw4xDUY84XY= X-Received: by 10.200.66.135 with SMTP id o7mr1149704qtl.155.1517902604004; Mon, 05 Feb 2018 23:36:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.162.3 with HTTP; Mon, 5 Feb 2018 23:36:43 -0800 (PST) In-Reply-To: <93CCD638-8EE6-417A-B58B-5C66453FA95E@intel.com> References: <93CCD638-8EE6-417A-B58B-5C66453FA95E@intel.com> From: sharanya k Date: Tue, 6 Feb 2018 13:06:43 +0530 Message-ID: To: "Wiles, Keith" Cc: "users@dpdk.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-users] Getting error while configuring dpdk-reg. X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Feb 2018 07:36:45 -0000 I got it sir.Thank you On Mon, Feb 5, 2018 at 7:27 PM, Wiles, Keith wrote: > > >> On Feb 5, 2018, at 12:16 AM, sharanya k 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 >=3D 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 =3D=3D 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 =3D=3D 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 > # export RTE_SDK=3D`pwd` > # export RTE_TARGET=3Dx86_64-native-linuxapp-gcc > # make install T=3Dx86_64-native-linuxapp-gcc > > You will get a warning at the end of the build, but only because I used = =E2=80=98install=E2=80=99 and did not give the install directory. > The command does not install the code, but builds the x86_64-native-linux= app-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" !=3D "" ]; then > export RTE_SDK=3D`pwd` > export RTE_TARGET=3D`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=3D${RTE_TARGET} $@ -j > make -C ${RTE_SDK} install T=3D${RTE_TARGET} $@ -j > } > > alias rte=3D_rte $@ > alias bld=3D_bld $@ > > > Then cd into top level dpdk directory > > # rte x86_64-native-linuxapp-gcc > # rte # just gives the current variable state > > or > # rte x86 # if the x86_64-native-linuxapp-gcc directory exists > > # bld # will cd to RTE_SDK and do the build and return to current di= rectory > >> >> Can you please help me to rectify this error. >> >> Regards, >> sharanya > > Regards, > Keith >