After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 780153 - Ccache fails the build when using meson and flatpak
Ccache fails the build when using meson and flatpak
Status: RESOLVED FIXED
Product: gnome-builder
Classification: Other
Component: general
3.23.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-03-16 15:12 UTC by Carlos Soriano
Modified: 2017-03-24 23:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Carlos Soriano 2017-03-16 15:12:15 UTC
I'm building nautilus with meson and flatpak and with ccache uninstalled.
Seems when ccache is not installed in the system this errors happens when linking in nautilus:
[202/202] Linking target test/test-eel-string-rtrim-punctuation
[1/188] Compiling c object 'subprojects/libgd/libgd/gd@sta/gd-entry-focus-hack.c.o'
FAILED: subprojects/libgd/libgd/gd@sta/gd-entry-focus-hack.c.o 
ccache cc  '-Isubprojects/libgd/libgd/gd@sta' '-Isubprojects/libgd/libgd' '-I../../../../../Projects/nautilus/subprojects/libgd/libgd' '-Isubprojects/libgd' '-I../../../../../Projects/nautilus/subprojects/libgd' '-I/usr/include/at-spi2-atk/2.0' '-I/usr/include/at-spi-2.0' '-I/usr/include/dbus-1.0' '-I/usr/lib/dbus-1.0/include' '-I/usr/include/gtk-3.0' '-I/usr/include/gio-unix-2.0/' '-I/usr/include/pango-1.0' '-I/usr/include/atk-1.0' '-I/usr/include/cairo' '-I/usr/include/pixman-1' '-I/usr/include/freetype2' '-I/usr/include/harfbuzz' '-I/usr/include/gdk-pixbuf-2.0' '-I/usr/include/libpng16' '-I/usr/include/glib-2.0' '-I/usr/lib/glib-2.0/include' '-fdiagnostics-color=always' '-pipe' '-Wall' '-Winvalid-pch' '-O0' '-g' '-Wno-deprecated-declarations' '-Wno-deprecated-declarations' '-Og' '-fPIC' '-pthread' '-DLIBGD_GTK_HACKS=1' '-DLIBGD__VIEW_COMMON=1' '-DLIBGD_MAIN_ICON_VIEW=1' '-DLIBGD_MAIN_LIST_VIEW=1' '-DLIBGD_MAIN_VIEW=1' '-DLIBGD_TAGGED_ENTRY=1' '-DG_LOG_DOMAIN="libgd"' '-DG_DISABLE_DEPRECATED' '-MMD' '-MQ' 'subprojects/libgd/libgd/gd@sta/gd-entry-focus-hack.c.o' '-MF' 'subprojects/libgd/libgd/gd@sta/gd-entry-focus-hack.c.o.d' -o 'subprojects/libgd/libgd/gd@sta/gd-entry-focus-hack.c.o' -c ../../../../../Projects/nautilus/subprojects/libgd/libgd/gd-entry-focus-hack.c
ccache: error: /home/csoriano/.ccache/ccache.conf: No such file or directory

Once installed ccache it works fine.
I'm not sure what can be, and after discussing in #flatpak channel couldn't figure it out since ccache is optional in meson (it does ccache --version for checking) and builder does --ccache with flatpak-builder, but I guess that shouldn't change things.
Comment 1 Carlos Soriano 2017-03-16 15:16:00 UTC
Forgot to mention it builds successfully on CLI with the ccache option, as in:
flatpak-builder ../NautilusBuild org.gnome.Nautilus.json --ccache
Comment 2 Carlos Soriano 2017-03-16 15:16:48 UTC
And forgot to say as well this is Builder from jhbuild
Comment 3 Christian Hergert 2017-03-16 18:55:05 UTC
ccache comes from the SDK (used inside the flatpak) so I guess the issue might be related to missing access to ~/.ccache/ or wherever the default is?
Comment 4 Christian Hergert 2017-03-16 18:56:06 UTC
Oh nevermind, flatpak-builder sets up it's own ccache, in .flatpak-builder/ccache/, so it should just work ...
Comment 5 Christian Hergert 2017-03-16 20:07:27 UTC
I think this should be fixed with commit b5f70a5f513d3a1a9347494942b212425eadc6e0.

Mind testing and closing if so?
Comment 6 Christian Hergert 2017-03-16 20:08:17 UTC
Sorry, wrong commit hash (was from branch). commit 48f83b2200f0acab0667f5a97bfd340732802beb is the proper one.
Comment 7 Christian Hergert 2017-03-16 20:17:19 UTC
Third try to get the right commit cherry-picked :)

commit 2c1aa2cff8de2d89650f1ef35a8b17e404bffb21