From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ernst.netinsight.se (ernst.netinsight.se [194.16.221.21]) by dpdk.org (Postfix) with SMTP id 34C505695 for ; Thu, 26 Feb 2015 12:24:39 +0100 (CET) Received: from [10.100.1.152] (unverified [10.100.1.152]) by ernst.netinsight.se (EMWAC SMTPRS 0.83) with SMTP id ; Thu, 26 Feb 2015 12:24:32 +0100 Message-ID: <54EF0271.8070508@netinsight.net> Date: Thu, 26 Feb 2015 12:24:33 +0100 From: =?windows-1252?Q?Simon_K=E5gstr=F6m?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Thomas Monjalon , dev@dpdk.org References: <20150225142851.55406347@miho> <1976981.gNbPL03jx1@xps13> In-Reply-To: <1976981.gNbPL03jx1@xps13> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] headers: typeof -> __typeof__ to unbreak C++11 code X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 11:24:39 -0000 On 2015-02-26 12:14, Thomas Monjalon wrote: > 2015-02-25 14:28, Simon Kagstrom: >> When compiling C++11-code or above (--std=c++11), the build fails with >> lots of >> >> rte_eth_ctrl.h:517:3: note: in expansion of macro RTE_ALIGN >> (RTE_ALIGN(RTE_ETH_FLOW_MAX, UINT32_BIT)/UINT32_BIT) >> ^ > I'd like to be sure that it's working with every compilers we support > (gcc, icc, clang). > Anyone to check please? I guess you mean compiling DPDK itself, but I can add that compiling my example "app" (i.e., a file which includes the DPDK headers and an empty main()) with clang++ gives more problems: include/rte_devargs.h:89:5: error: 'virtual' can only appear on non-static member functions } virtual; ^ and a slew of warnings of the type include/rte_byteorder_64.h:45:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register uint64_t x = _x; ^~~~~~~~~ include/rte_memcpy.h:85:25: warning: cast from 'const uint8_t *' (aka 'const unsigned char *') to 'const __m128i *' increases required alignment from 1 to 16 [-Wcast-align] xmm0 = _mm_loadu_si128((const __m128i *)src); // Simon