Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832260 - media-libs/mesa-21.3.4 - ld: src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._u_current.c.o: error adding symbols: bad value (on musl)
Summary: media-libs/mesa-21.3.4 - ld: src/mapi/shared-glapi/libglapi.so.0.0.0.p/.._u_c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2022-01-29 01:34 UTC by ernsteiswuerfel
Modified: 2022-01-29 02:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_832260.txt,6.99 KB, text/plain)
2022-01-29 01:34 UTC, ernsteiswuerfel
Details
build.log.xz (mesa-21.3.4:20220129-012446.log.xz,29.73 KB, application/x-xz)
2022-01-29 01:36 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2022-01-29 01:34:45 UTC
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):
Comment 1 ernsteiswuerfel archtester 2022-01-29 01:36:46 UTC
Created attachment 763861 [details]
build.log.xz
Comment 2 Jory A. Pratt gentoo-dev 2022-01-29 01:56:56 UTC
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>