[PATCH] D104431: [lld] Add lto-pgo-warn-mismatch option
Yolanda via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 11 01:27:35 PDT 2021
YolandaCY added a comment.
I seems cannot reproduce the failure. I tried:
> cmake -DLLVM_ENABLE_PROJECTS=mlir -DLLVM_ENABLE_ASSERTIONS=On -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/llvm/ -DLLVM_TARGETS_TO_BUILD=X86;NVPTX;AMDGPU -DLLVM_BUILD_EXAMPLES=ON -G Ninja ../llvm
>
> ninja -j10
Is it specific to mlir build?
In D104431#2938948 <https://reviews.llvm.org/D104431#2938948>, @c-rhodes wrote:
> Hi, this is breaking my build:
>
> [1860/2777] Linking CXX shared library lib/libLLVMLTO.so.14git
> FAILED: lib/libLLVMLTO.so.14git
> : && /usr/bin/clang++-13 -fPIC -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 -Wstring-conversion -fdiagnostics-color -g -Wl,--gdb-index -Wl,-z,defs -Wl,-z,nodelete -fuse-ld=lld-13 -Wl,--color-diagnostics -shared -Wl,-soname,libLLVMLTO.so.14git -o lib/libLLVMLTO.so.14git lib/LTO/CMakeFiles/LLVMLTO.dir/Caching.cpp.o lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o lib/LTO/CMakeFiles/LLVMLTO.dir/LTOBackend.cpp.o lib/LTO/CMakeFiles/LLVMLTO.dir/LTOModule.cpp.o lib/LTO/CMakeFiles/LLVMLTO.dir/LTOCodeGenerator.cpp.o lib/LTO/CMakeFiles/LLVMLTO.dir/SummaryBasedOptimizations.cpp.o lib/LTO/CMakeFiles/LLVMLTO.dir/UpdateCompilerUsed.cpp.o lib/LTO/CMakeFiles/LLVMLTO.dir/ThinLTOCodeGenerator.cpp.o -Wl,-rpath,"\$ORIGIN/../lib" lib/libLLVMCodeGen.so.14git lib/libLLVMExtensions.so.14git lib/libLLVMPasses.so.14git lib/libLLVMTarget.so.14git lib/libLLVMObjCARCOpts.so.14git lib/libLLVMipo.so.14git lib/libLLVMBitWriter.so.14git lib/libLLVMLinker.so.14git lib/libLLVMScalarOpts.so.14git lib/libLLVMAggressiveInstCombine.so.14git lib/libLLVMInstCombine.so.14git lib/libLLVMTransformUtils.so.14git lib/libLLVMAnalysis.so.14git lib/libLLVMObject.so.14git lib/libLLVMBitReader.so.14git lib/libLLVMMC.so.14git lib/libLLVMCore.so.14git lib/libLLVMBinaryFormat.so.14git lib/libLLVMRemarks.so.14git lib/libLLVMSupport.so.14git -Wl,-rpath-link,/home/culrho01/llvm-project/build/lib && :
> ld.lld-13: error: undefined symbol: NoPGOWarnMismatch
> >>> referenced by LTOBackend.cpp:228 (/home/culrho01/llvm-project/llvm/lib/LTO/LTOBackend.cpp:228)
> >>> lib/LTO/CMakeFiles/LLVMLTO.dir/LTOBackend.cpp.o:(runNewPMPasses(llvm::lto::Config const&, llvm::Module&, llvm::TargetMachine*, unsigned int, bool, llvm::ModuleSummaryIndex*, llvm::ModuleSummaryIndex const*))
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104431/new/
https://reviews.llvm.org/D104431
More information about the llvm-commits
mailing list