Your message dated Tue, 16 Jun 2026 14:50:24 +0000
with message-id <[email protected]>
and subject line Bug#1128851: fixed in virglrenderer 1.3.0-1
has caused the Debian Bug report #1128851,
regarding virglrenderer: FTBFS with glibc 2.43 due to ONCE_FLAG_INIT 
redefinition
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.)


-- 
1128851: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1128851
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: virglrenderer
Version: 1.2.0-2
Severity: important
Tags: ftbfs upstream
Justification: fails to build from source
User: [email protected]
Usertags: glibc-2.43

Dear maintainer(s),

virglrenderer fails to build from source with glibc 2.43, currently in
experimental. From the build log:

| [5/132] cc -Isrc/mesa/libmesa.a.p -Isrc/mesa -I../src/mesa 
-I../src/mesa/compat -I../src/mesa/pipe -I../src/mesa/util 
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
-Wextra -Wpedantic -std=gnu11 -Werror=enum-int-mismatch 
-Werror=implicit-function-declaration -Werror=missing-prototypes 
-Werror=pedantic -Wmissing-prototypes -Werror=incompatible-pointer-types 
-Werror=int-to-pointer-cast -Werror=switch -Wno-overlength-strings 
-Wno-missing-field-initializers -Werror=format -fvisibility=hidden 
-fno-strict-aliasing -imacros 
/build/reproducible-path/virglrenderer-1.2.0/obj-aarch64-linux-gnu/config.h 
-DHAVE_CONFIG_H=1 -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/virglrenderer-1.2.0=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -mbranch-protection=standard -Wdate-time 
-D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ src/mesa/libmesa.a.p/util_u_math.c.o 
-MF src/mesa/libmesa.a.p/util_u_math.c.o.d -o 
src/mesa/libmesa.a.p/util_u_math.c.o -c ../src/mesa/util/u_math.c
| FAILED: [code=1] src/mesa/libmesa.a.p/util_u_math.c.o 
| cc -Isrc/mesa/libmesa.a.p -Isrc/mesa -I../src/mesa -I../src/mesa/compat 
-I../src/mesa/pipe -I../src/mesa/util -fdiagnostics-color=always -DNDEBUG 
-D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu11 
-Werror=enum-int-mismatch -Werror=implicit-function-declaration 
-Werror=missing-prototypes -Werror=pedantic -Wmissing-prototypes 
-Werror=incompatible-pointer-types -Werror=int-to-pointer-cast -Werror=switch 
-Wno-overlength-strings -Wno-missing-field-initializers -Werror=format 
-fvisibility=hidden -fno-strict-aliasing -imacros 
/build/reproducible-path/virglrenderer-1.2.0/obj-aarch64-linux-gnu/config.h 
-DHAVE_CONFIG_H=1 -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/virglrenderer-1.2.0=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -mbranch-protection=standard -Wdate-time 
-D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ src/mesa/libmesa.a.p/util_u_math.c.o 
-MF src/mesa/libmesa.a.p/util_u_math.c.o.d -o 
src/mesa/libmesa.a.p/util_u_math.c.o -c ../src/mesa/util/u_math.c
| In file included from ../src/mesa/compat/c11/threads.h:64,
|                  from ../src/mesa/util/u_thread.h:35,
|                  from ../src/mesa/util/u_cpu_detect.h:40,
|                  from ../src/mesa/util/u_math.c:32:
| ../src/mesa/compat/c11/threads_posix.h:54:9: warning: ‘ONCE_FLAG_INIT’ 
redefined
|    54 | #define ONCE_FLAG_INIT PTHREAD_ONCE_INIT
|       |         ^~~~~~~~~~~~~~
| In file included from /usr/include/stdlib.h:1191,
|                  from ../src/mesa/compat/c11/threads_posix.h:29:
| /usr/include/aarch64-linux-gnu/bits/types/once_flag.h:25:9: note: this is the 
location of the previous definition
|    25 | #define ONCE_FLAG_INIT __ONCE_FLAG_INIT
|       |         ^~~~~~~~~~~~~~
| ../src/mesa/compat/c11/threads_posix.h:69:25: error: conflicting types for 
‘once_flag’; have ‘pthread_once_t’ {aka ‘int’}
|    69 | typedef pthread_once_t  once_flag;
|       |                         ^~~~~~~~~
| /usr/include/aarch64-linux-gnu/bits/types/once_flag.h:24:21: note: previous 
declaration of ‘once_flag’ with type ‘once_flag’
|    24 | typedef __once_flag once_flag;
|       |                     ^~~~~~~~~
| ../src/mesa/compat/c11/threads_posix.h:94:1: error: conflicting types for 
‘call_once’; have ‘void(int *, void (*)(void))’
|    94 | call_once(once_flag *flag, void (*func)(void))
|       | ^~~~~~~~~
| /usr/include/stdlib.h:1195:13: note: previous declaration of ‘call_once’ with 
type ‘void(once_flag *, void (*)(void))’
|  1195 | extern void call_once (once_flag *__flag, void (*__func)(void));
|       |             ^~~~~~~~~
| [6/132] cc -Isrc/mesa/libmesa.a.p -Isrc/mesa -I../src/mesa 
-I../src/mesa/compat -I../src/mesa/pipe -I../src/mesa/util 
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
-Wextra -Wpedantic -std=gnu11 -Werror=enum-int-mismatch 
-Werror=implicit-function-declaration -Werror=missing-prototypes 
-Werror=pedantic -Wmissing-prototypes -Werror=incompatible-pointer-types 
-Werror=int-to-pointer-cast -Werror=switch -Wno-overlength-strings 
-Wno-missing-field-initializers -Werror=format -fvisibility=hidden 
-fno-strict-aliasing -imacros 
/build/reproducible-path/virglrenderer-1.2.0/obj-aarch64-linux-gnu/config.h 
-DHAVE_CONFIG_H=1 -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/virglrenderer-1.2.0=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -mbranch-protection=standard -Wdate-time 
-D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ 
src/mesa/libmesa.a.p/util_u_cpu_detect.c.o -MF 
src/mesa/libmesa.a.p/util_u_cpu_detect.c.o.d -o 
src/mesa/libmesa.a.p/util_u_cpu_detect.c.o -c ../src/mesa/util/u_cpu_detect.c
| FAILED: [code=1] src/mesa/libmesa.a.p/util_u_cpu_detect.c.o 
| cc -Isrc/mesa/libmesa.a.p -Isrc/mesa -I../src/mesa -I../src/mesa/compat 
-I../src/mesa/pipe -I../src/mesa/util -fdiagnostics-color=always -DNDEBUG 
-D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu11 
-Werror=enum-int-mismatch -Werror=implicit-function-declaration 
-Werror=missing-prototypes -Werror=pedantic -Wmissing-prototypes 
-Werror=incompatible-pointer-types -Werror=int-to-pointer-cast -Werror=switch 
-Wno-overlength-strings -Wno-missing-field-initializers -Werror=format 
-fvisibility=hidden -fno-strict-aliasing -imacros 
/build/reproducible-path/virglrenderer-1.2.0/obj-aarch64-linux-gnu/config.h 
-DHAVE_CONFIG_H=1 -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/virglrenderer-1.2.0=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -mbranch-protection=standard -Wdate-time 
-D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ 
src/mesa/libmesa.a.p/util_u_cpu_detect.c.o -MF 
src/mesa/libmesa.a.p/util_u_cpu_detect.c.o.d -o 
src/mesa/libmesa.a.p/util_u_cpu_detect.c.o -c ../src/mesa/util/u_cpu_detect.c
| In file included from ../src/mesa/compat/c11/threads.h:64,
|                  from ../src/mesa/util/u_thread.h:35,
|                  from ../src/mesa/util/u_cpu_detect.h:40,
|                  from ../src/mesa/util/u_cpu_detect.c:39:
| ../src/mesa/compat/c11/threads_posix.h:54:9: warning: ‘ONCE_FLAG_INIT’ 
redefined
|    54 | #define ONCE_FLAG_INIT PTHREAD_ONCE_INIT
|       |         ^~~~~~~~~~~~~~
| In file included from /usr/include/stdlib.h:1191,
|                  from ../src/mesa/pipe/p_compiler.h:36,
|                  from ../src/mesa/util/u_cpu_detect.c:36:
| /usr/include/aarch64-linux-gnu/bits/types/once_flag.h:25:9: note: this is the 
location of the previous definition
|    25 | #define ONCE_FLAG_INIT __ONCE_FLAG_INIT
|       |         ^~~~~~~~~~~~~~
| ../src/mesa/compat/c11/threads_posix.h:69:25: error: conflicting types for 
‘once_flag’; have ‘pthread_once_t’ {aka ‘int’}
|    69 | typedef pthread_once_t  once_flag;
|       |                         ^~~~~~~~~
| /usr/include/aarch64-linux-gnu/bits/types/once_flag.h:24:21: note: previous 
declaration of ‘once_flag’ with type ‘once_flag’
|    24 | typedef __once_flag once_flag;
|       |                     ^~~~~~~~~
| ../src/mesa/compat/c11/threads_posix.h:94:1: error: conflicting types for 
‘call_once’; have ‘void(int *, void (*)(void))’
|    94 | call_once(once_flag *flag, void (*func)(void))
|       | ^~~~~~~~~
| /usr/include/stdlib.h:1195:13: note: previous declaration of ‘call_once’ with 
type ‘void(once_flag *, void (*)(void))’
|  1195 | extern void call_once (once_flag *__flag, void (*__func)(void));
|       |             ^~~~~~~~~

