From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] lib/librte_eal: Fix compile issue with gcc 5.3.1 Date: Thu, 28 Jan 2016 09:34:55 +0100 Message-ID: <6157230.jKGj62o0dz@xps13> References: <1453966234-10577-1-git-send-email-michael.qiu@intel.com> <8F6C2BD409508844A0EFC19955BE0941033AB5E7@SHSMSX103.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: "Qiu, Michael" Return-path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id B305CC3A4 for ; Thu, 28 Jan 2016 09:36:06 +0100 (CET) Received: by mail-wm0-f45.google.com with SMTP id r129so13740285wmr.0 for ; Thu, 28 Jan 2016 00:36:06 -0800 (PST) In-Reply-To: <8F6C2BD409508844A0EFC19955BE0941033AB5E7@SHSMSX103.ccr.corp.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-01-28 08:01, Wang, Zhihong: > > In fedora 22 with GCC version 5.3.1, when compile, > > will result an error: > > > > include/rte_memcpy.h:309:7: error: "RTE_MACHINE_CPUFLAG_AVX2" > > is not defined [-Werror=undef] > > #elif RTE_MACHINE_CPUFLAG_AVX2 > > > > Fixes: 9484092baad3 ("eal/x86: optimize memcpy for AVX512 platforms") > > > > Signed-off-by: Michael Qiu > > There's issue in the original code. > > #elif works with statements: > #elif < statement: true or false> > > But what it meant is whether the identifier has been defined: > #elif defined > > Thanks for correcting this! > > Acked-by: Wang, Zhihong Applied, thanks