[Bug 273803] graphics/mesa-dri:mesa-dri is missing a required shared library: libelf.so.1
Date: Fri, 15 Sep 2023 21:57:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273803 --- Comment #3 from Ivan Rozhuk <rozhuk.im@gmail.com> --- (In reply to Ivan Rozhuk from comment #2) With: -e 's|dep_elf =.*|dep_elf = null_dep|g' got link error: 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 -Wl,-rpath=/usr/local/llvm15/lib -fstack-protector-strong -O2 -pipe -O3 -funroll-loops -mretpoline -fno-delete-null-pointer-checks -fstack-protector-strong -fno-strict-aliasing -fdebug-prefix-map=/tmp/ports/usr/ports/graphics/mesa-dri/work/mesa-22.3.7=. -O3 -funroll-loops -mretpoline -fno-delete-null-pointer-checks '-Wl,-rpath,$ORIGIN/../../../mapi/shared-glapi:/usr/local/lib' -Wl,-rpath-link,/tmp/ports/usr/ports/graphics/mesa-dri/work/mesa-22.3.7/_build/src/mapi/shared-glapi -Wl,-rpath-link,/usr/local/lib src/gallium/frontends/dri/libdri.a src/util/libmesa_util.a src/util/format/libmesa_format.a src/util/libmesa_util_sse41.a src/c11/impl/libmesa_util_c11.a src/mesa/libmesa.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/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/libwsw.a src/gallium/winsys/sw/dri/libswdri.a src/gallium/winsys/sw/kms-dri/libswkmsdri.a src/gallium/drivers/llvmpipe/libllvmpipe.a src/gallium/drivers/softpipe/libsoftpipe.a src/gallium/drivers/r300/libr300.a src/gallium/winsys/radeon/drm/libradeonwinsys.a src/gallium/drivers/r600/libr600.a src/gallium/drivers/radeonsi/libradeonsi_gfx6.a src/gallium/drivers/radeonsi/libradeonsi_gfx7.a src/gallium/drivers/radeonsi/libradeonsi_gfx8.a src/gallium/drivers/radeonsi/libradeonsi_gfx9.a src/gallium/drivers/radeonsi/libradeonsi_gfx10.a src/gallium/drivers/radeonsi/libradeonsi_gfx103.a src/gallium/drivers/radeonsi/libradeonsi_gfx11.a src/gallium/drivers/radeonsi/libradeonsi.a src/gallium/winsys/amdgpu/drm/libamdgpuwinsys.a src/amd/addrlib/libaddrlib.a src/amd/common/libamd_common.a src/amd/llvm/libamd_common_llvm.a src/gallium/drivers/i915/libi915.a src/gallium/winsys/i915/drm/libi915drm.a src/gallium/drivers/svga/libsvga.a src/gallium/winsys/svga/drm/libsvgadrm.a src/gallium/drivers/iris/libiris.a src/gallium/drivers/iris/libiris_per_hw_ver80.a src/gallium/drivers/iris/libiris_per_hw_ver90.a src/gallium/drivers/iris/libiris_per_hw_ver110.a src/gallium/drivers/iris/libiris_per_hw_ver120.a src/gallium/drivers/iris/libiris_per_hw_ver125.a src/intel/compiler/libintel_compiler.a src/intel/dev/libintel_dev.a src/intel/isl/libisl.a src/intel/isl/libisl_per_hw_ver40.a src/intel/isl/libisl_per_hw_ver50.a src/intel/isl/libisl_per_hw_ver60.a src/intel/isl/libisl_per_hw_ver70.a src/intel/isl/libisl_per_hw_ver75.a src/intel/isl/libisl_per_hw_ver80.a src/intel/isl/libisl_per_hw_ver90.a src/intel/isl/libisl_per_hw_ver110.a src/intel/isl/libisl_per_hw_ver120.a src/intel/isl/libisl_per_hw_ver125.a src/intel/isl/libisl_tiled_memcpy.a src/intel/isl/libisl_tiled_memcpy_sse41.a src/intel/blorp/libblorp.a src/intel/perf/libintel_perf.a src/intel/common/libintel_common.a src/intel/ds/libintel-driver-ds.a src/gallium/winsys/iris/drm/libiriswinsys.a src/gallium/drivers/zink/libzink.a src/vulkan/util/libvulkan_util.a src/gallium/drivers/crocus/libcrocus.a src/gallium/drivers/crocus/libcrocus_per_hw_ver40.a src/gallium/drivers/crocus/libcrocus_per_hw_ver45.a src/gallium/drivers/crocus/libcrocus_per_hw_ver50.a src/gallium/drivers/crocus/libcrocus_per_hw_ver60.a src/gallium/drivers/crocus/libcrocus_per_hw_ver70.a src/gallium/drivers/crocus/libcrocus_per_hw_ver75.a src/gallium/drivers/crocus/libcrocus_per_hw_ver80.a src/gallium/winsys/crocus/drm/libcrocuswinsys.a -Wl,--build-id=sha1 -Wl,--gc-sections -Wl,--version-script /tmp/ports/usr/ports/graphics/mesa-dri/work/mesa-22.3.7/src/gallium/targets/dri/dri.sym -Wl,--dynamic-list /tmp/ports/usr/ports/graphics/mesa-dri/work/mesa-22.3.7/src/gallium/targets/dri/../dri-vdpau.dyn /usr/local/lib/libdrm.so /usr/local/llvm15/lib/libLLVM-15.so -pthread /usr/local/lib/libexpat.so /usr/lib/libz.so -lm /usr/local/lib/libzstd.so /usr/local/lib/libunwind.so /usr/local/lib/libdrm_radeon.so /usr/local/lib/libdrm_amdgpu.so /usr/local/lib/libdrm_intel.so /usr/local/lib/libxcb.so /usr/local/lib/libX11-xcb.so /usr/local/lib/libX11.so /usr/local/lib/libxcb-dri3.so /usr/local/lib/libxcb-present.so /usr/local/lib/libxcb-xfixes.so /usr/local/lib/libxcb-sync.so /usr/local/lib/libxcb-randr.so /usr/local/lib/libxcb-shm.so /usr/local/lib/libxshmfence.so /usr/local/lib/libXrandr.so -Wl,--end-group ld: warning: version script assignment of 'global' to symbol '__driDriverExtensions' failed: symbol not defined ld: warning: version script assignment of 'global' to symbol 'nouveau_drm_screen_create' failed: symbol not defined ld: warning: version script assignment of 'global' to symbol 'fd_drm_screen_create' failed: symbol not defined ld: error: undefined symbol: ac_rtld_open >>> referenced by si_shader_llvm.c >>> libradeonsi.a.p/si_shader_llvm.c.o:(si_compile_llvm) in archive src/gallium/drivers/radeonsi/libradeonsi.a >>> referenced by si_shader.c >>> libradeonsi.a.p/si_shader.c.o:(si_shader_binary_open) in archive src/gallium/drivers/radeonsi/libradeonsi.a >>> referenced by si_shader.c >>> libradeonsi.a.p/si_shader.c.o:(si_shader_dump_disassembly) in archive src/gallium/drivers/radeonsi/libradeonsi.a >>> referenced 3 more times ld: error: undefined symbol: ac_rtld_read_config >>> referenced by si_shader_llvm.c >>> libradeonsi.a.p/si_shader_llvm.c.o:(si_compile_llvm) in archive src/gallium/drivers/radeonsi/libradeonsi.a ld: error: undefined symbol: ac_rtld_close >>> referenced by si_shader_llvm.c >>> libradeonsi.a.p/si_shader_llvm.c.o:(si_compile_llvm) in archive src/gallium/drivers/radeonsi/libradeonsi.a >>> referenced by si_shader.c >>> libradeonsi.a.p/si_shader.c.o:(si_shader_binary_upload) in archive src/gallium/drivers/radeonsi/libradeonsi.a >>> referenced by si_shader.c >>> libradeonsi.a.p/si_shader.c.o:(si_shader_dump_stats_for_shader_db) in archive src/gallium/drivers/radeonsi/libradeonsi.a >>> referenced 130 more times ld: error: undefined symbol: ac_rtld_upload >>> referenced by si_shader.c >>> libradeonsi.a.p/si_shader.c.o:(si_shader_binary_upload) in archive src/gallium/drivers/radeonsi/libradeonsi.a >>> referenced by si_state_draw.cpp >>> libradeonsi_gfx11.a.p/si_state_draw.cpp.o:(bool si_update_shaders<(amd_gfx_level)14, (si_has_tess)0, (si_has_gs)0, (si_has_ngg)1>(si_context*)) in archive src/gallium/drivers/radeonsi/libradeonsi_gfx11.a >>> referenced by si_state_draw.cpp >>> libradeonsi_gfx11.a.p/si_state_draw.cpp.o:(bool si_update_shaders<(amd_gfx_level)14, (si_has_tess)0, (si_has_gs)0, (si_has_ngg)1>(si_context*)) in archive src/gallium/drivers/radeonsi/libradeonsi_gfx11.a >>> referenced 118 more times ld: error: undefined symbol: ac_rtld_get_section_by_name >>> referenced by si_shader.c >>> libradeonsi.a.p/si_shader.c.o:(si_shader_dump_disassembly) in archive src/gallium/drivers/radeonsi/libradeonsi.a >>> referenced by si_compute.c >>> libradeonsi.a.p/si_compute.c.o:(si_create_compute_state) in archive src/gallium/drivers/radeonsi/libradeonsi.a >>> referenced by si_compute.c >>> libradeonsi.a.p/si_compute.c.o:(si_launch_grid) in archive src/gallium/drivers/radeonsi/libradeonsi.a >>> referenced 1 more times c++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 -- You are receiving this mail because: You are the assignee for the bug.