Bug 1221025 - GCC 14: uwsgi package fails
Summary: GCC 14: uwsgi package fails
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Containers (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: James Oakley
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-03-06 08:30 UTC by Michal Jireš
Modified: 2024-03-15 18:58 UTC (History)
1 user (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-06 08:30:42 UTC
Building uwsgi with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/uwsgi/standard/x86_64

Due to (exhaustive list of errors):

plugins/glusterfs/glusterfs.c: In function ‘uwsgi_glusterfs_read_async’:
plugins/glusterfs/glusterfs.c:72:55: error: passing argument 5 of ‘glfs_read_async’ from incompatible pointer type [-Wincompatible-pointer-types]
   72 |                 if (glfs_read_async(fd, buf, 8192, 0, uwsgi_glusterfs_read_async_cb, &aio)) goto end;
      |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                       |
      |                                                       void (*)(glfs_fd_t *, ssize_t,  void *) {aka void (*)(struct glfs_fd *, long int,  void *)}
In file included from plugins/glusterfs/glusterfs.c:2:
/usr/include/glusterfs/api/glfs.h:711:29: note: expected ‘glfs_io_cbk’ {aka ‘void (*)(struct glfs_fd *, long int,  struct glfs_stat *, struct glfs_stat *, void *)’} but argument is of type ‘void (*)(glfs_fd_t *, ssize_t,  void *)’ {aka ‘void (*)(struct glfs_fd *, long int,  void *)’}
  711 |                 glfs_io_cbk fn, void *data) __THROW
      |                 ~~~~~~~~~~~~^~

See the meta bug#1220571 for more info.
Comment 1 Martin Jambor 2024-03-06 10:47:00 UTC
FTR, I believe that how Fedora tackles this issue is tracked here:
https://gitlab.com/fweimer-rh/fedora-modernc/-/blob/main/pkg/u/uwsgi.md?ref_type=heads
Comment 2 James Oakley 2024-03-15 18:58:54 UTC
The main issue was with the glusterfs plugin. It was actually broken for some time, but it looks like gcc 14 is rightly marking this as an error now where it was a warning before.

This should be fixed in https://build.opensuse.org/package/rdiff/server:http/uwsgi?linkrev=base&rev=126