Bug 1220973 - GCC 14: libgtop package fails
Summary: GCC 14: libgtop package fails
Status: IN_PROGRESS
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: GNOME (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-03-05 13:37 UTC by Michal Jireš
Modified: 2024-03-14 12:22 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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