solus-project / brisk-menu

An efficient menu for the MATE Desktop
GNU General Public License v2.0
139 stars 23 forks source link

fatal error: libsaver-glue.h: No such file or directory #73

Closed antohami closed 6 years ago

antohami commented 6 years ago

I'm trying to build a package for ALT Linux. Version 0.5. Build the package for x86-64 is successful. For i586, it breaks off with this message:

[12/41] Compiling C object 'src/mate-applet/brisk-menu@exe/applet.c.o'.
FAILED: src/mate-applet/brisk-menu@exe/applet.c.o 
cc  -Isrc/mate-applet/brisk-menu@exe -Isrc/mate-applet -I../src/mate-applet -I. -I../ -Isrc/lib -I../src/lib -Isrc/backend -I../src/backend -Isrc -I../src -Isrc/frontend -I../src/frontend -Isrc/session -I../src/session -Idata -I../data -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/gtk-3.0 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/mate-panel-4.0/libmate-panel-applet -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -D_FORTIFY_SOURCE=2 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -Wall -g -O2 -march=i586 -mtune=generic -pthread -MMD -MQ 'src/mate-applet/brisk-menu@exe/applet.c.o' -MF 'src/mate-applet/brisk-menu@exe/applet.c.o.d' -o 'src/mate-applet/brisk-menu@exe/applet.c.o' -c ../src/mate-applet/applet.c
In file included from ../src/mate-applet/applet.c:19:0:
../src/frontend/menu-private.h:18:27: fatal error: libsaver-glue.h: No such file or directory
 #include "libsaver-glue.h"
                           ^
compilation terminated.
[13/41] Compiling C object 'src/backend/brisk-backend@sta/apps_apps-backend.c.o'.
ninja: build stopped: subcommand failed.
Ste74 commented 6 years ago

Hi @ikeydoherty, i can confirm this occour also in Manjaro https://github.com/manjaro/packages-community/commit/06f6b10e228dfd85619c44b85c84f7082b0c8140

ikeydoherty commented 6 years ago

Try with -j1 and -v to ninja

antohami commented 6 years ago

Try with -j1 and -v to ninja

