Public bug reported:

As seen in 
https://launchpadlibrarian.net/852730313/buildlog_ubuntu-resolute-amd64.virglrenderer_1.2.0-2_BUILDING.txt.gz

```
(...)

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 
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/config.h -DHAVE_CONFIG_H=1 -g -O2 
-Werror=implicit-function-declaration -fno-omit-frame-pointer 
-mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto 
-ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/virglrenderer-1.2.0-2 -Wdate-time 
-D_FORTIFY_SOURCE=3 -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/x86_64-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/x86_64-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));
      |             ^~~~~~~~~

(...)
```

** Affects: virglrenderer (Ubuntu)
     Importance: Undecided
     Assignee: Renan Rodrigo (rr)
         Status: In Progress

** Changed in: virglrenderer (Ubuntu)
     Assignee: (unassigned) => Renan Rodrigo (rr)

** Changed in: virglrenderer (Ubuntu)
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2146973

Title:
  1.2.0-2 FTBFS on resolute due to c23 changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/virglrenderer/+bug/2146973/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to