On Tue, Feb 14, 2017 at 5:32 PM, <colin.helliw...@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
From feacad3f4c8b53e759bad10d7ae1743354496fb7 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado <aleksan...@aleksander.es> Date: Tue, 14 Feb 2017 19:49:49 +0100 Subject: [PATCH] ublox: reorder enum files generated, header first --- plugins/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 86026fd5..17f52153 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -913,8 +913,8 @@ ublox/mm-ublox-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-templ $(UBLOX_ENUMS_INPUTS) > $@ libhelpers_ublox_la_SOURCES = \ - ublox/mm-modem-helpers-ublox.c \ ublox/mm-modem-helpers-ublox.h \ + ublox/mm-modem-helpers-ublox.c \ $(NULL) nodist_libhelpers_ublox_la_SOURCES = $(UBLOX_ENUMS_GENERATED) -- 2.11.1
_______________________________________________ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel