Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail link with glslang 15.x #307

Open
sl1pkn07 opened this issue Dec 1, 2024 · 0 comments
Open

fail link with glslang 15.x #307

sl1pkn07 opened this issue Dec 1, 2024 · 0 comments

Comments

@sl1pkn07
Copy link

sl1pkn07 commented Dec 1, 2024

Hi, Trying build from git got fail link with glslang 15.x

[169/173] Linking target src/tests/test.vulkan.c
FAILED: src/tests/test.vulkan.c 
c++  -o src/tests/test.vulkan.c src/libplacebo.so.350.p/cache.c.o src/libplacebo.so.350.p/colorspace.c.o src/libplacebo.so.350.p/common.c.o src/libplacebo.so.350.p/convert.cc.o src/libplacebo.so.350.p/dither.c.o src/libplacebo.so.350.p/dispatch.c.o src/libplacebo.so.350.p/dummy.c.o src/libplacebo.so.350.p/filters.c.o src/libplacebo.so.350.p/format.c.o src/libplacebo.so.350.p/gamut_mapping.c.o src/libplacebo.so.350.p/glsl_spirv.c.o src/libplacebo.so.350.p/gpu.c.o src/libplacebo.so.350.p/gpu_utils.c.o src/libplacebo.so.350.p/log.c.o src/libplacebo.so.350.p/options.c.o src/libplacebo.so.350.p/pl_alloc.c.o src/libplacebo.so.350.p/pl_string.c.o src/libplacebo.so.350.p/swapchain.c.o src/libplacebo.so.350.p/tone_mapping.c.o src/libplacebo.so.350.p/utils_dolbyvision.c.o src/libplacebo.so.350.p/utils_frame_queue.c.o src/libplacebo.so.350.p/utils_upload.c.o src/libplacebo.so.350.p/glsl_spirv_shaderc.c.o src/libplacebo.so.350.p/glsl_glslang.cc.o src/libplacebo.so.350.p/glsl_glslang_resources.c.o src/libplacebo.so.350.p/glsl_spirv_glslang.c.o src/libplacebo.so.350.p/opengl_context.c.o src/libplacebo.so.350.p/opengl_formats.c.o src/libplacebo.so.350.p/opengl_loader_gl.c.o src/libplacebo.so.350.p/opengl_loader_egl.c.o src/libplacebo.so.350.p/opengl_gpu.c.o src/libplacebo.so.350.p/opengl_gpu_tex.c.o src/libplacebo.so.350.p/opengl_gpu_pass.c.o src/libplacebo.so.350.p/opengl_swapchain.c.o src/libplacebo.so.350.p/opengl_utils.c.o src/libplacebo.so.350.p/vulkan_command.c.o src/libplacebo.so.350.p/vulkan_context.c.o src/libplacebo.so.350.p/vulkan_formats.c.o src/libplacebo.so.350.p/vulkan_gpu.c.o src/libplacebo.so.350.p/vulkan_gpu_buf.c.o src/libplacebo.so.350.p/vulkan_gpu_tex.c.o src/libplacebo.so.350.p/vulkan_gpu_pass.c.o src/libplacebo.so.350.p/vulkan_malloc.c.o src/libplacebo.so.350.p/vulkan_swapchain.c.o src/libplacebo.so.350.p/vulkan_utils.c.o src/libplacebo.so.350.p/meson-generated_.._renderer.c.o src/libplacebo.so.350.p/meson-generated_.._shaders.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_colorspace.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_custom.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_custom_mpv.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_deinterlacing.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_dithering.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_film_grain.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_film_grain_av1.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_film_grain_h274.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_icc.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_lut.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_sampling.c.o src/libplacebo.so.350.p/meson-generated_.._vulkan_utils_gen.c.o src/tests/test.vulkan.c.p/vulkan.c.o src/tests/test.vulkan.c.p/gpu_tests.c.o -Wl,--as-needed -Wl,--no-undefined -pie -Wl,--exclude-libs=ALL -Wl,-O1 -Wl,--sort-common -Wl,--as-neede
d -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/tmp/makepkg/libplacebo-git/src=/usr/src/debug/libplacebo-git -flto=auto -Wl,--start-group -lm -pthread /usr/lib/libunwind.so -ldl /usr/lib/libshaderc_shared.so -lglslang-default-resource-limits /usr/lib/libSPIRV.so /usr/lib/libvulkan.so /usr/lib/liblcms2.so /usr/lib/libdovi.so -Wl,--end-group
/usr/bin/ld: /usr/lib/libshaderc_shared.so: referencia sin definir al sím```bolo «_ZN7glslang8TProgramC1Ev»
/usr/bin/ld: /usr/lib/libglslang.so.15: error al añadir símbolos: Falta DSO en la línea de ordenes
collect2: error: ld devolvió el estado de salida 1
[170/173] Linking target src/libplacebo.so.350
FAILED: src/libplacebo.so.350 
c++  -o src/libplacebo.so.350 src/libplacebo.so.350.p/meson-generated_.._renderer.c.o src/libplacebo.so.350.p/meson-generated_.._shaders.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_colorspace.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_custom.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_custom_mpv.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_deinterlacing.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_dithering.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_film_grain.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_film_grain_av1.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_film_grain_h274.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_icc.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_lut.c.o src/libplacebo.so.350.p/meson-generated_.._shaders_sampling.c.o src/libplacebo.so.350.p/meson-generated_.._vulkan_utils_gen.c.o src/libplacebo.so.350.p/cache.c.o src/libplacebo.so.350.p/colorspace.c.o src/libplacebo.so.350.p/common.c.o src/libplacebo.so.350.p/convert.cc.o src/libplacebo.so.350.p/dither.c.o src/libplacebo.so.350.p/dispatch.c.o src/libplacebo.so.350.p/dummy.c.o src/libplacebo.so.350.p/filters.c.o src/libplacebo.so.350.p/format.c.o src/libplacebo.so.350.p/gamut_mapping.c.o src/libplacebo.so.350.p/glsl_spirv.c.o src/libplacebo.so.350.p/gpu.c.o src/libplacebo.so.350.p/gpu_utils.c.o src/libplacebo.so.350.p/log.c.o src/libplacebo.so.350.p/options.c.o src/libplacebo.so.350.p/pl_alloc.c.o src/libplacebo.so.350.p/pl_string.c.o src/libplacebo.so.350.p/swapchain.c.o src/libplacebo.so.350.p/tone_mapping.c.o src/libplacebo.so.350.p/utils_dolbyvision.c.o src/libplacebo.so.350.p/utils_frame_queue.c.o src/libplacebo.so.350.p/utils_upload.c.o src/libplacebo.so.350.p/glsl_spirv_shaderc.c.o src/libplacebo.so.350.p/glsl_glslang.cc.o src/libplacebo.so.350.p/glsl_glslang_resources.c.o src/libplacebo.so.350.p/glsl_spirv_glslang.c.o src/libplacebo.so.350.p/opengl_context.c.o src/libplacebo.so.350.p/opengl_formats.c.o src/libplacebo.so.350.p/opengl_loader_gl.c.o src/libplacebo.so.350.p/opengl_loader_egl.c.o src/libplacebo.so.350.p/opengl_gpu.c.o src/libplacebo.so.350.p/opengl_gpu_tex.c.o src/libplacebo.so.350.p/opengl_gpu_pass.c.o src/libplacebo.so.350.p/opengl_swapchain.c.o src/libplacebo.so.350.p/opengl_utils.c.o src/libplacebo.so.350.p/vulkan_command.c.o src/libplacebo.so.350.p/vulkan_context.c.o src/libplacebo.so.350.p/vulkan_formats.c.o src/libplacebo.so.350.p/vulkan_gpu.c.o src/libplacebo.so.350.p/vulkan_gpu_buf.c.o src/libplacebo.so.350.p/vulkan_gpu_tex.c.o src/libplacebo.so.350.p/vulkan_gpu_pass.c.o src/libplacebo.so.350.p/vulkan_malloc.c.o src/libplacebo.so.350.p/vulkan_swapchain.c.o src/libplacebo.so.350.p/vulkan_utils.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,-soname,libplacebo.so.350 -Wl,--exclude-libs=ALL -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/tmp/makepkg/libplacebo-git/src=/usr/src/debug/libplacebo-git -flto=auto -Wl,--start-group -lm -pthread /usr/lib/libunwind.so -ldl /usr/lib/libshaderc_shared.so -lglslang-default-resource-limits /usr/lib/libSPIRV.so /usr/lib/libvulkan.so /usr/lib/liblcms2.so /usr/lib/libdovi.so -Wl,--end-group
/usr/bin/ld: /tmp/cczSLlIx.ltrans7.ltrans.o: en la función `glslang_create.lto_priv.0':
/usr/src/debug/libplacebo-git/build/../libplacebo/src/glsl/glslang.cc:49:(.text+0x4ac2): undefined reference to `glslang::InitializeProcess()'
/usr/bin/ld: /tmp/cczSLlIx.ltrans7.ltrans.o: en la función `glslang_destroy.lto_priv.0':
/usr/src/debug/libplacebo-git/build/../libplacebo/src/glsl/glslang.cc:59:(.text+0x5382): undefined reference to `glslang::FinalizeProcess()'
/usr/bin/ld: /tmp/cczSLlIx.ltrans12.ltrans.o: en la función `pl_glslang_compile.isra.0':
/usr/src/debug/libplacebo-git/build/../libplacebo/src/glsl/glslang.cc:79:(.text+0x1f47): undefined reference to `glslang::TShader::TShader(EShLanguage)'
/usr/bin/ld: /usr/src/debug/libplacebo-git/build/../libplacebo/src/glsl/glslang.cc:83:(.text+0x1f82): undefined reference to `glslang::TShader::setStrings(char const* const*, int)'
/usr/bin/ld: /tmp/cczSLlIx.ltrans12.ltrans.o: en la función `pl_glslang_compile.isra.0':
/usr/include/glslang/Public/ShaderLang.h:673:(.text+0x20a6): undefined reference to `glslang::TShader::parse(TBuiltInResource const*, int, EProfile, bool, bool, EShMessages, glslang::TShader::Includer&)'
/usr/bin/ld: /tmp/cczSLlIx.ltrans12.ltrans.o: en la función `pl_glslang_compile.isra.0':
/usr/src/debug/libplacebo-git/build/../libplacebo/src/glsl/glslang.cc:98:(.text+0x20c7): undefined reference to `glslang::TProgram::TProgram()'
/usr/bin/ld: /usr/src/debug/libplacebo-git/build/../libplacebo/src/glsl/glslang.cc:100:(.text+0x20fe): undefined reference to `glslang::TProgram::link(EShMessages)'
/usr/bin/ld: /usr/src/debug/libplacebo-git/build/../libplacebo/src/glsl/glslang.cc:113:(.text+0x2156): undefined reference to `glslang::GlslangToSpv(glslang::TIntermediate const&, std::vector<unsigned int, std::allocator<unsigned int> >&, glslang::SpvOptions*)'
/usr/bin/ld: /usr/src/debug/libplacebo-git/build/../libplacebo/src/glsl/glslang.cc:101:(.text+0x21e5): undefined reference to `glslang::TProgram::getInfoLog()'
/usr/bin/ld: /usr/src/debug/libp
lacebo-git/build/../libplacebo/src/glsl/glslang.cc:93:(.text+0x2245): undefined reference to `glslang::TShader::getInfoLog()'
collect2: error: ld devolvió el estado de salida 1
ninja: build stopped: subcommand failed.

greetings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant