From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 44EA9727F for ; Sat, 13 Jan 2018 20:14:40 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id ADCA020BDD; Sat, 13 Jan 2018 14:14:39 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Sat, 13 Jan 2018 14:14:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=NiongOsIHb/FNqs02R+m+hacj3NoB1pcXWbM1/IB7M4=; b=fwYhr 2QIg5sdQQRSMTuCcPzeds5oaUZ0TJls5lc/uMM/DOu0W7mTMbfa62KLx8eXYcY2k 8mdSW4cGqk8cMYlRUsXPO4e5Yiv8omRSqIySK0IXPmZ17QQewkvojduPHo+/7h5z c3E1jZnWCXzX3nEXJr36hW04E4HCh7yu5GyTbM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=NiongOsIHb/FNqs02R+m+hacj3NoB 1pcXWbM1/IB7M4=; b=HX6p2PuxSiRcM9ysgnTafvDwtw2fHb1bsGiaOH40q+dPM Cg3f9S7s9GjsrIaz4SkNGBc9pNMHIpW922DfyZRB3fvbj8w6CvvsUFjOtccEsEFw faYoZKdujJLyk9IYScl3KDlxAWB+LQHaaYHjqOtqErjZO3Ig8rNJvIMw6tgd1mJt w2RrxxvlPKzRLgFm/b9IrNqeFkS2hgei+8Kogn/arYLruOSMu0Zku6c1X86BbDqH aaCGk3sPv4oSSZCbxeKN5UTh/5CpOw8XgLnCSKeD99vRQlG0dCdXUa9YJX3hSGb3 w/NC3c6zjmeYXex6c0x3psiXF+8fEM/Z5oTIbRZOg== X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 47EB5247FC; Sat, 13 Jan 2018 14:14:39 -0500 (EST) From: Thomas Monjalon To: qian.q.xu@intel.com Cc: adrien.mazarguil@6wind.com, dev@dpdk.org, hemant.agrawal@nxp.com, bruce.richardson@intel.com Date: Sat, 13 Jan 2018 20:14:06 +0100 Message-ID: <13541534.8OkorCjPcv@xps> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: [dpdk-dev] compilation error on Suse 11 - LPM init of anon union X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jan 2018 19:14:40 -0000 Hi, There is a new compilation error since this commit in LPM: http://dpdk.org/commit/b2e1c99 The brace has been removed because unnecessary with anonymous union. This union is declared with RTE_STD_C11 for compatibility with old compilers: /** C extension macro for environments lacking C11 features. */ #if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L #define RTE_STD_C11 __extension__ = =20 #else #define RTE_STD_C11 #endif Unfortunately, it does not work on Suse 11 SP2 with GCC 4.5.1: lib/librte_lpm/rte_lpm.c: In function =E2=80=98add_depth_big_v20=E2=80=99: lib/librte_lpm/rte_lpm.c:886:4: error: unknown field =E2=80=98group_idx=E2=80=99 specified in initializer Curiously, the error is exactly the same with ICC 16.0.2: http://dpdk.org/ml/archives/test-report/2018-January/038443.html Is it really using different compilers in those 2 tests? Someone to check the value of __STDC_VERSION__ with those compilers? gcc -dM -E -xc /dev/null | grep STDC_VERSION Thanks for the help