pkgsrc-Bugs archive

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

pkg/52852: graphics/MesaLib linking to LLVM fails



>Number:         52852
>Category:       pkg
>Synopsis:       graphics/MesaLib linking to LLVM fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 23 07:50:00 +0000 2017
>Originator:     Frédéric Fauberteau
>Release:        pkgsrc-2017Q3
>Organization:
>Environment:
FreeBSD cocoon.triaxx.org 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri Jul 21 02:08:28 UTC 2017     root%releng2.nyi.freebsd.org@localhost:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
I tried to build meta-pkgs/modular-xorg but linking failed for graphics/MesaLib.

I am interested in any idea to investigate/debug. In a normal course, I would make many tests, but the machine is very slow.

The default options are enabled: dri, llvm

  CC       nvc0/nvc0_surface.lo                                                
  CC       nvc0/nvc0_tex.lo                                                                                                                                    
  CC       nvc0/nvc0_transfer.lo                                                                                                                               
  CC       nvc0/nvc0_vbo.lo                                                    
  CC       nvc0/nvc0_vbo_translate.lo                                                                                                                          
  CC       nvc0/nvc0_video_bsp.lo                                                                                                                              
  CC       nvc0/nvc0_video.lo                                                                                                                                  
  CC       nvc0/nvc0_video_ppp.lo                                                                                                                              
  CC       nvc0/nvc0_video_vp.lo       
  CC       nvc0/nve4_compute.lo                                                                                                                                
  CXXLD    libnouveau.la                                                       
  CXXLD    nouveau_compiler                                                                                                                                    
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `init_native_targets()':                                                      
gallivm/lp_bld_misc.cpp:(.text+0x25): undefined reference to `LLVMInitializeX86TargetInfo'                                                                     
gallivm/lp_bld_misc.cpp:(.text+0x2a): undefined reference to `LLVMInitializeX86Target'                                                                         
gallivm/lp_bld_misc.cpp:(.text+0x2f): undefined reference to `LLVMInitializeX86TargetMC'                                                                       
gallivm/lp_bld_misc.cpp:(.text+0x34): undefined reference to `LLVMInitializeX86AsmPrinter'
gallivm/lp_bld_misc.cpp:(.text+0x3a): undefined reference to `LLVMInitializeX86Disassembler'                                                                   
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `gallivm_create_target_library_info':                                         
gallivm/lp_bld_misc.cpp:(.text+0x9c): undefined reference to `llvm::Triple::Triple(llvm::Twine const&)'                                                        gallivm/lp_bld_misc.cpp:(.text+0xa8): undefined reference to `llvm::TargetLibraryInfoImpl::TargetLibraryInfoImpl(llvm::Triple const&)'                         
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `lp_set_load_alignment':
gallivm/lp_bld_misc.cpp:(.text+0x246): undefined reference to `llvm::LoadInst::setAlignment(unsigned int)'                                                     
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `lp_set_store_alignment':                                                     gallivm/lp_bld_misc.cpp:(.text+0x256): undefined reference to `llvm::StoreInst::setAlignment(unsigned int)'                                                    
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `lp_build_create_jit_compiler_for_module':                                    gallivm/lp_bld_misc.cpp:(.text+0x2c0): undefined reference to `llvm::EngineBuilder::EngineBuilder(std::__1::unique_ptr<llvm::Module, std::__1::default_delete<l
lvm::Module> >)'                                                                                                                                               gallivm/lp_bld_misc.cpp:(.text+0x2df): undefined reference to `llvm::Module::~Module()'                                                                        
gallivm/lp_bld_misc.cpp:(.text+0x343): undefined reference to `llvm::MCTargetOptions::MCTargetOptions()'                                                       gallivm/lp_bld_misc.cpp:(.text+0x8fa): undefined reference to `llvm::sys::getHostCPUName()'                                                                    
gallivm/lp_bld_misc.cpp:(.text+0xb2d): undefined reference to `llvm::EngineBuilder::setMCJITMemoryManager(std::__1::unique_ptr<llvm::RTDyldMemoryManager, std::__1::default_delete<llvm::RTDyldMemoryManager> >)'                                                                                                             gallivm/lp_bld_misc.cpp:(.text+0xb56): undefined reference to `llvm::EngineBuilder::selectTarget()'                                                            
gallivm/lp_bld_misc.cpp:(.text+0xb65): undefined reference to `llvm::EngineBuilder::create(llvm::TargetMachine*)'                                              gallivm/lp_bld_misc.cpp:(.text+0xce5): undefined reference to `llvm::EngineBuilder::~EngineBuilder()'                                                          
gallivm/lp_bld_misc.cpp:(.text+0xe35): undefined reference to `llvm::RTDyldMemoryManager::~RTDyldMemoryManager()'                                              gallivm/lp_bld_misc.cpp:(.text+0xe6f): undefined reference to `llvm::Module::~Module()'                                                                        
gallivm/lp_bld_misc.cpp:(.text+0xf55): undefined reference to `llvm::EngineBuilder::~EngineBuilder()'                                                          
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `lp_get_default_memory_manager':                                              
gallivm/lp_bld_misc.cpp:(.text+0x1025): undefined reference to `vtable for llvm::SectionMemoryManager'                                                         
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `_GLOBAL__sub_I_lp_bld_misc.cpp':                                             
gallivm/lp_bld_misc.cpp:(.text+0x11b5): undefined reference to `LLVMIsMultithreaded'                                                                           
gallivm/lp_bld_misc.cpp:(.text+0x11c1): undefined reference to `LLVMStartMultithreaded'                                                                        
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>::Create
Load(llvm::Value*, bool, llvm::Twine const&)':                                 
gallivm/lp_bld_misc.cpp:(.text._ZN4llvm9IRBuilderINS_14ConstantFolderENS_24IRBuilderDefaultInserterEE10CreateLoadEPNS_5ValueEbRKNS_5TwineE[_ZN4llvm9IRBuilderIN
S_14ConstantFolderENS_24IRBuilderDefaultInserterEE10CreateLoadEPNS_5ValueEbRKNS_5TwineE]+0x25): undefined reference to `llvm::User::operator new(unsigned long,
 unsigned int)'                                                                
gallivm/lp_bld_misc.cpp:(.text._ZN4llvm9IRBuilderINS_14ConstantFolderENS_24IRBuilderDefaultInserterEE10CreateLoadEPNS_5ValueEbRKNS_5TwineE[_ZN4llvm9IRBuilderIN
S_14ConstantFolderENS_24IRBuilderDefaultInserterEE10CreateLoadEPNS_5ValueEbRKNS_5TwineE]+0x44): undefined reference to `llvm::LoadInst::LoadInst(llvm::Type*, l
lvm::Value*, char const*, bool, llvm::Instruction*)'                           
gallivm/lp_bld_misc.cpp:(.text._ZN4llvm9IRBuilderINS_14ConstantFolderENS_24IRBuilderDefaultInserterEE10CreateLoadEPNS_5ValueEbRKNS_5TwineE[_ZN4llvm9IRBuilderIN
S_14ConstantFolderENS_24IRBuilderDefaultInserterEE10CreateLoadEPNS_5ValueEbRKNS_5TwineE]+0x5d): undefined reference to `llvm::SymbolTableListTraits<llvm::Instr
uction>::addNodeToList(llvm::Instruction*)'                                    
gallivm/lp_bld_misc.cpp:(.text._ZN4llvm9IRBuilderINS_14ConstantFolderENS_24IRBuilderDefaultInserterEE10CreateLoadEPNS_5ValueEbRKNS_5TwineE[_ZN4llvm9IRBuilderIN
S_14ConstantFolderENS_24IRBuilderDefaultInserterEE10CreateLoadEPNS_5ValueEbRKNS_5TwineE]+0x83): undefined reference to `llvm::Value::setName(llvm::Twine const&
)'                                                                             
gallivm/lp_bld_misc.cpp:(.text._ZN4llvm9IRBuilderINS_14ConstantFolderENS_24IRBuilderDefaultInserterEE10CreateLoadEPNS_5ValueEbRKNS_5TwineE[_ZN4llvm9IRBuilderIN
S_14ConstantFolderENS_24IRBuilderDefaultInserterEE10CreateLoadEPNS_5ValueEbRKNS_5TwineE]+0xab): undefined reference to `llvm::User::operator delete(void*)'    
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `ShaderMemoryManager::~ShaderMemoryManager()':                                
gallivm/lp_bld_misc.cpp:(.text._ZN19ShaderMemoryManagerD0Ev[_ZN19ShaderMemoryManagerD0Ev]+0xa): undefined reference to `llvm::RTDyldMemoryManager::~RTDyldMemor
yManager()'                            
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `llvm::RTDyldMemoryManager::getSymbolAddress(std::__1::basic_string<char, std:
:__1::char_traits<char>, std::__1::allocator<char> > const&)':                 
gallivm/lp_bld_misc.cpp:(.text._ZN4llvm19RTDyldMemoryManager16getSymbolAddressERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE[_ZN4llvm19RTD
yldMemoryManager16getSymbolAddressERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE]+0x9): undefined reference to `llvm::RTDyldMemoryManager:
:getSymbolAddressInProcess(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)'                                      
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `non-virtual thunk to ShaderMemoryManager::~ShaderMemoryManager()':           
gallivm/lp_bld_misc.cpp:(.text._ZThn16_N19ShaderMemoryManagerD1Ev[_ZThn16_N19ShaderMemoryManagerD1Ev]+0xa): undefined reference to `llvm::RTDyldMemoryManager::
~~RTDyldMemoryManager()'                                                                   
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `non-virtual thunk to ShaderMemoryManager::~ShaderMemoryManager()':           
gallivm/lp_bld_misc.cpp:(.text._ZThn16_N19ShaderMemoryManagerD0Ev[_ZThn16_N19ShaderMemoryManagerD0Ev]+0x11): undefined reference to `llvm::RTDyldMemoryManager:
:~RTDyldMemoryManager()'
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o): In function `llvm::IRBuilderBase::SetInstDebugLocation(llvm::Instruction*) const':[0/1883]gallivm/lp_bld_misc.cpp:(.text._ZNK4llvm13IRBuilderBase20SetInstDebugLocationEPNS_11InstructionE[_ZNK4llvm13IRBuilderBase20SetInstDebugLocationEPNS_11InstructionE]+0x27): undefined reference to `llvm::MetadataTracking::track(void*, llvm::Metadata&, llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>)'        
gallivm/lp_bld_misc.cpp:(.text._ZNK4llvm13IRBuilderBase20SetInstDebugLocationEPNS_11InstructionE[_ZNK4llvm13IRBuilderBase20SetInstDebugLocationEPNS_11InstructionE]+0x40): undefined reference to `llvm::MetadataTracking::untrack(void*, llvm::Metadata&)'                                                                   
gallivm/lp_bld_misc.cpp:(.text._ZNK4llvm13IRBuilderBase20SetInstDebugLocationEPNS_11InstructionE[_ZNK4llvm13IRBuilderBase20SetInstDebugLocationEPNS_11InstructionE]+0x58): undefined reference to `llvm::MetadataTracking::retrack(void*, llvm::Metadata&, void*)'                                                            
gallivm/lp_bld_misc.cpp:(.text._ZNK4llvm13IRBuilderBase20SetInstDebugLocationEPNS_11InstructionE[_ZNK4llvm13IRBuilderBase20SetInstDebugLocationEPNS_11InstructionE]+0x74): undefined reference to `llvm::MetadataTracking::untrack(void*, llvm::Metadata&)'                                                                   
gallivm/lp_bld_misc.cpp:(.text._ZNK4llvm13IRBuilderBase20SetInstDebugLocationEPNS_11InstructionE[_ZNK4llvm13IRBuilderBase20SetInstDebugLocationEPNS_11InstructionE]+0x9a): undefined reference to `llvm::MetadataTracking::untrack(void*, llvm::Metadata&)'                                                                   
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o):(.data+0x0): undefined reference to `llvm::DisableABIBreakingChecks'                       ../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o):(.data.rel.ro._ZTV19ShaderMemoryManager[_ZTV19ShaderMemoryManager]+0x10): undefined reference to `llvm::RTDyldMemoryManager::~RTDyldMemoryManager()'                                                                                                      
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o):(.data.rel.ro._ZTV19ShaderMemoryManager[_ZTV19ShaderMemoryManager]+0x60): undefined reference to `llvm::RuntimeDyld::MemoryManager::anchor()'                                                                                                             
../../../../src/gallium/auxiliary/.libs/libgallium.a(lp_bld_misc.o):(.data.rel.ro._ZTV19ShaderMemoryManager[_ZTV19ShaderMemoryManager]+0xd8): undefined reference to `llvm::JITSymbolResolver::anchor()'                                                                                                                      
clang++: error: linker command failed with exit code 1 (use -v to see invocation)                                                                              
Makefile:1124: recipe for target 'nouveau_compiler' failed                                                                                                     
gmake[3]: *** [nouveau_compiler] Error 1                                                                                                                       
gmake[3]: Leaving directory '/var/pkgsrc/work/graphics/MesaLib/work/mesa-11.2.2/src/gallium/drivers/nouveau'                                                   
Makefile:591: recipe for target 'all-recursive' failed                                                                                                         
gmake[2]: *** [all-recursive] Error 1                                                                                                                          
gmake[2]: Leaving directory '/var/pkgsrc/work/graphics/MesaLib/work/mesa-11.2.2/src/gallium'                                                                   
Makefile:686: recipe for target 'all-recursive' failed                         
gmake[1]: *** [all-recursive] Error 1                                                                                                                          
gmake[1]: Leaving directory '/var/pkgsrc/work/graphics/MesaLib/work/mesa-11.2.2/src'                                                                           
Makefile:631: recipe for target 'all-recursive' failed                         
gmake: *** [all-recursive] Error 1                                                                                                                             
*** Error code 2                                                                                                                                               
                                                                               
Stop.                                                                                                                                                          
bmake[4]: stopped in /usr/home/triaxx/pkgsrc/graphics/MesaLib                                                                                                  
*** Error code 1                                                               
                                                                                                                                                               
Stop.                                                                                                                                                          
bmake[3]: stopped in /usr/home/triaxx/pkgsrc/graphics/MesaLib                  
*** Error code 1                                                                                                                                               
                                                                                                                                                               
Stop.                                                                                                                                                          
bmake[2]: stopped in /usr/home/triaxx/pkgsrc/graphics/libepoxy                                                                                                 
*** Error code 1                       
                                                                                                                                                               
Stop.                                                                          
bmake[1]: stopped in /usr/home/triaxx/pkgsrc/x11/modular-xorg-server                                                                                           
*** Error code 1                                                                                                                                               
                                                                                                                                                               
Stop.                                                                                                                                                          
bmake: stopped in /usr/home/triaxx/pkgsrc/meta-pkgs/modular-xorg
>How-To-Repeat:
cd meta-pkgs/modular-xorg && bmake package install clean clean-depends
>Fix:


Home | Main Index | Thread Index | Old Index