[Buildroot] [PATCH] openocd: bump to 0.9.0

Yegor Yefremov yegorslists at googlemail.com
Tue Dec 1 13:29:28 UTC 2015


On Tue, Dec 1, 2015 at 1:20 PM, Baruch Siach <baruch at tkos.co.il> wrote:
> Hi Yegor,
>
> On Tue, Dec 01, 2015 at 12:25:46PM +0100, Yegor Yefremov wrote:
>> On Tue, Dec 1, 2015 at 11:56 AM, Thomas Petazzoni
>> <thomas.petazzoni at free-electrons.com> wrote:
>> > On Tue, 1 Dec 2015 11:33:25 +0100, Yegor Yefremov wrote:
>> >
>> >> Commit message states: Pass -std=gnu99, needed to build with a basic toolchain.
>> >>
>> >> I've commented this like and could successfully compile with musl +
>> >> gcc 4.9.3 and also with Linaro ARM 2015.08 (GCC 5.x).
>> >>
>> >> @Thomas and @Claudio: any idea, what configuration produced compiling issues?
>> >
>> > Can you try with
>> > http://autobuild.buildroot.org/toolchains/configs/br-arm-basic.config ?
>> > This is what I call a "basic" toolchain, i.e a minimal uClibc toolchain
>> > with no wchar and al. enabled.
>>
>> Compilation *fails* without gnu99 with basic toolchain.
>
> Just curious, do you have any idea why the build fails, and how -std=gnu99
> fixes the problem?

The error occurs because openocd uses some C99 constructs, like this
one for example:

../../../src/helper/binarybuffer.h:53:3: error: 'for' loop initial
declarations are only allowed in C99 or C11 mode
   for (unsigned i = first; i < first + num; i++) {

Yegor



More information about the buildroot mailing list