Copy link
@kosarev

kosarev Sep 21, 2023

Collaborator

@asb It seems this also needs Core. Without it I'm seeing this on my machine:

[2/4] Linking CXX executable unittests/Target/VE/VETests
FAILED: unittests/Target/VE/VETests 
: && /usr/bin/c++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fuse-ld=gold     -Wl,--gc-sections unittests/Target/VE/CMakeFiles/VETests.dir/MachineInstrTest.cpp.o -o unittests/Target/VE/VETests  -Wl,-rpath,/home/kosarev/labs/llvm-project/build/release+asserts/lib  lib/libLLVMVECodeGen.so.18git  lib/libLLVMVEDesc.so.18git  lib/libLLVMVEInfo.so.18git  lib/libLLVMGlobalISel.so.18git  lib/libLLVMSelectionDAG.so.18git  lib/libllvm_gtest_main.so.18git  lib/libllvm_gtest.so.18git  lib/libLLVMCodeGen.so.18git  lib/libLLVMTarget.so.18git  lib/libLLVMMC.so.18git  lib/libLLVMTargetParser.so.18git  lib/libLLVMSupport.so.18git  -Wl,-rpath-link,/home/kosarev/labs/llvm-project/build/release+asserts/lib && :
unittests/Target/VE/CMakeFiles/VETests.dir/MachineInstrTest.cpp.o:MachineInstrTest.cpp:function llvm::TargetInstrInfo::createPHISourceCopy(llvm::MachineBasicBlock&, llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>, llvm::DebugLoc const&, llvm::Register, unsigned int, llvm::Register) const: error: undefined reference to 'llvm::MetadataTracking::track(void*, llvm::Metadata&, llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>)'
unittests/Target/VE/CMakeFiles/VETests.dir/MachineInstrTest.cpp.o:MachineInstrTest.cpp:function llvm::TargetInstrInfo::createPHISourceCopy(llvm::MachineBasicBlock&, llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>, llvm::DebugLoc const&, llvm::Register, unsigned int, llvm::Register) const: error: undefined reference to 'llvm::MetadataTracking::retrack(void*, llvm::Metadata&, void*)'
unittests/Target/VE/CMakeFiles/VETests.dir/MachineInstrTest.cpp.o:MachineInstrTest.cpp:function llvm::TargetInstrInfo::createPHISourceCopy(llvm::MachineBasicBlock&, llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>, llvm::DebugLoc const&, llvm::Register, unsigned int, llvm::Register) const: error: undefined reference to 'llvm::MetadataTracking::track(void*, llvm::Metadata&, llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>)'
unittests/Target/VE/CMakeFiles/VETests.dir/MachineInstrTest.cpp.o:MachineInstrTest.cpp:function llvm::TargetInstrInfo::createPHISourceCopy(llvm::MachineBasicBlock&, llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>, llvm::DebugLoc const&, llvm::Register, unsigned int, llvm::Register) const: error: undefined reference to 'llvm::MetadataTracking::untrack(void*, llvm::Metadata&)'
unittests/Target/VE/CMakeFiles/VETests.dir/MachineInstrTest.cpp.o:MachineInstrTest.cpp:function llvm::TargetInstrInfo::createPHISourceCopy(llvm::MachineBasicBlock&, llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>, llvm::DebugLoc const&, llvm::Register, unsigned int, llvm::Register) const: error: undefined reference to 'llvm::MetadataTracking::untrack(void*, llvm::Metadata&)'
unittests/Target/VE/CMakeFiles/VETests.dir/MachineInstrTest.cpp.o:MachineInstrTest.cpp:function llvm::TargetInstrInfo::createPHISourceCopy(llvm::MachineBasicBlock&, llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>, llvm::DebugLoc const&, llvm::Register, unsigned int, llvm::Register) const: error: undefined reference to 'llvm::MetadataTracking::untrack(void*, llvm::Metadata&)'
unittests/Target/VE/CMakeFiles/VETests.dir/MachineInstrTest.cpp.o:MachineInstrTest.cpp:function llvm::TargetInstrInfo::createPHIDestinationCopy(llvm::MachineBasicBlock&, llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>, llvm::DebugLoc const&, llvm::Register, llvm::Register) const: error: undefined reference to 'llvm::MetadataTracking::track(void*, llvm::Metadata&, llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>)'
unittests/Target/VE/CMakeFiles/VETests.dir/MachineInstrTest.cpp.o:MachineInstrTest.cpp:function llvm::TargetInstrInfo::createPHIDestinationCopy(llvm::MachineBasicBlock&, llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>, llvm::DebugLoc const&, llvm::Register, llvm::Register) const: error: undefined reference to 'llvm::MetadataTracking::retrack(void*, llvm::Metadata&, void*)'
unittests/Target/VE/CMakeFiles/VETests.dir/MachineInstrTest.cpp.o:MachineInstrTest.cpp:function llvm::TargetInstrInfo::createPHIDestinationCopy(llvm::MachineBasicBlock&, llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>, llvm::DebugLoc const&, llvm::Register, llvm::Register) const: error: undefined reference to 'llvm::MetadataTracking::track(void*, llvm::Metadata&, llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>)'
unittests/Target/VE/CMakeFiles/VETests.dir/MachineInstrTest.cpp.o:MachineInstrTest.cpp:function llvm::TargetInstrInfo::createPHIDestinationCopy(llvm::MachineBasicBlock&, llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>, llvm::DebugLoc const&, llvm::Register, llvm::Register) const: error: undefined reference to 'llvm::MetadataTracking::untrack(void*, llvm::Metadata&)'
collect2: error: ld returned 1 exit status
[3/4] Linking CXX executable bin/llvm-config
ninja: build stopped: subcommand failed.