pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
MesaLib fails to build from source (Linux)
Hi!
I just upgraded this machine to Fedora 44 (aarch64), and I am in the
process of running pkg_rolling-replace. Unfortunately, MesaLib fails with
some pthread-related breakage. I assume this is because of new libraries?
Anyone have any ideas for a fix?
[13/2263] Compiling C object src/util/libmesa_util.a.p/disk_cache.c.o
FAILED: [code=1] src/util/libmesa_util.a.p/disk_cache.c.o
cc -Isrc/util/libmesa_util.a.p -Isrc/util -I../src/util -Iinclude
-I../include -Isrc -I../src -Isrc/mapi -I../src/mapi -Isrc/mesa
-I../src/mesa -I../src/gallium/include -Isrc/gallium/auxiliary
-I../src/gallium/auxiliary -I/usr/pkg/include -I/usr/pkg/include/libelf
-I/usr/pkg/include/libLLVM -I/usr/pkg/include/libdrm -I/usr/include
-I/usr/pkg/include/python3.13 -fvisibility=hidden
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -std=c11 -ffunction-sections -fdata-sections
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
'-DPACKAGE_VERSION="21.3.9"'
'-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"'
-DUSE_ELF_TLS -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0
-DHAVE_VA_SURFACE_ATTRIB_DRM_FORMAT_MODIFIERS -DHAVE_X11_PLATFORM
-DHAVE_XCB_PLATFORM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING
-DGLX_USE_DRM -DHAVE_DRM_PLATFORM -DENABLE_SHADER_CACHE
-DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ
-DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT
-DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT
-DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE
-DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST
-DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC
-DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED
-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK
-DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED
-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS
-DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY
-DHAVE_UINT128 -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DUSE_AARCH64_ASM
-DMAJOR_IN_SYSMACROS -DHAS_SCHED_H -DHAS_SCHED_GETAFFINITY
-DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_SYS_SHM_H
-DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE
-DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM
-DHAVE_QSORT_R -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN
-DHAVE_DIRENT_D_TYPE -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB
-DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM
-DLLVM_AVAILABLE '-DMESA_LLVM_VERSION_STRING="13.0.1"' -DLLVM_IS_SHARED=1
-DDRAW_LLVM_AVAILABLE -DMESA_EXECMEM -DHAVE_WAYLAND_PLATFORM
-DWL_HIDE_DEPRECATED -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS
-DVK_USE_PLATFORM_WAYLAND_KHR -DVK_USE_PLATFORM_XCB_KHR
-DVK_USE_PLATFORM_XLIB_KHR -DVK_USE_PLATFORM_XLIB_XRANDR_EXT
-DVK_USE_PLATFORM_DISPLAY_KHR -Werror=implicit-function-declaration
-Werror=missing-prototypes -Werror=return-type -Werror=empty-body
-Werror=incompatible-pointer-types -Werror=int-conversion
-Wimplicit-fallthrough -Wno-missing-field-initializers
-Wno-format-truncation -fno-math-errno -fno-trapping-math -fno-common
-Werror=format -Wformat-security -O2 -DHAVE_NOATEXIT
-DSYSCONFDIR=/usr/pkg/etc -fPIC -pthread -Werror=pointer-arith -MD -MQ
src/util/libmesa_util.a.p/disk_cache.c.o -MF
src/util/libmesa_util.a.p/disk_cache.c.o.d -o
src/util/libmesa_util.a.p/disk_cache.c.o -c ../src/util/disk_cache.c
In file included from ../include/c11/threads.h:66,
from ../src/util/simple_mtx.h:30,
from ../src/util/u_queue.h:38,
from ../src/util/disk_cache_os.h:27,
from ../src/util/disk_cache.c:49:
../include/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/util/disk_cache.c:29:
/usr/include/bits/types/once_flag.h:25:9: note: this is the location of
the previous definition
25 | #define ONCE_FLAG_INIT __ONCE_FLAG_INIT
| ^~~~~~~~~~~~~~
../include/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/bits/types/once_flag.h:24:21: note: previous declaration of
'once_flag' with type 'once_flag'
24 | typedef __once_flag once_flag;
| ^~~~~~~~~
../include/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));
| ^~~~~~~~~
[15/2263] Generating src/util/format_srgb with a custom command (wrapped
by meson to capture output)
ninja: build stopped: subcommand failed.
*** Error code 1
--
Benny
Home |
Main Index |
Thread Index |
Old Index