[dpdk-dev] [PATCH v2] mk: Rework gcc version detection to permit versions newer than 4.x

David Marchand david.marchand at 6wind.com
Tue Feb 24 11:21:27 CET 2015


On Tue, Feb 24, 2015 at 11:09 AM, David Marchand <david.marchand at 6wind.com>
wrote:

> On Tue, Feb 24, 2015 at 10:50 AM, Panu Matilainen <pmatilai at redhat.com>
> wrote:
>
>> $ gcc -dumpversion
>>> 4.7
>>>
>>
>> Meh. This seems to be a Debian specific modification to gcc, discussed
>> here and there including but not limited to:
>> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759038
>> https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1360404
>>
>> Dunno about Ubuntu, but at least Ubuntu already changed it back. But I
>> guess there's no choice but to work around it anyway... Easiest solution is
>> probably just to drop the micro version out, back to the granularity where
>> it used to be.
>
>
> Yes, I suppose so, but then we are almost at square one :-)
>
>
Hum, how about something like always appending .0.0 to the gcc -dumpversion
then cut at 3 characters ?

-- 
David Marchand


More information about the dev mailing list