[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#955431: libplacebo: FTBFS undefined reference to `spvContextCreate'



Hi Andreas

On 2020-03-31 18:27:50, Andreas Beckmann wrote:
> Source: libplacebo
> Version: 1.21.0+dfsg1-1
> Severity: serious
> Tags: ftbfs
> Justification: fails to build from source (but built successfully in the past)
> 
> Hi,
> 
> libplacebo/experimental in a current sid+experimental environment:

Yes, we know. This is #951988.

Cheers

> 
> FAILED: src/libplacebo.so.21 
> c++  -o src/libplacebo.so.21 'src/25a6634@@placebo@sha/colorspace.c.o' 'src/25a6634@@placebo@sha/common.c.o' 'src/25a6634@@placebo@sha/context.c.o' 'src/25a6634@@placebo@sha/dither.c.o' 'src/25a6634@@placebo@sha/dispatch.c.o' 'src/25a6634@@placebo@sha/dummy.c.o' 'src/25a6634@@placebo@sha/filters.c.o' 'src/25a6634@@placebo@sha/gpu.c.o' 'src/25a6634@@placebo@sha/renderer.c.o' 'src/25a6634@@placebo@sha/shaders.c.o' 'src/25a6634@@placebo@sha/shaders_av1.c.o' 'src/25a6634@@placebo@sha/shaders_colorspace.c.o' 'src/25a6634@@placebo@sha/shaders_sampling.c.o' 'src/25a6634@@placebo@sha/spirv.c.o' 'src/25a6634@@placebo@sha/swapchain.c.o' 'src/25a6634@@placebo@sha/utils_upload.c.o' 'src/25a6634@@placebo@sha/lcms.c.o' 'src/25a6634@@placebo@sha/glsl_glslang.cc.o' 'src/25a6634@@placebo@sha/spirv_glslang.c.o' 'src/25a6634@@placebo@sha/vulkan_command.c.o' 'src/25a6634@@placebo@sha/vulkan_context.c.o' 'src/25a6634@@placebo@sha/vulkan_formats.c.o' 'src/25a6634@@placebo@sha/vulkan_gpu.c.o' 'src/25a6634@@placebo@sha/vulkan_malloc.c.o' 'src/25a6634@@placebo@sha/vulkan_swapchain.c.o' 'src/25a6634@@placebo@sha/vulkan_utils.c.o' 'subprojects/xtalloc/f0d261a@@xtalloc@sta/ta.c.o' 'subprojects/xtalloc/f0d261a@@xtalloc@sta/ta_utils.c.o' 'subprojects/xtalloc/f0d261a@@xtalloc@sta/xtalloc.c.o' 'subprojects/bstr/0ab0a38@@bstr@sta/bstr.c.o' 'subprojects/bstr/0ab0a38@@bstr@sta/format.c.o' 'subprojects/bstr/0ab0a38@@bstr@sta/siphash.c.o' -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libplacebo.so.21 -g -O2 -fdebug-prefix-map=/build/libplacebo-1.21.0+dfsg1=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--exclude-libs=ALL -lm /usr/lib/x86_64-linux-gnu/liblcms2.so -lglslang -lHLSL -lOGLCompiler -lOSDependent -lSPIRV -lSPVRemapper -lpthread /usr/lib/x86_64-linux-gnu/libvulkan.so -Wl,--end-group -pthread
> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libSPIRV.a(SpvTools.cpp.o): in function `glslang::SpirvToolsDisassemble(std::ostream&, std::vector<unsigned int, std::allocator<unsigned int> > const&)':
> (.text+0x3f6): undefined reference to `spvContextCreate'
> /usr/bin/ld: (.text+0x427): undefined reference to `spvBinaryToText'
> /usr/bin/ld: (.text+0x436): undefined reference to `spvDiagnosticPrint'
> /usr/bin/ld: (.text+0x440): undefined reference to `spvDiagnosticDestroy'
> /usr/bin/ld: (.text+0x448): undefined reference to `spvContextDestroy'
> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libSPIRV.a(SpvTools.cpp.o): in function `glslang::SpirvToolsLegalize(glslang::TIntermediate const&, std::vector<unsigned int, std::allocator<unsigned int> >&, spv::SpvBuildLogger*, glslang::SpvOptions const*)':
> (.text+0x4f1): undefined reference to `spvtools::Optimizer::Optimizer(spv_target_env)'
> /usr/bin/ld: (.text+0x51d): undefined reference to `spvtools::Optimizer::SetMessageConsumer(std::function<void (spv_message_level_t, char const*, spv_position_t const&, char const*)>)'
> /usr/bin/ld: (.text+0x54a): undefined reference to `spvtools::CreateWrapOpKillPass()'
> /usr/bin/ld: (.text+0x555): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x55d): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x565): undefined reference to `spvtools::CreateDeadBranchElimPass()'
> /usr/bin/ld: (.text+0x570): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x578): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x580): undefined reference to `spvtools::CreateMergeReturnPass()'
> /usr/bin/ld: (.text+0x58b): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x593): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x59b): undefined reference to `spvtools::CreateInlineExhaustivePass()'
> /usr/bin/ld: (.text+0x5a6): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x5ae): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x5b6): undefined reference to `spvtools::CreateEliminateDeadFunctionsPass()'
> /usr/bin/ld: (.text+0x5c1): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x5c9): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x5d6): undefined reference to `spvtools::CreateScalarReplacementPass(unsigned int)'
> /usr/bin/ld: (.text+0x5e1): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x5e9): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x5f1): undefined reference to `spvtools::CreateLocalAccessChainConvertPass()'
> /usr/bin/ld: (.text+0x5fc): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x604): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x60c): undefined reference to `spvtools::CreateLocalSingleBlockLoadStoreElimPass()'
> /usr/bin/ld: (.text+0x617): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x61f): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x627): undefined reference to `spvtools::CreateLocalSingleStoreElimPass()'
> /usr/bin/ld: (.text+0x632): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x63a): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x642): undefined reference to `spvtools::CreateSimplificationPass()'
> /usr/bin/ld: (.text+0x64d): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x655): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x65d): undefined reference to `spvtools::CreateAggressiveDCEPass()'
> /usr/bin/ld: (.text+0x668): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x670): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x678): undefined reference to `spvtools::CreateVectorDCEPass()'
> /usr/bin/ld: (.text+0x683): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x68b): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x693): undefined reference to `spvtools::CreateDeadInsertElimPass()'
> /usr/bin/ld: (.text+0x69e): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x6a6): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x6ae): undefined reference to `spvtools::CreateAggressiveDCEPass()'
> /usr/bin/ld: (.text+0x6b9): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x6c1): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x6c9): undefined reference to `spvtools::CreateDeadBranchElimPass()'
> /usr/bin/ld: (.text+0x6d4): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x6dc): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x6e4): undefined reference to `spvtools::CreateBlockMergePass()'
> /usr/bin/ld: (.text+0x6ef): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x6f7): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x6ff): undefined reference to `spvtools::CreateLocalMultiStoreElimPass()'
> /usr/bin/ld: (.text+0x70a): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x712): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x71a): undefined reference to `spvtools::CreateIfConversionPass()'
> /usr/bin/ld: (.text+0x725): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x72d): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x735): undefined reference to `spvtools::CreateSimplificationPass()'
> /usr/bin/ld: (.text+0x740): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x748): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x750): undefined reference to `spvtools::CreateAggressiveDCEPass()'
> /usr/bin/ld: (.text+0x75b): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x763): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x76b): undefined reference to `spvtools::CreateVectorDCEPass()'
> /usr/bin/ld: (.text+0x776): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x77e): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x786): undefined reference to `spvtools::CreateDeadInsertElimPass()'
> /usr/bin/ld: (.text+0x791): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x799): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x7ab): undefined reference to `spvtools::CreateAggressiveDCEPass()'
> /usr/bin/ld: (.text+0x7b6): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x7be): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x7c6): undefined reference to `spvtools::CreateCFGCleanupPass()'
> /usr/bin/ld: (.text+0x7d1): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x7d9): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x7e3): undefined reference to `spvOptimizerOptionsCreate'
> /usr/bin/ld: (.text+0x7f0): undefined reference to `spvOptimizerOptionsSetRunValidator'
> /usr/bin/ld: (.text+0x80d): undefined reference to `spvtools::Optimizer::Run(unsigned int const*, unsigned long, std::vector<unsigned int, std::allocator<unsigned int> >*, spv_optimizer_options_t*) const'
> /usr/bin/ld: (.text+0x815): undefined reference to `spvOptimizerOptionsDestroy'
> /usr/bin/ld: (.text+0x81d): undefined reference to `spvtools::Optimizer::~Optimizer()'
> /usr/bin/ld: (.text+0x844): undefined reference to `spvtools::CreatePropagateLineInfoPass()'
> /usr/bin/ld: (.text+0x84f): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x857): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x864): undefined reference to `spvtools::CreateRedundantLineInfoElimPass()'
> /usr/bin/ld: (.text+0x86f): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x877): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: (.text+0x884): undefined reference to `spvtools::CreateRedundancyEliminationPass()'
> /usr/bin/ld: (.text+0x88f): undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
> /usr/bin/ld: (.text+0x897): undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libSPIRV.a(SpvTools.cpp.o): in function `glslang::SpirvToolsValidate(glslang::TIntermediate const&, std::vector<unsigned int, std::allocator<unsigned int> >&, spv::SpvBuildLogger*, bool)':
> (.text+0x8ee): undefined reference to `spvContextCreate'
> /usr/bin/ld: (.text+0x918): undefined reference to `spvValidatorOptionsCreate'
> /usr/bin/ld: (.text+0x92b): undefined reference to `spvValidatorOptionsSetRelaxBlockLayout'
> /usr/bin/ld: (.text+0x936): undefined reference to `spvValidatorOptionsSetBeforeHlslLegalization'
> /usr/bin/ld: (.text+0x94b): undefined reference to `spvValidateWithOptions'
> /usr/bin/ld: (.text+0xafc): undefined reference to `spvValidatorOptionsDestroy'
> /usr/bin/ld: (.text+0xb06): undefined reference to `spvDiagnosticDestroy'
> /usr/bin/ld: (.text+0xb0e): undefined reference to `spvContextDestroy'
> collect2: error: ld returned 1 exit status
> [42/50] cc -Isrc/25a6634@@test.vulkan.c@exe -Isrc -I../src -I../src/./include -I../subprojects/xtalloc/include -I../subprojects/bstr/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c99 -Wall -Wundef -Wshadow -Wparentheses -Wpointer-arith -D_ISOC99_SOURCE -D_GNU_SOURCE -D_XOPEN_SOURCE=700 -U__STRICT_ANSI__ -fvisibility=hidden -Wmissing-prototypes -Wno-pointer-sign -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -g -O2 -fdebug-prefix-map=/build/libplacebo-1.21.0+dfsg1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -Wno-unused-function -MD -MQ 'src/25a6634@@test.vulkan.c@exe/tests_vulkan.c.o' -MF 'src/25a6634@@test.vulkan.c@exe/tests_vulkan.c.o.d' -o 'src/25a6634@@test.vulkan.c@exe/tests_vulkan.c.o' -c ../src/tests/vulkan.c
> ninja: build stopped: subcommand failed.
> dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j3 -v returned exit code 1
> make: *** [debian/rules:7: binary] Error 25
> dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
> 
> 
> Andreas



-- 
Sebastian Ramacher

Attachment: signature.asc
Description: PGP signature


Reply to: