Bug 1220973

Summary: GCC 14: libgtop package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Michal Jireš <michal.jires>
Component: GNOMEAssignee: E-mail List <gnome-bugs>
Status: IN_PROGRESS --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dimstar, os.gnome.maintainers
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1220571    

Description Michal Jireš 2024-03-05 13:37:50 UTC
Building libgtop with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/libgtop/standard/x86_64

Due to (exhaustive list of errors):

main.c: In function ‘handle_parent_connection’:
main.c:226:49: error: passing argument 3 of ‘glibtop_get_proc_io_l’ makes integer from pointer without a cast [-Wint-conversion]
  226 |                 (server, &resp->u.data.proc_io, parameter);
      |                                                 ^~~~~~~~~
      |                                                 |
      |                                                 char *
In file included from ../../include/glibtop/union.h:47,
                 from daemon.h:29,
                 from main.c:23:
../../include/glibtop/procio.h:78:74: note: expected ‘pid_t’ {aka ‘int’} but argument is of type ‘char *’
   78 | void glibtop_get_proc_io_l (glibtop *server, glibtop_proc_io *buf, pid_t pid);
      |                                                                    ~~~~~~^~~

See the meta bug#1220571 for more info.
Comment 1 Dominique Leuenberger 2024-03-14 12:22:17 UTC
GNOME:Next/libgtop successfully builds using GCC14:

https://build.opensuse.org/package/show/GNOME:Next/libgtop

This will be part of the GNOME 46 push - to happen by end of March 2024