Your message dated Wed, 11 Mar 2026 23:45:39 +0100
with message-id <[email protected]>
and subject line Re: wlroots: FTBFS with glibc 2.43 due to ISO C23 const return
types
has caused the Debian Bug report #1128759,
regarding wlroots: FTBFS with glibc 2.43 due to ISO C23 const return types
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1128759: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1128759
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: wlroots
Version: 0.19.2-1
Severity: important
Tags: ftbfs upstream
Justification: fails to build from source
User: [email protected]
Usertags: glibc-2.43
Dear maintainer(s),
wlroots fails to build from source with glibc 2.43, currently in
experimental. From the build log:
| [371/398] cc -Ilibwlroots-0.19.so.p -I. -I.. -Iinclude -I../include
-Iprotocol -Irender/gles2/shaders -Irender/vulkan/shaders -Ibackend/drm
-I/usr/include/libdrm -I/usr/include/pixman-1 -fdiagnostics-color=always
-D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c23
-D_POSIX_C_SOURCE=200809L -DWLR_USE_UNSTABLE -DWLR_PRIVATE=
-DWLR_LITTLE_ENDIAN=1 -DWLR_BIG_ENDIAN=0 -Wundef -Wlogical-op
-Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self
-Wstrict-prototypes -Wimplicit-fallthrough=2 -Wendif-labels -Wstrict-aliasing=2
-Woverflow -Wmissing-prototypes -Walloca -Wno-missing-braces
-Wno-missing-field-initializers -Wno-unused-parameter -fmacro-prefix-map=../=
-g -O2 -Werror=implicit-function-declaration
-ffile-prefix-map=/build/reproducible-path/wlroots-0.19.2=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -mbranch-protection=standard -Wdate-time
-D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ
libwlroots-0.19.so.p/xcursor_xcursor.c.o -MF
libwlroots-0.19.so.p/xcursor_xcursor.c.o.d -o
libwlroots-0.19.so.p/xcursor_xcursor.c.o -c ../xcursor/xcursor.c
| FAILED: [code=1] libwlroots-0.19.so.p/xcursor_xcursor.c.o
| cc -Ilibwlroots-0.19.so.p -I. -I.. -Iinclude -I../include -Iprotocol
-Irender/gles2/shaders -Irender/vulkan/shaders -Ibackend/drm
-I/usr/include/libdrm -I/usr/include/pixman-1 -fdiagnostics-color=always
-D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c23
-D_POSIX_C_SOURCE=200809L -DWLR_USE_UNSTABLE -DWLR_PRIVATE=
-DWLR_LITTLE_ENDIAN=1 -DWLR_BIG_ENDIAN=0 -Wundef -Wlogical-op
-Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self
-Wstrict-prototypes -Wimplicit-fallthrough=2 -Wendif-labels -Wstrict-aliasing=2
-Woverflow -Wmissing-prototypes -Walloca -Wno-missing-braces
-Wno-missing-field-initializers -Wno-unused-parameter -fmacro-prefix-map=../=
-g -O2 -Werror=implicit-function-declaration
-ffile-prefix-map=/build/reproducible-path/wlroots-0.19.2=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -mbranch-protection=standard -Wdate-time
-D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ
libwlroots-0.19.so.p/xcursor_xcursor.c.o -MF
libwlroots-0.19.so.p/xcursor_xcursor.c.o.d -o
libwlroots-0.19.so.p/xcursor_xcursor.c.o -c ../xcursor/xcursor.c
| ../xcursor/xcursor.c: In function ‘xcursor_next_path’:
| ../xcursor/xcursor.c:605:23: error: initialization discards ‘const’ qualifier
from pointer target type [-Werror=discarded-qualifiers]
| 605 | char *colon = strchr(path, ':');
| | ^~~~~~
| cc1: all warnings being treated as errors
...
| ninja: build stopped: subcommand failed.
| dh_auto_build: error: cd obj-aarch64-linux-gnu && LC_ALL=C.UTF-8 ninja -j128
-v returned exit code 1
| make: *** [debian/rules:7: binary] Error 25
| dpkg-buildpackage: error: debian/rules binary subprocess failed with exit
status 2
|
--------------------------------------------------------------------------------
The full build log is available here [1].
The issue is due to ISO C23 declaration of bsearch, memchr, strchr,
strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr,
which now returns a pointer to a const-qualified type when the input
argument is a pointer to a const-qualified type [2].
I would like to thanks Emanuele Rocca for doing the archive rebuild on
a fast arm64 server.
Regards
Aurelien
[1]
https://people.debian.org/~ema/glibc-2.43-rebuilds/output-1/wlroots_arm64.build
[2]
https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;h=e271fb2e4d76903c77a302aaec1ca22ce31027d0;hb=f762ccf84f122d1354f103a151cba8bde797d521#l19
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
[email protected] http://aurel32.net
--- End Message ---
--- Begin Message ---
Version: 0.20.0~rc2-1
Hi Diederik,
On 2026-03-11 14:19, Diederik de Haas wrote:
> On Sun Feb 22, 2026 at 5:18 PM CET, Aurelien Jarno wrote:
> > Source: wlroots
> > Version: 0.19.2-1
> > Severity: important
> > Tags: ftbfs upstream
> > Justification: fails to build from source
> > User: [email protected]
> > Usertags: glibc-2.43
> >
> > Dear maintainer(s),
> >
> > wlroots fails to build from source with glibc 2.43, currently in
> > experimental. From the build log:
> >
> > | [371/398] cc -Ilibwlroots-0.19.so.p -I. -I.. -Iinclude -I../include
> > -Iprotocol -Irender/gles2/shaders -Irender/vulkan/shaders -Ibackend/drm
> > -I/usr/include/libdrm -I/usr/include/pixman-1 -fdiagnostics-color=always
> > -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c23
> > -D_POSIX_C_SOURCE=200809L -DWLR_USE_UNSTABLE -DWLR_PRIVATE=
> > -DWLR_LITTLE_ENDIAN=1 -DWLR_BIG_ENDIAN=0 -Wundef -Wlogical-op
> > -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self
> > -Wstrict-prototypes -Wimplicit-fallthrough=2 -Wendif-labels
> > -Wstrict-aliasing=2 -Woverflow -Wmissing-prototypes -Walloca
> > -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-parameter
> > -fmacro-prefix-map=../= -g -O2 -Werror=implicit-function-declaration
> > -ffile-prefix-map=/build/reproducible-path/wlroots-0.19.2=.
> > -fstack-protector-strong -fstack-clash-protection -Wformat
> > -Werror=format-security -mbranch-protection=standard -Wdate-time
> > -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ
> > libwlroots-0.19.so.p/xcursor_xcursor.c.o -MF
> > libwlroots-0.19.so.p/xcursor_xcursor.c.o.d -o
> > libwlroots-0.19.so.p/xcursor_xcursor.c.o -c ../xcursor/xcursor.c
> > | FAILED: [code=1] libwlroots-0.19.so.p/xcursor_xcursor.c.o
> > | cc -Ilibwlroots-0.19.so.p -I. -I.. -Iinclude -I../include -Iprotocol
> > -Irender/gles2/shaders -Irender/vulkan/shaders -Ibackend/drm
> > -I/usr/include/libdrm -I/usr/include/pixman-1 -fdiagnostics-color=always
> > -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c23
> > -D_POSIX_C_SOURCE=200809L -DWLR_USE_UNSTABLE -DWLR_PRIVATE=
> > -DWLR_LITTLE_ENDIAN=1 -DWLR_BIG_ENDIAN=0 -Wundef -Wlogical-op
> > -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self
> > -Wstrict-prototypes -Wimplicit-fallthrough=2 -Wendif-labels
> > -Wstrict-aliasing=2 -Woverflow -Wmissing-prototypes -Walloca
> > -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-parameter
> > -fmacro-prefix-map=../= -g -O2 -Werror=implicit-function-declaration
> > -ffile-prefix-map=/build/reproducible-path/wlroots-0.19.2=.
> > -fstack-protector-strong -fstack-clash-protection -Wformat
> > -Werror=format-security -mbranch-protection=standard -Wdate-time
> > -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ
> > libwlroots-0.19.so.p/xcursor_xcursor.c.o -MF
> > libwlroots-0.19.so.p/xcursor_xcursor.c.o.d -o
> > libwlroots-0.19.so.p/xcursor_xcursor.c.o -c ../xcursor/xcursor.c
> > | ../xcursor/xcursor.c: In function ‘xcursor_next_path’:
> > | ../xcursor/xcursor.c:605:23: error: initialization discards ‘const’
> > qualifier from pointer target type [-Werror=discarded-qualifiers]
> > | 605 | char *colon = strchr(path, ':');
> > | | ^~~~~~
> > | cc1: all warnings being treated as errors
>
> Can you verify if this is fixed with wlroots 0.20.0-rc1 (or later),
> available in experimental? I strongly suspect it is, due to
> 47486545b196 ("Add "const" to eliminate "error: initialization discards
> ‘const’ qualifier from pointer target type"")
>
> https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/47486545b196
>
> And that commit is part of 0.20.0-rc1
Thanks for pointing me out to the version in experimental. The version
0.20.0~rc1-1 fails to build for another reason, so I can't check. But
I can confirm the issue is fixed in version 0.20.0~rc2-1.
I am therefore closing the bug with this version.
Regards
Aurelien
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
[email protected] http://aurel32.net
signature.asc
Description: PGP signature
--- End Message ---