ninja-build -C i586-alt-linux -j1 -v
ninja: Entering directory `i586-alt-linux'
[1/41] cc  -Isrc/lib/brisk-util@sta -Isrc/lib -I../src/lib -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libpng15 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -D_FORTIFY_SOURCE=2 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -Wall -g -O2 -march=i586 -mtune=generic -fPIC -pthread -MMD -MQ 'src/lib/brisk-util@sta/key-binder.c.o' -MF 'src/lib/brisk-util@sta/key-binder.c.o.d' -o 'src/lib/brisk-util@sta/key-binder.c.o' -c ../src/lib/key-binder.c
[2/41] glib-compile-resources ../data/brisk.gresource.xml --sourcedir /usr/src/RPM/BUILD/brisk-menu-0.5.0/data --sourcedir ../data --c-name brisk_resources --internal --generate --target data/brisk-resources.c --manual-register --dependency-file data/brisk-resources.c.d
[3/41] glib-compile-resources ../data/brisk.gresource.xml --sourcedir /usr/src/RPM/BUILD/brisk-menu-0.5.0/data --sourcedir ../data --c-name brisk_resources --internal --generate --target data/brisk-resources.h --manual-register
[4/41] cc  -Isrc/brisk-resources@sta -Isrc -I../src -Idata -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -D_FORTIFY_SOURCE=2 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -Wall -g -O2 -march=i586 -mtune=generic -fPIC -pthread -MMD -MQ 'src/brisk-resources@sta/meson-generated_.._.._data_brisk-resources.c.o' -MF 'src/brisk-resources@sta/meson-generated_.._.._data_brisk-resources.c.o.d' -o 'src/brisk-resources@sta/meson-generated_.._.._data_brisk-resources.c.o' -c data/brisk-resources.c
[5/41] rm -f src/libbrisk-resources.a && gcc-ar csrD src/libbrisk-resources.a 'src/brisk-resources@sta/meson-generated_.._.._data_brisk-resources.c.o'
[6/41] rm -f src/lib/libbrisk-util.a && gcc-ar csrD src/lib/libbrisk-util.a 'src/lib/brisk-util@sta/key-binder.c.o'
[7/41] cc  -Isrc/backend/brisk-backend@sta -Isrc/backend -I../src/backend -Isrc/lib -I../src/lib -Isrc -I../src -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -D_FORTIFY_SOURCE=2 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -Wall -g -O2 -march=i586 -mtune=generic -fPIC -pthread -MMD -MQ 'src/backend/brisk-backend@sta/backend.c.o' -MF 'src/backend/brisk-backend@sta/backend.c.o.d' -o 'src/backend/brisk-backend@sta/backend.c.o' -c ../src/backend/backend.c
[8/41] cc  -Isrc/backend/brisk-backend@sta -Isrc/backend -I../src/backend -Isrc/lib -I../src/lib -Isrc -I../src -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -D_FORTIFY_SOURCE=2 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -Wall -g -O2 -march=i586 -mtune=generic -fPIC -pthread -MMD -MQ 'src/backend/brisk-backend@sta/all-items_all-backend.c.o' -MF 'src/backend/brisk-backend@sta/all-items_all-backend.c.o.d' -o 'src/backend/brisk-backend@sta/all-items_all-backend.c.o' -c ../src/backend/all-items/all-backend.c
[9/41] cc  -Isrc/backend/brisk-backend@sta -Isrc/backend -I../src/backend -Isrc/lib -I../src/lib -Isrc -I../src -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -D_FORTIFY_SOURCE=2 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -Wall -g -O2 -march=i586 -mtune=generic -fPIC -pthread -MMD -MQ 'src/backend/brisk-backend@sta/item.c.o' -MF 'src/backend/brisk-backend@sta/item.c.o.d' -o 'src/backend/brisk-backend@sta/item.c.o' -c ../src/backend/item.c
[10/41] cc  -Isrc/backend/brisk-backend@sta -Isrc/backend -I../src/backend -Isrc/lib -I../src/lib -Isrc -I../src -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -D_FORTIFY_SOURCE=2 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -Wall -g -O2 -march=i586 -mtune=generic -fPIC -pthread -MMD -MQ 'src/backend/brisk-backend@sta/section.c.o' -MF 'src/backend/brisk-backend@sta/section.c.o.d' -o 'src/backend/brisk-backend@sta/section.c.o' -c ../src/backend/section.c
[11/41] cc  -Isrc/backend/brisk-backend@sta -Isrc/backend -I../src/backend -Isrc/lib -I../src/lib -Isrc -I../src -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -D_FORTIFY_SOURCE=2 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -Wall -g -O2 -march=i586 -mtune=generic -fPIC -pthread -MMD -MQ 'src/backend/brisk-backend@sta/all-items_all-section.c.o' -MF 'src/backend/brisk-backend@sta/all-items_all-section.c.o.d' -o 'src/backend/brisk-backend@sta/all-items_all-section.c.o' -c ../src/backend/all-items/all-section.c
[12/41] cc  -Isrc/backend/brisk-backend@sta -Isrc/backend -I../src/backend -Isrc/lib -I../src/lib -Isrc -I../src -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -D_FORTIFY_SOURCE=2 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -Wall -g -O2 -march=i586 -mtune=generic -fPIC -pthread -MMD -MQ 'src/backend/brisk-backend@sta/apps_apps-backend.c.o' -MF 'src/backend/brisk-backend@sta/apps_apps-backend.c.o.d' -o 'src/backend/brisk-backend@sta/apps_apps-backend.c.o' -c ../src/backend/apps/apps-backend.c
[13/41] cc  -Isrc/backend/brisk-backend@sta -Isrc/backend -I../src/backend -Isrc/lib -I../src/lib -Isrc -I../src -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -D_FORTIFY_SOURCE=2 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -Wall -g -O2 -march=i586 -mtune=generic -fPIC -pthread -MMD -MQ 'src/backend/brisk-backend@sta/apps_apps-section.c.o' -MF 'src/backend/brisk-backend@sta/apps_apps-section.c.o.d' -o 'src/backend/brisk-backend@sta/apps_apps-section.c.o' -c ../src/backend/apps/apps-section.c
[14/41] cc  -Isrc/backend/brisk-backend@sta -Isrc/backend -I../src/backend -Isrc/lib -I../src/lib -Isrc -I../src -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -D_FORTIFY_SOURCE=2 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -Wall -g -O2 -march=i586 -mtune=generic -fPIC -pthread -MMD -MQ 'src/backend/brisk-backend@sta/favourites_favourites-backend.c.o' -MF 'src/backend/brisk-backend@sta/favourites_favourites-backend.c.o.d' -o 'src/backend/brisk-backend@sta/favourites_favourites-backend.c.o' -c ../src/backend/favourites/favourites-backend.c
[15/41] cc  -Isrc/backend/brisk-backend@sta -Isrc/backend -I../src/backend -Isrc/lib -I../src/lib -Isrc -I../src -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -D_FORTIFY_SOURCE=2 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -Wall -g -O2 -march=i586 -mtune=generic -fPIC -pthread -MMD -MQ 'src/backend/brisk-backend@sta/apps_apps-item.c.o' -MF 'src/backend/brisk-backend@sta/apps_apps-item.c.o.d' -o 'src/backend/brisk-backend@sta/apps_apps-item.c.o' -c ../src/backend/apps/apps-item.c
[16/41] cc  -Isrc/backend/brisk-backend@sta -Isrc/backend -I../src/backend -Isrc/lib -I../src/lib -Isrc -I../src -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -D_FORTIFY_SOURCE=2 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -Wall -g -O2 -march=i586 -mtune=generic -fPIC -pthread -MMD -MQ 'src/backend/brisk-backend@sta/favourites_favourites-desktop.c.o' -MF 'src/backend/brisk-backend@sta/favourites_favourites-desktop.c.o.d' -o 'src/backend/brisk-backend@sta/favourites_favourites-desktop.c.o' -c ../src/backend/favourites/favourites-desktop.c
[17/41] cc  -Isrc/backend/brisk-backend@sta -Isrc/backend -I../src/backend -Isrc/lib -I../src/lib -Isrc -I../src -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -D_FORTIFY_SOURCE=2 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -Wall -g -O2 -march=i586 -mtune=generic -fPIC -pthread -MMD -MQ 'src/backend/brisk-backend@sta/favourites_favourites-section.c.o' -MF 'src/backend/brisk-backend@sta/favourites_favourites-section.c.o.d' -o 'src/backend/brisk-backend@sta/favourites_favourites-section.c.o' -c ../src/backend/favourites/favourites-section.c
[18/41] cc  -Isrc/frontend/brisk-frontend@sta -Isrc/frontend -I../src/frontend -Isrc/lib -I../src/lib -Isrc/backend -I../src/backend -Isrc -I../src -Isrc/session -I../src/session -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/gtk-3.0 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -D_FORTIFY_SOURCE=2 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -Wall -g -O2 -march=i586 -mtune=generic -fPIC -pthread -MMD -MQ 'src/frontend/brisk-frontend@sta/category-button.c.o' -MF 'src/frontend/brisk-frontend@sta/category-button.c.o.d' -o 'src/frontend/brisk-frontend@sta/category-button.c.o' -c ../src/frontend/category-button.c
FAILED: src/frontend/brisk-frontend@sta/category-button.c.o 
cc  -Isrc/frontend/brisk-frontend@sta -Isrc/frontend -I../src/frontend -Isrc/lib -I../src/lib -Isrc/backend -I../src/backend -Isrc -I../src -Isrc/session -I../src/session -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/gtk-3.0 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -D_FORTIFY_SOURCE=2 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -Wall -g -O2 -march=i586 -mtune=generic -fPIC -pthread -MMD -MQ 'src/frontend/brisk-frontend@sta/category-button.c.o' -MF 'src/frontend/brisk-frontend@sta/category-button.c.o.d' -o 'src/frontend/brisk-frontend@sta/category-button.c.o' -c ../src/frontend/category-button.c
In file included from ../src/frontend/category-button.c:18:0:
../src/frontend/menu-private.h:18:27: fatal error: libsaver-glue.h: No such file or directory
 #include "libsaver-glue.h"
                           ^
compilation terminated.
ninja: build stopped: subcommand failed.
error: Bad exit status from /usr/src/tmp/rpm-tmp.99779 (%build)
philmmanjaro commented 6 years ago

In the old makefile git got created like this:

# Generate the screensaver glue
libsaver-glue.h: $(top_srcdir)/src/frontend/org.mate.ScreenSaver.xml
    gdbus-codegen --interface-prefix org.mate. \
    --c-namespace Mate \
    --generate-c-code libsaver-glue $<

libsaver-glue.c: libsaver-glue.h
antohami commented 6 years ago

With meson 0.44 the package build was successful.

flexiondotorg commented 6 years ago

@ikeydoherty @cybre I'd like to re-open this one. I submitted Brisk Menu with Dash patch to the Ubuntu build farm and it FTBFS on Ubuntu 18.04 daily which has meson 0.42.1-1:

dh_auto_build -O--buildsystem=meson
    cd obj-x86_64-linux-gnu && ninja -j4 -v
[1/46] glib-compile-resources ../data/brisk.gresource.xml --sourcedir /<<PKGBUILDDIR>>/data --sourcedir ../data --c-name brisk_resources --internal --generate --target data/brisk-resources.c --manual-register --dependency-file data/brisk-resources.c.d
XMLLINT not set and xmllint not found in path; skipping xml preprocessing.
[2/46] glib-compile-resources ../data/brisk.gresource.xml --sourcedir /<<PKGBUILDDIR>>/data --sourcedir ../data --c-name brisk_resources --internal --generate --target data/brisk-resources.h --manual-register
XMLLINT not set and xmllint not found in path; skipping xml preprocessing.
[3/46] cc  -Isrc/brisk-resources@sta -Isrc -I../src -Idata -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -MMD -MQ 'src/brisk-resources@sta/data_brisk-resources.c.o' -MF 'src/brisk-resources@sta/data_brisk-resources.c.o.d' -o 'src/brisk-resources@sta/data_brisk-resources.c.o' -c data/brisk-resources.c
[4/46] rm -f src/libbrisk-resources.a && gcc-ar csrD src/libbrisk-resources.a 'src/brisk-resources@sta/data_brisk-resources.c.o'
[5/46] cc  -Isrc/backend/brisk-backend@sta -Isrc/backend -I../src/backend -Isrc/lib -I../src/lib -Isrc -I../src -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0/ -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -MMD -MQ 'src/backend/brisk-backend@sta/backend.c.o' -MF 'src/backend/brisk-backend@sta/backend.c.o.d' -o 'src/backend/brisk-backend@sta/backend.c.o' -c ../src/backend/backend.c
[6/46] cc  -Isrc/frontend/brisk-frontend@sta -Isrc/frontend -I../src/frontend -Isrc/lib -I../src/lib -Isrc/backend -I../src/backend -Isrc -I../src -Isrc/session -I../src/session -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/gtk-3.0 -I/usr/include/mirclient -I/usr/include/mircore -I/usr/include/mircookie -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/atk-1.0 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -MMD -MQ 'src/frontend/brisk-frontend@sta/entry-button.c.o' -MF 'src/frontend/brisk-frontend@sta/entry-button.c.o.d' -o 'src/frontend/brisk-frontend@sta/entry-button.c.o' -c ../src/frontend/entry-button.c
FAILED: src/frontend/brisk-frontend@sta/entry-button.c.o 
cc  -Isrc/frontend/brisk-frontend@sta -Isrc/frontend -I../src/frontend -Isrc/lib -I../src/lib -Isrc/backend -I../src/backend -Isrc -I../src -Isrc/session -I../src/session -I/usr/include/mate-menus -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/gtk-3.0 -I/usr/include/mirclient -I/usr/include/mircore -I/usr/include/mircookie -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/atk-1.0 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -fstack-protector -Wall -pedantic -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat -Wformat-security -Werror=format-security -Wconversion -Wunused-variable -Wunreachable-code -W -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_18 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_18 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -MMD -MQ 'src/frontend/brisk-frontend@sta/entry-button.c.o' -MF 'src/frontend/brisk-frontend@sta/entry-button.c.o.d' -o 'src/frontend/brisk-frontend@sta/entry-button.c.o' -c ../src/frontend/entry-button.c
In file included from ../src/frontend/entry-button.c:20:0:
../src/frontend/menu-private.h:18:10: fatal error: libsaver-glue.h: No such file or directory
 #include "libsaver-glue.h"
          ^~~~~~~~~~~~~~~~~
compilation terminated.

The complete build log is here:

flexiondotorg commented 6 years ago

I've added xmllint to the build dependencies because I saw it was missing, it didn't help. I didn't expect it to. Here's the new build log:

sunweaver commented 6 years ago

Please reopen this issue and fix it as follows.

There are two issues here that cause the above observed FTBFS situations.

  1. when building against GLib << 2.51.3.

  2. when building on more than one core

Within your current code base, 1. can be fixed with this patch:

commit 2e4826663730551039c78a9742ee197678c66e81
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Date:   Fri Jan 19 17:36:01 2018 +0100

    debian/patches: Add 1001_fix-parallel-build.patch. Fix FTBFS against GLib < 2.51.3.

diff --git a/debian/patches/1001_fix-parallel-build.patch b/debian/patches/1001_fix-parallel-build.patch
new file mode 100644
index 0000000..052abf5
--- /dev/null
+++ b/debian/patches/1001_fix-parallel-build.patch
@@ -0,0 +1,17 @@
+Description: Fix FTBFS against GLib < 2.51.3
+Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
+Abstract:
+ See https://github.com/mesonbuild/meson/issues/1387 for details.
+
+--- a/src/session/meson.build
++++ b/src/session/meson.build
+@@ -26,6 +26,9 @@
+     ],
+     dependencies: dep_gio_unix,
+     install: false,
++    include_directories: [
++        include_directories('../..'),
++    ]
+ )
+ 
+ # Allow linking to the stub

The patch for 2. is more invasive but sustainable. However, the patch for 2. changes the patch for 1.

I will file a PR now to clean up this build mess. Please check and merge. Thanks.

sunweaver commented 6 years ago

sorry for the harsh words, but I have been breading on this for four hours now... so... here comes the patch...