...

| 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:15: 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 the definition of ONCE_FLAG_INIT in stdlib.h in
addition to threads.h as part of ISO C23 [2]. I believe that the issue
is fixed upstream [3], but I haven't tested the patch.

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/virglrenderer_arm64.build
[2] 
https://sourceware.org/git/?p=glibc.git;a=commit;h=a7ddbf456d97ac8d1aa7afd735e196a1488bd874
[3] 
https://gitlab.freedesktop.org/virgl/virglrenderer/-/commit/3f0f775edb2df5ea54c37863286ad565ccddb276

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
[email protected]                     http://aurel32.net

--- End Message ---
--- Begin Message ---
Source: virglrenderer
Source-Version: 1.3.0-1
Done: Michael Tokarev <[email protected]>

We believe that the bug you reported is fixed in the latest version of
virglrenderer, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Tokarev <[email protected]> (supplier of updated virglrenderer package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 16 Jun 2026 17:43:21 +0300
Source: virglrenderer
Architecture: source
Version: 1.3.0-1
Distribution: unstable
Urgency: medium
Maintainer: Gert Wollny <[email protected]>
Changed-By: Michael Tokarev <[email protected]>
Closes: 1128851 1134611
Changes:
 virglrenderer (1.3.0-1) unstable; urgency=medium
 .
   * new upstream release (Closes: #1128851)
   * d/rules: enable video hw acceleration unconditionally
     (was disabled on Ubuntu due to libva being in universe, now it is in main)
     (Closes: #1134611)
   * d/rules: drop the removed -Drender-server option
   * d/libvirglrenderer1.symbols: add new symbol
     (virgl_renderer_resource_map_fixed)
   * add two patches from upstream to fix a security issue:
     renderer-Check-for-successful-do_readpixels-operatio.patch
     renderer-Use-calloc-to-allocate-the-temporary-read-b.patch
Checksums-Sha1:
 3e4d164103e19453a71f0ddb3b1838d726db92cc 2316 virglrenderer_1.3.0-1.dsc
 168bf4f20928d601d72782c7fc9d60d18ede68da 912727 
virglrenderer_1.3.0.orig.tar.bz2
 da2653101a9e0f7ae23c6227ee240e22c66762c8 10204 
virglrenderer_1.3.0-1.debian.tar.xz
 c5a41a397f9959b9312b6e99ec8d42eceb9b1235 8652 
virglrenderer_1.3.0-1_source.buildinfo
Checksums-Sha256:
 0eb9ab31c5c88ac31744d7a2bde81319fb1ef65c2eeefd9e9aad5b18a000a9db 2316 
virglrenderer_1.3.0-1.dsc
 088040d130eaa0458a978fe7867fbfb1fcf1fdff52bf3b27a00658828bc4189f 912727 
virglrenderer_1.3.0.orig.tar.bz2
 9de342326eedc1ad68bd1dbc9325456d01f8217b3c3f20b4a504b87a1dbe49eb 10204 
virglrenderer_1.3.0-1.debian.tar.xz
 d9b2f76650fa2e0ff0e86ae802d5be4a7e09b384f7ba388095b2e7220498279f 8652 
virglrenderer_1.3.0-1_source.buildinfo
Files:
 f8b7ddb0fd9186eeb90487eeb6ad29d5 2316 libs optional virglrenderer_1.3.0-1.dsc
 af5fb13394c19763b3ebe44e258ab7d9 912727 libs optional 
virglrenderer_1.3.0.orig.tar.bz2
 c4f568db5ffe94604bd643248464bc91 10204 libs optional 
virglrenderer_1.3.0-1.debian.tar.xz
 50318638f322fa97e8063b2139e7c26a 8652 libs optional 
virglrenderer_1.3.0-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

wsG7BAEBCgBvBYJqMWEbCRCCqkokOx6UeEcUAAAAAAAeACBzYWx0QG5vdGF0aW9u
cy5zZXF1b2lhLXBncC5vcmfugNI0DVRBlOdQIf4sYfpryYMNktqUPO3+Mrg26WET
QRYhBGSqKrUx1WkDNmv++YKqSiQ7HpR4AAAv0xAAiVkWqa33jo+fBg4ulpJoAc8H
P35YbC8EZ4vOW+S9wXA7SZpFpyCfEQQr4I4Fp4j6XZhBcs2eATRd/o27LvR2K9Hr
hTbq8tqHXTJVhJ2J3esbkxTOOLQ6wbutv+VMO3t/q66R//+LC3W357oPCuiAQBcE
TjGqGY4OtevlkAY4IN5nbLD1nEd3/eEVmHN0iZnjLoNOzxkjmv59ZgpC9MDZQHaW
sO2aOIWB3GVGnXv7DffvibgK8wyjQ0A81aMGuxZYc6qsjd0ojq8C2zxeR1e52vdZ
uLjtBBY/zKoIISKyxH8vWrSLT5ja3IoP57XlYZi6Kxe6ZkH6UOSU/JGIYWlIb6WM
WJf1BIlNnJv9GrEjOTSANljq4u0wmcJFk/RrlxVXeUTO0qrhi1yns4lIb79NR4jY
h9zkskhKBq4CAbCgCHKSAVeJIjIkOIvhcJFEO783qdKMfYukzh+hxx8nmglyMWTD
Ue+hhO71mscb9c6UoMB504EyjqJZ36A9sjhGeF8h9tNm9wZpReNoKpglEBy5zD2j
XDj3IFupJtO83wTYlEIcKml9kG63zBmc4o9UJiDrqy/DJoZMtOLftN3YAQ6lBE/e
eCKbSYl7JUB1VXBQnemXfJSHlIzQ6Ha5fEkh1MIa7H29FmsK/TSlUoub006zymAB
eQLPUIOJgxR77SJ97zI=
=6JBM
-----END PGP SIGNATURE-----

Attachment: pgpXVrA0jwUJg.pgp
Description: PGP signature


--- End Message ---

Reply via email to