From: "Patil, Harish" <Harish.Patil@cavium.com>
To: "Jacob, Jerin" <Jerin.JacobKollanukkaran@cavium.com>
Cc: "liang.j.ma@intel.com" <liang.j.ma@intel.com>,
"peter.mccarthy@intel.com" <peter.mccarthy@intel.com>,
"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Compilation errors in drivers/event/opdl/
Date: Mon, 22 Jan 2018 18:38:25 +0000 [thread overview]
Message-ID: <D688BF8A.1A3E32%Harish.Patil@cavium.com> (raw)
In-Reply-To: <20180120085651.GA17077@jerin>
-----Original Message-----
From: "Jacob, Jerin" <Jerin.JacobKollanukkaran@cavium.com>
Date: Saturday, January 20, 2018 at 12:56 AM
To: Harish Patil <Harish.Patil@cavium.com>
Cc: "liang.j.ma@intel.com" <liang.j.ma@intel.com>,
"peter.mccarthy@intel.com" <peter.mccarthy@intel.com>, "dev@dpdk.org"
<dev@dpdk.org>
Subject: Re: [dpdk-dev] Compilation errors in drivers/event/opdl/
>-----Original Message-----
>> Date: Sat, 20 Jan 2018 05:18:30 +0000
>> From: "Patil, Harish" <Harish.Patil@cavium.com>
>> To: "liang.j.ma@intel.com" <liang.j.ma@intel.com>,
>> "peter.mccarthy@intel.com" <peter.mccarthy@intel.com>
>> CC: "dev@dpdk.org" <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_xs
>>ta
>> ts.c: In function ‘opdl_xstats_get_names’:
>>
>>/home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xs
>>ta
>> 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_xs
>>ta
>> 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_xs
>>ta
>> ts.c: In function ‘opdl_xstats_get’:
>>
>>/home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xs
>>ta
>> 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_xs
>>ta
>> ts.c: In function ‘opdl_xstats_get_by_name’:
>>
>>/home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xs
>>ta
>> 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
>>
>>
>>
>>
>>
This is older GCC 4.8.5 that comes inbox with RH7.2
So if its working with later GCC versions then please can ignore this.
Thanks.
>
prev parent reply other threads:[~2018-01-22 18:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-20 5:18 Patil, Harish
2018-01-20 8:44 ` Thomas Monjalon
2018-01-21 17:34 ` Stephen Hemminger
2018-01-21 17:49 ` Thomas Monjalon
2018-01-26 17:39 ` Adrien Mazarguil
2018-01-20 8:56 ` Jerin Jacob
2018-01-22 18:38 ` Patil, Harish [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D688BF8A.1A3E32%Harish.Patil@cavium.com \
--to=harish.patil@cavium.com \
--cc=Jerin.JacobKollanukkaran@cavium.com \
--cc=dev@dpdk.org \
--cc=liang.j.ma@intel.com \
--cc=peter.mccarthy@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).