glib-mkenums error for ublox plugin

Aleksander Morgado aleksander at aleksander.es
Tue Feb 14 18:51:31 UTC 2017


On Tue, Feb 14, 2017 at 5:32 PM,  <colin.helliwell at ln-systems.com> wrote:
> On latest master I’m getting a build error for the glib-mkenums step for the
> ublox plugin:
>
>
>
> make[2]: Entering directory `/home/colin/100051
> /fsl-community-bsp/build_sysv/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/modemmanager/1.8-r0/build/plugins'
>
> glib-mkenums \
>
>               --fhead "#include \"mm-modem-helpers-ublox.h\"\n#ifndef
> __MM_UBLOX_ENUMS_TYPES_H__\n#define __MM_UBLOX_ENUMS_TYPES_H__\n" \
>
>                --template
> /home/colin/100051/fsl-community-bsp/build_sysv/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/modemmanager/1.8-r0/git/build-aux/mm-enums-template.h
> \
>
>                --ftail "#endif /* __MM_UBLOX_ENUMS_TYPES_H__ */\n" \
>
>
> /home/colin/100051/fsl-community-bsp/build_sysv/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/modemmanager/1.8-r0/git/plugins/ublox/mm-modem-helpers-ublox.h
>> ublox/mm-ublox-enums-types.h
>
> -bash: ublox/mm-ublox-enums-types.h: No such file or directory
>
>
>
> I guess this is probably because yocto/bitbake is doing an out-of-tree build
> - i.e. the problem seems to be that the ublox sub-directory doesn’t (yet)
> exist in the build directory.
>
> If I manually create it then I can re-do the build without further errors.
>
> It does look though like other glib-mkenums have succeeded – but perhaps
> because earlier build steps have created the relevant directory e.g.
> build/src.

Could you apply the attached patch and retry? It could just be the
order of the files generated, because the .c file depends on the .h
file and they were requested in the other way in BUILT_SOURCES.

-- 
Aleksander
https://aleksander.es
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ublox-reorder-enum-files-generated-header-first.patch
Type: text/x-patch
Size: 806 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20170214/63cbc4fd/attachment.bin>


More information about the ModemManager-devel mailing list