richardwilkes / unison

A unified graphical user experience toolkit for Go desktop applications
Mozilla Public License 2.0
194 stars 11 forks source link

Running Example Application Generates Errors #9

Closed tataDan closed 2 years ago

tataDan commented 2 years ago

I am running Debian 11. I have installed both libgl1-mesa-dev and xorg-dev. I am using go1.19. I can run gcc successfully from a terminal.

When I run go run example/main.go, I get the follow error message:

# command-line-arguments
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkMesh.o): in function `SkSL::Program::~Program()':
SkMesh.cpp:(.text._ZN4SkSL7ProgramD2Ev[_ZN4SkSL7ProgramD5Ev]+0x64): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkMesh.cpp:(.text._ZN4SkSL7ProgramD2Ev[_ZN4SkSL7ProgramD5Ev]+0x9a): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkMesh.cpp:(.text._ZN4SkSL7ProgramD2Ev[_ZN4SkSL7ProgramD5Ev]+0x2ae): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkMesh.cpp:(.text._ZN4SkSL7ProgramD2Ev[_ZN4SkSL7ProgramD5Ev]+0x2de): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkVM.o): in function `skvm::Builder::optimize(skvm::viz::Visualizer*) const':
SkVM.cpp:(.text._ZNK4skvm7Builder8optimizeEPNS_3viz10VisualizerE+0x13e): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkVM.o): in function `skvm::Program::instructions() const':
SkVM.cpp:(.text._ZNK4skvm7Program12instructionsEv+0x9e): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkVM.o): in function `skvm::Program::Program(std::vector<skvm::OptimizedInstruction, std::allocator<skvm::OptimizedInstruction> > const&, std::unique_ptr<skvm::viz::Visualizer, std::default_delete<skvm::viz::Visualizer> >, std::vector<int, std::allocator<int> > const&, std::vector<skvm::TraceHook*, std::allocator<skvm::TraceHook*> > const&, char const*, bool)':
SkVM.cpp:(.text._ZN4skvm7ProgramC2ERKSt6vectorINS_20OptimizedInstructionESaIS2_EESt10unique_ptrINS_3viz10VisualizerESt14default_deleteIS9_EERKS1_IiSaIiEERKS1_IPNS_9TraceHookESaISI_EEPKcb+0x256): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLCompiler.o): in function `SkSL::FunctionReference::clone(SkSL::Position) const':
SkSLCompiler.cpp:(.text._ZNK4SkSL17FunctionReference5cloneENS_8PositionE[_ZNK4SkSL17FunctionReference5cloneENS_8PositionE]+0xf6): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLCompiler.o): in function `SkSL::InterfaceBlock::~InterfaceBlock()':
SkSLCompiler.cpp:(.text._ZN4SkSL14InterfaceBlockD2Ev[_ZN4SkSL14InterfaceBlockD5Ev]+0x20): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLCompiler.o): in function `SkSL::InterfaceBlock::~InterfaceBlock()':
SkSLCompiler.cpp:(.text._ZN4SkSL14InterfaceBlockD0Ev[_ZN4SkSL14InterfaceBlockD5Ev]+0x21): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLCompiler.o): in function `std::_Sp_counted_ptr_inplace<SkSL::SymbolTable, std::allocator<SkSL::SymbolTable>, (__gnu_cxx::_Lock_policy)2>::_M_dispose()':
SkSLCompiler.cpp:(.text._ZNSt23_Sp_counted_ptr_inplaceIN4SkSL11SymbolTableESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv[_ZNSt23_Sp_counted_ptr_inplaceIN4SkSL11SymbolTableESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv]+0xc7): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLCompiler.o): in function `SkSL::InterfaceBlock::clone() const':
SkSLCompiler.cpp:(.text._ZNK4SkSL14InterfaceBlock5cloneEv[_ZNK4SkSL14InterfaceBlock5cloneEv]+0x37): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLCompiler.cpp:(.text._ZNK4SkSL14InterfaceBlock5cloneEv[_ZNK4SkSL14InterfaceBlock5cloneEv]+0xe5): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLCompiler.o):SkSLCompiler.cpp:(.text._ZNK4SkSL14InterfaceBlock5cloneEv[_ZNK4SkSL14InterfaceBlock5cloneEv]+0x16a): more undefined references to `__libc_single_threaded' follow
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLCompiler.o): in function `SkSL::Compiler::convertIdentifier(SkSL::Position, std::basic_string_view<char, std::char_traits<char> >)':
SkSLCompiler.cpp:(.text._ZN4SkSL8Compiler17convertIdentifierENS_8PositionESt17basic_string_viewIcSt11char_traitsIcEE+0x580): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLCompiler.o): in function `SkSL::Compiler::optimizeRehydratedModule(SkSL::LoadedModule&, SkSL::ParsedModule const&)':
SkSLCompiler.cpp:(.text._ZN4SkSL8Compiler24optimizeRehydratedModuleERNS_12LoadedModuleERKNS_12ParsedModuleE+0x11b): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLCompiler.cpp:(.text._ZN4SkSL8Compiler24optimizeRehydratedModuleERNS_12LoadedModuleERKNS_12ParsedModuleE+0x194): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLCompiler.cpp:(.text._ZN4SkSL8Compiler24optimizeRehydratedModuleERNS_12LoadedModuleERKNS_12ParsedModuleE+0x1cf): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLCompiler.cpp:(.text._ZN4SkSL8Compiler24optimizeRehydratedModuleERNS_12LoadedModuleERKNS_12ParsedModuleE+0x1f7): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLCompiler.cpp:(.text._ZN4SkSL8Compiler24optimizeRehydratedModuleERNS_12LoadedModuleERKNS_12ParsedModuleE+0x26c): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLCompiler.o):SkSLCompiler.cpp:(.text._ZN4SkSL8Compiler10runInlinerERKSt6vectorISt10unique_ptrINS_14ProgramElementESt14default_deleteIS3_EESaIS6_EESt10shared_ptrINS_11SymbolTableEEPNS_12ProgramUsageE+0x4a): more undefined references to `__libc_single_threaded' follow
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLCompiler.o): in function `SkSL::Compiler::makePrivateSymbolTable(std::shared_ptr<SkSL::SymbolTable>)':
SkSLCompiler.cpp:(.text._ZN4SkSL8Compiler22makePrivateSymbolTableESt10shared_ptrINS_11SymbolTableEE+0x5df): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLCompiler.o): in function `SkSL::Compiler::Compiler(SkSL::ShaderCaps const*)':
SkSLCompiler.cpp:(.text._ZN4SkSL8CompilerC2EPKNS_10ShaderCapsE+0x1e9): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLCompiler.cpp:(.text._ZN4SkSL8CompilerC2EPKNS_10ShaderCapsE+0x28d): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLCompiler.cpp:(.text._ZN4SkSL8CompilerC2EPKNS_10ShaderCapsE+0x2d1): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLCompiler.cpp:(.text._ZN4SkSL8CompilerC2EPKNS_10ShaderCapsE+0x38d): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLCompiler.o): in function `SkSL::SPIRVCodeGenerator::~SPIRVCodeGenerator()':
SkSLCompiler.cpp:(.text._ZN4SkSL18SPIRVCodeGeneratorD2Ev[_ZN4SkSL18SPIRVCodeGeneratorD5Ev]+0xc6): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLCompiler.o):SkSLCompiler.cpp:(.text._ZN4SkSL18SPIRVCodeGeneratorD2Ev[_ZN4SkSL18SPIRVCodeGeneratorD5Ev]+0x1e9): more undefined references to `__libc_single_threaded' follow
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLDSLParser.o): in function `std::pair<std::__detail::_Node_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, true, true>, bool> std::_Hashtable<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__detail::_Identity, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, true, true> >::_M_emplace<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::integral_constant<bool, true>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) [clone .isra.0]':
SkSLDSLParser.cpp:(.text._ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE10_M_emplaceIJRS5_EEESt4pairINS7_14_Node_iteratorIS5_Lb1ELb1EEEbESt17integral_constantIbLb1EEDpOT_.isra.0+0x39d): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLDSLParser.o): in function `SkSL::DSLParser::parameter(unsigned long)':
SkSLDSLParser.cpp:(.text._ZN4SkSL9DSLParser9parameterEm+0x39a): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLDSLParser.cpp:(.text._ZN4SkSL9DSLParser9parameterEm+0x473): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLDSLParser.o): in function `SkSL::DSLParser::block()':
SkSLDSLParser.cpp:(.text._ZN4SkSL9DSLParser5blockEv+0x54f): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLDSLParser.o): in function `SkSL::DSLParser::moduleInheritingFrom(SkSL::ParsedModule)':
SkSLDSLParser.cpp:(.text._ZN4SkSL9DSLParser20moduleInheritingFromENS_12ParsedModuleE+0x73): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLDSLParser.cpp:(.text._ZN4SkSL9DSLParser20moduleInheritingFromENS_12ParsedModuleE+0xa2): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLDSLParser.o):SkSLDSLParser.cpp:(.text._ZN4SkSL9DSLParser20moduleInheritingFromENS_12ParsedModuleE+0x166): more undefined references to `__libc_single_threaded' follow
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.DSLType.o): in function `SkSL::dsl::Struct(std::basic_string_view<char, std::char_traits<char> >, SkSpan<SkSL::dsl::DSLField>, SkSL::Position)':
DSLType.cpp:(.text._ZN4SkSL3dsl6StructESt17basic_string_viewIcSt11char_traitsIcEE6SkSpanINS0_8DSLFieldEENS_8PositionE+0xe76): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLFunctionDeclaration.o): in function `SkSL::FunctionDeclaration::Convert(SkSL::Context const&, SkSL::SymbolTable&, SkSL::Position, SkSL::Position, SkSL::Modifiers const*, std::basic_string_view<char, std::char_traits<char> >, std::vector<std::unique_ptr<SkSL::Variable, std::default_delete<SkSL::Variable> >, std::allocator<std::unique_ptr<SkSL::Variable, std::default_delete<SkSL::Variable> > > >, SkSL::Position, SkSL::Type const*)':
SkSLFunctionDeclaration.cpp:(.text._ZN4SkSL19FunctionDeclaration7ConvertERKNS_7ContextERNS_11SymbolTableENS_8PositionES6_PKNS_9ModifiersESt17basic_string_viewIcSt11char_traitsIcEESt6vectorISt10unique_ptrINS_8VariableESt14default_deleteISG_EESaISJ_EES6_PKNS_4TypeE+0x2322): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(gpu_shared.SkSLSPIRVCodeGenerator.o): in function `std::pair<std::__detail::_Node_iterator<SkSL::Modifiers, true, true>, bool> std::_Hashtable<SkSL::Modifiers, SkSL::Modifiers, std::allocator<SkSL::Modifiers>, std::__detail::_Identity, std::equal_to<SkSL::Modifiers>, std::hash<SkSL::Modifiers>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, true, true> >::_M_insert<SkSL::Modifiers const&, std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<SkSL::Modifiers, true> > > >(SkSL::Modifiers const&, std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<SkSL::Modifiers, true> > > const&, std::integral_constant<bool, true>) [clone .isra.0]':
SkSLSPIRVCodeGenerator.cpp:(.text._ZNSt10_HashtableIN4SkSL9ModifiersES1_SaIS1_ENSt8__detail9_IdentityESt8equal_toIS1_ESt4hashIS1_ENS3_18_Mod_range_hashingENS3_20_Default_ranged_hashENS3_20_Prime_rehash_policyENS3_17_Hashtable_traitsILb1ELb1ELb1EEEE9_M_insertIRKS1_NS3_10_AllocNodeISaINS3_10_Hash_nodeIS1_Lb1EEEEEEEESt4pairINS3_14_Node_iteratorIS1_Lb1ELb1EEEbEOT_RKT0_St17integral_constantIbLb1EE.isra.0+0x2c3): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(gpu_shared.SkSLSPIRVCodeGenerator.o): in function `SkSL::get_top_level_symbol_table(SkSL::FunctionDeclaration const&) [clone .isra.0]':
SkSLSPIRVCodeGenerator.cpp:(.text._ZN4SkSLL26get_top_level_symbol_tableERKNS_19FunctionDeclarationE.isra.0+0x21): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLSPIRVCodeGenerator.cpp:(.text._ZN4SkSLL26get_top_level_symbol_tableERKNS_19FunctionDeclarationE.isra.0+0xe7): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(gpu_shared.SkSLSPIRVCodeGenerator.o): in function `std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release()':
SkSLSPIRVCodeGenerator.cpp:(.text._ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv[_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv]+0x10): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(gpu_shared.SkSLSPIRVCodeGenerator.o): in function `SkSL::SPIRVCodeGenerator::writeEntrypointAdapter(SkSL::FunctionDeclaration const&)':
SkSLSPIRVCodeGenerator.cpp:(.text._ZN4SkSL18SPIRVCodeGenerator22writeEntrypointAdapterERKNS_19FunctionDeclarationE+0x445): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(gpu_shared.SkSLSPIRVCodeGenerator.o): in function `void std::deque<unsigned int, std::allocator<unsigned int> >::_M_push_back_aux<unsigned int const&>(unsigned int const&)':
SkSLSPIRVCodeGenerator.cpp:(.text._ZNSt5dequeIjSaIjEE16_M_push_back_auxIJRKjEEEvDpOT_[_ZNSt5dequeIjSaIjEE16_M_push_back_auxIJRKjEEEvDpOT_]+0x206): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(gpu_shared.SkSLSPIRVCodeGenerator.o): in function `SkSL::SPIRVCodeGenerator::writeInterfaceBlock(SkSL::InterfaceBlock const&, bool)':
SkSLSPIRVCodeGenerator.cpp:(.text._ZN4SkSL18SPIRVCodeGenerator19writeInterfaceBlockERKNS_14InterfaceBlockEb+0x907): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLSPIRVCodeGenerator.cpp:(.text._ZN4SkSL18SPIRVCodeGenerator19writeInterfaceBlockERKNS_14InterfaceBlockEb+0xe52): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(gpu_shared.SkSLSPIRVCodeGenerator.o): in function `SkSL::SPIRVCodeGenerator::writeUniformBuffer(std::shared_ptr<SkSL::SymbolTable>)':
SkSLSPIRVCodeGenerator.cpp:(.text._ZN4SkSL18SPIRVCodeGenerator18writeUniformBufferESt10shared_ptrINS_11SymbolTableEE+0x4e8): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(gpu_shared.SkSLSPIRVCodeGenerator.o): in function `SkSL::SPIRVCodeGenerator::addRTFlipUniform(SkSL::Position)':
SkSLSPIRVCodeGenerator.cpp:(.text._ZN4SkSL18SPIRVCodeGenerator16addRTFlipUniformENS_8PositionE+0x8e8): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(gpu.GrGeometryProcessor.o): in function `std::_Hashtable<GrFragmentProcessor const*, std::pair<GrFragmentProcessor const* const, GrGeometryProcessor::ProgramImpl::TransformInfo>, std::allocator<std::pair<GrFragmentProcessor const* const, GrGeometryProcessor::ProgramImpl::TransformInfo> >, std::__detail::_Select1st, std::equal_to<GrFragmentProcessor const*>, std::hash<GrFragmentProcessor const*>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::_M_insert_unique_node(unsigned long, unsigned long, std::__detail::_Hash_node<std::pair<GrFragmentProcessor const* const, GrGeometryProcessor::ProgramImpl::TransformInfo>, false>*, unsigned long)':
GrGeometryProcessor.cpp:(.text._ZNSt10_HashtableIPK19GrFragmentProcessorSt4pairIKS2_N19GrGeometryProcessor11ProgramImpl13TransformInfoEESaIS8_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE21_M_insert_unique_nodeEmmPNSA_10_Hash_nodeIS8_Lb0EEEm[_ZNSt10_HashtableIPK19GrFragmentProcessorSt4pairIKS2_N19GrGeometryProcessor11ProgramImpl13TransformInfoEESaIS8_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE21_M_insert_unique_nodeEmmPNSA_10_Hash_nodeIS8_Lb0EEEm]+0x1af): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(gpu.GrGeometryProcessor.o): in function `GrGeometryProcessor::ProgramImpl::emitCode(GrGeometryProcessor::ProgramImpl::EmitArgs&, GrPipeline const&)':
GrGeometryProcessor.cpp:(.text._ZN19GrGeometryProcessor11ProgramImpl8emitCodeERNS0_8EmitArgsERK10GrPipeline+0x445): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkChromeRemoteGlyphCache.o): in function `SkStrikeServerImpl::getOrCreateCache(SkStrikeSpec const&)':
SkChromeRemoteGlyphCache.cpp:(.text._ZN18SkStrikeServerImpl16getOrCreateCacheERK12SkStrikeSpec+0x130b): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkStream.o): in function `SkFILEStream::onFork() const':
SkStream.cpp:(.text._ZNK12SkFILEStream6onForkEv+0x1b): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkStream.o): in function `SkFILEStream::onDuplicate() const':
SkStream.cpp:(.text._ZNK12SkFILEStream11onDuplicateEv+0x1b): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkStream.o): in function `SkFILEStream::~SkFILEStream()':
SkStream.cpp:(.text._ZN12SkFILEStreamD2Ev+0x31): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkStream.o): in function `SkFILEStream::~SkFILEStream()':
SkStream.cpp:(.text._ZN12SkFILEStreamD0Ev+0x31): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkStream.o): in function `SkFILEStream::close()':
SkStream.cpp:(.text._ZN12SkFILEStream5closeEv+0x1f): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLInliner.o):SkSLInliner.cpp:(.text._ZNSt6vectorISt10shared_ptrIN4SkSL11SymbolTableEESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_[_ZNSt6vectorISt10shared_ptrIN4SkSL11SymbolTableEESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_]+0x8a): more undefined references to `__libc_single_threaded' follow
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLRehydrator.o): in function `std::pair<std::__detail::_Node_iterator<SkSL::Modifiers, true, true>, bool> std::_Hashtable<SkSL::Modifiers, SkSL::Modifiers, std::allocator<SkSL::Modifiers>, std::__detail::_Identity, std::equal_to<SkSL::Modifiers>, std::hash<SkSL::Modifiers>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, true, true> >::_M_insert<SkSL::Modifiers const&, std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<SkSL::Modifiers, true> > > >(SkSL::Modifiers const&, std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<SkSL::Modifiers, true> > > const&, std::integral_constant<bool, true>) [clone .isra.0]':
SkSLRehydrator.cpp:(.text._ZNSt10_HashtableIN4SkSL9ModifiersES1_SaIS1_ENSt8__detail9_IdentityESt8equal_toIS1_ESt4hashIS1_ENS3_18_Mod_range_hashingENS3_20_Default_ranged_hashENS3_20_Prime_rehash_policyENS3_17_Hashtable_traitsILb1ELb1ELb1EEEE9_M_insertIRKS1_NS3_10_AllocNodeISaINS3_10_Hash_nodeIS1_Lb1EEEEEEEESt4pairINS3_14_Node_iteratorIS1_Lb1ELb1EEEbEOT_RKT0_St17integral_constantIbLb1EE.isra.0+0x2c3): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLRehydrator.o): in function `SkSL::Rehydrator::symbolTable()':
SkSLRehydrator.cpp:(.text._ZN4SkSL10Rehydrator11symbolTableEv+0xf5): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLRehydrator.cpp:(.text._ZN4SkSL10Rehydrator11symbolTableEv+0x298): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLRehydrator.o): in function `SkSL::Rehydrator::statement()':
SkSLRehydrator.cpp:(.text._ZN4SkSL10Rehydrator9statementEv+0x20a): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLRehydrator.cpp:(.text._ZN4SkSL10Rehydrator9statementEv+0x26d): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLRehydrator.cpp:(.text._ZN4SkSL10Rehydrator9statementEv+0x2d0): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLRehydrator.o):SkSLRehydrator.cpp:(.text._ZN4SkSL10Rehydrator9statementEv+0x38b): more undefined references to `__libc_single_threaded' follow
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLThreadContext.o): in function `SkSL::ThreadContext::Modifiers(SkSL::Modifiers const&)':
SkSLThreadContext.cpp:(.text._ZN4SkSL13ThreadContext9ModifiersERKNS_9ModifiersE+0x2db): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.DSLBlock.o): in function `SkSL::dsl::DSLBlock::~DSLBlock()':
DSLBlock.cpp:(.text._ZN4SkSL3dsl8DSLBlockD2Ev+0x39): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.DSLBlock.o): in function `SkSL::dsl::DSLBlock::release()':
DSLBlock.cpp:(.text._ZN4SkSL3dsl8DSLBlock7releaseEv+0x25d): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.DSLCore.o): in function `SkSL::dsl::Start(SkSL::Compiler*, SkSL::ProgramKind, SkSL::ProgramSettings const&)':
DSLCore.cpp:(.text._ZN4SkSL3dsl5StartEPNS_8CompilerENS_11ProgramKindERKNS_15ProgramSettingsE+0x45): undefined reference to `__libc_single_threaded'
/usr/bin/ld: DSLCore.cpp:(.text._ZN4SkSL3dsl5StartEPNS_8CompilerENS_11ProgramKindERKNS_15ProgramSettingsE+0x70): undefined reference to `__libc_single_threaded'
/usr/bin/ld: DSLCore.cpp:(.text._ZN4SkSL3dsl5StartEPNS_8CompilerENS_11ProgramKindERKNS_15ProgramSettingsE+0xb9): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.DSLCore.o):DSLCore.cpp:(.text._ZN4SkSL3dsl5StartEPNS_8CompilerENS_11ProgramKindERKNS_15ProgramSettingsE+0xe5): more undefined references to `__libc_single_threaded' follow
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.DSLFunction.o): in function `SkSL::FunctionDefinition::clone() const':
DSLFunction.cpp:(.text._ZNK4SkSL18FunctionDefinition5cloneEv[_ZNK4SkSL18FunctionDefinition5cloneEv]+0x24a): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.DSLFunction.o): in function `SkSL::dsl::DSLFunction::define(SkSL::dsl::DSLBlock, SkSL::Position)':
DSLFunction.cpp:(.text._ZN4SkSL3dsl11DSLFunction6defineENS0_8DSLBlockENS_8PositionE+0x125): undefined reference to `__libc_single_threaded'
/usr/bin/ld: DSLFunction.cpp:(.text._ZN4SkSL3dsl11DSLFunction6defineENS0_8DSLBlockENS_8PositionE+0x2b0): undefined reference to `__libc_single_threaded'
/usr/bin/ld: DSLFunction.cpp:(.text._ZN4SkSL3dsl11DSLFunction6defineENS0_8DSLBlockENS_8PositionE+0x34b): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.DSLStatement.o): in function `SkSL::dsl::operator,(SkSL::dsl::DSLStatement, SkSL::dsl::DSLStatement)':
DSLStatement.cpp:(.text._ZN4SkSL3dslcmENS0_12DSLStatementES1_+0x109): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.DSLSymbols.o): in function `SkSL::dsl::PushSymbolTable()':
DSLSymbols.cpp:(.text._ZN4SkSL3dsl15PushSymbolTableEv+0x6c): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.DSLSymbols.o):DSLSymbols.cpp:(.text._ZN4SkSL3dsl15PushSymbolTableEv+0xe0): more undefined references to `__libc_single_threaded' follow
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLFieldAccess.o): in function `SkSL::MethodReference::clone(SkSL::Position) const':
SkSLFieldAccess.cpp:(.text._ZNK4SkSL15MethodReference5cloneENS_8PositionE[_ZNK4SkSL15MethodReference5cloneENS_8PositionE]+0x126): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLFieldAccess.o): in function `SkSL::FieldAccess::Convert(SkSL::Context const&, SkSL::Position, SkSL::SymbolTable&, std::unique_ptr<SkSL::Expression, std::default_delete<SkSL::Expression> >, std::basic_string_view<char, std::char_traits<char> >)':
SkSLFieldAccess.cpp:(.text._ZN4SkSL11FieldAccess7ConvertERKNS_7ContextENS_8PositionERNS_11SymbolTableESt10unique_ptrINS_10ExpressionESt14default_deleteIS8_EESt17basic_string_viewIcSt11char_traitsIcEE+0x10cb): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLForStatement.o): in function `SkSL::ForStatement::~ForStatement()':
SkSLForStatement.cpp:(.text._ZN4SkSL12ForStatementD0Ev[_ZN4SkSL12ForStatementD5Ev]+0x70): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLForStatement.o): in function `SkSL::ForStatement::~ForStatement()':
SkSLForStatement.cpp:(.text._ZN4SkSL12ForStatementD2Ev[_ZN4SkSL12ForStatementD5Ev]+0x72): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLForStatement.o): in function `SkSL::ForStatement::clone() const':
SkSLForStatement.cpp:(.text._ZNK4SkSL12ForStatement5cloneEv+0x74): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLForStatement.cpp:(.text._ZNK4SkSL12ForStatement5cloneEv+0x1f6): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLForStatement.cpp:(.text._ZNK4SkSL12ForStatement5cloneEv+0x286): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLForStatement.o):SkSLForStatement.cpp:(.text._ZN4SkSL12ForStatement7ConvertERKNS_7ContextENS_8PositionENS_16ForLoopPositionsESt10unique_ptrINS_9StatementESt14default_deleteIS7_EES6_INS_10ExpressionES8_ISB_EESD_SA_St10shared_ptrINS_11SymbolTableEE+0x53c): more undefined references to `__libc_single_threaded' follow
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLFunctionDefinition.o): in function `std::_Hashtable<SkSL::FunctionDeclaration const*, SkSL::FunctionDeclaration const*, std::allocator<SkSL::FunctionDeclaration const*>, std::__detail::_Identity, std::equal_to<SkSL::FunctionDeclaration const*>, std::hash<SkSL::FunctionDeclaration const*>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, true, true> >::_M_insert_unique_node(unsigned long, unsigned long, std::__detail::_Hash_node<SkSL::FunctionDeclaration const*, false>*, unsigned long)':
SkSLFunctionDefinition.cpp:(.text._ZNSt10_HashtableIPKN4SkSL19FunctionDeclarationES3_SaIS3_ENSt8__detail9_IdentityESt8equal_toIS3_ESt4hashIS3_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb1ELb1EEEE21_M_insert_unique_nodeEmmPNS5_10_Hash_nodeIS3_Lb0EEEm[_ZNSt10_HashtableIPKN4SkSL19FunctionDeclarationES3_SaIS3_ENSt8__detail9_IdentityESt8equal_toIS3_ESt4hashIS3_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb1ELb1EEEE21_M_insert_unique_nodeEmmPNS5_10_Hash_nodeIS3_Lb0EEEm]+0x1af): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLSwitchStatement.o): in function `SkSL::SwitchStatement::~SwitchStatement()':
SkSLSwitchStatement.cpp:(.text._ZN4SkSL15SwitchStatementD2Ev[_ZN4SkSL15SwitchStatementD5Ev]+0x21): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLSwitchStatement.o): in function `SkSL::SwitchStatement::~SwitchStatement()':
SkSLSwitchStatement.cpp:(.text._ZN4SkSL15SwitchStatementD0Ev[_ZN4SkSL15SwitchStatementD5Ev]+0x21): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLSwitchStatement.o): in function `SkSL::move_all_but_break(std::unique_ptr<SkSL::Statement, std::default_delete<SkSL::Statement> >&, SkSTArray<2, std::unique_ptr<SkSL::Statement, std::default_delete<SkSL::Statement> >, false>*)':
SkSLSwitchStatement.cpp:(.text._ZN4SkSLL18move_all_but_breakERSt10unique_ptrINS_9StatementESt14default_deleteIS1_EEP9SkSTArrayILi2ES4_Lb0EE+0x18c): undefined reference to `__libc_single_threaded'
/usr/bin/ld: SkSLSwitchStatement.cpp:(.text._ZN4SkSLL18move_all_but_breakERSt10unique_ptrINS_9StatementESt14default_deleteIS1_EEP9SkSTArrayILi2ES4_Lb0EE+0x3dd): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLSwitchStatement.o): in function `SkSL::SwitchStatement::clone() const':
SkSLSwitchStatement.cpp:(.text._ZNK4SkSL15SwitchStatement5cloneEv+0x77): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLSwitchStatement.o):SkSLSwitchStatement.cpp:(.text._ZNK4SkSL15SwitchStatement5cloneEv+0x306): more undefined references to `__libc_single_threaded' follow
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLSymbolTable.o): in function `SkSL::SymbolTable::addWithoutOwnership(SkSL::Symbol const*)':
SkSLSymbolTable.cpp:(.text._ZN4SkSL11SymbolTable19addWithoutOwnershipEPKNS_6SymbolE+0xab1): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLType.o): in function `SkSL::Type::clone(SkSL::SymbolTable*) const':
SkSLType.cpp:(.text._ZNK4SkSL4Type5cloneEPNS_11SymbolTableE+0x394): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLVariable.o): in function `std::pair<std::__detail::_Node_iterator<SkSL::Modifiers, true, true>, bool> std::_Hashtable<SkSL::Modifiers, SkSL::Modifiers, std::allocator<SkSL::Modifiers>, std::__detail::_Identity, std::equal_to<SkSL::Modifiers>, std::hash<SkSL::Modifiers>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, true, true> >::_M_insert<SkSL::Modifiers const&, std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<SkSL::Modifiers, true> > > >(SkSL::Modifiers const&, std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<SkSL::Modifiers, true> > > const&, std::integral_constant<bool, true>) [clone .isra.0]':
SkSLVariable.cpp:(.text._ZNSt10_HashtableIN4SkSL9ModifiersES1_SaIS1_ENSt8__detail9_IdentityESt8equal_toIS1_ESt4hashIS1_ENS3_18_Mod_range_hashingENS3_20_Default_ranged_hashENS3_20_Prime_rehash_policyENS3_17_Hashtable_traitsILb1ELb1ELb1EEEE9_M_insertIRKS1_NS3_10_AllocNodeISaINS3_10_Hash_nodeIS1_Lb1EEEEEEEESt4pairINS3_14_Node_iteratorIS1_Lb1ELb1EEEbEOT_RKT0_St17integral_constantIbLb1EE.isra.0+0x2c3): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkSLAddConstToVarModifiers.o): in function `SkSL::Transform::AddConstToVarModifiers(SkSL::Context const&, SkSL::Variable const&, SkSL::Expression const*, SkSL::ProgramUsage const*)':
SkSLAddConstToVarModifiers.cpp:(.text._ZN4SkSL9Transform22AddConstToVarModifiersERKNS_7ContextERKNS_8VariableEPKNS_10ExpressionEPKNS_12ProgramUsageE+0x336): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(gpu.GrGLSLProgramBuilder.o): in function `std::_Hashtable<GrFragmentProcessor const*, std::pair<GrFragmentProcessor const* const, GrGeometryProcessor::ProgramImpl::FPCoords>, std::allocator<std::pair<GrFragmentProcessor const* const, GrGeometryProcessor::ProgramImpl::FPCoords> >, std::__detail::_Select1st, std::equal_to<GrFragmentProcessor const*>, std::hash<GrFragmentProcessor const*>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::_M_insert_unique_node(unsigned long, unsigned long, std::__detail::_Hash_node<std::pair<GrFragmentProcessor const* const, GrGeometryProcessor::ProgramImpl::FPCoords>, false>*, unsigned long)':
GrGLSLProgramBuilder.cpp:(.text._ZNSt10_HashtableIPK19GrFragmentProcessorSt4pairIKS2_N19GrGeometryProcessor11ProgramImpl8FPCoordsEESaIS8_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE21_M_insert_unique_nodeEmmPNSA_10_Hash_nodeIS8_Lb0EEEm[_ZNSt10_HashtableIPK19GrFragmentProcessorSt4pairIKS2_N19GrGeometryProcessor11ProgramImpl8FPCoordsEESaIS8_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE21_M_insert_unique_nodeEmmPNSA_10_Hash_nodeIS8_Lb0EEEm]+0x1af): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(gpu.GrGLProgramBuilder.o): in function `std::unique_ptr<SkSL::Program, std::default_delete<SkSL::Program> >::~unique_ptr()':
GrGLProgramBuilder.cpp:(.text._ZNSt10unique_ptrIN4SkSL7ProgramESt14default_deleteIS1_EED2Ev[_ZNSt10unique_ptrIN4SkSL7ProgramESt14default_deleteIS1_EED5Ev]+0x78): undefined reference to `__libc_single_threaded'
/usr/bin/ld: GrGLProgramBuilder.cpp:(.text._ZNSt10unique_ptrIN4SkSL7ProgramESt14default_deleteIS1_EED2Ev[_ZNSt10unique_ptrIN4SkSL7ProgramESt14default_deleteIS1_EED5Ev]+0xd7): undefined reference to `__libc_single_threaded'
/usr/bin/ld: GrGLProgramBuilder.cpp:(.text._ZNSt10unique_ptrIN4SkSL7ProgramESt14default_deleteIS1_EED2Ev[_ZNSt10unique_ptrIN4SkSL7ProgramESt14default_deleteIS1_EED5Ev]+0x312): undefined reference to `__libc_single_threaded'
/usr/bin/ld: GrGLProgramBuilder.cpp:(.text._ZNSt10unique_ptrIN4SkSL7ProgramESt14default_deleteIS1_EED2Ev[_ZNSt10unique_ptrIN4SkSL7ProgramESt14default_deleteIS1_EED5Ev]+0x365): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(gpu.GrGLProgramBuilder.o): in function `GrGLProgramBuilder::PrecompileProgram(GrDirectContext*, GrGLPrecompiledProgram*, SkData const&)::{lambda(SkSL::ProgramKind, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)#1}::operator()(SkSL::ProgramKind, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int) const':
GrGLProgramBuilder.cpp:(.text._ZZN18GrGLProgramBuilder17PrecompileProgramEP15GrDirectContextP22GrGLPrecompiledProgramRK6SkDataENKUlN4SkSL11ProgramKindERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjE_clES8_SG_j+0x13c): undefined reference to `__libc_single_threaded'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(gpu.GrGLProgramBuilder.o):GrGLProgramBuilder.cpp:(.text._ZZN18GrGLProgramBuilder17PrecompileProgramEP15GrDirectContextP22GrGLPrecompiledProgramRK6SkDataENKUlN4SkSL11ProgramKindERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjE_clES8_SG_j+0x197): more undefined references to `__libc_single_threaded' follow
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkRuntimeImageFilter.o): in function `SkImageFilters::RuntimeShader(SkRuntimeShaderBuilder const&, std::basic_string_view<char, std::char_traits<char> >, sk_sp<SkImageFilter>)':
SkRuntimeImageFilter.cpp:(.text._ZN14SkImageFilters13RuntimeShaderERK22SkRuntimeShaderBuilderSt17basic_string_viewIcSt11char_traitsIcEE5sk_spI13SkImageFilterE+0x378): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkRuntimeImageFilter.o): in function `SkImageFilters::RuntimeShader(SkRuntimeShaderBuilder const&, std::basic_string_view<char, std::char_traits<char> >*, sk_sp<SkImageFilter> const*, int)':
SkRuntimeImageFilter.cpp:(.text._ZN14SkImageFilters13RuntimeShaderERK22SkRuntimeShaderBuilderPSt17basic_string_viewIcSt11char_traitsIcEEPK5sk_spI13SkImageFilterEi+0x52e): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(typeface_freetype.SkFontHost_FreeType.o): in function `SkScalerContext_FreeType::generateMetrics(SkGlyph*, SkArenaAlloc*)':
SkFontHost_FreeType.cpp:(.text._ZN24SkScalerContext_FreeType15generateMetricsEP7SkGlyphP12SkArenaAlloc+0x121): undefined reference to `FT_Get_Color_Glyph_Paint'
/usr/bin/ld: SkFontHost_FreeType.cpp:(.text._ZN24SkScalerContext_FreeType15generateMetricsEP7SkGlyphP12SkArenaAlloc+0x612): undefined reference to `FT_Get_Color_Glyph_ClipBox'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(typeface_freetype.SkFontHost_FreeType_common.o): in function `(anonymous namespace)::colrv1_traverse_paint_bounds(SkMatrix*, SkRect*, FT_FaceRec_*, FT_Opaque_Paint_, SkTHashSet<FT_Opaque_Paint_, (anonymous namespace)::OpaquePaintHasher>*)':
SkFontHost_FreeType_common.cpp:(.text._ZN12_GLOBAL__N_128colrv1_traverse_paint_boundsEP8SkMatrixP6SkRectP11FT_FaceRec_16FT_Opaque_Paint_P10SkTHashSetIS6_NS_17OpaquePaintHasherEE+0x3f5): undefined reference to `FT_Get_Paint'
/usr/bin/ld: SkFontHost_FreeType_common.cpp:(.text._ZN12_GLOBAL__N_128colrv1_traverse_paint_boundsEP8SkMatrixP6SkRectP11FT_FaceRec_16FT_Opaque_Paint_P10SkTHashSetIS6_NS_17OpaquePaintHasherEE+0x708): undefined reference to `FT_Get_Color_Glyph_Paint'
/usr/bin/ld: SkFontHost_FreeType_common.cpp:(.text._ZN12_GLOBAL__N_128colrv1_traverse_paint_boundsEP8SkMatrixP6SkRectP11FT_FaceRec_16FT_Opaque_Paint_P10SkTHashSetIS6_NS_17OpaquePaintHasherEE+0x754): undefined reference to `FT_Get_Paint_Layers'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(typeface_freetype.SkFontHost_FreeType_common.o): in function `SkScalerContext_FreeType_Base::computeColrV1GlyphBoundingBox(FT_FaceRec_*, unsigned short, SkRect*)':
SkFontHost_FreeType_common.cpp:(.text._ZN29SkScalerContext_FreeType_Base29computeColrV1GlyphBoundingBoxEP11FT_FaceRec_tP6SkRect+0x78): undefined reference to `FT_Get_Color_Glyph_Paint'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(typeface_freetype.SkFontHost_FreeType_common.o): in function `(anonymous namespace)::colrv1_configure_skpaint(FT_FaceRec_*, SkSpan<unsigned int> const&, unsigned int, FT_COLR_Paint_ const&, SkPaint*)::{lambda(FT_ColorStopIterator_ const&, std::vector<float, std::allocator<float> >&, std::vector<unsigned int, std::allocator<unsigned int> >&)#1}::operator()(FT_ColorStopIterator_ const&, std::vector<float, std::allocator<float> >&, std::vector<unsigned int, std::allocator<unsigned int> >&) const [clone .constprop.0]':
SkFontHost_FreeType_common.cpp:(.text._ZZN12_GLOBAL__N_124colrv1_configure_skpaintEP11FT_FaceRec_RK6SkSpanIjEjRK14FT_COLR_Paint_P7SkPaintENKUlRK21FT_ColorStopIterator_RSt6vectorIfSaIfEERSE_IjSaIjEEE_clESD_SH_SK_.constprop.0+0x12b): undefined reference to `FT_Get_Colorline_Stops'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(typeface_freetype.SkFontHost_FreeType_common.o): in function `(anonymous namespace)::colrv1_traverse_paint(SkCanvas*, SkSpan<unsigned int> const&, unsigned int, FT_FaceRec_*, FT_Opaque_Paint_, SkTHashSet<FT_Opaque_Paint_, (anonymous namespace)::OpaquePaintHasher>*)':
SkFontHost_FreeType_common.cpp:(.text._ZN12_GLOBAL__N_121colrv1_traverse_paintEP8SkCanvasRK6SkSpanIjEjP11FT_FaceRec_16FT_Opaque_Paint_P10SkTHashSetIS8_NS_17OpaquePaintHasherEE+0x3ff): undefined reference to `FT_Get_Paint'
/usr/bin/ld: SkFontHost_FreeType_common.cpp:(.text._ZN12_GLOBAL__N_121colrv1_traverse_paintEP8SkCanvasRK6SkSpanIjEjP11FT_FaceRec_16FT_Opaque_Paint_P10SkTHashSetIS8_NS_17OpaquePaintHasherEE+0x7ef): undefined reference to `FT_Get_Paint_Layers'
/usr/bin/ld: SkFontHost_FreeType_common.cpp:(.text._ZN12_GLOBAL__N_121colrv1_traverse_paintEP8SkCanvasRK6SkSpanIjEjP11FT_FaceRec_16FT_Opaque_Paint_P10SkTHashSetIS8_NS_17OpaquePaintHasherEE+0x870): undefined reference to `FT_Get_Color_Glyph_Paint'
/usr/bin/ld: SkFontHost_FreeType_common.cpp:(.text._ZN12_GLOBAL__N_121colrv1_traverse_paintEP8SkCanvasRK6SkSpanIjEjP11FT_FaceRec_16FT_Opaque_Paint_P10SkTHashSetIS8_NS_17OpaquePaintHasherEE+0x938): undefined reference to `FT_Get_Paint'
/usr/bin/ld: SkFontHost_FreeType_common.cpp:(.text._ZN12_GLOBAL__N_121colrv1_traverse_paintEP8SkCanvasRK6SkSpanIjEjP11FT_FaceRec_16FT_Opaque_Paint_P10SkTHashSetIS8_NS_17OpaquePaintHasherEE+0xa14): undefined reference to `FT_Get_Paint'
/usr/bin/ld: SkFontHost_FreeType_common.cpp:(.text._ZN12_GLOBAL__N_121colrv1_traverse_paintEP8SkCanvasRK6SkSpanIjEjP11FT_FaceRec_16FT_Opaque_Paint_P10SkTHashSetIS8_NS_17OpaquePaintHasherEE+0xaea): undefined reference to `FT_Get_Transform'
/usr/bin/ld: SkFontHost_FreeType_common.cpp:(.text._ZN12_GLOBAL__N_121colrv1_traverse_paintEP8SkCanvasRK6SkSpanIjEjP11FT_FaceRec_16FT_Opaque_Paint_P10SkTHashSetIS8_NS_17OpaquePaintHasherEE+0xb05): undefined reference to `FT_Get_Color_Glyph_ClipBox'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(typeface_freetype.SkFontHost_FreeType_common.o): in function `SkScalerContext_FreeType_Base::drawCOLRv1Glyph(FT_FaceRec_*, SkGlyph const&, unsigned int, SkSpan<unsigned int>, SkCanvas*)':
SkFontHost_FreeType_common.cpp:(.text._ZN29SkScalerContext_FreeType_Base15drawCOLRv1GlyphEP11FT_FaceRec_RK7SkGlyphj6SkSpanIjEP8SkCanvas+0x88): undefined reference to `FT_Get_Color_Glyph_Paint'
/usr/bin/ld: SkFontHost_FreeType_common.cpp:(.text._ZN29SkScalerContext_FreeType_Base15drawCOLRv1GlyphEP11FT_FaceRec_RK7SkGlyphj6SkSpanIjEP8SkCanvas+0xf8): undefined reference to `FT_Get_Color_Glyph_ClipBox'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(libskia.SkExecutor.o): in function `std::deque<std::function<void ()>, std::allocator<std::function<void ()> > >::_M_reallocate_map(unsigned long, bool)':
SkExecutor.cpp:(.text._ZNSt5dequeISt8functionIFvvEESaIS2_EE17_M_reallocate_mapEmb[_ZNSt5dequeISt8functionIFvvEESaIS2_EE17_M_reallocate_mapEmb]+0x197): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /home/daniel/testing/unison/internal/skia/libskia_linux.a(gpu.GrAATriangulator.o): in function `std::_Hashtable<GrTriangulator::Vertex*, std::pair<GrTriangulator::Vertex* const, SSVertex*>, std::allocator<std::pair<GrTriangulator::Vertex* const, SSVertex*> >, std::__detail::_Select1st, std::equal_to<GrTriangulator::Vertex*>, std::hash<GrTriangulator::Vertex*>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::_M_insert_unique_node(unsigned long, unsigned long, std::__detail::_Hash_node<std::pair<GrTriangulator::Vertex* const, SSVertex*>, false>*, unsigned long)':
GrAATriangulator.cpp:(.text._ZNSt10_HashtableIPN14GrTriangulator6VertexESt4pairIKS2_P8SSVertexESaIS7_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb0ELb0ELb1EEEE21_M_insert_unique_nodeEmmPNS9_10_Hash_nodeIS7_Lb0EEEm[_ZNSt10_HashtableIPN14GrTriangulator6VertexESt4pairIKS2_P8SSVertexESaIS7_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb0ELb0ELb1EEEE21_M_insert_unique_nodeEmmPNS9_10_Hash_nodeIS7_Lb0EEEm]+0x1af): undefined reference to `std::__throw_bad_array_new_length()'
collect2: error: ld returned 1 exit status

Any assistance in resolving this issue would be appreciated.

richardwilkes commented 2 years ago

The issue seems to be with the version of libc you're using. I'm not terribly familiar with the varieties out there, but I know there are some differences. So far, I've only built the linux version on Ubuntu and PopOS. I would think Debian would be very similar, though.

richardwilkes commented 2 years ago

You may want to try using the go-glfw stuff by itself to see if the issue exists with that, too. If it does, they may have some insight as to why.

richardwilkes commented 2 years ago

Doing some google searches indicates that __libc_single_threaded isn't available until libc 2.32. Perhaps you're somehow linking against an old version?

tataDan commented 2 years ago

Unfortunately, Debian 11 uses libc 2.31. Using a live version of Ubuntu 22.04, I was able to successfully run the example program.

Thank you for your quick response.

richardwilkes commented 2 years ago

I'm going to close this. You can likely work around it for your platform by checking out my cskia project and building your own version of the skia library for your platform. That way you'd get your older version of libc being linked against.