Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948986 - gnome-base/gdm-47.0 fails to compile: ../gdm-47.0/common/gdm-settings-utils.h:47:77: error: expected ‘;’, ‘,’ or ‘)’ before ‘bool’ (GCC 15/C23)
Summary: gnome-base/gdm-47.0 fails to compile: ../gdm-47.0/common/gdm-settings-utils.h...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2025-01-28 23:30 UTC by tdr
Modified: 2025-01-29 18:08 UTC (History)
2 users (show)

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


Attachments
build fail log (gnome-base-gdm-47.0_20250128-213903.log,69.70 KB, text/plain)
2025-01-28 23:32 UTC, tdr
Details
emerge--info (tdr-emerge--info.txt,6.35 KB, text/plain)
2025-01-28 23:33 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2025-01-28 23:30:48 UTC
FAILED: common/libgdmcommon.a.p/gdm-settings-utils.c.o
x86_64-pc-linux-gnu-gcc -Icommon/libgdmcommon.a.p -Icommon -I../gdm-47.0/common -I. -I../gdm-47.0 -I/usr/include/elogind -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 -flto=56 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -D_GNU_SOURCE -march=native -O3 -mprefer-vector-width=512 -fno-vect-cost-model -pipe -fPIC -pthread -MD -MQ common/libgdmcommon.a.p/gdm-settings-utils.c.o -MF common/libgdmcommon.a.p/gdm-settings-utils.c.o.d -o common/libgdmcommon.a.p/gdm-settings-utils.c.o -c ../gdm-47.0/common/gdm-settings-utils.c
In file included from ../gdm-47.0/common/gdm-settings-utils.c:38:
../gdm-47.0/common/gdm-settings-utils.h:47:77: error: expected ‘;’, ‘,’ or ‘)’ before ‘bool’
   47 |                                                                 gboolean   *bool);
      |                                                                             ^~~~
../gdm-47.0/common/gdm-settings-utils.c:290:50: error: expected ‘;’, ‘,’ or ‘)’ before ‘bool’
  290 |                                      gboolean   *bool)
      |                                                  ^~~~
[169/291] x86_64-pc-linux-gnu-gcc -Icommon/libgdmcommon.a.p -Icommon -I../gdm-47.0/common -I. -I../gdm-47.0 -I/usr/include/elogind -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 -flto=56 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -D_GNU_SOURCE -march=native -O3 -mprefer-vector-width=512 -fno-vect-cost-model -pipe -fPIC -pthread -MD -MQ common/libgdmcommon.a.p/gdm-settings-direct.c.o -MF common/libgdmcommon.a.p/gdm-settings-direct.c.o.d -o common/libgdmcommon.a.p/gdm-settings-direct.c.o -c ../gdm-47.0/common/gdm-settings-direct.c
FAILED: common/libgdmcommon.a.p/gdm-settings-direct.c.o
x86_64-pc-linux-gnu-gcc -Icommon/libgdmcommon.a.p -Icommon -I../gdm-47.0/common -I. -I../gdm-47.0 -I/usr/include/elogind -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 -flto=56 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -D_GNU_SOURCE -march=native -O3 -mprefer-vector-width=512 -fno-vect-cost-model -pipe -fPIC -pthread -MD -MQ common/libgdmcommon.a.p/gdm-settings-direct.c.o -MF common/libgdmcommon.a.p/gdm-settings-direct.c.o.d -o common/libgdmcommon.a.p/gdm-settings-direct.c.o -c ../gdm-47.0/common/gdm-settings-direct.c
In file included from ../gdm-47.0/common/gdm-settings-direct.c:38:
../gdm-47.0/common/gdm-settings-utils.h:47:77: error: expected ‘;’, ‘,’ or ‘)’ before ‘bool’
   47 |                                                                 gboolean   *bool);
      |                                                                             ^~~~
../gdm-47.0/common/gdm-settings-direct.c: In function ‘gdm_settings_direct_get_boolean’:
../gdm-47.0/common/gdm-settings-direct.c:159:15: error: implicit declaration of function ‘gdm_settings_parse_value_as_boolean’; did you mean ‘gdm_settings_parse_value_as_double’? [-Wimplicit-function-declaration]
  159 |         ret = gdm_settings_parse_value_as_boolean  (str, value);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               gdm_settings_parse_value_as_double

Reproducible: Always




successfully builds using gnu17 env:

    CFLAGS="${CFLAGS} -std=gnu17"
Comment 1 tdr 2025-01-28 23:32:30 UTC
Created attachment 917752 [details]
build fail log
Comment 2 tdr 2025-01-28 23:33:14 UTC
Created attachment 917753 [details]
emerge--info
Comment 3 Kostadin Shishmanov 2025-01-29 14:19:37 UTC
This should already have been fixed with https://github.com/gentoo/gentoo/commit/d4c5deba4d44b226cb48342e673f79f782cfd50e.

Did you sync the tree before trying to install gnome-base/gdm?
Comment 4 tdr 2025-01-29 18:03:24 UTC
Directly before, no. 

My chroot runs -e @world once or twice a week and I do sync before kicking each iteration off.

While https://bugs.gentoo.org/944223 may have fixed it for 46.2-r1, the issue came back with this update to 47.0.

2025-01-20T22:54:24 >>> gnome-base/gdm-46.2-r2: 15 seconds
2025-01-28T18:31:25 >>> gnome-base/gdm-47.0: 15 seconds
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-29 18:08:07 UTC
It's fixed by the cited commit (I fixed it again but after you'd synced to start the run).