Created attachment 763860 [details] emerge --info [...] [887/1293] i686-gentoo-linux-musl-gcc -Isrc/mapi/shared-glapi/libglapi.so.0.0.0.p -Isrc/mapi/shared-glapi -I../mesa-21.3.4/src/mapi/shared-glapi -Isrc -I../mesa-21.3.4/src -Iinclude -I../mesa-21.3.4/include -Isrc/mapi -I../mesa-21.3.4/src/mapi -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.4"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DUSE_ELF_TLS -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -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 -D_GNU_SOURCE -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_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_CET_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DLLVM_AVAILABLE '-DMESA_LLVM_VERSION_STRING="13.0.0"' -DLLVM_IS_SHARED=1 -DDRAW_LLVM_AVAILABLE -DUSE_LIBGLVND=1 -DMESA_EXECMEM -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DHAVE_LIBSENSORS=1 -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_XLIB_KHR -DVK_USE_PLATFORM_XLIB_XRANDR_EXT -DVK_USE_PLATFORM_DISPLAY_KHR -mtls-dialect=gnu2 -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 -msse2 -mfpmath=sse -mstackrealign -O2 -march=pentium4 -mtune=pentium4 -pipe -fPIC -pthread -Werror=pointer-arith -DMAPI_MODE_GLAPI '-DMAPI_ABI_HEADER="/var/tmp/portage/media-libs/mesa-21.3.4/work/mesa-21.3.4-abi_x86_32.x86/src/mapi/shared-glapi/glapi_mapi_tmp.h"' -fno-lto -MD -MQ src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._u_current.c.o -MF src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._u_current.c.o.d -o src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._u_current.c.o -c ../mesa-21.3.4/src/mapi/u_current.c [888/1293] i686-gentoo-linux-musl-gcc -o src/mapi/shared-glapi/libglapi.so.0.0.0 src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._entry.c.o src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._mapi_glapi.c.o src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._stub.c.o src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._table.c.o src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._u_current.c.o src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._u_execmem.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libglapi.so.0 -Wl,--end-group -O2 -march=pentium4 -mtune=pentium4 -pipe -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -pthread FAILED: src/mapi/shared-glapi/libglapi.so.0.0.0 i686-gentoo-linux-musl-gcc -o src/mapi/shared-glapi/libglapi.so.0.0.0 src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._entry.c.o src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._mapi_glapi.c.o src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._stub.c.o src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._table.c.o src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._u_current.c.o src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._u_execmem.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libglapi.so.0 -Wl,--end-group -O2 -march=pentium4 -mtune=pentium4 -pipe -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -pthread /usr/lib/gcc/i686-gentoo-linux-musl/11.2.0/../../../../i686-gentoo-linux-musl/bin/ld: _glapi_tls_Dispatch: TLS definition in src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._u_current.c.o section .tdata._glapi_tls_Dispatch mismatches non-TLS reference in src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._entry.c.o /usr/lib/gcc/i686-gentoo-linux-musl/11.2.0/../../../../i686-gentoo-linux-musl/bin/ld: src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._u_current.c.o: error adding symbols: bad value collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. * ERROR: media-libs/mesa-21.3.4::musl failed (compile phase):
Created attachment 763861 [details] build.log.xz
commit 33f9ed07de27dc089a336b3bffbb80dd86e61615 (HEAD -> master, origin/master, origin/HEAD) Author: Jory Pratt <anarchy@gentoo.org> Date: Fri Jan 28 19:54:24 2022 -0600 media-libs/mesa: Fix build for x86 users Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Jory Pratt <anarchy@gentoo.org>