Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936516 - gnome-extra/gnome-boxes-46.1 doesn't compile (return-value)
Summary: gnome-extra/gnome-boxes-46.1 doesn't compile (return-value)
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard: patch
Keywords: PATCH
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2024-07-23 06:03 UTC by Bob Deblier
Modified: 2024-11-05 11:39 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,274.77 KB, text/x-log)
2024-07-23 06:03 UTC, Bob Deblier
Details
environment (environment,152.71 KB, text/plain)
2024-07-23 06:03 UTC, Bob Deblier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Deblier 2024-07-23 06:03:16 UTC
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
Comment 1 Bob Deblier 2024-07-23 06:03:55 UTC
Created attachment 898156 [details]
environment
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2024-10-24 21:14:03 UTC
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
Comment 3 nurali 2024-10-28 11:31:50 UTC
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)
Comment 4 Tiago Batista 2024-11-05 11:39:39 UTC
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