Created attachment 898155 [details] build log src/gnome-boxes.p/libvirt-machine.c:5580:13: note: in expansion of macro ‘g_once_init_enter’ 5580 | if (g_once_init_enter (&boxes_libvirt_machine_type_id__once)) { | ^~~~~~~~~~~~~~~~~ ninja: build stopped: subcommand failed. * ERROR: gnome-extra/gnome-boxes-46.1::gentoo failed (compile phase): * ninja -v -j12 -l0 failed * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 3687: Called meson_src_compile * environment, line 2820: Called eninja * environment, line 1692: Called die
Created attachment 898156 [details] environment
In file included from [01m[K/usr/include/glib-2.0/glib.h:64[m[K, from [01m[K/usr/include/glib-2.0/gobject/gbinding.h:30[m[K, from [01m[K/usr/include/glib-2.0/glib-object.h:24[m[K, from [01m[Ksrc/gnome-boxes.p/libvirt-broker.c:6[m[K: [01m[Ksrc/gnome-boxes.p/libvirt-broker.c:[m[K In function ‘[01m[Kboxes_libvirt_broker_add_domain_co[m[K’: [01m[K/usr/include/glib-2.0/glib/gmessages.h:660:16:[m[K [01;31m[Kerror: [m[Kreturning ‘[01m[Kvoid *[m[K’ from a function with return type ‘[01m[Kgboolean[m[K’ {aka ‘[01m[Kint[m[K’} makes integer from pointer without a cast [[01;31m[K-Wint-conversion[m[K] 660 | return [01;31m[K([m[Kval); \ | [01;31m[K^[m[K
Use gcc:13, it'll fix your problem. (I use DWM and after updating gcc to 14, it became uncompilable because of a NULL value, I don't know C/CPP but this is seems like the same issue)
Applied the patch from https://gitlab.gnome.org/GNOME/gnome-boxes/-/merge_requests/648 on my system and it fixed the compile error with gcc 14. As I still have 13 on my machine, a quick test showed that it is also compiling with gcc 13 For anyone that reaches this and does not know how to apply a user patch: 1. create a directory for the package: /etc/portage/patches/gnome-extra/gnome-boxes-46.1 2. download the patch into that directory https://gitlab.gnome.org/GNOME/gnome-boxes/-/merge_requests/648.diff 3. attempt to compile it