DEBUG: Executing shell function do_compile
[1/38] gcc -Isrc/gallium/libgallium.a.p -Isrc/gallium -I../sources/virglrenderer-1.1.1/src/gallium -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -Isrc -I../sources/virglrenderer-1.1.1/src -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/gallium/libgallium.a.p/auxiliary_tgsi_tgsi_iterate.c.o -MF src/gallium/libgallium.a.p/auxiliary_tgsi_tgsi_iterate.c.o.d -o src/gallium/libgallium.a.p/auxiliary_tgsi_tgsi_iterate.c.o -c ../sources/virglrenderer-1.1.1/src/gallium/auxiliary/tgsi/tgsi_iterate.c
[2/38] gcc -Isrc/gallium/libgallium.a.p -Isrc/gallium -I../sources/virglrenderer-1.1.1/src/gallium -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -Isrc -I../sources/virglrenderer-1.1.1/src -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/gallium/libgallium.a.p/auxiliary_tgsi_tgsi_strings.c.o -MF src/gallium/libgallium.a.p/auxiliary_tgsi_tgsi_strings.c.o.d -o src/gallium/libgallium.a.p/auxiliary_tgsi_tgsi_strings.c.o -c ../sources/virglrenderer-1.1.1/src/gallium/auxiliary/tgsi/tgsi_strings.c
[3/38] gcc -Isrc/libvirgl.a.p -Isrc -I../sources/virglrenderer-1.1.1/src -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -I../sources/virglrenderer-1.1.1/src/venus -I../sources/virglrenderer-1.1.1/src/drm -I../sources/virglrenderer-1.1.1/src/drm/drm-uapi -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/libdrm -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/share/pkgconfig/../../../usr/include -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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/libvirgl.a.p/iov.c.o -MF src/libvirgl.a.p/iov.c.o.d -o src/libvirgl.a.p/iov.c.o -c ../sources/virglrenderer-1.1.1/src/iov.c
[4/38] gcc -Isrc/libvirgl.a.p -Isrc -I../sources/virglrenderer-1.1.1/src -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -I../sources/virglrenderer-1.1.1/src/venus -I../sources/virglrenderer-1.1.1/src/drm -I../sources/virglrenderer-1.1.1/src/drm/drm-uapi -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/libdrm -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/share/pkgconfig/../../../usr/include -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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/libvirgl.a.p/virgl_fence.c.o -MF src/libvirgl.a.p/virgl_fence.c.o.d -o src/libvirgl.a.p/virgl_fence.c.o -c ../sources/virglrenderer-1.1.1/src/virgl_fence.c
FAILED: [code=1] src/libvirgl.a.p/virgl_fence.c.o
gcc -Isrc/libvirgl.a.p -Isrc -I../sources/virglrenderer-1.1.1/src -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -I../sources/virglrenderer-1.1.1/src/venus -I../sources/virglrenderer-1.1.1/src/drm -I../sources/virglrenderer-1.1.1/src/drm/drm-uapi -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/libdrm -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/share/pkgconfig/../../../usr/include -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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/libvirgl.a.p/virgl_fence.c.o -MF src/libvirgl.a.p/virgl_fence.c.o.d -o src/libvirgl.a.p/virgl_fence.c.o -c ../sources/virglrenderer-1.1.1/src/virgl_fence.c
In file included from ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads.h:64,
from ../sources/virglrenderer-1.1.1/src/virgl_fence.c:8:
../sources/virglrenderer-1.1.1/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 ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:29:
/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
| ^~~~~~~~~~~~~~
../sources/virglrenderer-1.1.1/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;
| ^~~~~~~~~
../sources/virglrenderer-1.1.1/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));
| ^~~~~~~~~
[5/38] gcc -Isrc/libvirgl.a.p -Isrc -I../sources/virglrenderer-1.1.1/src -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -I../sources/virglrenderer-1.1.1/src/venus -I../sources/virglrenderer-1.1.1/src/drm -I../sources/virglrenderer-1.1.1/src/drm/drm-uapi -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/libdrm -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/share/pkgconfig/../../../usr/include -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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/libvirgl.a.p/virgl_context.c.o -MF src/libvirgl.a.p/virgl_context.c.o.d -o src/libvirgl.a.p/virgl_context.c.o -c ../sources/virglrenderer-1.1.1/src/virgl_context.c
[6/38] gcc -Isrc/mesa/libmesa.a.p -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -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 ../sources/virglrenderer-1.1.1/src/mesa/util/u_math.c
FAILED: [code=1] src/mesa/libmesa.a.p/util_u_math.c.o
gcc -Isrc/mesa/libmesa.a.p -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -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 ../sources/virglrenderer-1.1.1/src/mesa/util/u_math.c
In file included from ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads.h:64,
from ../sources/virglrenderer-1.1.1/src/mesa/util/u_thread.h:35,
from ../sources/virglrenderer-1.1.1/src/mesa/util/u_cpu_detect.h:40,
from ../sources/virglrenderer-1.1.1/src/mesa/util/u_math.c:32:
../sources/virglrenderer-1.1.1/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 ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:29:
/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
| ^~~~~~~~~~~~~~
../sources/virglrenderer-1.1.1/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;
| ^~~~~~~~~
../sources/virglrenderer-1.1.1/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));
| ^~~~~~~~~
[7/38] gcc -Isrc/mesa/libmesa.a.p -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -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 ../sources/virglrenderer-1.1.1/src/mesa/util/u_cpu_detect.c
FAILED: [code=1] src/mesa/libmesa.a.p/util_u_cpu_detect.c.o
gcc -Isrc/mesa/libmesa.a.p -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -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 ../sources/virglrenderer-1.1.1/src/mesa/util/u_cpu_detect.c
In file included from ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads.h:64,
from ../sources/virglrenderer-1.1.1/src/mesa/util/u_thread.h:35,
from ../sources/virglrenderer-1.1.1/src/mesa/util/u_cpu_detect.h:40,
from ../sources/virglrenderer-1.1.1/src/mesa/util/u_cpu_detect.c:39:
../sources/virglrenderer-1.1.1/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 ../sources/virglrenderer-1.1.1/src/mesa/pipe/p_compiler.h:36,
from ../sources/virglrenderer-1.1.1/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
| ^~~~~~~~~~~~~~
../sources/virglrenderer-1.1.1/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;
| ^~~~~~~~~
../sources/virglrenderer-1.1.1/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));
| ^~~~~~~~~
[8/38] gcc -Isrc/libvirgl.a.p -Isrc -I../sources/virglrenderer-1.1.1/src -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -I../sources/virglrenderer-1.1.1/src/venus -I../sources/virglrenderer-1.1.1/src/drm -I../sources/virglrenderer-1.1.1/src/drm/drm-uapi -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/libdrm -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/share/pkgconfig/../../../usr/include -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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/libvirgl.a.p/virgl_resource.c.o -MF src/libvirgl.a.p/virgl_resource.c.o.d -o src/libvirgl.a.p/virgl_resource.c.o -c ../sources/virglrenderer-1.1.1/src/virgl_resource.c
[9/38] gcc -Isrc/libvirgl.a.p -Isrc -I../sources/virglrenderer-1.1.1/src -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -I../sources/virglrenderer-1.1.1/src/venus -I../sources/virglrenderer-1.1.1/src/drm -I../sources/virglrenderer-1.1.1/src/drm/drm-uapi -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/libdrm -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/share/pkgconfig/../../../usr/include -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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/libvirgl.a.p/virgl_util.c.o -MF src/libvirgl.a.p/virgl_util.c.o.d -o src/libvirgl.a.p/virgl_util.c.o -c ../sources/virglrenderer-1.1.1/src/virgl_util.c
[10/38] gcc -Isrc/gallium/libgallium.a.p -Isrc/gallium -I../sources/virglrenderer-1.1.1/src/gallium -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -Isrc -I../sources/virglrenderer-1.1.1/src -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/gallium/libgallium.a.p/auxiliary_tgsi_tgsi_util.c.o -MF src/gallium/libgallium.a.p/auxiliary_tgsi_tgsi_util.c.o.d -o src/gallium/libgallium.a.p/auxiliary_tgsi_tgsi_util.c.o -c ../sources/virglrenderer-1.1.1/src/gallium/auxiliary/tgsi/tgsi_util.c
[11/38] gcc -Isrc/gallium/libgallium.a.p -Isrc/gallium -I../sources/virglrenderer-1.1.1/src/gallium -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -Isrc -I../sources/virglrenderer-1.1.1/src -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/gallium/libgallium.a.p/meson-generated_.._u_format_table.c.o -MF src/gallium/libgallium.a.p/meson-generated_.._u_format_table.c.o.d -o src/gallium/libgallium.a.p/meson-generated_.._u_format_table.c.o -c src/gallium/u_format_table.c
[12/38] gcc -Isrc/libvirgl.a.p -Isrc -I../sources/virglrenderer-1.1.1/src -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -I../sources/virglrenderer-1.1.1/src/venus -I../sources/virglrenderer-1.1.1/src/drm -I../sources/virglrenderer-1.1.1/src/drm/drm-uapi -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/libdrm -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/share/pkgconfig/../../../usr/include -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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/libvirgl.a.p/vrend_object.c.o -MF src/libvirgl.a.p/vrend_object.c.o.d -o src/libvirgl.a.p/vrend_object.c.o -c ../sources/virglrenderer-1.1.1/src/vrend_object.c
[13/38] gcc -Isrc/gallium/libgallium.a.p -Isrc/gallium -I../sources/virglrenderer-1.1.1/src/gallium -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -Isrc -I../sources/virglrenderer-1.1.1/src -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/gallium/libgallium.a.p/auxiliary_tgsi_tgsi_sanity.c.o -MF src/gallium/libgallium.a.p/auxiliary_tgsi_tgsi_sanity.c.o.d -o src/gallium/libgallium.a.p/auxiliary_tgsi_tgsi_sanity.c.o -c ../sources/virglrenderer-1.1.1/src/gallium/auxiliary/tgsi/tgsi_sanity.c
[14/38] gcc -Isrc/libvirgl.a.p -Isrc -I../sources/virglrenderer-1.1.1/src -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -I../sources/virglrenderer-1.1.1/src/venus -I../sources/virglrenderer-1.1.1/src/drm -I../sources/virglrenderer-1.1.1/src/drm/drm-uapi -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/libdrm -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/share/pkgconfig/../../../usr/include -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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/libvirgl.a.p/vrend_debug.c.o -MF src/libvirgl.a.p/vrend_debug.c.o.d -o src/libvirgl.a.p/vrend_debug.c.o -c ../sources/virglrenderer-1.1.1/src/vrend_debug.c
[15/38] gcc -Isrc/libvirgl.a.p -Isrc -I../sources/virglrenderer-1.1.1/src -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -I../sources/virglrenderer-1.1.1/src/venus -I../sources/virglrenderer-1.1.1/src/drm -I../sources/virglrenderer-1.1.1/src/drm/drm-uapi -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/libdrm -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/share/pkgconfig/../../../usr/include -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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/libvirgl.a.p/vrend_formats.c.o -MF src/libvirgl.a.p/vrend_formats.c.o.d -o src/libvirgl.a.p/vrend_formats.c.o -c ../sources/virglrenderer-1.1.1/src/vrend_formats.c
[16/38] gcc -Isrc/libvirgl.a.p -Isrc -I../sources/virglrenderer-1.1.1/src -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -I../sources/virglrenderer-1.1.1/src/venus -I../sources/virglrenderer-1.1.1/src/drm -I../sources/virglrenderer-1.1.1/src/drm/drm-uapi -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/libdrm -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/share/pkgconfig/../../../usr/include -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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/libvirgl.a.p/vrend_renderer.c.o -MF src/libvirgl.a.p/vrend_renderer.c.o.d -o src/libvirgl.a.p/vrend_renderer.c.o -c ../sources/virglrenderer-1.1.1/src/vrend_renderer.c
FAILED: [code=1] src/libvirgl.a.p/vrend_renderer.c.o
gcc -Isrc/libvirgl.a.p -Isrc -I../sources/virglrenderer-1.1.1/src -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -I../sources/virglrenderer-1.1.1/src/venus -I../sources/virglrenderer-1.1.1/src/drm -I../sources/virglrenderer-1.1.1/src/drm/drm-uapi -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/libdrm -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/share/pkgconfig/../../../usr/include -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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/libvirgl.a.p/vrend_renderer.c.o -MF src/libvirgl.a.p/vrend_renderer.c.o.d -o src/libvirgl.a.p/vrend_renderer.c.o -c ../sources/virglrenderer-1.1.1/src/vrend_renderer.c
In file included from ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads.h:64,
from ../sources/virglrenderer-1.1.1/src/mesa/util/u_thread.h:35,
from ../sources/virglrenderer-1.1.1/src/vrend_renderer.c:43:
../sources/virglrenderer-1.1.1/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 ../sources/virglrenderer-1.1.1/src/mesa/pipe/p_compiler.h:36,
from ../sources/virglrenderer-1.1.1/src/gallium/include/pipe/p_defines.h:31,
from ../sources/virglrenderer-1.1.1/src/vrend_renderer.c:34:
/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
| ^~~~~~~~~~~~~~
../sources/virglrenderer-1.1.1/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;
| ^~~~~~~~~
../sources/virglrenderer-1.1.1/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));
| ^~~~~~~~~
[17/38] gcc -Isrc/libvirgl.a.p -Isrc -I../sources/virglrenderer-1.1.1/src -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -I../sources/virglrenderer-1.1.1/src/venus -I../sources/virglrenderer-1.1.1/src/drm -I../sources/virglrenderer-1.1.1/src/drm/drm-uapi -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/libdrm -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/share/pkgconfig/../../../usr/include -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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/libvirgl.a.p/vrend_blitter.c.o -MF src/libvirgl.a.p/vrend_blitter.c.o.d -o src/libvirgl.a.p/vrend_blitter.c.o -c ../sources/virglrenderer-1.1.1/src/vrend_blitter.c
[18/38] gcc -Isrc/libvirgl.a.p -Isrc -I../sources/virglrenderer-1.1.1/src -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -I../sources/virglrenderer-1.1.1/src/venus -I../sources/virglrenderer-1.1.1/src/drm -I../sources/virglrenderer-1.1.1/src/drm/drm-uapi -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/libdrm -ITOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/share/pkgconfig/../../../usr/include -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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/libvirgl.a.p/vrend_decode.c.o -MF src/libvirgl.a.p/vrend_decode.c.o.d -o src/libvirgl.a.p/vrend_decode.c.o -c ../sources/virglrenderer-1.1.1/src/vrend_decode.c
[19/38] gcc -Isrc/gallium/libgallium.a.p -Isrc/gallium -I../sources/virglrenderer-1.1.1/src/gallium -I../sources/virglrenderer-1.1.1/src/gallium/include -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary -I../sources/virglrenderer-1.1.1/src/gallium/auxiliary/util -I. -I../sources/virglrenderer-1.1.1 -Isrc -I../sources/virglrenderer-1.1.1/src -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/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 TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystemTOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/gallium/libgallium.a.p/auxiliary_tgsi_tgsi_text.c.o -MF src/gallium/libgallium.a.p/auxiliary_tgsi_tgsi_text.c.o.d -o src/gallium/libgallium.a.p/auxiliary_tgsi_tgsi_text.c.o -c ../sources/virglrenderer-1.1.1/src/gallium/auxiliary/tgsi/tgsi_text.c
../sources/virglrenderer-1.1.1/src/gallium/auxiliary/tgsi/tgsi_text.c: In function ‘skip_n_chars’:
../sources/virglrenderer-1.1.1/src/gallium/auxiliary/tgsi/tgsi_text.c:87:16: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
87 | char* str = memchr(*pcur, '\0', n);
| ^~~~~~
ninja: build stopped: subcommand failed.
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: TOPDIR/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/bin/ninja -j 16 -l 75.0 -v
WARNING: exit code 1 from a shell command.