[llvm] [llvm-exegesis] Add thread IDs to subprocess memory names (PR #84451)
Jia Yuan Lo via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 11 10:29:27 PDT 2024
truboxl wrote:
When building for Android, I get this
```
[4027/4315] Linking CXX executable bin/llvm-exegesis
FAILED: bin/llvm-exegesis
: && /home/builder/.termux-build/_cache/android-r26b-api-24-v3/bin/aarch64-linux-android-clang++ -fstack-protector-strong -Oz -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -flto=thin -Os -DNDEBUG -L/data/data/com.termux/files/usr/lib -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -Wl,--color-diagnostics -flto=thin -Wl,--gc-sections tools/llvm-exegesis/CMakeFiles/llvm-exegesis.dir/llvm-exegesis.cpp.o -o bin/llvm-exegesis -Wl,-rpath,"$ORIGIN/../lib" lib/libLLVMWebAssemblyAsmParser.a lib/libLLVMAArch64AsmParser.a lib/libLLVMWebAssemblyCodeGen.a lib/libLLVMAArch64CodeGen.a lib/libLLVMWebAssemblyDesc.a lib/libLLVMAArch64Desc.a lib/libLLVMWebAssemblyDisassembler.a lib/libLLVMAArch64Disassembler.a lib/libLLVMWebAssemblyInfo.a lib/libLLVMAArch64Info.a lib/libLLVMCodeGenTypes.a lib/libLLVMMC.a lib/libLLVMMCParser.a lib/libLLVMSupport.a lib/libLLVMTargetParser.a -lpthread lib/libLLVMExegesis.a lib/libLLVMExegesisAArch64.a lib/libLLVMWebAssemblyUtils.a lib/libLLVMWebAssemblyDesc.a lib/libLLVMWebAssemblyInfo.a lib/libLLVMAArch64AsmParser.a lib/libLLVMAArch64CodeGen.a lib/libLLVMAsmPrinter.a lib/libLLVMAArch64Disassembler.a lib/libLLVMAArch64Desc.a lib/libLLVMAArch64Info.a lib/libLLVMExegesis.a lib/libLLVMGlobalISel.a lib/libLLVMSelectionDAG.a lib/libLLVMMCDisassembler.a lib/libLLVMMCA.a lib/libLLVMObjectYAML.a lib/libLLVMOrcJIT.a lib/libLLVMExecutionEngine.a lib/libLLVMPasses.a lib/libLLVMCodeGen.a lib/libLLVMCodeGenTypes.a lib/libLLVMTarget.a lib/libLLVMCFGuard.a lib/libLLVMObjCARCOpts.a lib/libLLVMCoroutines.a lib/libLLVMHipStdPar.a lib/libLLVMipo.a lib/libLLVMBitWriter.a lib/libLLVMFrontendOpenMP.a lib/libLLVMScalarOpts.a lib/libLLVMAggressiveInstCombine.a lib/libLLVMInstCombine.a lib/libLLVMFrontendOffloading.a lib/libLLVMLinker.a lib/libLLVMIRPrinter.a lib/libLLVMVectorize.a lib/libLLVMInstrumentation.a lib/libLLVMTransformUtils.a lib/libLLVMAnalysis.a lib/libLLVMProfileData.a lib/libLLVMSymbolize.a lib/libLLVMDebugInfoDWARF.a lib/libLLVMDebugInfoPDB.a lib/libLLVMDebugInfoMSF.a lib/libLLVMDebugInfoBTF.a lib/libLLVMJITLink.a lib/libLLVMOrcTargetProcess.a lib/libLLVMOrcShared.a lib/libLLVMWindowsDriver.a lib/libLLVMOption.a lib/libLLVMRuntimeDyld.a lib/libLLVMObject.a lib/libLLVMMCParser.a lib/libLLVMMC.a lib/libLLVMDebugInfoCodeView.a lib/libLLVMIRReader.a lib/libLLVMBitReader.a lib/libLLVMAsmParser.a lib/libLLVMTextAPI.a lib/libLLVMAArch64Utils.a lib/libLLVMCore.a lib/libLLVMBinaryFormat.a lib/libLLVMTargetParser.a lib/libLLVMRemarks.a lib/libLLVMBitstreamReader.a lib/libLLVMSupport.a -lrt -ldl -lpthread -lm lib/libLLVMDemangle.a && :
ld.lld: error: undefined symbol: llvm::exegesis::SubprocessMemory::getCurrentTID()
referenced by BenchmarkRunner.cpp
lto.tmp:(llvm::exegesis::(anonymous namespace)::SubProcessFunctionExecutorImpl::runWithCounter(llvm::StringRef, llvm::ArrayRef<char const*>, llvm::SmallVectorImpl&) const)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
[4028/4315] Linking CXX shared library lib/libLLVM.so.19.0git
ninja: build stopped: subcommand failed.
ERROR: failed to build.
```
https://github.com/llvm/llvm-project/pull/84451
More information about the llvm-commits
mailing list