0.0.2 fails to build with gmobile subproject
I'm trying to build the 0.0.2 release on Alpine/postmarketOS but cannot get passed a missing header: lfb-gdbus.h
.
The latter is generated by data/meson.build
.
I fetched the tar.gz of gmobile, put it in subprojects/gmobile
as the README says that gmobile should be a subproject instead of a library.
The Meson build system
Version: 1.0.0
Source dir: /home/pmos/build/src/feedbackd-v0.0.2
Build dir: /home/pmos/build/src/feedbackd-v0.0.2/output
Build type: native build
Project name: feedbackd
Project version: 0.0.2
C compiler for the host machine: gcc (gcc 12.2.1 "gcc (Alpine 12.2.1_git20220924-r6) 12.2.1 20220924")
C linker for the host machine: gcc ld.bfd 2.39
Host machine cpu family: aarch64
Host machine cpu: aarch64
Found pkg-config: /usr/bin/pkg-config (1.9.3)
Run-time dependency gio-2.0 found: YES 2.74.4
Run-time dependency gio-unix-2.0 found: YES 2.74.4
Run-time dependency glib-2.0 found: YES 2.74.4
Run-time dependency gobject-2.0 found: YES 2.74.4
Executing subproject gmobile
gmobile| Project name: gmobile
gmobile| Project version: 0.0.0
gmobile| C compiler for the host machine: gcc (gcc 12.2.1 "gcc (Alpine 12.2.1_git20220924-r6) 12.2.1 20220924")
gmobile| C linker for the host machine: gcc ld.bfd 2.39
gmobile| Dependency glib-2.0 found: YES 2.74.4 (cached)
gmobile| Dependency gio-2.0 found: YES 2.74.4 (cached)
gmobile| Compiler for C supports arguments -Wcast-align: YES
gmobile| Compiler for C supports arguments -Wdate-time: YES
gmobile| Compiler for C supports arguments -Wdeclaration-after-statement: YES
gmobile| Compiler for C supports arguments -Werror=format-security -Werror=format=2: YES
gmobile| Compiler for C supports arguments -Wendif-labels: YES
gmobile| Compiler for C supports arguments -Werror=incompatible-pointer-types: YES
gmobile| Compiler for C supports arguments -Werror=missing-declarations: YES
gmobile| Compiler for C supports arguments -Werror=overflow: YES
gmobile| Compiler for C supports arguments -Werror=return-type: YES
gmobile| Compiler for C supports arguments -Werror=shift-count-overflow: YES
gmobile| Compiler for C supports arguments -Werror=shift-overflow=2: YES
gmobile| Compiler for C supports arguments -Werror=implicit-fallthrough=3: YES
gmobile| Compiler for C supports arguments -Wfloat-equal: YES
gmobile| Compiler for C supports arguments -Wformat-nonliteral: YES
gmobile| Compiler for C supports arguments -Wformat-security: YES
gmobile| Compiler for C supports arguments -Winit-self: YES
gmobile| Compiler for C supports arguments -Wmaybe-uninitialized: YES
gmobile| Compiler for C supports arguments -Wmissing-field-initializers: YES
gmobile| Compiler for C supports arguments -Wmissing-include-dirs: YES
gmobile| Compiler for C supports arguments -Wmissing-noreturn: YES
gmobile| Compiler for C supports arguments -Wnested-externs: YES
gmobile| Compiler for C supports arguments -Wno-missing-field-initializers: YES
gmobile| Compiler for C supports arguments -Wno-sign-compare: YES
gmobile| Compiler for C supports arguments -Wno-strict-aliasing: YES
gmobile| Compiler for C supports arguments -Wno-unused-parameter: YES
gmobile| Compiler for C supports arguments -Wold-style-definition: YES
gmobile| Compiler for C supports arguments -Wpointer-arith: YES
gmobile| Compiler for C supports arguments -Wredundant-decls: YES
gmobile| Compiler for C supports arguments -Wshadow: YES
gmobile| Compiler for C supports arguments -Wstrict-prototypes: YES
gmobile| Compiler for C supports arguments -Wswitch-default: YES
gmobile| Compiler for C supports arguments -Wswitch-enum: YES
gmobile| Compiler for C supports arguments -Wtype-limits: YES
gmobile| Compiler for C supports arguments -Wundef: YES
gmobile| Compiler for C supports arguments -Wunused-function: YES
gmobile| Configuring gm-config.h using configuration
gmobile| Library m found: YES
gmobile| Library rt found: YES
gmobile| Build targets in project: 1
gmobile| Subproject gmobile finished.
Run-time dependency gsound found: YES 1.0.3
Run-time dependency gudev-1.0 found: YES 237
Run-time dependency json-glib-1.0 found: YES 1.6.6
Configuring run using configuration
Compiler for C supports arguments -Wcast-align: YES (cached)
Compiler for C supports arguments -Wdate-time: YES (cached)
Compiler for C supports arguments -Werror=format-security: YES
Compiler for C supports arguments -Werror=format=2: YES
Compiler for C supports arguments -Wendif-labels: YES (cached)
Compiler for C supports arguments -Werror=incompatible-pointer-types: YES (cached)
Compiler for C supports arguments -Werror=missing-declarations: YES (cached)
Compiler for C supports arguments -Werror=overflow: YES (cached)
Compiler for C supports arguments -Werror=return-type: YES (cached)
Compiler for C supports arguments -Werror=shift-count-overflow: YES (cached)
Compiler for C supports arguments -Werror=shift-overflow=2: YES (cached)
Compiler for C supports arguments -Werror=implicit-fallthrough=3: YES (cached)
Compiler for C supports arguments -Wformat-nonliteral: YES (cached)
Compiler for C supports arguments -Wformat-security: YES (cached)
Compiler for C supports arguments -Winit-self: YES (cached)
Compiler for C supports arguments -Wmaybe-uninitialized: YES (cached)
Compiler for C supports arguments -Wmissing-field-initializers: YES (cached)
Compiler for C supports arguments -Wmissing-include-dirs: YES (cached)
Compiler for C supports arguments -Wmissing-noreturn: YES (cached)
Compiler for C supports arguments -Wnested-externs: YES (cached)
Compiler for C supports arguments -Wno-missing-field-initializers: YES (cached)
Compiler for C supports arguments -Wno-sign-compare: YES (cached)
Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Compiler for C supports arguments -Wold-style-definition: YES (cached)
Compiler for C supports arguments -Wpointer-arith: YES (cached)
Compiler for C supports arguments -Wredundant-decls: YES (cached)
Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
Compiler for C supports arguments -Wtype-limits: YES (cached)
Compiler for C supports arguments -Wundef: YES (cached)
Compiler for C supports arguments -Wunused-function: YES (cached)
Program json-glib-validate found: YES (/usr/bin/json-glib-validate)
Program gdbus-codegen found: YES (/usr/bin/gdbus-codegen)
Found pkg-config: /usr/bin/pkg-config (1.9.3)
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Configuring org.sigxcpu.Feedback.service using configuration
Checking if "ld_supports_version_script" : links: YES
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Run-time dependency gobject-introspection-1.0 found: YES 1.74.0
Dependency gobject-introspection-1.0 found: YES 1.74.0 (cached)
Program g-ir-scanner found: YES (/usr/bin/g-ir-scanner)
Dependency gobject-introspection-1.0 found: YES 1.74.0 (cached)
Program g-ir-compiler found: YES (/usr/bin/g-ir-compiler)
libfeedback/meson.build:106: WARNING: Project targets '>= 0.56.0' but uses feature deprecated since '0.55.0': gnome.generate_gir argument --warn-error. Use "fatal_warnings" keyword argument
Program vapigen found: YES (/usr/bin/vapigen)
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Configuring org.sigxcpu.Feedback.service using configuration
Message:
---------------
feedbackd 0.0.2
Daemon: true
Documentation: false
Manual pages: false
Introspection: true
Vapi: true
Tests: true
---------------
Build targets in project: 25
WARNING: Deprecated features used:
* 0.55.0: {'gnome.generate_gir argument --warn-error'}
feedbackd 0.0.2
Subprojects
gmobile : YES
User defined options
auto_features : auto
bindir : /usr/bin
buildtype : plain
datadir : /usr/share
includedir : /usr/include
infodir : /usr/share/info
libdir : /usr/lib
libexecdir : /usr/libexec
localedir : /usr/share/locale
localstatedir : /var
mandir : /usr/share/man
prefix : /usr
sbindir : /usr/sbin
sharedstatedir: /var/lib
sysconfdir : /etc
wrap_mode : nodownload
b_lto : false
b_pie : true
b_staticpic : true
gtk_doc : false
Found ninja-1.9 at /usr/bin/ninja
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /home/pmos/build/src/feedbackd-v0.0.2/output -j 13
ninja: entering directory '/home/pmos/build/src/feedbackd-v0.0.2/output'
[1/64] Compiling C object src/fbd-theme-validate.p/fbd-theme-validate.c.o
[2/64] Compiling C object src/fbd-ledctrl.p/fbd-ledctrl.c.o
[3/64] Generating data/validate-json with a custom command
[4/64] Generating data/gsettings-compile-data with a custom command
[5/64] Compiling C object subprojects/gmobile/src/libgmobile.a.p/gm-timeout.c.o
[6/64] Compiling C object subprojects/gmobile/src/libgmobile.a.p/gm-devicetree.c.o
[7/64] Generating src/fbd-enums.c with a custom command (wrapped by meson because command contains newlines, to capture output)
[8/64] Generating src/fbd-enums.h with a custom command (wrapped by meson because command contains newlines, to capture output)
[9/64] Generating libfeedback/lfb-enums.c with a custom command (wrapped by meson because command contains newlines, to capture output)
[10/64] Generating libfeedback/lfb-enums.h with a custom command (wrapped by meson because command contains newlines, to capture output)
[11/64] Generating data/lfb-gdbus-docbook with a custom command
[12/64] Generating data/lfb-gdbus.h with a custom command
[13/64] Generating data/lfb-gdbus.c with a custom command
[14/64] Linking target src/fbd-ledctrl
[15/64] Linking static target subprojects/gmobile/src/libgmobile.a
ninja: job failed: gcc -Isrc/fbd-theme-validate.p -Isrc -I../src -Ilibfeedback -I../libfeedback -Idata -I../data -Isubprojects/gmobile -I../subprojects/gmobile -Isubprojects/gmobile/src -I../subprojects/gmobile/src -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/gudev-1.0 -I/usr/include/json-glib-1.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu11 '-DFEEDBACKD_THEME_DIR="/usr/share/feedbackd/themes"' -DLIBFEEDBACK_COMPILATION '-DFBD_VERSION="0.0.2"' -Wcast-align -Wdate-time -Werror=format-security -Werror=format=2 -Wendif-labels -Werror=incompatible-pointer-types -Werror=missing-declarations -Werror=overflow -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=implicit-fallthrough=3 -Wformat-nonliteral -Wformat-security -Winit-self -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wno-missing-field-initializers -Wno-sign-compare -Wno-strict-aliasing -Wno-unused-parameter -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wtype-limits -Wundef -Wunused-function -Os -fomit-frame-pointer -Os -fomit-frame-pointer -fPIE -pthread -D_REENTRANT -MD -MQ src/fbd-theme-validate.p/fbd-theme-validate.c.o -MF src/fbd-theme-validate.p/fbd-theme-validate.c.o.d -o src/fbd-theme-validate.p/fbd-theme-validate.c.o -c ../src/fbd-theme-validate.c
In file included from ../src/fbd-event.h:9,
from ../src/fbd-feedback-theme.h:8,
from ../src/fbd-theme-expander.h:11,
from ../src/fbd-theme-validate.c:9:
../src/fbd-feedback-manager.h:12:10: fatal error: lfb-gdbus.h: No such file or directory
12 | #include "lfb-gdbus.h"
| ^~~~~~~~~~~~~
compilation terminated.
ninja: subcommand failed