[dpdk-dev] Compilation errors in drivers/event/opdl/

Patil, Harish Harish.Patil at cavium.com
Mon Jan 22 19:38:25 CET 2018



-----Original Message-----
From: "Jacob,  Jerin" <Jerin.JacobKollanukkaran at cavium.com>
Date: Saturday, January 20, 2018 at 12:56 AM
To: Harish Patil <Harish.Patil at cavium.com>
Cc: "liang.j.ma at intel.com" <liang.j.ma at intel.com>,
"peter.mccarthy at intel.com" <peter.mccarthy at intel.com>, "dev at dpdk.org"
<dev at 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 at cavium.com>
>> To: "liang.j.ma at intel.com" <liang.j.ma at intel.com>,
>>  "peter.mccarthy at intel.com" <peter.mccarthy at intel.com>
>> CC: "dev at dpdk.org" <dev at 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.
>



More information about the dev mailing list