Skip to content

[Build problem] [linux] shader system compile issue on Debian system. #26

Description

@coderboyisongithub

Debian 12.
Somehow the compilation for shaders is causing error. linker cannot find the symbols referenced somewhere in faith codebase. Maybe there is a missed crate to be used in the rust code causing this error. I don't know which one, I think since its your codebase you might be able to figure out quicker than me.

= note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: rust-lld: error: undefined symbol: glslang::InitializeProcess()
          >>> referenced by compiler.cc.o:(shaderc_util::GlslangInitializer::GlslangInitializer()) in archive /home/*****/faith/target/release/deps/libshaderc_sys-97a2909b3d953f28.rlib

          rust-lld: error: undefined symbol: glslang::FinalizeProcess()
          >>> referenced by compiler.cc.o:(shaderc_util::GlslangInitializer::~GlslangInitializer()) in archive /home/******/faith/target/release/deps/libshaderc_sys-97a2909b3d953f28.rlib

          rust-lld: error: undefined symbol: glslang::TShader::TShader(EShLanguage)
          >>> referenced by compiler.cc.o:(shaderc_util::Compiler::PreprocessShader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, shaderc_util::string_piece const&, shaderc_util::string_piece const&, shaderc_util::CountingIncluder&) const) in archive /home/*****/faith/target/release/deps/libshaderc_sys-97a2909b3d953f28.rlib
          >>> referenced by compiler.cc.o:(shaderc_util::Compiler::Compile(shaderc_util::string_piece const&, EShLanguage, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char const*, std::function<EShLanguage (std::ostream*, shaderc_util::string_piece const&)> const&, shaderc_util::CountingIncluder&, shaderc_util::Compiler::OutputType, std::ostream*, unsigned long*, unsigned long*) const) in archive /home/******/faith/target/release/deps/libshaderc_sys-97a2909b3d953f28.rlib

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions