From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: Compilation errors in drivers/event/opdl/ Date: Sat, 20 Jan 2018 14:26:52 +0530 Message-ID: <20180120085651.GA17077@jerin> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: "liang.j.ma@intel.com" , "peter.mccarthy@intel.com" , "dev@dpdk.org" To: "Patil, Harish" Return-path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0065.outbound.protection.outlook.com [104.47.42.65]) by dpdk.org (Postfix) with ESMTP id CEF341B1A7 for ; Sat, 20 Jan 2018 09:57:22 +0100 (CET) Content-Disposition: inline In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" -----Original Message----- > Date: Sat, 20 Jan 2018 05:18:30 +0000 > From: "Patil, Harish" > To: "liang.j.ma@intel.com" , > "peter.mccarthy@intel.com" > CC: "dev@dpdk.org" > Subject: [dpdk-dev] Compilation errors in drivers/event/opdl/ > > [This sender failed our fraud detection checks and may not be who they appear to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing] > > Hi, > > I am seeing below compilation errors in drivers/event/opdl/, this is with > cloned latest DPDK (git clone http://dpdk.org/git/dpdk). > > .. > .. > /home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xsta > ts.c: In function ‘opdl_xstats_get_names’: > /home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xsta > ts.c:89:2: error: ‘for’ loop initial declarations are only allowed in > C99 mode > for (uint32_t j = 0; j < max_num_port_xstat; j++) { > ^ > /home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xsta > ts.c:89:2: note: use option -std=c99 or -std=gnu99 to compile your code > /home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xsta > ts.c: In function ‘opdl_xstats_get’: > /home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xsta > ts.c:124:2: error: ‘for’ loop initial declarations are only allowed in > C99 mode > for (uint32_t i = 0; i < n; i++) { > ^ > /home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xsta > ts.c: In function ‘opdl_xstats_get_by_name’: > /home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xsta > ts.c:145:2: error: ‘for’ loop initial declarations are only allowed in > C99 mode > for (uint32_t i = 0; i < max_index; i++) { Tested with gcc(7.2 and 5.3) and clang(5.0.1) versions. Found no issues. Which compiler you are using? > .. > .. > ^ > > Thanks, > Harish > > > > >