Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944218 - =app-misc/tracker-miners-3.6.2 fails with c23/gcc-15.0.0_pre20241117-r2: gthread.h:252:25: error: passing argument 2 of ‘g_once_impl’ from incompatible pointer type
Summary: =app-misc/tracker-miners-3.6.2 fails with c23/gcc-15.0.0_pre20241117-r2: gthr...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-21 06:33 UTC by tdr
Modified: 2024-11-21 06:34 UTC (History)
1 user (show)

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


Attachments
build fail log (tracker-miners-3.6.2.build.log,113.07 KB, text/plain)
2024-11-21 06:33 UTC, tdr
Details
emerge --info (tdr-emerge--info.txt,6.30 KB, text/plain)
2024-11-21 06:34 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-11-21 06:33:10 UTC
c23 is stricter than previous standards

Reproducible: Always

Steps to Reproduce:
emerge -1 =gcc-15.0.0_pre20241117-r2:

USE="cue exif ffmpeg gif gstreamer iso jpeg networkmanager pdf playlist raw (seccomp) tiff upower xml xmp xps -gsf -iptc (-rss) -test" emerge -1 app-misc/tracker-miners-3.6.2:3::gentoo 
Actual Results:  
FAILED: src/libtracker-miners-common/libtracker-miners-common.a.p/tracker-debug.c.o
x86_64-pc-linux-gnu-gcc -Isrc/libtracker-miners-common/libtracker-miners-common.a.p -Isrc/libtracker-miners-common -I../tracker-miners-3.6.2/src/libtracker-miners-common -I. -I../tracker-miners-3.6.2 -Isrc -I../tracker-miners-3.6.2/src -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/tracker-3.0 -I/usr/include/tracker-3.0/libtracker-sparql -I/usr/include/json-glib-1.0 -I/usr/include/libxml2 -I/usr/include/libupower-glib -flto=56 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wformat -Wformat-security -Wno-pointer-sign -DTRACKER_COMPILATION '-DG_LOG_DOMAIN="Tracker"' -DG_LOG_STRUCTURED=1 -DG_ENABLE_DEBUG -march=native -O3 -mprefer-vector-width=512 -fno-vect-cost-model -pipe -DTRACKER_DEBUG -DG_DISABLE_CAST_CHECKS -fPIC -pthread -D_GNU_SOURCE -D_LARGEFILE64_SOURCE '-DTRACKERSHAREDIR="tracker3-miners"' '-DONTOLOGIESDIR="/usr/share/tracker3/ontologies"' -MD -MQ src/libtracker-miners-common/libtracker-miners-common.a.p/tracker-debug.c.o -MF src/libtracker-miners-common/libtracker-miners-common.a.p/tracker-debug.c.o.d -o src/libtracker-miners-common/libtracker-miners-common.a.p/tracker-debug.c.o -c ../tracker-miners-3.6.2/src/libtracker-miners-common/tracker-debug.c
In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34,
                 from ../tracker-miners-3.6.2/src/libtracker-miners-common/tracker-debug.h:27,
                 from ../tracker-miners-3.6.2/src/libtracker-miners-common/tracker-debug.c:22:
../tracker-miners-3.6.2/src/libtracker-miners-common/tracker-debug.c: In function ‘tracker_miners_get_debug_flags’:
/usr/include/glib-2.0/glib/gthread.h:252:25: error: passing argument 2 of ‘g_once_impl’ from incompatible pointer type [-Wincompatible-pointer-types]
  252 |    g_once_impl ((once), (func), (arg)))
      |                         ^~~~~~
      |                         |
      |                         void * (*)(void)
../tracker-miners-3.6.2/src/libtracker-miners-common/tracker-debug.c:59:9: note: in expansion of macro ‘g_once’
   59 |         g_once (&once, parse_debug_flags, NULL);
      |         ^~~~~~
/usr/include/glib-2.0/glib/gthread.h:231:66: note: expected ‘GThreadFunc’ {aka ‘void * (*)(void *)’} but argument is of type ‘void * (*)(void)’
  231 |                                                  GThreadFunc     func,
      |                                                  ~~~~~~~~~~~~~~~~^~~~


builds successfully with CFLAGS="${CFLAGS} -std=gnu17"
Comment 1 tdr 2024-11-21 06:33:40 UTC
Created attachment 910913 [details]
build fail log
Comment 2 tdr 2024-11-21 06:34:09 UTC
Created attachment 910914 [details]
emerge --info