From nobody Sun Jan 14 15:48:09 2024 X-Original-To: x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TCfn72yP7z56Tds for ; Sun, 14 Jan 2024 15:48:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TCfn70Zphz49kK for ; Sun, 14 Jan 2024 15:48:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705247291; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cHXkFE4IsR1fvkJKvzt566ZSwe40+yBKPXjN24/VJyk=; b=M87Ksy+LaQYLAJniSvHEKucIX+m/APq7VGB2YcXbCjrhiM2QoiGoVLBUyWNyRtEfIseava yMp2wCguJSDipVuBZFc3bHvwS2aGJJDCdYMweFPhdrJJBFQbtPNJ5O/gGongJTEp9X26qA zgs0ocSMdXv4Bp85QJg7L69l1zJeOzAYcWsGTyaboDB97XJNecOH63tgbc0X99pm/cF59Z xyaMqPUbtwVzaMHzpQQHl4vcMACHdOQ9/5J/wTqBU74Q/T3DlRtsESrTwUjfgcE1fir4u7 dgm/doffMWoHItAydRqM5zNNPxzMqgMmLTMWvAvtH4FTThTL0U3ZjdS4zcAJog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705247291; a=rsa-sha256; cv=none; b=mhEzjea6L8IC7PWZZP5LwHH1GSVg7nc8JV9aEqoF3D14leLvyQKrLeSCcsqYxL28zIcQI1 jpz6VSOZMygSFoP6vFCEYfW6GD4sbEjvCTt07iLV9PsY7h5eijt2pUdeuDYnt9JsqIwO84 9t/mV8VMolOW5pESbqeE5I0gnvHDR7ELViu45wwQiiyYQuTM8Iv2VYPFumaHiM4w+ovjOw x3E+KNWa41KTEXLVP8KEs6OtTyvvLZX+UrPt8mTiFErhxsYQWSUmqRw5fHf/nqVSZBw+a0 hpcWqm+68sJRb1eEODFsd3KyKdKrzmauDLxPLzHXmUhhLPFNGW3wDvSooj0goQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TCfn66dSYzKB8 for ; Sun, 14 Jan 2024 15:48:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 40EFmA0W081105 for ; Sun, 14 Jan 2024 15:48:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40EFmAJm081101 for x11@FreeBSD.org; Sun, 14 Jan 2024 15:48:10 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: maintainer-feedback requested: [Bug 276330] graphics/mesa-libs: ld: error: version script assignment of 'global' to symbol 'XXX' failed: symbol not defined Date: Sun, 14 Jan 2024 15:48:09 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 Bugzilla Automation has asked freebsd-x11 (Nobody) for maintainer-feedback: Bug 276330: graphics/mesa-libs: ld: error: version script assignment of 'global' to symbol 'XXX' failed: symbol not defined https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276330 --- Description --- It appears that the recent llvm17 in base breaks building graphics/mesa-lib= s: FAILED: src/gallium/targets/dri/libgallium_dri.so c++ -o src/gallium/targets/dri/libgallium_dri.so src/gallium/targets/dri/libgallium_dri.so.p/target.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libgallium_dri.so -fstack-protector-strong -O2 -pipe -fstack-protector-strong -fno-strict-aliasing '-Wl,-rpath,$ORIGIN/../../../mapi/shared-glapi:/usr/local/lib' -Wl,-rpath-link,/usr/obj/usr/ports/graphics/mesa-libs/work/mesa-23.3.3/_bui= ld/s rc/mapi/shared-glapi -Wl,-rpath-link,/usr/local/lib src/gallium/frontends/dri/libdri.a src/util/libmesa_util.a src/util/libmesa_util_sse41.a src/util/blake3/libblake3.a src/c11/impl/libmesa_util_c11.a src/mesa/libmes= a.a src/compiler/glsl/libglsl.a src/compiler/glsl/glcpp/libglcpp.a src/compiler/nir/libnir.a src/compiler/libcompiler.a src/mesa/libmesa_sse41= .a src/compiler/spirv/libvtn.a src/gallium/auxiliary/libgalliumvl.a src/gallium/auxiliary/libgallium.a src/mapi/shared-glapi/libglapi.so.0.0.0 src/gallium/auxiliary/pipe-loader/libpipe_loader_static.a src/loader/libloader.a src/util/libxmlconfig.a src/gallium/winsys/sw/null/libws_null.a src/gallium/winsys/sw/wrapper/libws= w.a src/gallium/winsys/sw/dri/libswdri.a src/gallium/winsys/sw/kms-dri/libswkmsdri.a src/gallium/drivers/r300/libr30= 0.a src/gallium/winsys/radeon/drm/libradeonwinsys.a -Wl,--build-id=3Dsha1 -Wl,--gc-sections -Wl,--version-script /usr/obj/usr/ports/graphics/mesa-libs/work/mesa-23.3.3/src/gallium/targets/= dri/ dri.sym -Wl,--dynamic-list /usr/obj/usr/ports/graphics/mesa-libs/work/mesa-23.3.3/src/gallium/targets/= dri/ ../dri.dyn /usr/local/lib/libdrm.so -pthread /usr/local/lib/libexpat.so /usr/lib/libz.= so -lm /usr/local/lib/libxcb-randr.so /usr/local/lib/libdrm_radeon.so -Wl,--end-group ld: error: version script assignment of 'global' to symbol 'nouveau_drm_screen_create' failed: symbol not defined ld: error: version script assignment of 'global' to symbol 'amdgpu_winsys_create' failed: symbol not defined ld: error: version script assignment of 'global' to symbol 'fd_drm_screen_create_renderonly' failed: symbol not defined ld: error: version script assignment of 'global' to symbol 'ac_init_shared_llvm_once' failed: symbol not defined c++: error: linker command failed with exit code 1 (use -v to see invocatio= n) [ 93% 962/1031] cc -Isrc/glx/libglx.a.p -Isrc/glx -I../src/glx -Iinclude -I../include -Isrc -I../src -Isrc/mapi/glapi -I../src/mapi/glapi -Isrc/load= er -I../src/loader -Isrc/mapi/glapi/gen -I/usr/local/include -I/usr/local/include/libdrm -fvisibility=3Dhidden -fdiagnostics-color=3Dnev= er -DNDEBUG -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -std=3Dc11 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION=3D"23.3.3"' '-DPACKAGE_BUGREPORT=3D"https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DHAVE_OPENGL=3D1 -DHAVE_OPENGL_ES_1=3D1 -DHAVE_OPENGL_ES_2=3D1 -DHAVE_R300 -DVIDEO_CODEC_VC1DEC=3D0 -DVIDEO_CODEC_H264DEC=3D0 -DVIDEO_CODEC_H264ENC=3D0 -DVIDEO_CODEC_H265DEC=3D0 -DVIDEO_CODEC_H265ENC=3D0 -DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_XCB_PLATFORM -DENABLE_ST_OMX_BELLAGIO=3D0 -DENABLE_ST_OMX_TIZONIA=3D0 -DGLX_INDIRECT_REN= DERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DGLAPI_EXPORT_PROTO_ENTRY_POINTS=3D0 -DALLOW_KCMP -DETIME=3DETIMEDOUT -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSW= AP32 -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 -DHAVE_REALLOCARRAY -DHAVE_FMEMOPEN -D_GNU_SOURCE -DUSE_SSE41 -DHAVE___BUILTIN_IA32_CLFLUSHOPT -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_64_ASM -DHAS_SCHED_H -DHAS_SCHED_GETAFFINITY -DHAVE_SYS_SYSCTL_H -DHAVE_XLOCALE_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_PTHREAD_NP_H -DHAVE_STR= TOF -DHAVE_MKOSTEMP -DHAVE_MEMFD_CREATE -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_QSORT_S -DHAVE_POSIX_FALLOCATE -DHAVE_BSD_QSORT_R -DHAVE_STRUCT_TIMESPEC -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_LIBDRM -DHAVE_LIBUDEV -DUSE_LIBELF -DUSE_LIBGLVND=3D1 -DHAVE_DRI -DHAVE_DRI2 -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DHAVE_DRISW_KMS -Werror=3Dimplicit-function-declaration -Werror=3Dmissing-prototypes -Werror=3Dreturn-type -Werror=3Dempty-body -Werror=3Dincompatible-pointer-types -Werror=3Dint-conversion -Wimplicit-fallthrough -Wmisleading-indentation -Wno-missing-field-initiali= zers -fno-math-errno -fno-trapping-math -Qunused-arguments -fno-common -Wno-microsoft-enum-value -Wno-unused-function -Werror=3Dformat -Wformat-se= curity -ffunction-sections -fdata-sections -Wno-unused-variable -Wno-unused-but-set-variable -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -D_THREAD_SAFE -pthread '-DGL_LIB_NAME=3D"libGLX_mesa.so.0"' -MD -MQ src/glx/libglx.a.p/meson-generated_.._.._mapi_glapi_gen_indirect.c.o -MF src/glx/libglx.a.p/meson-generated_.._.._mapi_glapi_gen_indirect.c.o.d -o src/glx/libglx.a.p/meson-generated_.._.._mapi_glapi_gen_indirect.c.o -c src/mapi/glapi/gen/indirect.c ninja: build stopped: subcommand failed. =3D=3D=3D> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure = to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/graphics/mesa-libs *** Error code 1 Stop. make: stopped in /usr/ports/graphics/mesa-libs This seems to be caused by https://gitlab.freedesktop.org/mesa/mesa/-/issues/9825. Adding the suggested -Wl,--undefined-version helps.