[Buildroot] modem-manager: build issue

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Apr 18 13:51:21 UTC 2018


Hello,

On Wed, 18 Apr 2018 15:36:44 +0200, Yegor Yefremov wrote:

> > On Wed, 18 Apr 2018 14:32:06 +0200, Yegor Yefremov wrote:  
> >> Current mm 1.6.12 produces following errors both when compiling an ARM
> >> or MIPS target:
> >>
> >>   CC       ModemManager-mm-base-modem.o
> >> mm-base-manager.c: In function ‘handle_set_logging’:
> >> mm-base-manager.c:680:15: error: assignment from incompatible pointer
> >> type [-Werror=incompatible-pointer-types]
> >>      ctx->self = g_object_ref (manager);
> >>                ^
> >> mm-base-manager.c: In function ‘handle_scan_devices’:
> >> mm-base-manager.c:736:15: error: assignment from incompatible pointer
> >> type [-Werror=incompatible-pointer-types]
> >>      ctx->self = g_object_ref (manager);
> >>                ^
> >> mm-device.c: In function ‘mm_device_get_plugin’:
> >> mm-device.c:628:12: error: return from incompatible pointer type
> >> [-Werror=incompatible-pointer-types]
> >>      return (self->priv->plugin ?
> >>
> >> So far I've seen only one build failure in our autobuilders [0]. I can
> >> reproduce this error building mm 1.6.12 locally with my host GCC. But
> >> the master branch of mm compiles without any issue. We don't seem to
> >> be the only ones who is affected [1], [2].
> >>
> >> Any ideas?  
> >
> > Yes:
> > https://git.buildroot.org/buildroot/commit/?id=f9b6ec3b59746f3eddd387772ad60aa6bc52aa60  
> 
> I already have this commit and I've used various GCC versions > 4.7
> i.e. 5.x and 7.x

Then I don't know. I assume reverting the commit doesn't change
anything (it shouldn't) ? If it doesn't, then investigation needed, I
don't have an immediate answer, sorry :-/

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list